News for hackers. Stuff that matters.
Re:V8 release v6.9 by bovermyer on Tuesday August 07, 2018 @12:27PM (#17708068)
This is the bit I'm most interested in:

> WebAssembly got a new baseline compiler for much faster startup of complex websites with big WebAssembly modules (such as Google Earth and AutoCAD). Depending on the hardware we are seeing speedups of more than 10×. Stay tuned for more details in a separate blog post.

Re:V8 release v6.9 by chacham15 on Tuesday August 07, 2018 @12:54PM (#17708313)
I'll be excited about WebAssembly when it can manipulate DOM. Until then, it feels mostly like a thought experiment in that the number of people that it makes sense to use right now is miniscule.
Re:V8 release v6.9 by chinedufn on Tuesday August 07, 2018 @01:14PM (#17708495)
Check out Rust’s wasm-bindgen - https://github.com/rustwasm/wasm-bindgen if ya haven’t already.

Right now it you call into JS to interact with the DOM but when the host bindings proposal sees fruit it’ll replace the JS shims with direct DOM manipulation!

Re:V8 release v6.9 by seanmcdirmid on Tuesday August 07, 2018 @02:11PM (#17709044)
It isn’t clear how they will allow safe access to the DOM without GC. Maybe they’ll take an approach like Microsoft did with UWP and use reference counting?
Re:V8 release v6.9 by tjallingt on Tuesday August 07, 2018 @02:40PM (#17709348)
Would be interesting if it would be possible to take the Rust approach and guarantee at parse/compilation time that the DOM interactions are safe without runtime overhead. Probably a terrible idea for mobile devices though...
Re:V8 release v6.9 by seanmcdirmid on Tuesday August 07, 2018 @02:59PM (#17709524)
That would only work if it isn’t shared with unsafe code.
Re:V8 release v6.9 by vardump on Tuesday August 07, 2018 @02:15PM (#17709076)
The possibility of WebAssembly becoming tangled with complicated web browsers worries me.

Whatever DOM manipulation there may be in the future, I hope there'll be no tight coupling with DOM, GC or anything else.

If tight coupling can be avoided, WebAssembly could become lingua franca of binary formats also outside web.

For things like architecture agnostic plugins, extensions and high performance light weight "scripting" support.

Re:V8 release v6.9 by DonHopkins on Tuesday August 07, 2018 @02:42PM (#17709363)
I think the point is to integrate WebAssembly with JavaScript objects in general, not the DOM API in particular. Nothing to do with web browsers, everything to do with JavaScript.
Re:V8 release v6.9 by steveklabnik on Tuesday August 07, 2018 @02:57PM (#17709506)
It's called the "host bindings" proposal because the proposal is to create bindings to the host environemnt; for a browser that's the DOM, for for any other host, it could be other things. It's not tightly coupled to them.
Re:V8 release v6.9 by vardump on Tuesday August 07, 2018 @03:07PM (#17709583)
> It's not tightly coupled to them.

Hopefully it'll stay that way.

Dependencies on DOM or Javascript would be devastating for WebAssembly use outside web browsers.

Re:V8 release v6.9 by steveklabnik on Tuesday August 07, 2018 @03:12PM (#17709639)
Everyone[1] who works on wasm cares about the non-browser use-case, so I think you can sleep easy here.

1: Okay so, what I really mean is, "I spend a lot of time talking to people working on WebAssembly and they've all expressed that to me but of course I hvaen't talked to literally every single last person".

Re:V8 release v6.9 by rudedogg on Tuesday August 07, 2018 @01:57PM (#17708910)
Same, I started looking into WASM yesterday, and was disappointed to find out you can't do DOM manipulation as that was my use case.

From my brief research https://github.com/WebAssembly/host-bindings is the repository to watch for progress.

Re:V8 release v6.9 by kuwze on Tuesday August 07, 2018 @02:52PM (#17709452)
Why would you want to do that? DOM manipulation is what makes JS slow, not JS itself.