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

Unblocked Fibers #1184

Open
3 of 5 tasks
herwinw opened this issue Aug 31, 2023 · 0 comments
Open
3 of 5 tasks

Unblocked Fibers #1184

herwinw opened this issue Aug 31, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@herwinw
Copy link
Member

herwinw commented Aug 31, 2023

This is a feature of Ruby 3.0 where a Fiber can mark itself as being blocked, notify a scheduler of this information, and let the scheduler change the execution to a different fiber. Given that we currently have Fibers but no Threads, this is probably the easiest way into getting some form of concurrency into Natalie.

I found some example scripts on https://blog.monotone.dev/ruby/2020/12/25/ruby-3-fiber.html and I want those to work with Natalie.

This does require the following steps:

@herwinw herwinw added the enhancement New feature or request label Aug 31, 2023
@herwinw herwinw self-assigned this Aug 31, 2023
@natalie-lang natalie-lang deleted a comment from seven1m Sep 7, 2023
This was referenced Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant