19 ms·
wasm runs in your browser. Java does not.
by vbezhenar 4y ago
wasm runs in your browser. Java does not.
- rjsw 4y agoJava could have been made to run well in a browser, giving applets good access to the DOM of their containing page wouldn't have been too difficult.
- pjmlp 4y agoNot only it wasn't, it has always been possible to do so from Applets.
- Jaxan 4y agoIt used to, though.
- orev 4y agoThey are using the past tense of Java. In case you don’t know, the primary use of Java when it came out was to run “applets” inside the browser. And it was terrible. It was later when it became mostly a server-side thing (which at the time was dominated by languages like Perl, PHP, etc.)
- hawkeyedan 4y agoTo be precise, applets were an early application of Java. But Sun Microsystems actually developed it in the long-standing dream of the “universal binary.” The project began in 1991 targeting set-top boxes. [source](https://web.archive.org/web/20100210225651/http://www.java.com/en/javahistory/ https://web.archive.org/web/20100210225651/http://www.java.c...) WASM is another iteration of the same noble idea done with different technologies at a different moment. Java and the JVM have been incredibly successful. WASM has the potential to bring the dream of a universal binary even farther.
- DonHopkins 4y ago>But Sun Microsystems actually developed it in the long-standing dream of the “universal binary.” Never heard of UCSD Pascal?
- jacquesm 4y agoHistory is rewritten one faulty comment at the time.
- pjmlp 4y agoIt did once upon a time, and ironically there are now WASM versions as well.