Hacker News new | ask | show | jobs
by seangrogg 3111 days ago
Shouldn't it be possible to decompile from wasm to the language that was used to compile to it (or any target language that could've produced said wasm)?
1 comments

Only to roughly the same degree that it's possible to decompile x86/64 binaries to C or C++.

It depends heavily on the specific optimizations and obfuscations used, whether or not debugging information was left in, etc.

There's a reason the GPL has a "preferred form for editing" clause.

Yeah, but is that actually required? I don't know much about this, but I'd guess 90% of websites will strip this just like debug info in most proprietary software, 9% don't know about this or forget to remove it, if it's included by default and 1% consciously decides to ship it for transparency.
Then it's no different than minimized javascript...