Skip to content

Conversation

@linxuanm
Copy link
Contributor

@linxuanm linxuanm commented Jan 5, 2026

This PR introduces an unboxed stack-switching implementation that avoids heap allocation when creating continuations via suspend/switch. This behavior can be configured at build-time: the build defaults to the unboxed mode, and the boxed implementation can be enabled by passing --boxed-continuation to build.sh.

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, with only the minor-est of comments :)

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, let's land this!

@titzer titzer merged commit 9e2b60c into titzer:master Jan 7, 2026
7 checks passed
@linxuanm linxuanm deleted the unbox-cont-full branch January 7, 2026 20:08
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