1 分钟

Ruby 3.0 的主要特性之一是引入了“ractor”。 Ractor 是 Ruby 的一个新的并发抽象。 与 Ruby 线程不同,ractor 可以并行运行。 由于 Ruby 全局虚拟机锁(GVL),即使每个 Ruby 线程都映射到本地线程,也只能有一个活动线程在运行。 但是引入 ractor 后,可以有多个 GVL,每个 ractor 有一个。 这就是 ractor 可以并行执行的原因。

2 分钟

2015 年,Pragtob 写了一篇关于 Ruby 元编程的贴子。 好吧,您可能想知道为什么我要谈论五年前写的博客,在一个计算机科学正在以不断加快的速度发展的时代。 我搜索了它,因为在工作中我们遇到了这个问题。

4 分钟

Qml manages to separate UI and backend logic, one can adjust c++ code without breaking UI, or develop different front end without implementing same logic twice. As plasma mobile developers, we can utilize the flexibility of Qml and Kirigami framework. Making apps that look equally beautiful on mobile and desktop platform. However, the high memory usage is its major drawback. On a device like pinephone which only has 2 Gigs of ram, low memory consumption is crucial.

最新文章

分类

关于

A young developer who loves Linux.