Js minification already removes all the "extra" info you would get over a binary format (like variable names, dead code removed, loops optimized, etc...)
Webasm will be almost identical to minification when it comes to decompiling. And minification is already extremely common.
And you can be a skeptic, but one of the biggest reasons for webasm was to reduce parsing overhead which is currently the bottleneck (in terms of startup time) to most JavaScript heavy applications. Plus needing to keep the original source around bloats memory. IIRC some of their test applications would take 30+ seconds JUST TO PARSE on mobile devices. That's a HUGE amount of overhead that this will cut out.
Can you please link to the test that took 30+ seconds to parse? It just seems that the way computers are evolving that we will never see that in practice even if we avoid the binary web...
It's in the FAQ for web assembly[0]. First section. I may have misspoken there as I don't know if they actually have real "tests" that show that, or if it's just that some know applications take that long.
FWIW, the "demo" from that site takes about 40 seconds to load on my mobile device when using the asm.js version.
Minification does things like rename variables to single characters, remove dead code, optimize code in a number of ways, inline constants, shorten if statements, unroll loops, hoist variables, rewrite comparisons, and more.
It is compilation in just about every sense of the word (especially when combined with a compiler like babel or typescript)
Webasm will be almost identical to minification when it comes to decompiling. And minification is already extremely common.
And you can be a skeptic, but one of the biggest reasons for webasm was to reduce parsing overhead which is currently the bottleneck (in terms of startup time) to most JavaScript heavy applications. Plus needing to keep the original source around bloats memory. IIRC some of their test applications would take 30+ seconds JUST TO PARSE on mobile devices. That's a HUGE amount of overhead that this will cut out.