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

Alternative effects API #3461

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dkalinichenko-js
Copy link
Contributor

Alternative effects API, ported from https://github.com/lpw25/alternative-effects-api. I reviewed the original and made some changes, but kept the design intact. Local continuations are yet unsupported. Portable continuations are yet unsupported, to be added soon. Yielding annotations are not yet present, to be added after local starts implying yielding.

Best reviewed commit by commit. Most of them do not contain substantive changes. The two important ones are:

  • 3cb2e78, which updates the API to 5.2 by tracking the new last_fiber parameter. Here, I copied the approach from Stdlib.
  • 64ffea5, which wraps Handler.t in a global_ record and comments out functions related to local continuations. Also does some other refactoring.

@dkalinichenko-js dkalinichenko-js force-pushed the dkalinichenko/alt-effects-api branch from 5af0547 to 021550e Compare January 13, 2025 17:07
@mshinwell mshinwell added the effects Relating to algebraic effects label Jan 15, 2025
@dkalinichenko-js dkalinichenko-js force-pushed the dkalinichenko/alt-effects-api branch from 021550e to 609e6e3 Compare January 16, 2025 19:28
@dkalinichenko-js dkalinichenko-js force-pushed the dkalinichenko/alt-effects-api branch from 609e6e3 to 2a288ed Compare January 23, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effects Relating to algebraic effects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants