-
Notifications
You must be signed in to change notification settings - Fork 362
Quodss/urwasm stateful #7128
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
Quodss/urwasm stateful #7128
Conversation
|
added a |
|
also added a |
|
added a |
|
I changed the target from develop to 409 without rebasing, is it ok? this should be merged with 409 |
b872d64 to
8472b53
Compare
Depends on urbit/wasm3#1 Adds stateful jet for `++run:wasm-lia`: - Defines two sets of allocators for m3 structs and codepages; - Updates `_reduce_monad` to enable computation suspension; - Adds `_get_state` to load wasm3 state from persistent cache table; - Adds `_move_state` to store wasm3 state in persistent cache table with the new key and remove an entry with the old key; - updates `u3we_lia_run` version due to return type change in urbit/urbit#7128; Misc: builtins for `c3_d`, motes TODO: - [x] optimizations: - [x] arena on a slab to prevent copying data one more time; - [x] smarter m3 struct realloc (currently wastes memory since wasm3 uses realloc to grow dynamic arrays);
Hoon side update for stateful urwasm:
=^-friendly return of++run, jet registration version increment.Also faster tests.
TODO
++runtests: