Hacker News new | past | comments | ask | show | jobs | submit login
TypeRunner – High-performance TypeScript compiler (github.com/marcj)
64 points by fabian2k on Oct 17, 2022 | hide | past | favorite | 4 comments



> It consists of roughly 30k LoC and shows very promising results. The approach is a TS-to-bytecode compiler and then run the bytecode in a custom virtual machine. The data show that this approach can lead to a hundred- to several-thousand-fold improvement in speed.

> Currently, the development of TypeRunner is almost stalled and was more an experiment/proof of concept. To actually make this a reality, funding is necessary.


Since no one seems to be commenting; this is very cool. Can you explain what you mean by TS-to-bytecode? Presumably; you're not interpreting JS. So, what are you interpreting; the types themselves? I guess this actually makes a lot of sense, since Typescript's type system is its own programming language.


Very cool -- developer experience on larger TypeScript projects has poor performance. Auto-complete is perceptibly slow. Interesting to see this project and Bun get thousands of stars in just a couple days, the People want Performance!


What does it mean for Typescript to be usable in "other languages"?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: