News for hackers. Stuff that matters.
Re:WebAssembly’s post-MVP future by kodablah on Monday October 22, 2018 @01:05PM (#18276354)
Here's a newly created proposals repo to keep track: https://github.com/WebAssembly/proposals.

> Skill: 64-bit addressing

As a WASM backend implementer in an environment w/ only 32-bit addresses, I hope people don't move to 64-bit addresses too soon. Are we really reaching the limits here already?

> Skill: Portability [...] A POSIX for WebAssembly if you will. A PWSIX? A portable WebAssembly system interface.

Yes please, but dev'd outside of WebAssembly. This is needed for interoperability between languages. Even just strings would be nice. A stdlib interface to rule them all, so to speak. If kept modular and avoided a lot of bikeshedding and had a full test suite, it could have a great benefit even outside of WASM.

Re:WebAssembly’s post-MVP future by PowerfulWizard on Monday October 22, 2018 @01:51PM (#18276730)
Agreed on the stdlib concept. I'm sure people are working on it, the benefit would be massive. Just the amount of mobile data transfer that could be saved by 1MB of software pre-distributed to all browsers would be huge.

I wonder if anyone is trying to do it based on the javascript integrity hashes. In theory, if you took the top 100 javascript libraries and established a blessed build pipeline that would produce reference builds that would be bundled to the browser, and if anyone loaded a resource with an integrity hash matching the browser's pre-installed versions, it could just load from disk instead. That would give people who can tolerate less frequent library releases the ability to use all that functionality without networking related page load costs, and would provide a fallback since CDN's could host the file anyway if the browser doesn't have it.

Re:WebAssembly’s post-MVP future by Immortalin on Monday October 22, 2018 @03:02PM (#18277314)
You can probably build a poor man's version with Subresource Integrity and the DecentralEyes plugin.

https://decentraleyes.org/

Re:WebAssembly’s post-MVP future by iainmerrick on Tuesday October 23, 2018 @07:33AM (#18282463)
Just the amount of mobile data transfer that could be saved by 1MB of software pre-distributed to all browsers would be huge.

That would be great. I’m normally a fan of multiple competing implementations, but this might be an area where a single common library implementation, developed in partnership by all browser vendors, would be beneficial. All the code would be in wasm so it would be portable by definition. And with everybody using exactly the same implementation there shouldn’t be any sneaky incompatibilities. With a single master repo it could be versioned and updated cleanly.

Just as long as it’s kept small (1MB sounds like a good goal) and there isn’t too much churn -- those are the real challenges.

Re:WebAssembly’s post-MVP future by PowerfulWizard on Tuesday October 23, 2018 @01:00PM (#18285181)
Yeah agreed, it is extra complicated since it requires coordination between browsers and also enough websites to make it worth it. If it were released today it could take years to register in i.e. global internet statistics. I guess in theory shared CDN's and caching should be almost as good as well if major website could agree on dependency sharing.
Re:WebAssembly’s post-MVP future by Game_Ender on Monday October 22, 2018 @06:35PM (#18279172)
64 bit addressed cannot come soon enough. In certain domains the entire data set you want to work with is many times the 4GB limit, and JS has no such restriction so it’s a PITA that WASM does.
Re:WebAssembly’s post-MVP future by dmitrygr on Monday October 22, 2018 @09:54PM (#18280182)
It is hard to imagine a tool less suited to working with multi-gigabyte data sets than JavaScript.
Re:WebAssembly’s post-MVP future by bloomer on Monday October 22, 2018 @10:19PM (#18280276)
Yeah I'm really confused why working with 4GB+ datasets in the browser is a current need. Why does everything end up in web browsers these days? Is it only because developers aren't familiar with anything else?
Re:WebAssembly’s post-MVP future by jholman on Tuesday October 23, 2018 @01:45AM (#18280988)
You might similarly ask why app stores on iOS and Android are such a big deal, and why Steam is even a thing.

It's because deployment is a harder problem than development (at least, it's harder for developers, because deployment is a social problem). The web is a pretty poor development target (though it keeps getting better), but it's a damn terrific deployment medium, and that's a winning tradeoff.

Re:WebAssembly’s post-MVP future by fulafel on Wednesday October 24, 2018 @10:08AM (#18292526)
Non-browser programming platfomrs terrible portability stories when your app needs many features from the platform, like accelerated graphics, networking, security etc.
Re:WebAssembly’s post-MVP future by 6nf on Monday October 22, 2018 @11:13PM (#18280464)
Do people actually use JS for data sets larger than 4GB in the browser?
Re:WebAssembly’s post-MVP future by fulafel on Monday October 22, 2018 @11:52PM (#18280607)
Browsers don't support it without config flags, so rarely. But there certainly is demand in visualization, games, medical imaging, "data science", etc.

(Also these apps are not necessarily written in JS, it's a compile target too)

Re:WebAssembly’s post-MVP future by ec109685 on Tuesday October 23, 2018 @12:07AM (#18280645)
Having 64-bit addresses let you map files and not worry about address space limitations, even if resident size is < 4gb
Re:WebAssembly’s post-MVP future by Certhas on Tuesday October 23, 2018 @08:34AM (#18282782)
I wouldn't be suprised with Jupyter notebooks and all that.
Re:WebAssembly’s post-MVP future by jaipilot747 on Tuesday October 23, 2018 @09:10AM (#18283029)
Wouldn't that data be held in the language's kernel? When I load a 4GB file into memory in Jupyter, the memory is allocated in the python kernel, not the browser. Although I guess your point would be valid for iodide.io which seems to run everything in the browser.
Re:WebAssembly’s post-MVP future by Certhas on Wednesday October 24, 2018 @09:57AM (#18292444)
Good point.
Re:WebAssembly’s post-MVP future by will4274 on Monday October 22, 2018 @11:37PM (#18280553)
Email services offer 50 gb of data storage for free. It's not so crazy that you'd want to load a substantial portion of that data into memory in an "offline mode" or while doing full text search across the database. Yes, there are probably ways to fit it into 4 gb, but I'm writing this post on a computer with 64 gb of RAM - why not write the next feature instead?
Re:WebAssembly’s post-MVP future by voltagex_ on Monday October 22, 2018 @11:42PM (#18280571)
You and I are in the minority though. The Web is already using too much RAM.

I'm still seeing laptops sold with 4GB which would be used really quickly.

Re:WebAssembly’s post-MVP future by TomMarius on Monday October 22, 2018 @03:33PM (#18277620)
Re:WebAssembly’s post-MVP future by comesee on Monday October 22, 2018 @01:58PM (#18276791)
I've been following wasmjit quite closely and they are implementing a PWSIX interface for WebAssembly.