Skip to content
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

Allow a VM instance to be reused #58

Closed
deanm opened this issue Aug 19, 2019 · 2 comments
Closed

Allow a VM instance to be reused #58

deanm opened this issue Aug 19, 2019 · 2 comments
Labels

Comments

@deanm
Copy link
Contributor

deanm commented Aug 19, 2019

Right now it looks like a VM instance cannot be re-used (is this correct?), it seems like there is no way to reset the instruction pointer / stack / etc, so the only option is to dynamically allocate and construct and entirely new VM instance for each execution (which also involves dynamically allocating heap memory for the stack, making channels, etc). If you want to run the same expression over large amounts of data it seems like you would want to be able to reuse the VM.

@deanm
Copy link
Contributor Author

deanm commented Aug 19, 2019

#59

@antonmedv
Copy link
Member

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants