This is interesting, this will give you an idea of what is happening in JavaScript.
https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js
("transpile" would be a more fitting word than "compile" here, BTW).
For those who have been busy with something else during the last year or two, one thing that happened is asm.js, which uses a subset of javascript to make it possible to run instructions which were compiled from another language (eg: C++). So you can write in C++ and have it compiled to JavaScript and run in the browser. Some folk(s?) even used that to port the Quake engine and have it run in the browser, using this JavaScript technique.
http://www.quakejs.com/
There also was a port of a linux kernel to javascript - running in your browser with a terminal and all.
In practice it needs some work - but surely less than rewriting everything in JavaScript :)
They are just some examples. Asm.js is just one option among many (supported by Firefox, but also compatible with other browsers). Chrome also have something they call NaCl (Native client) but I think it's Chrome only. The list in the link above is more exhaustive.
https://github.com/jashkenas/coffeescript/wiki/list-of-languages-that-compile-to-js
("transpile" would be a more fitting word than "compile" here, BTW).
For those who have been busy with something else during the last year or two, one thing that happened is asm.js, which uses a subset of javascript to make it possible to run instructions which were compiled from another language (eg: C++). So you can write in C++ and have it compiled to JavaScript and run in the browser. Some folk(s?) even used that to port the Quake engine and have it run in the browser, using this JavaScript technique.
http://www.quakejs.com/
There also was a port of a linux kernel to javascript - running in your browser with a terminal and all.
In practice it needs some work - but surely less than rewriting everything in JavaScript :)
They are just some examples. Asm.js is just one option among many (supported by Firefox, but also compatible with other browsers). Chrome also have something they call NaCl (Native client) but I think it's Chrome only. The list in the link above is more exhaustive.