(233) #Ruby 里的 Fiber 不就是 Lua 里的 coroutine 嘛(
现在还不理解 coroutine 和基本的生产者 - 消费者队列,所以不能下结论
现在还不理解 coroutine 和基本的生产者 - 消费者队列,所以不能下结论
Fibers are primitives for implementing light weight cooperative
concurrency in Ruby. Basically they are a means of creating code blocks
that can be paused and resumed, much like threads. The main difference
is that they are never preempted and that the scheduling must be done by
the programmer and not the VM.
As opposed to other stackless light weight concurrency models, each
fiber comes with a stack. This enables the fiber to be paused from
deeply nested function calls within the fiber block. See the ruby(1)
manpage to configure the size of the fiber stack(s).
Forwarded from 羽毛的小白板
ZhuiMeng's Corner
再见,知乎
近来,收到了知乎发来的律师函,要求下架知乎uwp。虽然也尝试沟通过,但是并没有什么效果,所以不得不和大家说再见了。 下架知乎uwp除了不舍之外,更多是觉得对不住大家的支持,很多功能都还没有补完,就要匆匆的和大家告别了。还记得最初做知乎uwp的想法只是单纯的想为Windows Phone贡献一枚应用,同时尽最大可能的提供和其他平台无差别的知乎体验。不过遗憾的是上架两年多来,始终知乎uwp没能达到这个目标。感谢大家这两年来的陪伴,沉舟侧畔千帆过,病树前头万木春,知乎uwp的下架也不能说一定是件坏事。 从今天起,知乎…
Forwarded from 永久封存 | Yuuta 台 | 😷 #Pray4Wuhan (Yuuta)
Forwarded from neoFelhz's Channel | 山雨欲来风满楼 (neo喵 | 蒟蒻 | 肥宅 | 🐈)
Telegram
荔枝木
一位使用锤子 R1 1TB 版本的用户在打开电信营业厅后系统崩溃,500GB 重要数据丢失,由于锤子科技删除了开发者报告中生成错误报告的选项,目前无法排查问题,该手机连接电脑后没有反应也无法充电。