Re:WebAssembly: a binary format for the web
by 13years on Sunday November 01, 2015 @09:02PM
(#10489512)
Yet, isn't much of the web already unreadable due to minification of JS source?
[ Parent
| on HN ]
Re:WebAssembly: a binary format for the web
by Mikushi on Sunday November 01, 2015 @09:12PM
(#10489548)
If you think minification does anything to prevent anyone from reading it you are mistaken. Is it harder? Yes. Impossible, not even close, just annoying. I've reversed engineer JS libraries with 20K LOC that were minified and uglified in less than a day, hardly what I consider a hurdle.
Now, to have worked with asm.js recently, that's a whole different ball game. That is unreadable, at least without spending copious amounts of time on it and having a deep understanding of asm.js to be able to read it.
Re:WebAssembly: a binary format for the web
by azakai on Monday November 02, 2015 @12:04AM
(#10490101)
WebAssembly will be a lot more readable than asm.js - that's a specific goal, in fact.
It is true that it will still be lower-level than JS. But it remains in a structured AST format which is easy to pretty-print. And many of the worst patterns you see a lot in asm.js just won't be there.
Re:WebAssembly: a binary format for the web
by 13years on Sunday November 01, 2015 @10:11PM
(#10489759)
When we are talking about browsing code for the purpose of leisure curiosity and learning, yes it is a real hurdle.
Re:WebAssembly: a binary format for the web
by Touche on Sunday November 01, 2015 @09:58PM
(#10489719)
What do you get out of reading some random website's minified javascript?
Re:WebAssembly: a binary format for the web
by tracker1 on Monday November 02, 2015 @01:12AM
(#10490316)
Sometimes it's just the curiuosity of "how did they do that?" In general, one doesn't go around looking at the code everywhere, but on more than one occassion I've looked into something to figure out how something was done, or why it's broken in my browser (much more common in early Firebird^b^b^b^bfox).
On the one hand, I hope it gives a real build target for Rust and Go... on the other, I hope things don't get too obfuscated in practice.
Re:WebAssembly: a binary format for the web
by threatofrain on Sunday November 01, 2015 @10:38PM
(#10489850)
Aren't there many JS beautification tools that can un-minify JS? It won't unshorten variable names, but the code should still be fairly readable.