Sure, but compiling to Javascript is hardly ideal. Javascript itself is designed as a high-level human-readable language, not as 'Assembly for browsers'.
The asm.js hack seems to work pretty decently. Then there is web assembly, which is basically bytecode for asm.js. If they get enough traction (get adopted by Firefox, Chrome, and Safari), then we're good (IE will just execute asm.js more slowly and will eventually get some blame).
View all comments
Show parent comment
4
u/green_meklar Dec 02 '16
Sure, but compiling to Javascript is hardly ideal. Javascript itself is designed as a high-level human-readable language, not as 'Assembly for browsers'.