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

34

u/forreddits Jul 19 '16

A small nitpick, Kotlin and Scala compile to JVM bytecode not Java.

18

u/Nilidah Jul 19 '16

^ thats an important differentiation to make.

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)

4

u/joshlemer Jul 19 '16

As well Scala has a growing compile-to-JavaScript community, Scala.js

1

u/alexshatberg Jul 19 '16

Nothing will surprise me after asm.js.

1

u/Voxel_Brony Jul 20 '16

And Kotlin is designed to do so