News for hackers. Stuff that matters.
Re:A 10x Faster TypeScript by smarx007 on Tuesday March 11, 2025 @06:29PM (#43337802)
I think Deno and Bun are the two successful attempts at a faster tsc :)
Re:A 10x Faster TypeScript by keturakis on Tuesday March 11, 2025 @06:31PM (#43337817)
Both Deno and Bun still use current tsc for type checking
Re:A 10x Faster TypeScript by madjam002 on Tuesday March 11, 2025 @06:38PM (#43337861)
They just strip types and don’t do any type checking
Re:A 10x Faster TypeScript by Cthulhu_ on Wednesday March 12, 2025 @04:48AM (#43341061)
Those are runtimes primarily, not compilers/type checkers. Likewise, TSC is not a TS runtime.
Re:A 10x Faster TypeScript by smarx007 on Wednesday March 12, 2025 @03:53PM (#43347009)
Well, of course. But TSC output (transpiled JS source code) is then run by a JS runtime like Node that has a VM like V8 that makes an internal representation for the JS code. Using Bun or Deno allows you to go to a VM IR from the TypeScript directly without a need for TSC transpilation.

But as @keturakis pointed out (thanks!), Deno/Bun still rely on TSC, which I was not aware of.

Re:A 10x Faster TypeScript by morcus on Thursday March 13, 2025 @08:36AM (#43352644)
Bun doesn't even support a way to check types, just remove them.

> Note — Similar to other build tools, Bun does not typecheck the files. Use tsc (the official TypeScript CLI) if you're looking to catch static type errors.