TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Explaining Ruby Fibers

169 pointsby tekkertjeover 3 years ago

5 comments

burlesonaover 3 years ago
This was a great read, but even more interesting was all the work on the author’s GitHub:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;digital-fabric" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;digital-fabric</a><p>Sharon is essentially developing a whole new stack of Ruby core libraries updated to feel more 2021 web than 2006 web (but in a good way). There’s a lot of neat stuff here to explore.
评论 #29054268 未加载
评论 #29059328 未加载
sizediterableover 3 years ago
Does anyone know of if the issues brought up by njs in this thread still apply? <a href="https:&#x2F;&#x2F;trio.discourse.group&#x2F;t&#x2F;structured-concurrency-in-ruby&#x2F;314&#x2F;10" rel="nofollow">https:&#x2F;&#x2F;trio.discourse.group&#x2F;t&#x2F;structured-concurrency-in-rub...</a>
allenrbover 3 years ago
Have to admit, clicked on this expecting to learn about some sort of exotic optical fiber.
c-smileover 3 years ago
Just for the note, in JS these two:<p><pre><code> async function foo() {...} function* bar() {...} &#x2F;&#x2F; a.k.a. generator </code></pre> are fibers. These are execution contexts that JS VM can be switched into. The first one (asynchronous function) uses kind-of preemptive multitasking (implicit context switch) and generators are closer to canonical fibers - cooperative multitasking with explicit yield of VM to other fibers.
评论 #29054690 未加载
评论 #29057570 未加载
g8ozover 3 years ago
How do the fibers being introduced in PHP 8.1 compare with Ruby&#x27;s?<p><a href="https:&#x2F;&#x2F;php.watch&#x2F;versions&#x2F;8.1&#x2F;fibers" rel="nofollow">https:&#x2F;&#x2F;php.watch&#x2F;versions&#x2F;8.1&#x2F;fibers</a>
评论 #29054025 未加载
评论 #29054669 未加载