Skip to content

Support tail call in the WASM interpreter #514

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

Closed
wants to merge 5 commits into from

Conversation

zhouwfang
Copy link
Contributor

@zhouwfang zhouwfang commented Jun 25, 2024

I'd just like to get some early feedback. I guess we probably want to preprocess/cache the detection of tail call, otherwise the overhead of is_tail_call() may be larger than the benefits. WDYT? Thanks.

#46

@zhouwfang zhouwfang requested a review from ia0 as a code owner June 25, 2024 05:15
@zhouwfang zhouwfang changed the title Support tail call Support tail call in the WASM interpreter Jun 25, 2024
@zhouwfang zhouwfang marked this pull request as draft June 25, 2024 15:31
@ia0
Copy link
Member

ia0 commented Jun 26, 2024

Thanks for the PR, but this is implementing tail-call optimization for the WASM byte code. What we want is tail-call optimization for the WASM interpreter (thus TCO in Rust).

Note that there's a tail-call proposal for WASM that is almost finished: https://github.com/WebAssembly/tail-call. We might want to implement it at some point, but that's not a priority and not useful for #46.

I'm closing as this is not a direction we want to go now.

@ia0 ia0 closed this Jun 26, 2024
@ia0 ia0 mentioned this pull request 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