Hacker News new | ask | show | jobs
by whizzter 499 days ago
One tip for the author from another one, the spec-test contains various weird forms of textual wasm that isn't obvious how to compile but the wast2json converter can produce a simpler JSON desc accompanies by regular binary wasm files.
2 comments

Same tip here. We did this with Chicory: https://github.com/dylibso/chicory

I'd follow on that, the earlier you can get this test-suite running the better for the iteration speed and correctness of your project.

It took a bit of time to make everything work, but once we did, we very quickly got to the point of running anything. The test-suite is certainly incomplete but gets you 95% there: https://github.com/WebAssembly/testsuite

Thank you! Not the author, but I'm also building a compiler. I've stumbled across these tests before and mostly just been irritated and confused about what to do with them.