Developer attempts to compile TypeScript 6 into native binary using scriptc, hits compiler wall
A developer tested scriptc, a newly released tool that converts plain TypeScript into native binaries without Node.js or a JavaScript engine, by feeding it the TypeScript 6 compiler source code. The experiment targeted TypeScript 6.0.3, the last version of tsc written in TypeScript itself, making it a large, real-world stress test for the young tool. Scriptc successfully compiled 90% of the compiler's roughly 56,000 statements to native code before hitting an internal compiler error it could not resolve. The attempt ultimately failed to produce a working native tsc binary, though the developer noted the result revealed useful insights into where scriptc's current limits lie. The experiment also set up a natural comparison with TypeScript 7, the ground-up Go rewrite that is already natively compiled by design.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in