比较下 C 和 Java 过程式/面向对象(过程式 + OO 系统...)更像平时我们解决问题的方式,数学的则更理想化一些,所以还搞个 Monad 函子屏蔽副作用,纯纯 naive 的世界
(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)