News for hackers. Stuff that matters.
Re:WebAssembly initial steps tutorial by madeofpalk on Sunday December 18, 2016 @07:02PM (#13208496)
I find it very strange that you see 'web development' as something that's bad, and the answer to it is to write C and ship assembly code to clients.
Re:WebAssembly initial steps tutorial by StavrosK on Sunday December 18, 2016 @07:05PM (#13208503)
I find it very strange that you see minified, basically completely unreadable JS as better than C (straw man, it's actually "any programming language") and assembly.

If we aren't being disingenuous, it's "any language you want versus JS" and "minified, obfuscated JS versus assembly".

Re:WebAssembly initial steps tutorial by geofft on Sunday December 18, 2016 @07:13PM (#13208531)
The web has a free software problem (either that, or native code has a free software anti-problem because distributing portable precompiled code is so hard), but I find minified JS no more or less acceptable, as a language to read, than assembly generated from an optimizing compiler.

That said, minified JS on the web runs in a sandbox with a sane security model (yes, browsers don't implement it 100% right, but at least there's a model there). Optimized native code without source does whatever it likes to any file on my single-user machine, and we're expected to be okay with that (cf. https://xkcd.com/1200/). If I'm asked to choose between running one of the two, my vote is with the web app, no question.

Re:WebAssembly initial steps tutorial by dispose13432 on Sunday December 18, 2016 @08:00PM (#13208729)
The point of WebAssembly is to use the sandbox as a means of shipping compiled binaries in a secure manner.
Re:WebAssembly initial steps tutorial by mtgx on Sunday December 18, 2016 @08:24PM (#13208815)
I wonder could all WebAssembly code be shipped in secure containers and make it run similarly to how Google sandboxed the whole Android framework inside of Chrome OS?

Is the security of WebAssembly worse than that currently? Or is it somewhat similar?

Re:WebAssembly initial steps tutorial by bobajeff on Sunday December 18, 2016 @09:07PM (#13209002)
I was under the impression the point of WebAssembly is to do asm.js better.
Re:WebAssembly initial steps tutorial by madeofpalk on Monday December 19, 2016 @07:45AM (#13211054)
I think these are both, more or less, the same thing. Better asm.js is a binary.
Re:WebAssembly initial steps tutorial by StavrosK on Monday December 19, 2016 @07:45AM (#13211053)
It is both.
Re:WebAssembly initial steps tutorial by kLeeIsDead on Monday December 19, 2016 @01:10AM (#13209770)
This is a very misinformed opinion.
Re:WebAssembly initial steps tutorial by geofft on Sunday December 18, 2016 @07:09PM (#13208518)
Yup. As someone who can't tell an angular from an angle grinder but has read the ABI specs for every platform I use... the web does a lot of things right, and native code and assembly is where we see ourselves tethered to the bad design decisions of over four decades ago.
Re:WebAssembly initial steps tutorial by fbreduc on Sunday December 18, 2016 @07:19PM (#13208562)
native code is not the problem... there are many libraries that abstract over platforms just like the web does.... the problem is people who make software that does not abstract away platform specifics