Vercel unveils Scriptc: TypeScript-to-native compiler with no JS engine
Vercel has released Scriptc, a compiler that turns TypeScript directly into native executables for macOS, Linux and Windows without Node.js, V8 or any other JS runtime. Benchmarks show cold starts dropping from 180 ms with ts-node to 15 ms, with a 3 MB binary versus 12 MB for a bundled Node build.
- Compilation goes through LLVM IR, targeting x86_64 and ARM64
- A ~200 KB C runtime replaces Node.js and V8
- Cold start of 15 ms vs 180 ms for ts-node and 70 ms for bundled Node
- 3 MB binary versus 12 MB for a Node build with dependencies
Read next
Software