Comment by spankalee
11 years ago
asm.js is proof that a compile-to-JS language doesn't necessarily have to discard the correctness of its number types. A statically typed language can do a lot. Integer values can be can to int32 via `| 0`, longs can be emulated with two numbers (GWT does this).
The tradeoff is speed, especially for dynamically typed languages. Having to check your operand types in JS before doing work is a performance killer.
And WebAssembly means that soon it will be practical to use any language on the client or server side.
It already is on the server-side. Feel free to use C; at least it would be performant.
It's easy to write code that does the wrong thing quickly in any language, and IME that tends to be the usual result of choosing C.
5 replies →
And WebAssembly means that soon it will be practical to use any language on the client or server side.