-
Notifications
You must be signed in to change notification settings - Fork 57
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
Checking in .bin.wast
#119
Comments
Personally I like the idea of lowering the barrier to entry to run the tests here, although if CI goes so far as to convert to To me though there's a lot of downsides in these ideas though. Building the spec interpreter in CI here is probably going to be very nontrivial (especially if each repo needs its own version of ocaml/dune/etc). Running something like One strong upside of this repo as-is is that the maintenance burden is quite low. Postprocessing |
Agreed that this would be nontrivial. I'll also add thought that something like this would be useful for importing wasm tests into WPT (Web Platform Tests). We currently have automation that uses the interpreter to convert the wast tests into binary and generate HTML/JS tests in the WPT style and import them. This currently works for things that get merged into the main branch but it would be nice to get them from proposals too, and there we'd have the same problem of needing either the interpreter from that branch, or another tool like Binaryen or wasm-tools. |
In maintaining https://github.com/titzer/wizard-engine, we made the decision to only parse
.wast
tests where the modules themselves are in binary, i.e..bin.wast
. This has been very helpful in avoiding both the work and potential incompatibilities with implementing our own parser for the entire text format. To date, Wizard's strategy has been to check out the spec repo and proposal repos, building their respective interpreters, and then generate the.bin.wast
.As it turns out, as proposals either stagnate or get their tests merged into the main spec, their respective repos get stuck with their respective toolchains (to wit, old versions of Ocaml, ocamlbuild, or dune).
I was wondering if there is any appetite for building the spec interpreter for each of the tracked proposals and then also building the
.bin.wast
outputs of them, and checking them in here automatically as part of the CI.The text was updated successfully, but these errors were encountered: