Re:Experimental support for WebAssembly in V8
by kuschku on Tuesday March 15, 2016 @01:09PM
(#11291168)
Great!
We should make sure that browsers refuse to run any code in the future that isn’t available in its full source.
Yes, that includes ReCaptcha
/me looks angrily at Google
Re:Experimental support for WebAssembly in V8
by dlubarov on Tuesday March 15, 2016 @02:17PM
(#11291793)
I think the idea is that WebAssembly apps will normally be closed-source, but browsers will ship with disassemblers, making it easy to inspect the app logic in a common text format.
Re:Experimental support for WebAssembly in V8
by lisivka on Tuesday March 15, 2016 @08:21PM
(#11294084)
Then every exe file is open-source, because we have disassemblers. Don't lie to yourself: webassembly is for closed-source applications. They will be compiled by an obscure compiler, so dissassembling back to logical code will be too costly to be practical.
We saw this many times: for v1, disassembler works perfectly and maps 1:1 from binary to code, but for version xxx.0 it's no longer true, because of various tricks and optimizations.
Re:Experimental support for WebAssembly in V8
by dlubarov on Tuesday March 15, 2016 @08:58PM
(#11294217)
No one's saying wasm apps will be open source, just that there will be a reasonable way to inspect their logic. Of course making sense of certain wasm apps will be challenging. JS code can be hard to follow as well, if it was generated by a tool like GWT, or minified, or obfuscated.
Re:Experimental support for WebAssembly in V8
by lisivka on Tuesday March 15, 2016 @09:20PM
(#11294324)
I am agree, that wasm will be on par with generated/minified JS right now, but I predict that wasm will beat JS in future versions. My prediction is based on experience. It is very easy to introduce a binary thing which is hard to map to flat text. I.e. first version of wasm will be 1:1 map to JS, but NEXT versions of wasm will introduce optimizations, which are quite possible in compact binary format but are not possible in flat text format, so 1:1 map from wasm to JS will be broken.
Re:Experimental support for WebAssembly in V8
by cjfont on Tuesday March 15, 2016 @04:27PM
(#11292705)
I'm going to guess that the format lends itself better to code obfuscation than JavaScript, for those that do not want their code to be open.
Re:Experimental support for WebAssembly in V8
by matt4077 on Tuesday March 15, 2016 @04:47PM
(#11292853)
Even if it's easier to obfusfate WebAssembly, does that matter? If you run the 2MB+ JS libraries in se today through uglify.js it becomes almost impossible to understand the macrostructure just by reading the code.
It's only through dynamic tools that we can even begin to understand minified JS today. Those are actually quite excellent: just try by starting the react or relay tools on facebook.
That ecosystem is hopefully not changing, so what remains is simply that the format is now binary. I agree that that makes me somewhat uncomfortable but realistically it doesn't really change anything.
[0]: https://www.w3.org/community/webassembly/
[1]: https://github.com/WebAssembly/design/blob/master/TextFormat...
[2]: https://github.com/WebAssembly/design/blob/master/Tooling.md