News for hackers. Stuff that matters.
Re:Why WebAssembly Is Faster Than Asm.js by tdeck on Thursday March 16, 2017 @01:08AM (#13882688)
I remember Java applets, and reading this thread it's hard to square the revisionist nostalgia with those experiences. The Java applets I remember absolutely sucked as a user. They took forever to load, had weird clunky UIs that were out of place in the host OS and the browser, constantly broke due to compatibility issues, and had no concept of graceful degradation. There's a reason Java applets lie in the dustbin of history - good riddance to them, it's where they belong!
Re:Why WebAssembly Is Faster Than Asm.js by throwawaysbdi on Thursday March 16, 2017 @01:27AM (#13882757)
The rose tinting of HTML should also be taken into account. Java was maybe 10x slower in those days, but more importantly internet was 100x slower and computers 500x slower.

Java ran pretty damn good for what it pulled off back then. It would have been orders of magnitude easier to make Java into what we have today than it was to bastardize HTML and JS to be usable.

Java these days uses native UI which looks nicer and is much faster than in-browser rending. Graceful degredation is only needed because some browsers are such crap. This was never a big problem in Java and still isn't. If a JVM supports JDK 8 you can expect it to run java 8 apps reliably

Java seems like a resource hog because it will use spare ram when you've got it, but most apps run fine on around 15mb of ram. Less if you use AOT compilation. Modern webapps use around 50-100.

Re:Why WebAssembly Is Faster Than Asm.js by flukus on Thursday March 16, 2017 @01:36AM (#13882790)
Yes they were slow and clunky, but they ran on computers with 100Mhz processors and 8/16MB of RAM. I doubt you could load a chrome tab on that.

> had weird clunky UIs that were out of place in the host OS and the browser

Just like web apps, the may be prettier, but they look just as out of plus with custom widgets everywhere and complete disregard for the desktop theme. Hell, for some reason chrome added that shitty task bar color attribute that allows a web page to alter the desktop (well mobile top) theme.

Re:Why WebAssembly Is Faster Than Asm.js by beagle3 on Thursday March 16, 2017 @02:34AM (#13883011)
Yes, but the competition at the time was HTML (slowly getting interactive with time, and mostly ugly, but fast and dependable), and Flash -- and Flash was way faster, way more compact, and way more prevalent than Java.

So, Java wasn't ahead of its time, and it was much much worse than Flash (which, despite numerous efforts to kill it, is still alive, unlike Java Applets which have essentially been dead for years).

Re:Why WebAssembly Is Faster Than Asm.js by flukus on Thursday March 16, 2017 @02:46AM (#13883057)
I don't think flash was much better at anything interactive, or at least animated. On the same hardware as above I remember "frog in a blender" could render well south of 1FPS, on a 486/686 (outdated but still in common use) it was more like 0.1FPS.

Too be fair though, it's a hard comparison, applets were generally apps while flash was fancy graphics.

Re:Why WebAssembly Is Faster Than Asm.js by bjbXXX on Thursday March 16, 2017 @02:01AM (#13882867)
Java could have worked fine in the browser. All feature phones (which are/were almost universally less powerful than a desktop PC) were able to run Java ME applications just fine.

My memory from the mid/late nineties is that Microsoft wanted to balkanise Java with J++ (or was it J# ?) and got into a big argument with Sun, and because of this and the fact they eventually came to own the browser market there was no way they'd embed a JVM in the browser.

Re:Why WebAssembly Is Faster Than Asm.js by douche on Thursday March 16, 2017 @08:13AM (#13884349)
Sun/Oracle also took about a five year hiatus after Java 6, and let the platform languish during a critical period.
Re:Why WebAssembly Is Faster Than Asm.js by tannhaeuser on Thursday March 16, 2017 @02:38AM (#13883028)
Ironically, MS browsers remain the only ones to support Applets today.
Re:Why WebAssembly Is Faster Than Asm.js by kbutler on Thursday March 16, 2017 @12:30PM (#13886356)
firefox extended support release has NPAPI support for another year: https://www.mozilla.org/en-US/firefox/52.0esr/releasenotes/
Re:Why WebAssembly Is Faster Than Asm.js by pjmlp on Thursday March 16, 2017 @05:26AM (#13883654)
EDGE does not.