Airtable have parallelized #TypeScript type checking of their large codebase (nearly 3000 projects):
• Without parallelism: 5h 28min 48s
• With parallelism: 9min 25s
• With parallelism + isolated declarations: 7min 7s
• Pull requests (taking advantage of improved cache rate): ~3min
@rauschma when I read this, I really wondered if the problem they have isn't structural instead. No sane mind would imply that having 3000 small(-ish) typescript projects means all of them are somehow running through one typescript process.
@rauschma No 1 is such a wide range that one can't answer that in a meaningful way. I am clearly not No 2 or 3, but I still find it easier to deal with technology than many others.
@rauschma this is a nice feature to pair with context. Sometimes I don't only want to know "What was that NPM script?", but also "What do I usually run before and after it?"
Node.js v22.7.0: If you write a script in ESM format, you previously had two choices:
– Use the filename extension .mjs
– Use the filename extension .js and a package.json with "type":"module"
There is now a third option:
– Use the filename extension .js. If there is no package.json with "type", Node.js assumes CommonJS, but transparently switches to ESM if it encounters ESM syntax (`import`, `export`, etc.).
Node.js v22.7.0: If you write a script in ESM format, you previously had two choices:
– Use the filename extension .mjs
– Use the filename extension .js and a package.json with "type":"module"
There is now a third option:
– Use the filename extension .js. If there is no package.json with "type", Node.js assumes CommonJS, but transparently switches to ESM if it encounters ESM syntax (`import`, `export`, etc.).
@rauschma I understand the sentiment that Diablo 1 was "outshined" by its successor. But I feel it sells Diablo 1 unnecessarily short. Not sure whether it was my younger age but I found D1 way darker and scarier than D2. D2 was a fast-paced action slay fest (and amazing at that). D1 a horror story to find out what happened to the king.
#VisualStudioCode + #TypeScript:
– Are there plans to provide more refactorings?
– Or is there a commercial product that adds more refactorings to VSC (which I don’t want to give up)?
I’m especially missing:
– Changing function parameters; especially reordering them.
– Inlining function calls. This is very useful for evolving APIs because it allows you to change call sites of old functions.
Are you interested in tools that let you test code in Markdown files?
I suspect it’s a niche but an important one for tech writers—e.g.: It took me a lot of work to test all code examples in my books (*) automatically but it was more than worth it! I detected many issues.
(*) https://exploringjs.com
Anonymous poll
Poll
Very interested
7
0%
Somewhat interested
9
0%
Not interested
1
0%
0 people voted. Voting ended 26 February at 18:42.
@rauschma Not a niche if you think about how jupyter notebooks are essentially executable code in a file that mixes markdown and code. If you start writing a lot of code in code blocks in markdown, pretty soon you need the entire tool chain to support it (formatters, linters, run-as-script, import library from code block, test running, etc).
@rauschma Not a niche if you think about how jupyter notebooks are essentially executable code in a file that mixes markdown and code. If you start writing a lot of code in code blocks in markdown, pretty soon you need the entire tool chain to support it (formatters, linters, run-as-script, import library from code block, test running, etc).
@rauschma
Automatic redirect to <lang>.godbolt.org, with filled in script would be interesting.
But that requires, that the Markdown is complete in the first place.
Most of the time code examples in C#/C++ aren't full-fledged samples, due to the sheer number of possible environments.
@rauschma if you are using pnpm, there's `shell-emulator` configuration option: https://pnpm.io/cli/run#shell-emulator. It lets you `DEFINE_ENVS=before script` like you'd do in regular POSIX shell. Yarn does use it by default. Kinda wish npm adopted that (probably as an option, to stay backwards compatible).
“Apple announces alliance with Adobe, NVIDIA, and others to develop Pixar’s 3D standard”
“Open Universal Scene Description (OpenUSD) was created by Pixar Animation Studios as a 3D scene depiction technology that promises significant interoperability among tools, data, and workflows.”
Apple’s interested in using it for Augmented Reality.
I suspect that Mastodon will never be as big as Twitter once was. But I don’t mind: I first used it in 2017 and I’m glad that it’s now a lively space, especially for tech.
I’m curious what keeps Twitter users from moving here:
– Personally, I rarely miss search.
– Quote posts are being worked on.
– Some people say it’s too complicated but I don’t understand why.
And there are several great features that Twitter doesn’t have: temporary muting, content warnings for spoilers, etc.
I suspect that Mastodon will never be as big as Twitter once was. But I don’t mind: I first used it in 2017 and I’m glad that it’s now a lively space, especially for tech.
I’m curious what keeps Twitter users from moving here:
– Personally, I rarely miss search.
– Quote posts are being worked on.
– Some people say it’s too complicated but I don’t understand why.
@rauschma i think it is just being a pyramid head.
living life according to what is "normal" instead of living it for one's own convictions.
nornal means, house, job, listening to authorities, using react and typescript as a frontend dev, until authorities hype something else, ....and so many other things.
it is easy.
it means just copy what majority does no questions asked.
for sure mastodon gets registered but not as the dominant thing.
...it's the mainstream pattern sadly
@rauschma i think it is just being a pyramid head.
living life according to what is "normal" instead of living it for one's own convictions.
nornal means, house, job, listening to authorities, using react and typescript as a frontend dev, until authorities hype something else, ....and so many other things.
@rauschma I miss search a lot, even if just for my own posts. Quote posts is a vex, but not a big deal.
For non-technical users, having to choose a server, the endless discussion of why that is, and the lecturing over why it is better. The endless admonishment over etiquette, the lists. The intensity of ND behaviour, which is diluted on other platforms. The lack of access to public service accounts.
I’m still here and you’re one of the first people I followed, but it can be hard work here.