framapiaf.org est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Un service Mastodon fourni par l'association d’éducation populaire Framasoft.

Administré par :

Statistiques du serveur :

1,4K
comptes actifs

#ractor

0 message0 participant0 message aujourd’hui
maarten brouwers<p>Contributed a <a href="https://todon.nl/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://todon.nl/tags/Ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ractor</span></a> variant to the programming languages benchmark game: <a href="https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/issues/559" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salsa.debian.org/benchmarksgam</span><span class="invisible">e-team/benchmarksgame/-/issues/559</span></a></p><p>(was an example where Ruby was slower than Python, so got interested :))</p><p>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.</p><p>(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...</p><p><a href="https://todon.nl/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a></p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
Pito Salas<p>Linked is a good explanation of Ruby ractors, and a reminder that they still exist!<a href="https://salas.com/2025/03/11/whats-the-deal-with-ractors/#concurrency" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">salas.com/2025/03/11/whats-the</span><span class="invisible">-deal-with-ractors/#concurrency</span></a> <a href="https://ruby.social/tags/explainer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>explainer</span></a> <a href="https://ruby.social/tags/ractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ractor</span></a> <a href="https://ruby.social/tags/ruby" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ruby</span></a> <a href="https://ruby.social/tags/scaling" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scaling</span></a> <a href="https://ruby.social/tags/performance" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>performance</span></a> <a href="https://ruby.social/tags/software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>software</span></a>-engineering</p>
卡拉今天看了什麼<p>Quickstart | Ractor</p><blockquote><a href="https://readhacker.news/s/6hkCT" rel="nofollow noopener noreferrer" target="_blank">Link</a></blockquote>📌<span> Summary: 本文介紹如何使用 Rust 的 Ractor 套件建立一個基本的演員模式 (actor model),並講解訊息傳遞的兩種方式──無回應的傳送 (cast) 和有回應的請求 (call)。透過建立簡單的“Hello world”演員,讀者學會了演員的定義、訊息類型及狀態管理,並實作一個能計算已輸出“Hello world”次數的功能。系統還包含針對詢問演員內部狀態的遠端過程呼叫 (RPC) 實現的範例。<br><br></span>🎯<span> Key Points:<br>- 演員可透過無回應的訊息傳送 (cast) 或有回應的請求 (call) 進行通訊,分別使用 Ractor 的訊息標記系統。<br>- 定義了一個基本的演員結構 MyFirstActor,並處理 </span><code>PrintHelloWorld</code><span> 訊息來輸出 “Hello world”。<br>- 演員可管理內部狀態,本文示範瞭如何計算 "Hello world" 輸出次數並用 </span><code>HowManyHelloWorlds</code><span> 訊息回應請求。<br>- 使用 </span><code>call_t!</code><span> 巨集簡化了 RPC 的構造過程,便於開發者進行演員訊息傳遞。<br><br></span>🔖 Keywords: <a href="https://social.mikala.one/tags/Ractor" rel="nofollow noopener noreferrer" target="_blank">#Ractor</a> <a href="https://social.mikala.one/tags/演員模式" rel="nofollow noopener noreferrer" target="_blank">#演員模式</a> <a href="https://social.mikala.one/tags/Rust" rel="nofollow noopener noreferrer" target="_blank">#Rust</a> <a href="https://social.mikala.one/tags/訊息傳遞" rel="nofollow noopener noreferrer" target="_blank">#訊息傳遞</a> <a href="https://social.mikala.one/tags/RPC" rel="nofollow noopener noreferrer" target="_blank">#RPC</a><p></p>