12 ms·
Webassembly is a complier target, not a type of source code; you compile your source to webassembly, you don't write code in it. On the other hand, the browser
by db48x 10y ago
Webassembly is a complier target, not a type of source code; you compile your source to webassembly, you don't write code in it.
On the other hand, the browser devtools all still work on pages that use it. If the owner of the site you're debugging is friendly they'll include source maps so that you see the original source. If they're not then you get a disassembled view of the webassembly code. This is not very different from seeing a prettified version of a minified or obscured Javascript file.
I don't think that it changes the equation that much, except that execution speed will be better.
- kuschku 10y ago> If they're not then you get a disassembled view of the webassembly code. This is not very different from seeing a prettified version of a minified or obscured Javascript file. I’ve spent a few weeks looking at those, comparing them, and manually deobfuscating examples. Even getting through DRM in most web- or android apps is easier than trying to get through similar example projects in webassembly. > If the owner of the site you're debugging is friendly they'll include source maps so that you see the original source. If they're not then you get a disassembled view of the webassembly code. The whole point is that this shouldn’t just be "if the owner is friendly", but a technical or legal requirement.
- db48x 10y agoYou would legislate that website operators are not allowed to obfuscate their javascript by removing all the variable names as well? That would either be a dystopian nightmare or utterly useless.
- kuschku 10y agoWhy not? Why would it be a dystopian nightmare? I mean, we already have early systems where you pay a tax if you create copies of stuff, which is distributed to creators, and in return you may just rip CDs, etc. Why would a truly open source world be a dystopian nightmare? Creators still would get paid, innovation would be a lot faster, without sacrificing anything. And it would find a legal solution to what is already done illegally with the remixing culture, and also allow it in software.
- icebraining 10y agoI think db48x's point is that you can't force open source, since people can still obfuscate it enough to render the openness moot, unless you literally legislate and enforce a full style guide on every single programmer (hence the dystopia).
- kuschku 10y agoWell, in common law, yes. In a civil law system, you just write something like "the preferred representation for development has to be publicly accessible", and you’re done.