zlacker

[parent] [thread] 1 comments
1. cherry+(OP)[view] [source] 2024-01-23 13:10:21
I believe Java virtual threads/project Loom fits what you are describing. No separate async APIs, everything is coded using a thread based model. The user decides between using platform/OS threads (thus delegating scheduling to the kernel), or using virtual threads and letting the JVM take over scheduling.
replies(1): >>bheadm+op
2. bheadm+op[view] [source] 2024-01-23 15:15:26
>>cherry+(OP)
Yes, Go also fits what I'm describing.

But I was wondering if the same thing could be brought to Rust, while still keeping the runtime away from the language. I probably forgot to mention Rust in the grandparent comment.

[go to top]