News for hackers. Stuff that matters.
Re:Assembling WebAssembly by partycoder on Tuesday June 06, 2017 @08:22PM (#14502730)
I hope wasm becomes the first class citizen and JavaScript becomes just one out of many languages that compiles to it.

JavaScript is not bad at the high level, but at the low level it has been hell for engineers to implement a fast VM. A wasm VM is way easier to implement than a JavaScript VM.

Re:Assembling WebAssembly by tyingq on Wednesday June 07, 2017 @12:33AM (#14503780)
I do like the upside, but coupled with DRM support, it's going to be used to obfuscate, hide and control things. I'm expecting a much less open web coming.
Re:Assembling WebAssembly by jfbastien on Wednesday June 07, 2017 @12:38AM (#14503799)
WebAssembly is as Turing-complete as JavaScript is, and has fewer APIs. The only API it has JS doesn't really is grow_memory, and even that can kinda be done with ArrayBuffer.

I'm not sure what you think makes it the harbinger of closed web. As the WebAssembly CG chair, I'd be interested in understanding that.

Re:Assembling WebAssembly by tyingq on Wednesday June 07, 2017 @12:43AM (#14503824)
I don't see it as THE harbinger, but one of many. Some people will use it for the same reasons that they obfuscate things today. See, for example, the dropbox client. It's python, but they go to great lengths to keep you from peeking behind the kimono.

I understand WASM isn't reverse engineering proof, but it certainly raises the bar. Especially sans source maps.

Re:Assembling WebAssembly by jfbastien on Wednesday June 07, 2017 @12:50AM (#14503847)
Source map is totally optional! It provides zero help in understanding asm.js or minified JS. I see what you're saying about binaries being opaque blobs, but I just don't see how that's different from asm.js or minified JS.

Kinda sounds like you're trolling pcwalton TBH: https://twitter.com/pcwalton/status/872151997473972224

I approve ;-)

Re:Assembling WebAssembly by tyingq on Wednesday June 07, 2017 @12:59AM (#14503870)
I understand source maps are optional...not getting the exclamation point. That's exactly my point, it's optional and therefore not much help.

Minified js isn't (so far) a barrier for me. Prettify and a short bit of debug clears things up. Chrome even helps[1]. I have not yet run into asm.js used for anything in my field.

[1] https://developers.google.com/web/tools/chrome-devtools/java...

Re:Assembling WebAssembly by pcwalton on Wednesday June 07, 2017 @02:55AM (#14504219)
I don't think it raises the bar at all. You could already do everything you can do in wasm today with Emscripten, and any harebrained attempts at DRM schemes shipped over the wire would almost certainly be using Emscripten. Wasm is easier to read than Emscripten'd code because of types.
Re:Assembling WebAssembly by partycoder on Wednesday June 07, 2017 @07:37AM (#14505367)
Well, while true, today many things are being hidden from browsers by doing them server-side.
Re:Assembling WebAssembly by k__ on Wednesday June 07, 2017 @04:52AM (#14504649)
Has it?

The fastest VMs on the planet are JS VMs right now.

Re:Assembling WebAssembly by stevedonovan on Wednesday June 07, 2017 @05:44AM (#14504854)
Well, there's a smart fellow called Mike Pall who would like to race Lua against JavaScript for you. Plus, the very best VMs are Java.
Re:Assembling WebAssembly by k__ on Wednesday June 07, 2017 @08:55AM (#14505940)
I thought he stopped because he couldn't keep up ;)