Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asc decompile wasm (or wat) to AssemblyScript #2844

Open
ArcaneEngineer opened this issue Apr 23, 2024 · 0 comments
Open

asc decompile wasm (or wat) to AssemblyScript #2844

ArcaneEngineer opened this issue Apr 23, 2024 · 0 comments

Comments

@ArcaneEngineer
Copy link

ArcaneEngineer commented Apr 23, 2024

Feature suggestion

Not sure if this is possible...

My workflow involves taking sources from different languages, transpiling these to WAT (via compilation to WASM) and looking at the generated WAT source and making further reductions / changes. So these WASMs which I get from compiling in other languages, I would like to get into AssemblyScript, from whence I can compile and produce build artifacts.

(It is too easy to overwrite WAT files by mistake as they are generated all the time... and besides, it's not the most human-readable format. I'd rather have my sources as AssemblyScript.)

WIP for this? It makes sense (to me) that since AssemblyScript is closely associated with WebAssembly, there would be a tool like this already. But I can't find anything. I imagine the implementation would be quite similar to the existing wasm2c in WABT.

Maybe it's something that could help AssemblyScript gain further traction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant