3 ms·
How do bun, deno, and other typescript-built-in languages keep up with language features?
by seniorsassycat 4y ago
How do bun, deno, and other typescript-built-in languages keep up with language features?
- andyferris 4y agoI believe each version of Deno ships a single version of TypeScript.
- yonifei 4y agotypescript(tsc) is the only one that does type checking. bun, deno, esbuild, swc etc. can parse the syntax, but they chuck the TS (they probably don't even add it to the AST, but I haven't checked). Keeping up with syntax is very doable. It doesn't change often, and updating the parser when it does isn't much work. There are some past/ongoing projects[1][2] to create type checkers faster than tsc, but they aren't going to reach full parity and probably don't plan on keeping up with language features. [1] https://github.com/dudykr/stc https://github.com/dudykr/stc [2] https://github.com/marcj/TypeRunner https://github.com/marcj/TypeRunner
- seniorsassycat 4y agoSo tsc runs on bun and deno? Do they implement any node apis used by typescript? I guess there's very little surface area - process, fs, maybe stream, event, and worker_threads or process?