home.social

#ractor — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ractor, aggregated by home.social.

fetched live
  1. FFI: How Ruby Talks to C.

    One gem. Every C library. MRI, JRuby, TruffleRuby.
    No C extension. No Makefile. Just Ruby.

    And yes, it works with Ractors.

    rubystacknews.com/2026/03/25/f

    #Ruby #FFI #RubyDev #Ractor

  2. Contributed a #ruby #Ractor variant to the programming languages benchmark game: salsa.debian.org/benchmarksgam

    (was an example where Ruby was slower than Python, so got interested :))

    Might not be published anytime soon (as the benchark game isn't updated as often anymore, and was only recently updated), and it will also not be the fastest version, but was fun to experiment with Ractors in ruby, a way to have true parallelism is ruby.

    (btw the reason ruby is slow in this test is that instantiating an object for a single character is much overhead that can't be reasoned away by the JIT-compiler I guess...

    #performance

  3. Contributed a #ruby #Ractor variant to the programming languages benchmark game: salsa.debian.org/benchmarksgam

    (was an example where Ruby was slower than Python, so got interested :))

    Might not be published anytime soon (as the benchark game isn't updated as often anymore, and was only recently updated), and it will also not be the fastest version, but was fun to experiment with Ractors in ruby, a way to have true parallelism is ruby.

    (btw the reason ruby is slow in this test is that instantiating an object for a single character is much overhead that can't be reasoned away by the JIT-compiler I guess...

    #performance

  4. Quickstart | Ractor

    Link
    📌 Summary: 本文介紹如何使用 Rust 的 Ractor 套件建立一個基本的演員模式 (actor model),並講解訊息傳遞的兩種方式──無回應的傳送 (cast) 和有回應的請求 (call)。透過建立簡單的“Hello world”演員,讀者學會了演員的定義、訊息類型及狀態管理,並實作一個能計算已輸出“Hello world”次數的功能。系統還包含針對詢問演員內部狀態的遠端過程呼叫 (RPC) 實現的範例。

    🎯 Key Points:
    - 演員可透過無回應的訊息傳送 (cast) 或有回應的請求 (call) 進行通訊,分別使用 Ractor 的訊息標記系統。
    - 定義了一個基本的演員結構 MyFirstActor,並處理
    PrintHelloWorld 訊息來輸出 “Hello world”。
    - 演員可管理內部狀態,本文示範瞭如何計算 "Hello world" 輸出次數並用
    HowManyHelloWorlds 訊息回應請求。
    - 使用
    call_t! 巨集簡化了 RPC 的構造過程,便於開發者進行演員訊息傳遞。

    🔖 Keywords: #Ractor #演員模式 #Rust #訊息傳遞 #RPC

  5. Am kommenden Dienstag, den 28. Februar um 11:30 Uhr findet das nächste TechKafi ☕ #ruby statt. Bill Tihen gibt euch in das mächtige, aber zurzeit experimentelle #ruby Konstrukt #Ractor einen vertiefenden Einblick. Besuche uns bei Puzzle ITC 🏢 oder sei online 💻 mit dabei. puzzle.ch/de/blog/articles/202

  6. If you are looking for an in , I played around with Actix, Riker.rs, and Ractor. I highly recommend , it gets a lot right: no runtime (runs within your runtime), supervision trees like , and async message handlers for actors.

    My only wish for it is better documentation, but the rustdocs are useable enough.

    github.com/slawlor/ractor

  7. If you are looking for an #ActorFramework in #Rust, I played around with Actix, Riker.rs, and Ractor. I highly recommend #Ractor, it gets a lot right: no runtime (runs within your #Tokio runtime), supervision trees like #Erlang, and async message handlers for actors.

    My only wish for it is better documentation, but the rustdocs are useable enough.

    github.com/slawlor/ractor

    #RustLang