-
Notifications
You must be signed in to change notification settings - Fork 124
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
Design a poll-based interface #34
Labels
Comments
related WebAssembly/design#720 |
I think This is really more an implementation problem with the current JS prototype. We can assume that other implementations have full control over their VM |
related WebAssembly/design#720 |
also an alternative would be to use a callback based interface #48 |
related ewasm/ewasm-kernel#2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case WASM will not support asynchronous methods we might need to take an alternative approach.
A simple way is to have each operation work with polling,
storageLoad
would become:ethereum.storageLoad(args)
ethereum.storageLoadResult() -> i32
(where 1 means result is written to the specified memory location)And the following pseudocode in WASM:
The JS interface would need to do the
sleep
then. It's not efficient at all, but there's no way to sleep in WASM.The text was updated successfully, but these errors were encountered: