Hacker News new | ask | show | jobs
by voxic11 2385 days ago
But if the WASM was compiled from javascript or some other language that isn't very C-like then the de-compiled C or C++ code is going to be very difficult to follow.

At the very least with obfuscated javascript you are going from js => js => js. Rather then from js => WASM => C++.

2 comments

But going to c instead of js is an implentation technicality. If WASM becomes commonplace I'd be shocked if some group of kind souls doesn't open source a decompiler to minified js .
There already is a compiler from wasm to asm.js, so I assume it wouldn't be too difficult to go from wasm to more typical js.
Good to know!
You're not going from JS to WASM, you're going from C/C++/Rust to WASM.