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.
[ Parent
| on HN ]
It is hard to imagine a tool less suited to working with multi-gigabyte data sets than JavaScript.
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?
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.
Non-browser programming platfomrs terrible portability stories when your app needs many features from the platform, like accelerated graphics, networking, security etc.
Do people actually use JS for data sets larger than 4GB in the browser?
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)
Having 64-bit addresses let you map files and not worry about address space limitations, even if resident size is < 4gb
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.
Good point.
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?