r/programming • • Jul 18 '16

Web programming is getting unnecessarily complicated

http://en.arguman.org/web-programming-is-getting-unnecessarily-complicated
324 Upvotes

258 comments sorted by

View all comments

Show parent comment

7

u/_zenith Jul 19 '16

Exactly! Sharing a VM via bytecode is a very different thing indeed to sharing a VM via source transpilation!

If it WERE via bytecode, you be able to have PureScript calling TypeScript and vice versa and the like. That's one of the core advantages to sharing a VM - if you don't like the language, or its ill-suited to the problem domain, no problems.

Not so for transpilation - you are limited by the host language. Sure, you can transform some non-language-native constructs, but that can be pretty tricky to do compared to just emitting the right bytecodes (and usually a lot slower and jankier too)