TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Explaining Ruby Fibers

169 点作者 tekkertje超过 3 年前

5 条评论

burlesona超过 3 年前
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 未加载
sizediterable超过 3 年前
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>
allenrb超过 3 年前
Have to admit, clicked on this expecting to learn about some sort of exotic optical fiber.
c-smile超过 3 年前
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 未加载
g8oz超过 3 年前
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 未加载