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

Trampolining draft #520

Closed
wants to merge 2 commits into from
Closed

Conversation

zhouwfang
Copy link
Member

@zhouwfang zhouwfang commented Jun 27, 2024

I was wondering if such trampolining could be viewed as tail-call optimization in the interpreter. Thanks!

@zhouwfang zhouwfang requested a review from ia0 as a code owner June 27, 2024 04:38
@zhouwfang zhouwfang marked this pull request as draft June 27, 2024 04:38
@ia0
Copy link
Member

ia0 commented Jun 27, 2024

I was wondering if such trampolining could be viewed as tail-call optimization in the interpreter.

Sadly no, this is the same issue as #514. Tail-call optimization in the interpreter would mean that the loop in exec::Thread::run() would need to disappear (and simply be the result of recursive tail-calls).

@ia0 ia0 closed this Jun 27, 2024
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