-
Notifications
You must be signed in to change notification settings - Fork 59
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
Writing wasm tooling in Rust #10
Comments
A good example here is @alexcrichton's wasm-gc. What are some other existing Rust-based tools we know about? And what are some needed tools we could start writing Rust code for? |
Added some RIIR (rather than WIIR) opportunities to the issue. This is more to inspire ideas for additional tools, rather than to suggest RIIR today. |
More existing projects:
|
btw parity-wasm also contains an interpreter. |
ah i see, WIIR - write it in rust |
@pepyakin thanks, clarified both. |
Recently I spent a looot of time in wast code generated by Rust+emcc+fastcomp/Rust+emcc+llvm and recently with unknown-unknown. I think it would be cool if I have had something like a decompiler for WASM. I don't know much about decompilers but I tend to think it should be easier to write one for wasm comparing to some "real" isa. |
From my experience parity-wasm has solved all problems for parsing/encoding a wasm module, but I think it'd also be slick to have a crate 100% dedicated to just that (in that parity-wasm also has an interpreter). |
Looks like somebody is working on wabt bindings in rust as well: |
@alexcrichton there was some discussions about splitting interpreter into a separate crate. I actually like the idea. |
Yep, actual split of interpreter took place: https://github.com/pepyakin/wasmi |
I'm interested in helping here, will ping sbdy on IRC :). |
hi, I used Rust to implement the https://github.com/frehberg/wasm-sign |
We've made a lot of progress here and I think we've reached a good steady state, so closing. |
This issue tracks existing and potential wasm tooling opportunities for Rust.
One of the exciting things about the wasm space is that there's a lot of need for brand new systems code to be written in the tooling space, e.g. code to munge .wasm files. A lot of the early tooling has been written in C++, but there's a real opportunity for Rust to serve as a common language both for writing wasm tools and for producing wasm code.
Existing wasm tools written in Rust
unreachable
"Desired wasm tools that could be written in Rust
Possible RIIR opportunities
Here are some existing tools that could, in principle, be (re)written in Rust instead:
The text was updated successfully, but these errors were encountered: