You know... It's in fact much more like the reverse: compiling assembly language into C. Java is a less expressive language than JavaScript. The result is that you code in the slow-to-develop/fast-to-run language and it spits out fast-to-develop/slow-to-run code.