Skip to content

Conversation

willemneal
Copy link
Contributor

@willemneal willemneal commented Aug 5, 2019

This is an experiment to use the new async/await pass for binaryen. Essentially four functions allow you to unwind and rewind the stack allowing for "pauses" a function by storing the stack in memory.

By default all functions will be instrumented to track the stack. So the async keyword can be used to distinguish functions to be instrumented.

This will also update the loader since the paused functions can return to the host runtime, there will need to add a run loop.

@dcodeIO
Copy link
Member

dcodeIO commented May 25, 2020

Closing this PR as part of 2020 vacuum as it states that it's rather an experiment. Toyed around with a Promise implementation meanwhile as well, but figured that a feasible implementation requires at least closures.

@dcodeIO dcodeIO closed this May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants