Webassembly Research
Webassembly Research

Webassembly Research

Motivating Question

tsc tends to be the bottleneck in modern TS toolchains. Native compilers like esbuild and swc are amazing, but they don’t perform type-checking, so you still need tsc as part of your build process. Would it be possible to speed up tsc by opaquely compiling it from a JIT’ed JavaScript program into some more optimal format like WASM or native?
 

Notes

  • This may not be worth the effort, but seeing as how quickly native compilers gained adoption within the TS ecosystem, a similar solution for replacing the type-checking and generation portions of tsc would have huge implications.
 

Projects

    • TypeScript-like language for WebAssembly
 
 

Resources

 

Articles