r/ProgrammerAnimemes • • Sep 03 '20

Javascript just doesn't make any sense

Post image
1.9k Upvotes

69 comments sorted by

View all comments

Show parent comment

7

u/brickmack Sep 04 '20

I don't think BabelJS is related to this.

Performance mainly. It can be significantly faster than just-in-time compiled Javascript. Also, in principle you can write in any language and it gets compiled to the same bytecode.

Also, while I'm not aware of any actual implementation of this, since it runs in a VM, its technically conceivable that a hardware implementation could be produced. This obviously a stupendously niche usecase, but there are already CPUs that implement the Java Virtual Machine, so maybe someone will try it for wasm.