News for hackers. Stuff that matters.
Re:WebAssembly: A New Hope by baybal2 on Wednesday August 09, 2017 @02:22PM (#14972129)
>WebAssembly could become the universal cross platform low level VM.

You know, people tried to do the same thing countless times already, there is Java and it tries to do exactly that. We all know where Java's promise "to run everywhere" went.

There are JVMs for things beginning from microcontrollers to s390, but find one that can flawlessly run code that was compiled for a VM that is even one major releases old.

Serious software in Java usually comes with something saying "version 2 of this software runs on JVM 'A' 1.4.13 with patchset 'B' 1.2, classpath 'C' 1.5, and exact VM setting from supplied jvm.conf".

Re:WebAssembly: A New Hope by Rusky on Wednesday August 09, 2017 @07:13PM (#14974644)
The JVM is also massively more complex than WebAssembly. It defines its own object model, its own memory management system, its own enormous standard library.

WebAssembly is how these things should have been done from the start. Leave the object model, memory management, and libraries to the languages built on top, where they can be changed without affecting the backwards compatibility story of the VM itself.

Re:WebAssembly: A New Hope by jules on Wednesday August 09, 2017 @02:31PM (#14972233)
WebAssembly is unlikely to have this issue because it has to run on the web and browsers don't want to break backwards compatibility. Even with these issues the JVM has actually been quite successful as a language platform.
Re:WebAssembly: A New Hope by kbutler on Wednesday August 09, 2017 @04:47PM (#14973430)
The edge cases they cited seem to run counter to this expectation:

"At this point, we want to issue a special thank you to the WebAssembly teams at Mozilla and Google, especially Alon Zakai, for being so helpful. We did run into a few edge cases but with their help we were able to still make it happen and even improved the Emscripten tool chain a bit along the way."

If some percentage of realistic projects run into edge cases that are incompatible with either the spec or between browsers, it violates the whole "write once run anywhere" goal.

Re:WebAssembly: A New Hope by jules on Wednesday August 09, 2017 @06:20PM (#14974268)
WebAssembly is in its infancy.
Re:WebAssembly: A New Hope by kbutler on Wednesday August 09, 2017 @08:12PM (#14975039)
> WebAssembly is in its infancy

Exactly.

Expectations that WebAssembly will be more cross-platform than any previous attempt at cross-platform are probably overly optimistic at this point.

Though I'm hopeful, as well.

Re:WebAssembly: A New Hope by chrshawkes on Wednesday August 09, 2017 @04:50PM (#14973447)
These failures are why the runtime ships with executable code within .NET Core, Golang and Rust.