Live data from Hacker News

WebAssembly support now shipping in all major browsers

blog.mozilla.org

11–20 of 346 posts

Re: WebAssembly support now shipping in all major browsers

#11
post #6
post #2

Ok, now we need GC and DOM interop. Because reinventing layouts is pain.

In order to port other languages (Haskell, Go, Python) to target WASM, we definitely need the possibility of writing a GC in WASM. But to build an efficient GC, we need multithreading and synchronization/memory barrier primitives.

Multi threading brings in all kinds of security issues

Re: WebAssembly support now shipping in all major browsers

#12
post #7

Java applets 2.0, we are back to square one, yet again. People don't learn. The web dev community have just managed to force browsermakers to unify web development on browser side JS, and throw Java applets, activex, and action script to the bucket, just to have a kind of JVM being made a part of the web standard, and forced upon us yet again.

Having a unified VM with established sandboxing requirements is nothing like JVM. It's more like JavaScript itself, only lower level. What's bad about this?

Re: WebAssembly support now shipping in all major browsers

#13
post #6
post #2

Ok, now we need GC and DOM interop. Because reinventing layouts is pain.

In order to port other languages (Haskell, Go, Python) to target WASM, we definitely need the possibility of writing a GC in WASM. But to build an efficient GC, we need multithreading and synchronization/memory barrier primitives.

Seems to be on the roadmap:

http://webassembly.org/docs/future-features/

Re: WebAssembly support now shipping in all major browsers

#14
post #7

Java applets 2.0, we are back to square one, yet again. People don't learn. The web dev community have just managed to force browsermakers to unify web development on browser side JS, and throw Java applets, activex, and action script to the bucket, just to have a kind of JVM being made a part of the web standard, and forced upon us yet again.

Webkit only has 10k LOC specific to WebAssembly because like every other browser it reuses the javascript JIT. That's an incredibly tiny part of the entire browser.

Re: WebAssembly support now shipping in all major browsers

#15
post #7

Java applets 2.0, we are back to square one, yet again. People don't learn. The web dev community have just managed to force browsermakers to unify web development on browser side JS, and throw Java applets, activex, and action script to the bucket, just to have a kind of JVM being made a part of the web standard, and forced upon us yet again.

There are some clear and defining differences between Java applets and webassembly. The core problems with Java were that the security sucked, and that applets were non-native and didn't use the dom. I doubt there is any desire in web developers to overuse canvasses and do layout in wasm, and the security model should hopefully be as successful as JS's has been over the years.

Re: WebAssembly support now shipping in all major browsers

#17
post #6

Earlier quoted context omitted.

In order to port other languages (Haskell, Go, Python) to target WASM, we definitely need the possibility of writing a GC in WASM. But to build an efficient GC, we need multithreading and synchronization/memory barrier primitives.

Seems to be on the roadmap: http://webassembly.org/docs/future-features/

Good to see. By the way, we also need multithreading and shared memory to efficiently support structurally shared immutable data structures across multiple cores.

Re: WebAssembly support now shipping in all major browsers

#18

Can't wait for DOM interop and get away from JS on frontend. Seriously JS should not be the lingua franca of the web :)

>> Seriously JS should not be the lingua franca of the web

But neither should this. Really, keep your code off my computer as much as possible.

Re: WebAssembly support now shipping in all major browsers

#19
post #3
post #2

Ok, now we need GC and DOM interop. Because reinventing layouts is pain.

IIRC you can do GC within WebAssembly (though it's less nice and awkward as I've been told). But DOM interop is needed. Can't wait to get my fingers on the DOM via native C code :)

It doesn't sound like that will be possible. DOM interop is baked into the Garbage Collection task[0]. It sounds like there's a dependency there, somewhere.

[0]: https://github.com/WebAssembly/design/issues/1079

edit: Scratch all of that above. I stand corrected. Here's the DOM proposal: https://github.com/WebAssembly/host-bindings/

Re: WebAssembly support now shipping in all major browsers

#20

Can't wait for DOM interop and get away from JS on frontend. Seriously JS should not be the lingua franca of the web :)

>> Seriously JS should not be the lingua franca of the web But neither should this. Really, keep your code off my computer as much as possible.

But what is a computer for if not running other people's code?

I can't imagine there are many people in this world who have a computer with more than even 1% their own code running on it.

Post reply on HN