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

chore: Loop call stack #851

Merged
merged 14 commits into from
Nov 7, 2023
Merged

chore: Loop call stack #851

merged 14 commits into from
Nov 7, 2023

Conversation

rakita
Copy link
Member

@rakita rakita commented Nov 6, 2023

This PR changes the recursive calls that we had to the loop call and interpreter stack.

This fully removes the possibility of problematic OS stack overflow that we had, it allows easier sharing of the shared context (As in memory, and removes lifetime from Interpreter) and better control over the call stack.

It allows easier the introduction of the handler for that part of the code and performance stayed the same

@thedevbirb
Copy link
Contributor

This is so exciting! I really like the way you managed the shared memory by taking it and replacing with an empty one.
It seems all the hard work has been done, however I'd really happy to give any help in case you might need it

@rakita rakita marked this pull request as ready for review November 6, 2023 15:28
@rakita
Copy link
Member Author

rakita commented Nov 6, 2023

This is so exciting! I really like the way you managed the shared memory by taking it and replacing with an empty one. It seems all the hard work has been done, however I'd really happy to give any help in case you might need it

Yeah, that is one of benefits of loop calls! Will circle back to your PR, as we now have this new mechanism

@rakita rakita merged commit b2d3e8f into main Nov 7, 2023
@github-actions github-actions bot mentioned this pull request Jan 12, 2024
@rakita rakita deleted the loop_call branch January 19, 2024 13:24
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