Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fair warning: I don't know much about compilers.

Maybe it's an idea to make this a native Typescript compiler as it will profit much more from being compiled than pure JavaScript will?

This way it would probably still be possible to compile pure JavaScript but providing type information would allow the compiler to apply many more optimisations.

If I'm not mistaken V8 already does something similar to this with WASM (and I think asm.js).



Here's a TypeScript to C89 transpiler:

https://github.com/andrei-markeev/ts2c

Very early, but the author seems to be actively working on it.


thank you




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: