5 ms·
Javascript (and probably by extension Typescript) are too dynamic to really compile down to machine code while still retaining all features. The best you could
by Macha 7y ago
Javascript (and probably by extension Typescript) are too dynamic to really compile down to machine code while still retaining all features. The best you could do would be something Cythonish where every second line gets converted to a call to PyObject_blah. It's not clear that that would actually perform better than a modern JIT engine
In which case you've just invented a less portable way of doing electron type apps.
- s_y_n_t_a_x 7y agoThere's AssemblyScript (a strict subset of TS that compiles to WASM)