Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Replace Go-js with Go-wasi #187

Merged
merged 70 commits into from
Mar 8, 2024
Merged

Replace Go-js with Go-wasi #187

merged 70 commits into from
Mar 8, 2024

Conversation

tsahee
Copy link
Contributor

@tsahee tsahee commented Dec 14, 2023

What's working?

system tests, including stylus, in both jit and arbitrator mode

go version #remember to use 1.21

make test-go-deps
go test -tags stylustest -run TestProgram ./system_tests/...

make target/machines/latest/user_test.wasm
cd arbitrator
cargo test

What's not working?

ipfshelper - the library we use is out-of-date. I stubbed out enough of it to be able to run system tests, but things like make build / make lint will not work.

one-step-proofs - not done yet.

recommended order for reading

arbcompress/, wavmio/

These changes are required for go 1.21, even if staying with wasm-js

arbitrator/wasm-libraries/{brotli, host-io}

Equivalent changes in the wasm libs

arbos/programs

Updated API to execute stylus programs

arbitrator/prover/src/{machine, wavm}.rs

required modifications for supporting the stylus->go callbacks. OSP not ready here but should be simple considering we only ever need state of either first or last {value, frame} stack

arbitrator/prover/src/host.rs

funcs using these new opcodes

arbitrator/wasm-libs/{user-host, program-exec}

implementation from arbitrator side

arbitrator/jit

the jit implementation

@cla-bot cla-bot bot added the s label Dec 14, 2023
@tsahee tsahee force-pushed the go_wasi branch 2 times, most recently from c3e37f0 to ec031f7 Compare December 20, 2023 02:36
@tsahee tsahee force-pushed the go_wasi branch 2 times, most recently from acfc32c to 32a786c Compare January 17, 2024 20:13
@tsahee tsahee marked this pull request as ready for review February 15, 2024 23:25
@rachel-bousfield rachel-bousfield mentioned this pull request Mar 8, 2024
@rachel-bousfield rachel-bousfield merged commit 84211c1 into stylus Mar 8, 2024
8 checks passed
@rachel-bousfield rachel-bousfield deleted the go_wasi branch March 8, 2024 23:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants