News for hackers. Stuff that matters.
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:16PM (#11262916)
Personally, I think this is terrible (and it really is a game-changer, only not the kind that I'd be happy about). The further we get away from the web as a content delivery vehicle and more and more a delivery for executables that only run as long as you are on a page the more we will lose those things that made the web absolutely unique. For once the content was the important part, the reader was in control, for once universal accessibility was on the horizon and the peer-to-peer nature of the internet had half a chance of making the web a permanent read/write medium.

It looks very much as if we're going to lose all of that to vertical data silos that will ship you half-an-app that you can't use without the associated service. We'll never really know what we lost.

It's sad that we don't seem to be able to have the one without losing the other, theoretically it should be possible to do that but for some reason the trend is definitely in the direction of a permanent eradication of the 'simple' web where pages rather than programs were the norm.

Feel free to call me a digital Luddite, I just don't think this is what we had in mind when we heralded the birth of the www.

Re:Brendan Eich: WebAssembly is a game-changer by supernintendo on Thursday March 10, 2016 @06:17PM (#11263315)
I hate to break it to you, but we're already there. People have been using the web to deliver desktop-like applications for the past decade. Over that period of time, the number of people connected to the Internet has more than doubled [1] and will continue to increase. Whether or not an application is delivered through a browser or natively is inconsequential to most of these users. If we look at the list of the most popular websites [2] we see mostly content-delivery platforms (Google, Bing, Wikipedia etc.) with some popular web apps which resemble desktop software in complexity (Facebook, YouTube, Windows Live etc.)

So we have two paths forward. One, we could try to influence the habits of billions of Internet users who use desktop-like web applications in an attempt to restore the document-based nature of the web; or two, we could provide an alternative to the artifice of modern JavaScript development which allows for better applications to be written and distributed to users that use and rely on them. The latter initiative is the more realistic and productive one, in my opinion.

WebAssembly will not lead to the end-of-times of the Internet as a content delivery vehicle. It is a net positive for the parts of the web that do not fulfill that purpose. If you're worried about the free and open web as a publishing platform, look more to governments and corporations around the world that collude to limit our freedom of expression (Facebook, we're all looking at you [3]).

[1] http://www.internetlivestats.com/internet-users/

[2] https://en.wikipedia.org/wiki/List_of_most_popular_websites

[3] http://www.theatlantic.com/technology/archive/2016/02/facebo...

Re:Brendan Eich: WebAssembly is a game-changer by wwweston on Thursday March 10, 2016 @08:26PM (#11264006)
> Whether or not an application is delivered through a browser or natively is inconsequential to most of these users.

This is probably the most true statement in your entire comment.

Running with the assumption that of course we should ignore the users who aren't "most" users (not a safe one).... I'd go farther, though. Whether or not these users are getting access to the utility they're looking for through:

(1) a web page with some layer of interactivity on top of more-or-less legible document semantics or

(2) whether they get it through a giant-blob-of-code SPA

is also irrelevant, right? Except to some minority of power users who can actually get more utility when someone uses a more basic semantic-document resource-oriented approach.

So it isn't the users who are driving the "let's use the web as a VM for desktop apps!" trend. It's the developers. And it isn't the billions of Internet users whose habits would need to change.

I'd guess the most ready response to this would be something like "How would you have the current Facebook/YouTube/WebMail Experience without this Desktop-Experience-Focus?" But as far as I can tell, the essentially utility involved here -- and to a large extent, the best things about the experience -- haven't really changed since a FB page was actually a legible document (a milestone we left down the road a looooong time ago).

The document-centered approach does have its limits. There are some applications it will not support. First-person shooters.... sure, deploy a black-box binary to a runtime.

Facebook, YouTube, and web mail are not really in that category at this point, and developer choices are the primary thing driving the march away from documents here.

Re:Brendan Eich: WebAssembly is a game-changer by SiVal on Thursday March 10, 2016 @11:27PM (#11264646)
So it isn't the users who are driving the "let's use the web as a VM for desktop apps!" trend. It's the developers.

Really? I was in a public middle school this afternoon that, just a few years ago, was having to buy expensive computers and licenses for MS-Word. Only a few could be bought, and each was its own little separately licensed, separately maintained world that easily became unusable. If a server had problems, your work required access to a specific machine. Access required lots of waiting.

And now? Chromebooks for a tenth the price (don't have to support full, expensive Widows/OSX), which they bought in order to "use the Web as a VM for desktop apps" (the horror!) such as Google's free equivalents of Word, Excel, and PowerPoint. Now everyone gets access, and they can even continue working on their own documents after school from the public library, a home tablet, or any number of other options made possible by the Web (and ever-improving hardware options).

And do you imagine that our science teacher and her students are more interested in A) "pages" about physics with "more-or-less legible document semantics", or B) live physics simulations to experiment with on their Chromebooks and phones? Are uncaring developers the only ones driving these poor users to the latter?

The problem with this "apps are oppression, simple docs for the masses!" meme is that the narrative excludes a vast number of those "underserved" who want good apps more than simple docs and need the Web-as-VM to finally make it possible.

Re:Brendan Eich: WebAssembly is a game-changer by blub on Friday March 11, 2016 @11:53AM (#11267726)
What a wonderful story. Do those children know that everything they do on their Chromebooks is tracked and analysed by Google? Probably not, and they don't even know what tracking is or why it's bad.

They've been sold the idea that web apps and the cloud are beautiful and "free".

Re:Brendan Eich: WebAssembly is a game-changer by BraveNewCurency on Friday March 11, 2016 @07:04PM (#11270518)
Same thing happens if they use Windows (esp Win 10). Did you know that when you search Google or Yahoo (using IE), your query is sent to Microsoft and stored?

http://www.youtube.com/watch?v=iGze_gjJTos&t=9m50s

Re:Brendan Eich: WebAssembly is a game-changer by SixSigma on Friday March 11, 2016 @01:05AM (#11264924)
> was having to buy expensive computers and licenses for MS-Word

how did the developers force that one upon you ?

Re:Brendan Eich: WebAssembly is a game-changer by ptaipale on Friday March 11, 2016 @01:50AM (#11265075)
The developers (and commercial environment) hadn't come up with anything better yet, so the local OS with local MS Word application was the best choice.

Now things are different.

Re:Brendan Eich: WebAssembly is a game-changer by wwweston on Friday March 11, 2016 @03:22AM (#11265405)
> The problem with this "apps are oppression, simple docs for the masses!"

I kindof knew someone was going to confuse my argument and think I was arguing against web applications. Or against the browser as a platform.

It's a sign of how deep a certain kind of thinking goes in the industry. If we're talking orienting around semantic documents and resources.... we can't be talking about real applications! There's just no way to create interactive applications around those!

(And conversely, unless we're talking about application frameworks, lots of code --preferably not written in JavaScript, of course, which everyone knows isn't a serious language compared to Python -- unless we're working with GUI toolkit metaphors, unless the finished product simply isn't meant to ever be read by a human, we can't be talking about an actual application, right?)

> And do you imagine that our science teacher and her students are more interested in A) "pages" about physics with "more-or-less legible document semantics", or B) live physics simulations to experiment with on their Chromebooks and phones? Are uncaring developers the only ones driving these poor users to the latter?

Like the astute reader would note I said in my earlier post, some applications really don't fit inside a document/resource-oriented paradigm. Some simulations for sure, including first-person shooters and other games.

Other simulations, of course, fit rather nicely as a document with a layer of interactivity, and in that case, yes, the problem would indeed be uncaring developers. Perhaps particularly those who think interactive and semantic are exclusive.

Re:Brendan Eich: WebAssembly is a game-changer by hackuser on Thursday March 10, 2016 @08:33PM (#11264045)
It's only a small minority of users who are affected, but historically how much innovation happened due to the web's openness and that small minority's tinkering.
Re:Brendan Eich: WebAssembly is a game-changer by stray on Friday March 11, 2016 @08:07AM (#11266359)
Webassembly will likely open even more doors because it'll free us from the shackles of the web's document publishing origin.

And I for one, can't wait to piss on Javascript's grave.

Re:Brendan Eich: WebAssembly is a game-changer by koder2016 on Friday March 11, 2016 @11:33AM (#11267579)
Bill Gates' quote fits perfectly: "Develop for it? I’ll piss on it."

http://www.quoteswise.com/bill-gates-quotes-5.html

Re:Brendan Eich: WebAssembly is a game-changer by pjmlp on Friday March 11, 2016 @01:43AM (#11265049)
The majority of web "innovation" already existed at Xerox PARC hypermedia applications.

The web is just a worse experience of what Xerox already had.

Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Friday March 11, 2016 @04:39AM (#11265640)
It may be worse, but it's a lot more democratic. Now we are moving away from that two way street into something much more monopolistic.
Re:Brendan Eich: WebAssembly is a game-changer by koder2016 on Friday March 11, 2016 @11:35AM (#11267595)
Democracy for content, tyranny for developers (one legacy language or transpilation).
Re:Brendan Eich: WebAssembly is a game-changer by teej on Thursday March 10, 2016 @06:43PM (#11263485)
We have been doing this for -decades- with Shockwave, Java applets, and Active X controls.
Re:Brendan Eich: WebAssembly is a game-changer by CaptSpify on Thursday March 10, 2016 @07:29PM (#11263701)
But they always end up abused. Everyone hates all of those, and that's good, because it causes people to steer away from them. Instead of throwing our hands up, and giving up, we should continue to try to keep those out.
Re:Brendan Eich: WebAssembly is a game-changer by Animats on Thursday March 10, 2016 @07:41PM (#11263774)
How long before the first WebAssembly exploit?

(And what advantage does WebAssembly have over Java applets? We've been down this road.)

Re:Brendan Eich: WebAssembly is a game-changer by icedchai on Thursday March 10, 2016 @07:56PM (#11263849)
The advantage? Instead of having access to a large, stable ecosystem with 20+ years of engineering behind it (Java/JVM), you'll get to use fun, new half-baked tools that barely work to build your webassembly apps.

In another 20 years time, we might be at the level of productivity we had 20 years ago with VisualBasic.

Re:Brendan Eich: WebAssembly is a game-changer by jjm on Thursday March 10, 2016 @10:15PM (#11264431)
You really think closed source Oracle is going to make applets better? People don't like applets cause the experience sucks, the tooling generally lacks, and the libraries are old.

You say that webdev is Applet 2.0? ok sure, at least it's open and moving instead of EOL'd [1] and the experience is better else wouldn't we all still be using Applets...

[1] http://www.v3.co.uk/v3-uk/news/2443810/oracle-signals-the-en...

Re:Brendan Eich: WebAssembly is a game-changer by pjmlp on Friday March 11, 2016 @01:55AM (#11265089)
No it is Applet 5.0.

Applet 2.0 was Flash, followed by Applet 3.0 aka Silverlight, followed by Applet 4.0 aka ecmspriten/asm.js.

Re:Brendan Eich: WebAssembly is a game-changer by icedchai on Thursday March 10, 2016 @11:18PM (#11264617)
Oracle isn't. Sun dropped the ball.

My point is we could've embedded JVM in the browser "correctly" instead of reinventing the wheel with another byte code format.

Re:Brendan Eich: WebAssembly is a game-changer by CyberDildonics on Friday March 11, 2016 @12:05AM (#11264757)
webasm is not a bytecode format
Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @12:41AM (#11264851)
Yes, it's an IR. It still has all of the issues a bytecode format has, and none of the size advantages.
Re:Brendan Eich: WebAssembly is a game-changer by thesz on Friday March 11, 2016 @11:39AM (#11267636)
Cannot find PDF for Slim Binaries paper by Franz, so I cite it from memory.

They used syntax trees of program as a distribution format, compressed these trees with LZW variant and executed using simple JIT compiler (basically, tree automata over program trees). The size of Slim Binaries was smaller than JAR files for comparable Java programs. I don't remember exact percentage reduction, it was about 20-40, I believe.

Re:Brendan Eich: WebAssembly is a game-changer by CyberDildonics on Friday March 11, 2016 @10:27PM (#11271253)
It is a binary AST and is explicitly made to be both compact and fast to parse.

Not all intermediate representations are bytecode.

Re:Brendan Eich: WebAssembly is a game-changer by renlo on Friday March 11, 2016 @05:09AM (#11265722)
Do you have a source that Webasm's IR won't be as compact as Java bytecode?
Re:Brendan Eich: WebAssembly is a game-changer by mbebenita on Thursday March 10, 2016 @09:15PM (#11264212)
The toolchain is C/C++/LLVM, which is pretty well baked.
Re:Brendan Eich: WebAssembly is a game-changer by drdaeman on Thursday March 10, 2016 @09:24PM (#11264233)
The toolchain, yes. I'm not sure about the libraries - especially the ones that provide the glue to the JS world (or DOM, directly). I heard there is something, say, SDL support for asm.js or emscripten, but I don't think there's a large and stable ecosystem. More like "some stuff patched to some extent".

Oh, and I think in webdev, there is a lot of... err... modern creative and innovative guys and gals out there who are always happy to rewrite the world again, because the last week's tech isn't cool anymore.

Re:Brendan Eich: WebAssembly is a game-changer by sangnoir on Friday March 11, 2016 @05:55AM (#11265858)
> I'm not sure about the libraries - especially the ones that provide the glue to the JS world (or DOM, directly)

Has the Java world come up with anything better than Swing or SWT? Because those are the libraries that are in the "stable ecosystem with 20+ years of engineering behind it", and they are terrible. Give me the 'innovative' webdev guys and gals any day.

Re:Brendan Eich: WebAssembly is a game-changer by Crespyl on Friday March 11, 2016 @10:49AM (#11267262)
We do actually have JavaFX now, which has some has some weird historical baggage from back when it was supposed to be its own platform, but is actually pretty nice to work with from a UI standpoint.

It has a XML/CSS based way to describe the UI/layout and then lets you link that to your code with annotations. It's not perfect, but it's a lot more pleasant to work with than the likes of SWT.

Re:Brendan Eich: WebAssembly is a game-changer by OpenDrapery on Friday March 11, 2016 @09:25AM (#11266759)
"Oh, and I think in webdev, there is a lot of... err... modern creative and innovative guys and gals out there who are always happy to rewrite the world again, because the last week's tech isn't cool anymore."

well said

Re:Brendan Eich: WebAssembly is a game-changer by oblio on Thursday March 10, 2016 @07:58PM (#11263865)
The advantage is that in time people agree about web standards.

Good luck getting Visual Basic adopted as an standard ;)

Re:Brendan Eich: WebAssembly is a game-changer by trentmb on Thursday March 10, 2016 @09:37PM (#11264276)
We've gotten worse.
Re:Brendan Eich: WebAssembly is a game-changer by im3w1l on Friday March 11, 2016 @01:32AM (#11264999)
Fun fact: Netscape promised to include vbscript in Navigator but it never happened.
Re:Brendan Eich: WebAssembly is a game-changer by pjmlp on Friday March 11, 2016 @01:52AM (#11265081)
Worse than that, in 2016 it still hasn't matched what VB and Delphi were capable of in the 90's.

I am really happy that our current customer projects that I am involved with, are all native mobile and desktop applications.

Re:Brendan Eich: WebAssembly is a game-changer by iheartmemcache on Friday March 11, 2016 @05:30PM (#11270016)
It's amazing, really. A few years ago I was brought in to feature-enhance (80%) / bug-fix (20%) some mil-spec hardware that interfaced with some custom Delphi front-end which was acting as a controller. I was amazed at the functionality:LOC ratio along with the correctness[0] with purely pre&post Asserts[1]. The hotel industry still largely runs on one popular Delphi app that's still chugging away. Other than MS Lightswitch which is dead[2], nothing even came close re: great RAD.

(Hey, MS employees reading this - now VS Community is free-for-commercial-use, if you want to capture the 5<=revenue<=50 MM market, replicate the Delphi + VCL ecosystem for RAD apps with Azure as the backing technology. Lightswitch already let me target WPF and HTML5, with Xamarin you now have native mobile. You pushed for an "integrated" desktop + surface/tablet + cell-phone a few years too early, but Xamarin as the presentation layer and Azure as your data-store and you've got the feature set that most businesses need. You'd put me out of business, but absolutely take over that mid-market share.)

[0] Pedants, I'm one of you. No Coq was not used in this project ;) [1] http://blog.matthewskelton.net/2012/01/29/assert-based-error... Similar to this [2] http://janvanderhaegen.com/2015/01/14/its-2015-and-lightswit...

Re:Brendan Eich: WebAssembly is a game-changer by tarsinge on Friday March 11, 2016 @04:05AM (#11265542)
Never used Delphi but after reading about it I would love an equivalent for web dev. I wrote small abstractions over Rails and or React but it's still too low level for my work.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @08:02PM (#11263887)
Imagine you can run (efficiently) Eclipse or Lucene in any browser.

Someone try to do that with WebKit:

http://trevorlinton.github.io/

Re:Brendan Eich: WebAssembly is a game-changer by jestar_jokin on Thursday March 10, 2016 @09:55PM (#11264351)
Eclipse (Che) is already coming to the browser!

https://eclipse.org/che/

Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @12:45AM (#11264862)
Eww. One of the most beautiful parts of eclipse is the extensive level of plugins. A browser-based IDE means more painful maintenance, more painful extensibility, and a generally worse user experience. How am I going to tie into native binaries for C/C++ compilation like I can do with eclipse as is? Or the many plugins that give static checking, etc? A web-based IDE is a step backwards.
Re:Brendan Eich: WebAssembly is a game-changer by jm547ster on Friday March 11, 2016 @12:42AM (#11264855)
Joke?
Re:Brendan Eich: WebAssembly is a game-changer by ssalazar on Thursday March 10, 2016 @09:33PM (#11264262)
> (And what advantage does WebAssembly have over Java applets? We've been down this road.)

The same advantage as Javascript, I'd assume: easy access to the DOM and the concomitant natural integration into a webpage. Java applets were like a portal into a weird world that started with a security warning and all of the widgets looked wrong.

Re:Brendan Eich: WebAssembly is a game-changer by akst on Thursday March 10, 2016 @08:19PM (#11263977)
Well unlike third party plugins (such as java, flash, ect) wasm will be executed by the browser (like JS) and likely won't have the same privileges that java/flash have while running.
Re:Brendan Eich: WebAssembly is a game-changer by colordrops on Thursday March 10, 2016 @09:12PM (#11264198)
Why would WebAssembly be any more prone to exploits than JavaScript?
Re:Brendan Eich: WebAssembly is a game-changer by Animats on Thursday March 10, 2016 @09:42PM (#11264293)
Because there will probably be bugs that make it possible to break out of the sandbox and run arbitrary code on the target machine. Just like Java applets.
Re:Brendan Eich: WebAssembly is a game-changer by kibwen on Friday March 11, 2016 @01:33AM (#11265007)
There's no reason to suspect that browser implementors would sandbox wasm any less strictly than JS. Heck, there's no reason to suspect that they wouldn't just re-use the existing JS sandbox.
Re:Brendan Eich: WebAssembly is a game-changer by BrendanEich on Friday March 11, 2016 @02:27AM (#11265202)
Thanks, kibwen. I'll make a stronger statement. By definition, wasm and JS are two syntaxes (initially co-expressive, wasm and asm.js) for one VM.

Do people actually read docs any longer? https://github.com/WebAssembly/ has some, my blog covered the 1VM requirement. There won't be a new "sandbox". JS and wasm interoperate over shared objects.

Re:Brendan Eich: WebAssembly is a game-changer by girvo on Friday March 11, 2016 @12:55PM (#11268241)
> Do people actually read docs any longer

No, not really. People read headlines and make pithy middlebrow comments. Though I also don't think that's a new phenomenon...

Re:Brendan Eich: WebAssembly is a game-changer by _alexander_ on Saturday March 12, 2016 @08:57AM (#11272869)
> Do people actually read docs any longer? No. People only read headlines that WebAssembly is replacement for JS ;)
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @07:57PM (#11263854)
> How long before the first WebAssembly exploit?

It will happen...

> And what advantage does WebAssembly have over Java applets ?

Microsoft supports asm.js.

Re:Brendan Eich: WebAssembly is a game-changer by stray on Friday March 11, 2016 @08:09AM (#11266368)
What advantage does WebAssembly have over Java applets?

Not java.

Re:Brendan Eich: WebAssembly is a game-changer by bobajeff on Thursday March 10, 2016 @07:37PM (#11263743)
The main thing I didn't like about those was that they were proprietary single vendor blobs that stagnated and ran poorly.
Re:Brendan Eich: WebAssembly is a game-changer by drdaeman on Thursday March 10, 2016 @08:01PM (#11263882)
Well, it's no different. Say, ActiveX were just x86 binary blobs. Java applets were JVM binary blobs. (Flash applets were somewhat worser kind of binary blobs with proprietary and undocumented bytecode.) WebAssembly is... again, binary blobs.
Re:Brendan Eich: WebAssembly is a game-changer by bobajeff on Thursday March 10, 2016 @08:42PM (#11264092)
The runtime (which I was taking about) isn't a blob.

Plus minified and obsfucated JavaScript is already quite common. See closure and asm.js.

Re:Brendan Eich: WebAssembly is a game-changer by drdaeman on Thursday March 10, 2016 @09:12PM (#11264204)
Well, my point is OpenJDK/IcedTea-Web isn't a blob either, but it doesn't make Java applets any better. Neither is Wine (which can host ActiveX controls), but I'm not going to try it at home.

And I agree that modern minified, packed and obfuscated JavaScript is also more like a binary blob than source code. WebAssembly is just a logical conclusion of this.

Re:Brendan Eich: WebAssembly is a game-changer by CaptSpify on Thursday March 10, 2016 @07:57PM (#11263863)
I guess I fail to see how the end result of this will end up any different
Re:Brendan Eich: WebAssembly is a game-changer by bobajeff on Thursday March 10, 2016 @08:58PM (#11264147)
Considering WebAssembly is a feature that going to be standardised and supported in all JavaScript engines while those other things were either proprietary runtimes or browser specific API's I'd say you have no reason to think this will end up like them.
Re:Brendan Eich: WebAssembly is a game-changer by CaptSpify on Friday March 11, 2016 @10:09AM (#11267000)
so, IMO, I don't think any of them failed because they were > standardised and supported in all JavaScript engines while those other things were either proprietary runtimes or browser specific API's

I think they failed because they were closed off, and nobody could read the shitty code, so people wrote shitty code. If we have things open, it gives people an incentive to make it look/work nice. Sure, not everyone will, but it makes it easier to shame those that dont.

Re:Brendan Eich: WebAssembly is a game-changer by bobajeff on Friday March 11, 2016 @10:47AM (#11267246)
You can't read the code of most C++ programs yet if operating systems dropped support for C++ there would be a reckoning.
Re:Brendan Eich: WebAssembly is a game-changer by rtpg on Friday March 11, 2016 @02:48AM (#11265280)
Do people outside of "The Web is for documents only!" camp really hate Flash? I've had many good web experiences thanks to Flash (granted, mostly movies and games, but still...)

People on HN seem to discount how absolutely amazing it is to have a VM that can almost seamlessly connect to a network and pull down awesome programs!

Re:Brendan Eich: WebAssembly is a game-changer by dietrichepp on Friday March 11, 2016 @03:04AM (#11265342)
I'm a big fan of Web Assembly but I've hated Flash for a long time. Flash apps tended to peg the CPU and shorten battery life on my laptop, even though most were inconsequential to the web pages that used them (ads). Constant security holes left me paranoid. Crashes left me frustrated. I can't count how many times that Flash crashed on me. The UI of most Flash apps left many things to be desired. From a technical perspective, it was also a deeply flawed design with a mediocre implementation from one vendor. Most video sites which use Flash seem to be far inferior to their HTML+JavaScript counterparts, only the biggest sites ever had decent flash players (Vimeo, YouTube), and I've noticed that some Flash video players can't really handle full screen video with the performance that they should. Ugh. I was glad so many years ago when Flash stopped being bundled with the OS, so I didn't need to take any extra steps to avoid it.
Re:Brendan Eich: WebAssembly is a game-changer by stray on Friday March 11, 2016 @08:22AM (#11266412)
Flash is great -- I love being forced to update flash every 20 minutes.
Re:Brendan Eich: WebAssembly is a game-changer by CaptSpify on Friday March 11, 2016 @10:11AM (#11267017)
Flash does provide a lot of nice/cool things. The problem is it was abused because it was "cool". If we could get people to use it only when necessary, then I probably would have been OK with it. Too many people end up using this in inappropriate places.
Re:Brendan Eich: WebAssembly is a game-changer by reitanqild on Friday March 11, 2016 @05:28AM (#11265771)
I find myself kind of pragmatic but I hated Flash because once it was available people used it for everything, even stuff that never needed it in the first place.
Re:Brendan Eich: WebAssembly is a game-changer by lmm on Friday March 11, 2016 @05:25AM (#11265759)
No, we hated them because their performance and UX was bad. Running programs off the Internet, safely, has long been the goal.
Re:Brendan Eich: WebAssembly is a game-changer by CaptSpify on Friday March 11, 2016 @10:41AM (#11267208)
I guess I fail to see how this will be any safer?
Re:Brendan Eich: WebAssembly is a game-changer by niutech on Tuesday March 15, 2016 @03:41AM (#11288084)
But this time we do it fully open source, working everywhere unlike ActiveX, and much faster than Java applets.
Re:Brendan Eich: WebAssembly is a game-changer by tkinom on Thursday March 10, 2016 @07:37PM (#11263744)
I wonder if we will see ios/android apk app running in browser soon.

We already got DOS, Linux kernel, Window 95 running in the browser as very cool demo projects.

Maybe Angry bird Apk running unmodified inside browser at close to device speed would be next?

Re:Brendan Eich: WebAssembly is a game-changer by drdaeman on Thursday March 10, 2016 @08:05PM (#11263906)
They (APKs) already do in Chrome.

Except for, security constraints, currently require that APKs are packaged as Chrome extensions, and can't be served from web directly.

Re:Brendan Eich: WebAssembly is a game-changer by yarou on Thursday March 10, 2016 @10:08PM (#11264410)
You can already do this with App Runtime for Chrome.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @08:05PM (#11263911)
> I wonder if we will see ios/android apk app running in browser soon.

or apt-get, yum or pacman...

Re:Brendan Eich: WebAssembly is a game-changer by pcwalton on Thursday March 10, 2016 @06:21PM (#11263342)
Eh, I think things were a lot worse during the heyday of Flash and Java applets. Sites have been delivering this kind of content since WebRunner in 1997. At least now we have an open, vendor-neutral, consensus-based standards process and a commitment to multiple major open source implementations, which is something we never had with Java or, worse, Flash.
Re:Brendan Eich: WebAssembly is a game-changer by Silhouette on Thursday March 10, 2016 @07:03PM (#11263579)
I think you and I must be looking at different 2016 Webs. In the one I see, content is increasingly locked up in closed, proprietary and/or centralised systems. In the one I see, standards don't matter much any more because there are no usefully stable browsers anyway. In the one I see, one browser is rapidly becoming so dominant that the existence of several others that were formerly influential and competitive is all but irrelevant for many web development projects, just as happened in the days of the IE vs. Netscape browser wars.

We all know how this story ended last time. And yet, here we are watching it all over again and most of us are powerless to do much about it. For all the superficial openness of the modern Web, the reality is that it is now utterly controlled by a small group of browser developers, a small group of centralised content hosts, and a small group of curators, several of which overlap with each other but almost none of which have goals that necessarily align with those of either the average web surfer or the average small content producer.

Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @07:17PM (#11263648)
> ... it is now utterly controlled by a small group of browser developers ...

If the group is small, it's mainly because the job is very difficult. All browsers are a big mess and it takes time to be productive.

The idea of asm.js is one of Alon Zakai. He explains on his blog all the experiments he made before concluding with that.

A quote from the oldest post I know about emscripten:

"I want the speed of native code on the web - because I want to run things like game engines there - but I don't want Java, or NaCl, or some plugin. I want to use standard, platform-agnostic web technologies."

http://mozakai.blogspot.fr/2010/07/experiments-with-static-j...

Re:Brendan Eich: WebAssembly is a game-changer by bobajeff on Thursday March 10, 2016 @07:51PM (#11263828)
Yes there are few full implementations of the Web. I hope eventually a more modular layout engine comes into being that allows for others to create their own implementations of things without having to wrestle with a large codebase.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @08:15PM (#11263959)
> I hope eventually a more modular layout engine comes into being that allows for others to create their own implementations of things without having to wrestle with a large codebase.

Maybe Servo?

The more comprehensible browser codebase I know is Dillo.

http://www.dillo.org/dw/html/annotated.html

http://www.dillo.org/

Re:Brendan Eich: WebAssembly is a game-changer by nickpsecurity on Friday March 11, 2016 @01:04AM (#11264920)
I used to recommend HTML3.2 and sandboxed/MAC'd Dillo for a safe, formatted documents to people who insisted on web browsers being the medium. Worked out fine w/ much less risk. I was grasping at straws when a Chromium member asked me how I'd secure that code with minimal work and no rewrites. How would I even understand it all was my first thought.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Friday March 11, 2016 @12:06PM (#11267821)
I've seen Dillo freezed few times on big pages but it's a great project.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @06:32PM (#11263420)
> ... which is something we never had with Java or, worse, Flash.

I liked a lot Java Applets. It was fantastic to be able to draw pixels or use a toolkit in a web browser at that time.

I gave up Java near after the dispute between Sun and Microsoft about J++. Java was far less interesting for me without that feature.

Re:Brendan Eich: WebAssembly is a game-changer by lmm on Friday March 11, 2016 @05:28AM (#11265774)
I had a thought a couple of days ago: what if Mozilla (or anyone) made a web-native runtime for Java applets to replace the plugin, in the same way that Mozilla made a web-native PDF renderer to replace that plugin? That would give us the good of Java applets - a well-specified, mature, backward-compatible bytecode with a built-in security model - without the bad of performance, poor UX, and your programs being trapped in a rectangle that the browser knew nothing about.
Re:Brendan Eich: WebAssembly is a game-changer by pcwalton on Saturday March 12, 2016 @02:59PM (#11274256)
js2me: https://github.com/szatkus/js2me

It didn't get much traction because nobody really wants to program in Java on the client if there are alternatives.

Re:Brendan Eich: WebAssembly is a game-changer by lmm on Sunday March 13, 2016 @12:43PM (#11278280)
Java ME is not Java. Compatibility with existing applets would require implementing more.

Java is not the best (though it's better than JavaScript, and android contradicts your claim), but JVM bytecode as a target is great.

Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @07:36AM (#11266217)
As a counterexample, I will bring up Flash. The file format's open, and the scripting language is...ECMAscript. So an open vendor neutral consensus based standards process doesn't mean that the implementations themselves are going to be any good.
Re:Brendan Eich: WebAssembly is a game-changer by comex on Friday March 11, 2016 @07:13PM (#11270558)
The file format became partially open in 2008... long after Flash Player became ubiquitous, long after the format was developed and stabilized, without a standards process (excluding ECMAScript), and without any serious attempts to write competing players (after all, Flash was already on the way out by then, plus it would have been harder to take on Flash Player's monopoly of... Flash players, than IE in its heyday).

WebAssembly will have several actual competing implementations, not to mention that it's a drastically smaller addition to the existing Web platform.

Re:Brendan Eich: WebAssembly is a game-changer by s3th on Thursday March 10, 2016 @05:28PM (#11263006)
The web is an amazing content delivery vehicle, I totally agree! There's a whole class of content I want to be able to just `wget` and be done with it.

The goal of WebAssembly is to open up the reach and easy user experience of the web browser to new types of applications that just aren't possible to build efficiently with current tech.

We're also making sure that wasm is a first-class citizen of the open web: see, for example, our thoughts around ES6 module interop, GC + DOM integration, and view-source to see the textual encoding of wasm [0][1].

[0]: https://github.com/WebAssembly/design/blob/master/Web.md

[1]: https://github.com/WebAssembly/design/blob/master/TextFormat...

(Disclaimer: I work on V8.)

Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @01:01AM (#11264909)
Yes, seeing a text format, much like has been possible, and to the same effect, of a disassembly view of bytecode. Hell, the plaintext s-expression format is IMO /less/ readable than most assembly formats. Regarding DOM integration, wouldn't that have been possible with other formats by giving plugins access to the DOM?

I'd much rather see that time on current tech spent on harnessing the tools we have right now better, rather than new pie-in-the-sky tools that bring a host of disadvantages, such as being yet another jit language which resembles a processor from twenty years ago. With an MVP that doesn't include multiprocessing, doesn't include SIMD, etc, I fail to see how this is really better than the status quo.

Re:Brendan Eich: WebAssembly is a game-changer by stray on Friday March 11, 2016 @08:26AM (#11266433)
I'm baffled that anyone would find the s-expression format challenging.
Re:Brendan Eich: WebAssembly is a game-changer by Sir_Cmpwn on Thursday March 10, 2016 @06:42PM (#11263475)
I agree. I'm really running dry on respect for Brendan Eich. None of the moves he's making are for the benefit of user privacy - look at Brave, his new browser project. It replaces ads on the web with his own ads, tracks you, and puts money in his pocket instead of the publisher's pockets. I'm struggling to remember why he was respectable in the first place - for making JavaScript, an awful programming language we've spent 20 years trying to fix? I don't think that his word on these issues is worth anything any longer.
Re:Brendan Eich: WebAssembly is a game-changer by BrendanEich on Friday March 11, 2016 @02:07AM (#11265123)
Brave does not track anyone remotely, all data in the clear (which browsers all keep in various caches and history lists) stays on device. We will pay publishers 55% directly, and users 15%.

I think you didn't read our FAQ or other site docs, and just assumed the worst. Why is that?

Re:Brendan Eich: WebAssembly is a game-changer by Sir_Cmpwn on Friday March 11, 2016 @07:10AM (#11266101)
I did read the FAQ. It's awful. I didn't realize just how awful it was until I read the FAQ.

How do you pay publishers on sites that aren't partnered with you?

Re:Brendan Eich: WebAssembly is a game-changer by BrendanEich on Wednesday March 16, 2016 @11:59PM (#11302491)
From the FAQ:

8. How do you use Bitcoin (BTC)?

We’re still developing the system, now entirely in the open source on github.com, but at this point we know we will use BTC only for permissionless payment delivery to user and publisher wallets that we will create using BitGo’s APIs. We hope to keep funds in BTC only in monthly payment buffers, to reduce effects of volatility. We intend to let expert users “bring their own BTC” to self-fund their wallets and auto-micropay for as much of their browsing as they like.

See also https://www.brave.com/blogpost_2.html which discusses user and publisher wallets. We'll have more in a week or two on the Brave Ledger payment system.

Re:Brendan Eich: WebAssembly is a game-changer by AlexTes on Friday March 11, 2016 @03:45AM (#11265467)
Ignoring the negativity and taking it as an opportunity to improve your product and / or understanding of a segment of your audience.. I'll remember that!
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @08:09PM (#11263928)
> ... for making JavaScript, an awful programming language we've spent 20 years trying to fix?

First-class function is not bad for 1995.

Re:Brendan Eich: WebAssembly is a game-changer by mikekchar on Thursday March 10, 2016 @09:10PM (#11264192)
Yeah, I have to say that there are many things I love about Javascript. Even the quirky this pointer is at least interesting (though not particularly useful). Internally JS is very elegant IMHO and it is easy to write beautiful code in many different paradigms.

On the downside: Type coercion is always a bad idea. There is an inconsistency between built in types and user constructed types. It has terrible standard class libraries. It is verbose.

But I can name half a dozen other languages that suffer from these problems and more. Judicious use of a transpiler (like coffeescript) and choice of third party libraries will go a long way. Personally, I enjoy working in coffeescript more than Ruby specifically because of the first class functions.

Not the best programming language in the world, but not the worst either, IMHO. It's just unfortunate that some of the more obvious shortcomings weren't fixed early on.

Re:Brendan Eich: WebAssembly is a game-changer by jakevn on Thursday March 10, 2016 @09:37PM (#11264270)
It's also quite average for languages of that time to have first-class functions.

https://en.wikipedia.org/wiki/Timeline_of_programming_langua...

Re:Brendan Eich: WebAssembly is a game-changer by drumdance on Thursday March 10, 2016 @09:01PM (#11264159)
He created JavaScript in 10 days. It's still in use 20 years later. That's very respectable.
Re:Brendan Eich: WebAssembly is a game-changer by smitherfield on Thursday March 10, 2016 @09:30PM (#11264252)
Because it had (and still has) a monopoly on code that runs inside the browser. And it's a pig that's had quite a bit of lipstick put on it. It wouldn't be in widespread use if people had the choice.

That all said, WebAssembly is potentially an avenue to break that monopoly, and I do give him credit for seeking to address the issue.

Re:Brendan Eich: WebAssembly is a game-changer by mcbutterbunz on Friday March 11, 2016 @02:34AM (#11265227)
People did have a choice: Java Applets, ActiveX, Flash, VBScript. Those all lost.
Re:Brendan Eich: WebAssembly is a game-changer by smitherfield on Friday March 11, 2016 @07:27AM (#11266171)
Three of those were plugins and the last was proprietary to Internet Explorer only, although I'll admit it was also worse than Javascript. "Javascript: It's better than VBScript!"

And despite being an (awful) plugin with an IDE that cost $600, Flash won in the pre-iPhone/V8 era.

Re:Brendan Eich: WebAssembly is a game-changer by Touche on Friday March 11, 2016 @08:31AM (#11266459)
> Three of those were plugins and the last was proprietary to Internet Explorer only

They all started from a similar position, JS wasn't a standard from day one, there's a reason why it's emcascript today.

> And despite being an (awful) plugin with an IDE that cost $600, Flash won in the pre-iPhone/V8 era.

That's laughable, what percentage of the web ran on Flash in 2007, 1%?

Re:Brendan Eich: WebAssembly is a game-changer by smitherfield on Friday March 11, 2016 @09:25AM (#11266761)
>They all started from a similar position, JS wasn't a standard from day one, there's a reason why it's emcascript today.

No, Javascript had the huge advantage of being first; it's the only one on your list that both wasn't a plugin and was supported by IE and Netscape. And yes, modern Javascript is a better technology than any of those, although that's really damning with faint praise.

If Netscape Navigator 2 had shipped with, say, a Perl VM in addition to the Javascript VM, then I can guarantee you that everybody would've written their scripts in Perl instead of Javascript.

>That's laughable, what percentage of the web ran on Flash in 2007, 1%?

Back in the day, the only ways you could write a web app of any complexity/performance were to either use Flash or do it serverside (remember – not long ago! – when the new hot web technology was Ruby on Rails? Remember when it was PHP?). Flash was the only option if you wanted video (well, it or something truly evil like RealPlayer) or if you wanted a consistent and appealing look for your site.

Flash was on 56% of all websites as of 2010: http://www.stevesouders.com/blog/2011/04/05/http-archive-url...

Google trends for Flash vs. Javascript in the SF Bay Area: https://www.google.com/trends/explore#q=%2Fm%2F02p97%2C%20%2...

Re:Brendan Eich: WebAssembly is a game-changer by Touche on Friday March 11, 2016 @10:26AM (#11267098)
Flash has long been used to support features not-yet available in the DOM APIs such as copy/paste and video, and of course in ads. There's a huge difference between that and building Flash apps; apps where a flash-displayed interface is the primary way of using the app. Outside of games those were never very popular, JS had overcome it with Google Maps.
Re:Brendan Eich: WebAssembly is a game-changer by na85 on Friday March 11, 2016 @12:11AM (#11264777)
>He created JavaScript in 10 days.

It shows. JavaScript is fucking horrible, to put it mildly.

Re:Brendan Eich: WebAssembly is a game-changer by mcbutterbunz on Friday March 11, 2016 @02:32AM (#11265222)
Its got bad parts and its got good parts. Once you learn how to ignore the bad parts (and the bad examples) the language really shines. Especially with the newer versions.
Re:Brendan Eich: WebAssembly is a game-changer by stray on Friday March 11, 2016 @08:27AM (#11266436)
Stockholm Syndrome.
Re:Brendan Eich: WebAssembly is a game-changer by over on Friday March 11, 2016 @12:18AM (#11264795)
Haha, God made the world in 7 days, it's even worse.
Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @12:49AM (#11264874)
I've written DSLs in a day that have seen usage beyond its original intent. Javascript's a dirty hack that's only had dirtier hacks stacked atop it.
Re:Brendan Eich: WebAssembly is a game-changer by elliotec on Thursday March 10, 2016 @08:00PM (#11263881)
I'm not sure people really ever respected him, or JavaScript for that matter, but sort of just recognized it can pay to pay attention to one of the most popular languages and the man who invented it.
Re:Brendan Eich: WebAssembly is a game-changer by hackuser on Thursday March 10, 2016 @08:28PM (#11264019)
He also founded and built Mozilla, which arguably saved the open web from extinction.

If you don't respect the founder of JavaScript and Mozilla, your standards are very high. I doubt many people commenting here would meet them.

Re:Brendan Eich: WebAssembly is a game-changer by lmm on Friday March 11, 2016 @05:30AM (#11265778)
> He also founded and built Mozilla, which arguably saved the open web from extinction.

There was already a better open-source web rendering engine and browser at the time. Maybe we'd've got a KHTML-based browser on Windows much sooner that would have filled the same role.

Re:Brendan Eich: WebAssembly is a game-changer by elliotec on Thursday March 10, 2016 @11:53PM (#11264714)
Look, if given a chance, I'd shake his hand. But that doesn't mean I hold him to high regard or agree with his views, standards, or ideals. I respect some of the things he's done, but I also disrespect other things he's done.

Mozilla is pretty cool I guess, JavaScript is pretty cool I guess. It's all really just whatever and I think he was very much in the right place at the right time for a lot of this, not that he isn't a brilliant man who's obviously far more accomplished than me.

Re:Brendan Eich: WebAssembly is a game-changer by orangecat on Thursday March 10, 2016 @09:41PM (#11264287)
Creating JS in two weeks was an amazing accomplishment. Unfortunately we'd be better off if he had been a worse developer, because then Netscape wouldn't have had the option of shipping it and enshrining its defects as features.
Re:Brendan Eich: WebAssembly is a game-changer by wcummings on Friday March 11, 2016 @12:07PM (#11267835)
Not to mention his support for prop 8 and pathetic excuse for an apology.
Re:Brendan Eich: WebAssembly is a game-changer by losteric on Thursday March 10, 2016 @07:46PM (#11263798)
I prefer the term "mindful" to luddite. Luddite's opposed technology, you oppose the direction it's headed.

But I think you're completely right. We took all that made the web unique, and turned it into a black box for abstracting away hardware/OS.

It's hardly surprising though... you can decentralize a network, but power and control over the medium was bound to become centralized in some form.

Re:Brendan Eich: WebAssembly is a game-changer by krapp on Thursday March 10, 2016 @07:59PM (#11263875)
Luddites actually opposed the "direction technology was headed" as well, not technology for its own sake[0]. Specifically, they were the highly skilled technology workers of their time (factory and textile workers) made obsolete by automation, protesting the way technology made it easier to replace them with unskilled, low-wage labor and to flood the market with low-quality, mass produced goods. Sound like a familiar refrain?

[0]http://www.smithsonianmag.com/ist/?next=/history/what-the-lu...

Re:Brendan Eich: WebAssembly is a game-changer by mitchtbaum on Thursday March 10, 2016 @09:39PM (#11264284)
Looking at technology's influences alone strikes me as a shallow viewpoint. You can find other important factors if you look a bit deeper:

"The British weavers known as Luddites, who destroyed looms precisely 200 years ago, thought rising unemployment within their ranks was due to machinery. But there’s a case to be made that inflation, money supply expansion, budget deficits and trade barriers were equally to blame.

... [The] overall picture was of cheap money leading to labor-saving capital investment, while wages were eroded by inflation and economic activity was dampened by restrictions and excessive government deficits.

The Luddites have been mocked for attacking the productivity-enhancing machinery that was to improve living standards unprecedentedly. But given the economic policies of the time, which bear an uncomfortable resemblance to some of our own, the Luddites were right to believe that only higher unemployment, with no discernible improvement in conditions on the horizon, was their fate."

http://blogs.reuters.com/breakingviews/2011/03/11/were-luddi...

Were Luddites the victims of 2011-style finances? | By Martin Hutchinson | March 11, 2011

Re:Brendan Eich: WebAssembly is a game-changer by losteric on Thursday March 10, 2016 @11:03PM (#11264577)
huh, I never knew that. Thanks!

I stand by the rest of what I said though... I think we need to be mindful not just of where society is headed, but what kind of society we will live in when we get there.

Technology is important, but it's society that separates utopia from dystopia...

Re:Brendan Eich: WebAssembly is a game-changer by tclmeelmo on Thursday March 10, 2016 @05:33PM (#11263055)
I think what I worry about the most is how poorly the modern web partners with assistive technology: it feels like we're actually taking steps backwards.
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:35PM (#11263071)
That is a very large part of my point, the viewer is no longer in control. That was one of the beautiful concepts of the web, that the reader could be anything, a person, a screen reader, a computer program and so on.
Re:Brendan Eich: WebAssembly is a game-changer by philipov on Thursday March 10, 2016 @07:04PM (#11263583)
To me, it seems the trend is to ditch both the app and the browser, and just provide a web api that can be used with anything that supports http.
Re:Brendan Eich: WebAssembly is a game-changer by return0 on Thursday March 10, 2016 @06:15PM (#11263306)
Despite all the javascript, the content stayed on the web. That's the big win, thats what draws people to use it, and what guarantees its popularity for a long time. The really great, awesome thing about the web is its openness. No company can tie you to their programming language , their "app store" ecosystem , insane policies and authoritative restrictions. We should be eternally greeatful to Berners-Lee for that.

The silos exist today, facebook platform etc. Despite how hard they tried, they did not take over the web.

Re:Brendan Eich: WebAssembly is a game-changer by ZenoArrow on Thursday March 10, 2016 @05:41PM (#11263107)
> "It's sad that we don't seem to be able to have the one without losing the other, theoretically it should be possible to do that but for some reason the trend is definitely in the direction of a permanent eradication of the 'simple' web where pages rather than programs were the norm."

What does it matter what is the norm? Static HTML/CSS is going nowhere, you can still create static content, as you well know (IIRC you run a static blog). The improvements to the dynamic side of the web do not come at the expense of the document-oriented side, both currently coexist and I see no reason why making the dynamic side faster will change that.

Furthermore, changes to dynamic content can enhance the functionality of the document-focused side of the web. Consider Wikipedia. In some ways a Wiki is a set of documents, but it's a set of documents that grows based on utilising input from those using the service, democratising the accumulation of knowledge. For all its flaws, I can think of no other resource that better embodies the virtues of the web than Wikipedia, and Wikipedia would not have grown to the size it is now without the technology that supports web apps.

That said, I don't agree with the trend for moving everything to the cloud, and I hope we can see that trend reverse with better tools for people to take control of their own data. If more people had cheap home servers that were easy to maintain then the issues surrounding lack of control should be greatly reduced.

Re:Brendan Eich: WebAssembly is a game-changer by pedalpete on Thursday March 10, 2016 @05:31PM (#11263040)
the web is and will always be a 'content delivery vehicle'. Apps which run on the web are a form of content.

Not all data is open, that is unfortunate, but realistic. At the same time, huge amounts of data is open and available without an app.

What is the use case where we lose to something because of native performance improvements in javascript?

Anybody who wants to build a simple static site can still do that, and I'd suggest the majority of the web is still just that, or very close to it.

I really don't understand your comment about 'executables that only run as long as you are on a page'. You can only read content as long as you are on a page as well. Or are you concerned about our ability to do search and data-mining on large volume of available data?

Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @01:08AM (#11264934)
I can hit ctrl-s and save a page, and with modern browsers, all the inline content too. Webapps tend not to have that function.
Re:Brendan Eich: WebAssembly is a game-changer by acabal on Thursday March 10, 2016 @11:56PM (#11264727)
I upvoted you, but I want to add my voice too.

The web succeeded in part because it was possible for anyone to do "view source" and see what was going on under the hood.

Having that source available is also an important aspect of software freedom.

Losing all that--especially the freedom to see exactly what your browser is executing--for a slight speed increase is ludicrous and I'm very, very sad to see this is being taken so seriously.

We had a huge opportunity here to shape an open and free web. Turning the web into nothing more than a binary distribution platform will undo decades of work and we may never again find ourselves in the lucky confluence of economic prosperity, technological advancement, and governmental benign neglect, that made the open web possible.

Re:Brendan Eich: WebAssembly is a game-changer by leni536 on Friday March 11, 2016 @03:43AM (#11265466)
Minified JS is hardly "source" though.
Re:Brendan Eich: WebAssembly is a game-changer by Crespyl on Friday March 11, 2016 @11:00AM (#11267331)
And I hate it just as much.
Re:Brendan Eich: WebAssembly is a game-changer by stcredzero on Thursday March 10, 2016 @06:01PM (#11263217)
The further we get away from the web as a content delivery vehicle and more and more a delivery for executables

Interactivity is an increasingly important aspect of media and of our culture. People spend more money and time on games than on movies and TV.

I just don't think this is what we had in mind when we heralded the birth of the www.

It's never like the framers imagined. It's always stranger and more wonderful than they could have imagined. (And horrible in some ways they couldn't have imagined.)

Re:Brendan Eich: WebAssembly is a game-changer by girvo on Thursday March 10, 2016 @06:58PM (#11263551)
> Feel free to call me a digital Luddite

Sure. But don't despair, because this future isn't as bleak as you'd assume. With things like Hoodie[0], GunDB[1] and other amazing bits of technology, we can keep the benefits of web-tech for application development, but allow the user to own their data still. Offline-first, easy sync when needed. And really, anything more complex than delivering static HTML pages has the downsides you're mentioning, so unless you want to live in 1995 I can't really understand it from a practical perspective ;)

[0] http://hood.ie/

[1] http://gun.js.org/

Re:Brendan Eich: WebAssembly is a game-changer by metaphorm on Thursday March 10, 2016 @05:24PM (#11262978)
I agree with quite a lot of your critique and share some of those concerns, but something doesn't quite add up to me. Why are you assuming that the two models of web-as-delivery-system are mutually exclusive? I don't see how web assembly competes with or causes movement away from the web as we've known it.
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.
Re:Brendan Eich: WebAssembly is a game-changer by chipsy on Thursday March 10, 2016 @06:10PM (#11263277)
There's always an element of "one step forward, two steps back" with major technology shifts. Every time we've had a big change in platforms, we also had to redo existing engineering work.

I don't think this is doom and gloom for accessibility, though. The future is in general-purpose assistance technologies that mediate any application. You can smell it with the new work in ML. It is not here now, but as with everything in technology, by the time it's mature and widely available, it's nearly obsolete.

Re:Brendan Eich: WebAssembly is a game-changer by over on Thursday March 10, 2016 @06:33PM (#11263427)
> "one step forward, two steps back"

This only works if you're facing away from your destination.

Re:Brendan Eich: WebAssembly is a game-changer by chc on Thursday March 10, 2016 @05:25PM (#11262983)
I don't see what vertical data silos have to do with the technology the OP is talking about. Vertical data silos would exist without the ability to run programs client-side, they'd just be less pleasant (e.g. lots more reloading), and less accessible for many people (harder to make usable AI).
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:30PM (#11263023)
The tech helps those data silos to be more opaque, to treat the browser as a one way consumption device and to make it harder to link that data in the 'normal' way. It's like audio that can't be re-mixed. That's also a reason why things like RSS and other easy and open standards disappear, they make it harder to lock down the data in a silo.
Re:Brendan Eich: WebAssembly is a game-changer by iheartmemcache on Thursday March 10, 2016 @05:51PM (#11263162)
Well, most of the time, when audio that can't be remixed[1] is usually because whichever audio engineer was in the studio and did the mix-down and/or whoever did the mastering afterwards lost the tapes. Mixing down to stereo from a thirty different takes of a dozen different audio tracks is inherently going to be a little lossy. It's sort of like cutting up the first draft of a novel, where the author presumably has made some editorial decision.

I'm with you and actively avoid any remote SaaS for this reason, discussed at length here[2]. I don't care about the recurring fees, I'll pay them no problem as long as I can run the binary locally, so I can hedge against the acquire-hire-kill by AppleGoogTwit. When that happens not only do I risk losing data, but I risk losing a tool I depend on within my workflow. If my data has even a remote chance of being locked into a specific platform, i.e., if I can't host it Atlassian style[3], I'm not going to use it. This could rapidly turn into a bunch of mini-App Store instances -- where good apps and/or information disappear on a whim of the developer because they're tired of working on an Angular base. Not only does your data live in a walled garden, but you also risk being the unfortunate victim of the Bored Developer Syndrome.

Side-note: Most of the good engineering blogs I read are just stock WordPress themes with RSS enabled. None of that "RSS only the first paragraph so I get more hits" junk. If someone's intentionally silo'ing their data, more often than not it's one of those "4 things you didn't know about Bash!" blogs. Not much value when you can read the GNUinfo docs on it.

[1] I'm presuming you mean, in the sense of actually re-producing off the master tracks, not just EQ'ing [2] https://news.ycombinator.com/item?id=11250108 [3] https://news.ycombinator.com/item?id=10753650 - Paragraph 2

Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @06:18PM (#11263324)
I expect a redecentralization of the network with wasm.

It could destroy the web and something new could emerge. Something simple and open again.

The web of today is like the X protocol in 80s. Too much sophisticated and very hard to implement. VNC can be seen as a replacement of X. Simpler and better in many aspects.

wasm can fail too or have a limited success like webrtc.

In a world full of robots, markdown is enough to render most contents like JSON is better than XML.

Re:Brendan Eich: WebAssembly is a game-changer by pcwalton on Thursday March 10, 2016 @06:24PM (#11263362)
I hope (and suspect) that Web Assembly will find a lot of use for people who need to use it. But I also think that CSS and HTML will remain the presentation technology of choice for the vast majority of Web sites. That's because, contrary to popular opinion, HTML and CSS are actually technically pretty good. They have a lot of flaws, but every proposed JS- or wasm-based replacement for them that I've seen has been significantly worse.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @07:03PM (#11263578)
> They have a lot of flaws, but every proposed JS- or wasm-based replacement for them that I've seen has been significantly worse.

I'm a fan of Gopher and Wikipedia mobile.

http://gopher.floodgap.com/gopher/gw.lite

https://en.m.wikipedia.org/wiki/?mobileaction=toggle_view_mo...

HTML and CSS are not bad. The problem (for me) is the lack of diversity in the layout engines. It can be explained by the complexity of the standards. It's near impossible to create a new browser from scratch (that can display modern websites).

BTW people can't choose something else because there is nothing else and every computer has a web brower. It's more a monopoly.

Re:Brendan Eich: WebAssembly is a game-changer by hughw on Thursday March 10, 2016 @07:31PM (#11263711)
Why can't both styles coexist? Declarative hypertext resources for things that are document like, and dynamic applications for things that are app like? We simply are augmenting the plain old HTML web with the ability to link to resources with new capabilities. We haven't subtracted anything.
Re:Brendan Eich: WebAssembly is a game-changer by modeless on Thursday March 10, 2016 @05:25PM (#11262985)
I hear you, but what is there to do about it? You can't stop people from wanting these kinds of features, and there are huge, real benefits.
Re:Brendan Eich: WebAssembly is a game-changer by reitanqild on Friday March 11, 2016 @05:24AM (#11265755)
I have a suggestion: If we all start blogging again on a myriad of domains and subdomains, start linking to each other not for SEO but to provide users links to interesting stuff then all this could go away like a ugly nightmare once you are halfway into breakfast.

I know there are a few of you x-bloggers here: I loved the time when I could find lots and lots and lots of technical stuff in a never ending web of blogs. Not everyone agreed but we linked back to the ones we disagreed with without caring about SEO.

Hey, we could event do web rings and RSS and and and...

Edit: There is still a lot of content, I just miss the time where everyone blogged and I wish we would decide to go back, and then do it.

Re:Brendan Eich: WebAssembly is a game-changer by unethical_ban on Thursday March 10, 2016 @05:23PM (#11262972)
The WWW is currently a bunch of apps. Mediawiki, Wordpress, Node, Django, and thousands of others.

What is the difference between serving HTML/CSS/JS to the browser, and some other stack of UI and algorithms?

Re:Brendan Eich: WebAssembly is a game-changer by Touche on Thursday March 10, 2016 @08:32PM (#11264039)
They're not pulling JavaScript out of browsers, it's time to give up that dream.

If you're really so passionate about static content why not be part of a project to that aim? You can host a Gopher server and publish to it, it's stunningly easier to do.

Or maybe an alternative that runs on https? I'd be interested in that personally.

Re:Brendan Eich: WebAssembly is a game-changer by danharaj on Thursday March 10, 2016 @05:21PM (#11262961)
I think the solution is to think of code as data that should be freely distributed and hackable as well. It isn't the garden that is the issue, but its walls.
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:23PM (#11262970)
We're heading straight for native code sandboxed in the browser via a bit of a detour. It will be just as hackable as any closed source code that you get from some vendor. Think of it as a slightly more modern version of Java, this time it really is run 'anywhere' as long as 'anywhere' is a browser and the source code stays with the supplier of the web-app.
Re:Brendan Eich: WebAssembly is a game-changer by kjksf on Thursday March 10, 2016 @05:42PM (#11263114)
The source code of my latest web app is over 1 MB of minified and obfuscated JavaScript. Technically you have the source but it's only marginally more useful to you than looking at assembly generated by a C program.

And the benefits of having source are overstated.

I didn't learn web programming by looking at other people's html and javascript. There was a little bit of that but most of the learning is from tutorials and books and experimenting.

And in the old days of C programs delivered as executables, were people unable to learn how to program in C?

Finally, WebAssembly is not a replacement for JavaScript but fills a gap that JavaScript can't (really fast code).

WebAssembly is basically a compiler target for C-like languages, which means that it's dramatically more expensive to "write" WebAssembly code than it is to use JavaScript, so people will only reach for it in cases where there's compelling reason. It'll never be a default choice for writing web apps.

Re:Brendan Eich: WebAssembly is a game-changer by Udik on Thursday March 10, 2016 @07:28PM (#11263697)
> people will only reach for it in cases where there is a compelling reason.

Why? Won't any javascript (or any other source code) be compiled to webassembly before going to production?

Re:Brendan Eich: WebAssembly is a game-changer by azakai on Thursday March 10, 2016 @08:10PM (#11263935)
WebAssembly is a low-level statically typed language. JavaScript is a high-level dynamically typed language.

Compiling JavaScript to WebAssembly can't be done as a simple compilation step, at least not with fast results - you really need a JIT or multiple JITs. In other words, you'd need to compile a full JS engine to WebAssembly together with your code.

Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @08:29PM (#11264025)
I had a lot of fun to see that the other day :-)

> "Binaryen" is pronounced in the same manner as "Targaryen": bi-NAIR-ee-in. Or something like that? Anyhow, however Targaryen is correctly pronounced, they should rhyme. Aside from pronunciation, the Targaryen house words, "Fire and Blood", have also inspired Binaryen's: "Code and Bugs."

https://github.com/WebAssembly/binaryen

Do you know XZ Embedded?

http://tukaani.org/xz/embedded.html

I wonder if it could improve startup (with emterpreter?).

Re:Brendan Eich: WebAssembly is a game-changer by azakai on Thursday March 10, 2016 @09:14PM (#11264210)
I hadn't heard of XZ embedded. Might be worth measuring it, but it would be competing with native gzip in the browser, which is hard to beat on speed. But maybe better compression would be worth it?
Re:Brendan Eich: WebAssembly is a game-changer by corysama on Friday March 11, 2016 @03:08AM (#11265361)
LZHAM is interesting in that area. Speed that competes with gzip and compression that competes with LZMA.

https://github.com/richgel999/lzham_codec

Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Friday March 11, 2016 @12:03PM (#11267793)
Interesting.

It reminds me encode.ru :)

Do you know the size of the compiled code?

Re:Brendan Eich: WebAssembly is a game-changer by corysama on Friday March 11, 2016 @01:42PM (#11268610)
In this discussion https://news.ycombinator.com/item?id=8911369 someone quoted this page http://mattmahoney.net/dc/text.html as saying it compiles to about 150k. I can't find the current listing, but I'm on mobile :/

Btw: the author's blog talks about LZHAM quite a bit http://richg42.blogspot.com/

edit: Looks like it's up to 190k

                    Compression                      Compressed size      Decompresser  Total size   Time (ns/byte)
    Program           Options                       enwik8      enwik9     size (zip)   enwik9+prog  Comp Decomp  Mem Alg Note
    -------           -------                     ----------  -----------  -----------  -----------  ----- -----  --- --- ----
    lzham 1.0         -d29 -x                     25,002,070  202,237,199    191,600 s  202,428,799   1096   6.6 7800 LZ77 70
    xz 5.2.1--lzma2=preset=9e,dict=1GiB,lc=4,pb=0 24,703,772  197,331,816     36,752 xd 197,368,568   5876    20 6000 LZ77 73
    gzip 1.3.5        -9                          36,445,248  322,591,995     38,801 x  322,630,796    101    17  1.6 LZ77
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Friday March 11, 2016 @03:43PM (#11269366)
Very cool! I appreciate the details :-)

I ran a quick with the tool (xzminidec) that comes with XZ Embedded.

    gcc -O3 -s -D XZ_USE_CRC64 -o xzminidec xzminidec.c xz_crc32.c xz_crc64.c xz_dec_stream.c xz_dec_lzma2.c 
    du -b xzminidec
     19472	xzminidec

    ldd xzminidec
     linux-vdso.so.1 (0x00007ffe9905c000)
     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f105c83b000)
     /lib64/ld-linux-x86-64.so.2 (0x000055d818666000)

    du -b enwik8.zip 
     36445475	enwik8.zip

    du -b enwik8.xz 
     26375764	enwik8.xz

    time unzip enwik8.zip
     real	0m1.023s
     user	0m0.948s
     sys	0m0.068s

    time cat enwik8.xz | ./xzminidec > out-xz.txt
     real	0m2.598s
     user	0m2.504s
     sys	0m0.136s

    cmp enwik8 out-xz.txt 
     (empty)
unzip is faster but the xz decoder is very tiny and the compressed input file is smaller.
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Friday March 11, 2016 @11:58AM (#11267768)
The most interesting feature (for me) is its small size:

"Compiled code is 8–20 KiB."

zlib is heavier (about 200Ko).

It could be used to make self-extractible asm.js programs or to compress some embedded resources (like files from "--embedd", fonts, images...).

Re:Brendan Eich: WebAssembly is a game-changer by AgentME on Friday March 11, 2016 @12:01AM (#11264743)
WebAssembly is a special encoding for a subset of javascript that's easier to optimize. If all arbitrary javascript could be compiled to WebAssembly and get any benefit, then browsers wouldn't bother with asmjs/WebAssembly and would just implement those optimizations in their general Javascript engines.

WebAssembly is a good compilation target for languages with a flat memory space and no garbage collection.

Re:Brendan Eich: WebAssembly is a game-changer by simoncion on Thursday March 10, 2016 @05:26PM (#11262990)
Yep. The web-heads are slowly reimplementing Unix in the browser. [0] We could have avoided this with better, wider-spread support for sandboxing of untrusted executables.

Alas.

[0] They don't have crashdumps yet, but I expect that they soon will.

Re:Brendan Eich: WebAssembly is a game-changer by modeless on Thursday March 10, 2016 @05:44PM (#11263127)
If you ask me, the rise of the Web as app platform is a scathing indictment of the state of operating systems, both in research and in practice. Operating systems are so bad at providing a safe and mostly stateless sandbox for untrusted code that the Web, despite being a crappy app platform in every other way, has won.

Look at WebGL for example. Over the past 20 years there has been practically zero interest in making a safe, sandboxed version of OpenGL. It wasn't until browser vendors got involved that people even seriously considered it. Browsers had to implement most of the safety features themselves, in user space. The operating system level GPU interfaces will likely never be anywhere near as secure, because apparently OS vendors don't care about running untrusted code.

Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @07:52PM (#11263835)
> Operating systems are so bad at providing a safe and mostly stateless sandbox for untrusted code that the Web, despite being a crappy app platform in every other way, has won.

"Worse is better."

> The operating system level GPU interfaces will likely never be anywhere near as secure, because apparently OS vendors don't care about running untrusted code.

It's handled with emulation and virtualization. The future of safety looks like QubesOS.

https://www.qubes-os.org/

Re:Brendan Eich: WebAssembly is a game-changer by chc on Thursday March 10, 2016 @05:26PM (#11262991)
Do you really feel like optimized JavaScript is source code any more than this is?
Re:Brendan Eich: WebAssembly is a game-changer by jacquesm on Thursday March 10, 2016 @05:31PM (#11263036)
It's an incremental process. It started with some innocent fluff (and client side input validation) and it ends with signed binaries shipping from trusted sources.

We're somewhere in the middle.

Re:Brendan Eich: WebAssembly is a game-changer by seagreen on Friday March 11, 2016 @12:56AM (#11264897)
There's . . . already a complete programming language in web pages. I'm not sure what you're trying to accomplish here.
Re:Brendan Eich: WebAssembly is a game-changer by lawnchair_larry on Thursday March 10, 2016 @09:03PM (#11264169)
Stallman was right, just for the wrong reasons. Scary. Offline computing is probably going to die.
Re:Brendan Eich: WebAssembly is a game-changer by esailija on Friday March 11, 2016 @03:25AM (#11265419)
You can run web apps fully offline since like 2011. The only difference is that the initial "install" is 100kb instead of 100mb.
Re:Brendan Eich: WebAssembly is a game-changer by ihsw on Thursday March 10, 2016 @05:51PM (#11263160)
It's not the web that we are losing -- it's the browser.

It's all still HTTP requests and responses, but the web browser itself is becoming something very different from what it was a decade ago.

Re:Brendan Eich: WebAssembly is a game-changer by basch on Thursday March 10, 2016 @07:21PM (#11263664)
is it the web without hyperlinks?
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Thursday March 10, 2016 @06:39PM (#11263463)
Yes and with a low-level interface to a (virtual) hardware it defines a VM that can be run standalone (thus without a browser).
Re:Brendan Eich: WebAssembly is a game-changer by Sanddancer on Friday March 11, 2016 @01:06AM (#11264928)
Don't we already have that with the JVM, the CLR, Smalltalk, many Lisps, Erlang, MIX, MMIX, etc?
Re:Brendan Eich: WebAssembly is a game-changer by vmorgulis on Friday March 11, 2016 @12:09PM (#11267850)
Yes, nothing new.
Re:Brendan Eich: WebAssembly is a game-changer by moron4hire on Thursday March 10, 2016 @06:15PM (#11263304)
What's hilarious is that A) you're pining for something that hasn't existed for years, and B) you're arguing against something (Service Workers) that would bring it back.