Re:Nectar: A Native JavaScript Compiler Inspired by Crystal ...
by markonen on Saturday December 31, 2016 @01:48AM
(#13289889)
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.
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).