News for hackers. Stuff that matters.
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:27PM (#11262998)
Check how many pages of a random sampling will even work at all without running code on them. It's quite worrisome, and I think web assembly will accelerate rather than slow down that trend. 10 years ago you could download a page and it would most likely have the relevant content in the downloaded page, the exceptions were the idiots that would make a page that was a frame around some flash applet with the actual content.

Now the page is a blank template that will fill itself in using a bunch of under-water calls to the server. Those under-water calls are the result of running a bunch of code and that code will sooner or later end up being written in web assembly and will be mostly opaque.

It's just like those flash only pages of old.

Re:Brendan Eich: WebAssembly is a game-changer by rpedela on Thursday March 10, 2016 @05:31PM (#11263038)
Yeah? I don't see the problem. Why does it matter how a web page is constructed? If it is fast, secure, and does what the user needs, what is the problem?
Re:Brendan Eich: WebAssembly is a game-changer by wlesieutre on Thursday March 10, 2016 @05:37PM (#11263086)
Because people will take it and say "Hey, with WebAssembly I can rip out the entire DOM and roll my own layout and text rendering directly to a canvas like some sort of game engine! By avoiding standard webpage structures, we can make our ads harder to block!"

And really, who cares about copy/paste, accessibility, fair use, user stylesheets, or any of that, when you could trade it for more resilient advertising? Not publishers, that's for sure.

It's going to open the floodgates to a new generation of those crappy bundled-up Flash websites that gave you very limited ability to interact with their content.

There are of course better things to do with it, but from my limited understanding of WebAssembly this is my biggest prediction for what it'll get used for.

Re:Brendan Eich: WebAssembly is a game-changer by rubber_duck on Thursday March 10, 2016 @06:08PM (#11263262)
>Because people will take it and say "Hey, with WebAssembly I can rip out the entire DOM and roll my own layout and text rendering directly to a canvas like some sort of game engine! By avoiding standard webpage structures, we can make our ads harder to block!"

You say that as if it was a bad thing. There is two kind of content (relevant to this diacussion at least) that get served trough the web - documents/media and apps. DOM/HTML is ok for the former it's a horrible hack in the latter and most of your objections to custom gui also apply to DOM gui frameworks + they are dog slow and annoying to use. There is room in the middle (webapps) but there is definately a class of apps out there that just don't fit in to the DOM/HTML and get zero benefits from it outside of delivery which is why they get done that way.

Re:Brendan Eich: WebAssembly is a game-changer by m_fayer on Thursday March 10, 2016 @06:15PM (#11263300)
We should not judge the potential of a technology only by the worst-case scenario for which it may be used.

If a promising technology has a high likelihood for serious abuse but also a highly desirable upside, instead of tossing the baby with the bathwater, we should preempt the abuse through culture, policy, and possibly engineering.

Re:Brendan Eich: WebAssembly is a game-changer by wlesieutre on Thursday March 10, 2016 @06:38PM (#11263454)
Oh definitely. People did some great stuff with Flash, and I'm excited to see what people come up with using WebAssembly. I'd just temper our excitement because it's going to make some things better and it's going to make other things shitty.

Somebody's going to write a DOM-replacement page layout and rendering system, other people are going to adopt it, and we'll have to go through another whole phase of

"Guys, we made this shim layer that will make your website compatible with screenreaders and HTML5 semantic tags again!"

"I dunno, that sounds like work. And people could copy/paste from our articles? I'll pass."

<5 years later>

"The new version of PageRenderingFramework natively supports screen readers. Can we maybe make your content accessible to non-visual browsers now?"

"Yeah, I guess. We'll install it next time we rebuild our website."

On the plus side, I think most websites have outgrown the autoplaying music, so maybe we'll skip that part in this cycle.

Re:Brendan Eich: WebAssembly is a game-changer by m_fayer on Friday March 11, 2016 @06:05AM (#11265894)
The more things change the more they stay the same, I agree.
Re:Brendan Eich: WebAssembly is a game-changer by pdkl95 on Thursday March 10, 2016 @06:34PM (#11263433)
> We should not judge the potential of a technology only by the worst-case scenario for which it may be used.

That's exactly how we need to judge any important technology. This is a basic part of making things that "fail safely".

Re:Brendan Eich: WebAssembly is a game-changer by eggy on Friday March 11, 2016 @12:41AM (#11264850)
The word 'only' means not to exclusively judge it in that manner; it does not exclude risk analysis and mitigation. By your statement's logic, banish or redesign the kitchen knife, and put the genie back in the bottle, since it is a technology that can be used in very bad ways in a 'worst-case scenario', and it is hard to make it 'fail safely'.
Re:Brendan Eich: WebAssembly is a game-changer by wilg on Thursday March 10, 2016 @05:45PM (#11263134)
Couldn't you do that with JavaScript anyway?
Re:Brendan Eich: WebAssembly is a game-changer by drdaeman on Thursday March 10, 2016 @08:15PM (#11263956)
Sure, it's just optimizing some bottlenecks at this point. WebAssembly is just what JavaScript was evolving/heading to - I think it was a clear that it'd end up somewhere there for almost a decade.
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:34PM (#11263067)
It matters because (1) not everybody can see that web page, (2) the ability to inspect the pages is what caused the knowledge about how the web was made to spread and (3) it is a step backwards in terms of being an 'open' vehicle. That it's fast, secure and does what the user needs is not being disputed.
Re:Brendan Eich: WebAssembly is a game-changer by metaphorm on Thursday March 10, 2016 @05:55PM (#11263178)
I think you're possibly underestimating the cost and difficulty of developing apps using low level code (or whatever web assembly is, lower level than html+css anyway).

its technically difficult enough that I think its main use case will be for somewhat large and well funded companies that have the budget and expertise to deliver a fairly complex client side app that has behavior and design that is not easily done in existing web technologies.

for example, all the stuff that people attempt to do now on HTML canvases seems like a likely candidate to be replaced by web assembly apps. this could lead to an era of high performance streaming apps with pretty impressive graphics capabilities. basically just a huge upgrade to emscripten, right?

I'm just not seeing this as being a real threat/competitor with traditional document based content on the web. I don't think that's going anywhere and I don't think web assembly interferes with that on any significant level.

Re:Brendan Eich: WebAssembly is a game-changer by icebraining on Friday March 11, 2016 @02:52AM (#11265295)
It might get distributed to the browser as low-level code, but it won't be for the developers - they'll just use compilers and toolkits. In fact, I'd bet an integrated tool for compiling the codebase of an Android app to WebAssembly won't take long to appear. It'll only be technically difficult in the first couple of years, if that.
Re:Brendan Eich: WebAssembly is a game-changer by zeveb on Thursday March 10, 2016 @06:26PM (#11263382)
> Why does it matter how a web page is constructed? If it is fast, secure, and does what the user needs, what is the problem?

Because by definition if it is constructed with JavaScript it is neither fast nor secure.

Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @01:10AM (#11264939)
Because it often doesn't do what a user needs. Try using a screen reader on a lot of "modern" websites some time. There are specifications to make this easy, but people ignore them because accessibility is "too expensive".
Re:Brendan Eich: WebAssembly is a game-changer by rpedela on Friday March 11, 2016 @11:14AM (#11267435)
That has much more to do with the software developers themselves than the underlying technology. I don't buy the accessibility argument at all. WebAssembly and accessibility are not mutually exclusive.