Implementation of effects based on the Stack Switching proposal#1832
Implementation of effects based on the Stack Switching proposal#1832
Conversation
49e1043 to
f368877
Compare
3b9ce6d to
3f4555c
Compare
a8763e2 to
4d6ce8e
Compare
5c5211c to
41291bc
Compare
0017456 to
c27e0c1
Compare
13e9b8f to
9396373
Compare
ab70126 to
bf729a1
Compare
|
Hi! We are working on Wizard's stack switching and would like to generate benchmarks with |
bf729a1 to
1f521fd
Compare
|
Hi! This was done in #2134. I have rebased the PR. We originally forced a source install because prebuilt versions of binaryen 1.24+ weren't available. Now that they are, that step isn't needed anymore. For a long time we this faked the installation of binaryen on the CI with |
1f521fd to
4a2b500
Compare
|
Thank you so much! |
Wasmtime only supports these instructions. We should eventually use instead of the legacy instructions, but they are not allowed by default in node.
e680aee to
c0d45d4
Compare
c0d45d4 to
a77add0
Compare
To generate Wasm code that makes use of the Stack Switching proposal, you first need to install the development version of Binaryen (or version 124 once it is released).
Then, you need to run
wasm_of_ocamlwith the--enable wasiflag:This produces some Wasm code that can be directly executed by the Wizard engine:
Note that we keep the same output convention, at least for now: a JavaScript file
foo.jsand a directoryfoo.assetscontaining the Wasm code. The JavaScript file should be useful to run the tests withnodeonce it supports this extension. It is used at the moment in #1831 to test the WASI runtime.