News for hackers. Stuff that matters.
Re:V8 release v6.6 by izacus on Tuesday March 27, 2018 @08:54AM (#16687801)
WebAssembly has no access to DOM so you still need JS to drive the UI in most cases.
Re:V8 release v6.6 by pjmlp on Tuesday March 27, 2018 @09:12AM (#16687937)
There is WebGL.

DOM access to WebAssembly will come.

https://github.com/WebAssembly/design/labels/Phase%201%3A%20...

Re:V8 release v6.6 by lhorie on Tuesday March 27, 2018 @12:52PM (#16690383)
No one's going to use WebGL as an alternative to the DOM until it supports accessibility (read: being visible to googlebot)

Even if it did, you'd still lose a lot of productivity with it if you're used to working with the high level of abstraction of the DOM, e.g. line wrapping.

There are certainly cases where dropping to GLSL is the only way to get a UI to work at all, but most of the time the metadata-providing feature of HTML is far more important than squeezing some milliseconds of performance.

Re:V8 release v6.6 by pjmlp on Tuesday March 27, 2018 @01:39PM (#16690903)
Not everyone cares about accessibility.

They did not care with Flash, neither they will care now.

Just wait until we get Flash like tooling for WebAssembly.

Re:V8 release v6.6 by lhorie on Tuesday March 27, 2018 @02:25PM (#16691347)
Flash had better accessibility support than WebGL does today. Google could even crawl Flash content to a certain extent.

Besides, I said _WebGL as an alternative to the DOM_. Of course a complex visualization that can't be properly described with text will not care about supporting jaws (even though it might have gotten some free accessibility out of the box with Flash). If you rely on the DOM like most people do, there's a huge chance that you care about your text being machine-readable. Accessibility is just one of the showstoppers for generalized WebGL adoption. SEO is another.

I think some people severely underestimate the barrier of entry that WebGL/wasm needs to overcome to displace Javascript/DOM as general purpose tools.

Re:V8 release v6.6 by abritinthebay on Tuesday March 27, 2018 @11:30AM (#16689447)
And it will be incredibly slow. The DOM is slow.

WebAssembly is not much faster than JS, harder to develop and debug, and requires even more extra tooling.

It’s a useful technology but it’s never going to be the primary choice for application development on the web - merely a tool in the toolbox.

Re:V8 release v6.6 by pjmlp on Tuesday March 27, 2018 @12:00PM (#16689759)
Yet Qt, .NET, Java, Go, C, C++ are all getting ready for the plugins renaissance.
Re:V8 release v6.6 by marktangotango on Tuesday March 27, 2018 @12:25PM (#16690049)
Can you clarify what exactly you’re referring to here?
Re:V8 release v6.6 by pjmlp on Tuesday March 27, 2018 @01:00PM (#16690476)
Basically targeting WebAssembly as if it was just yet another hardware architecture.

So expect the comeback of Flash, Silverlight, Applets, ActiveX, ....

What to do a Flash like game without anything related to JavaScript?

Pure C, C++, Rust with SDL, Unreal, Unity, ....

Miss Silverlight? Check Blazor with Ooui bindigs for Xamarin.Forms.

Go devs already have their design document for WebAssembly runtime ("WebAssembly architecture for Go").

Qt already has a prototype for WebAssembly, with improvements planned on 2018's roadmap.

And many other projects are ongoing.

The pandora box is open, the only back is if the browser vendors stop developing WebAssembly.