logoalt Hacker News

Understanding Ruby 3.3 Concurrency: A Comprehensive Guide

63 pointsby ksec11/06/202416 commentsview on HN

Comments

rwjaht11/08/2024

The Ruby syntax looks increasingly appealing to me. Does anyone have Ruby book suggestions for experienced programmers? I'm looking for something close to K&R or APUE style, preferably also with some coverage of Ruby's C-API.

It does not have to be ultra modern or up-to-date, correctness and best practices are more important.

show 2 replies
vr4611/07/2024

A great update to older articles on Ruby concurrency. I pored over some of my code from Ruby to Rust - nothing exciting, turns hundreds of Instagram posts into Markdown text with resized and watermarked images - but maxes out my cores. Using actors, love those.

Considering porting the code back now to Ruby to get some developer friendliness, er, back. And for fun just to see performance across 10 years of posts.

Rust is cool but Ruby deserves to stay useful.

Daishiman11/06/2024

I don't see any benchmarks here but I wonder how this compares to equivalent Python concurrency primitives.

show 1 reply
xfalcox11/08/2024

Can I safely use Ractors inside Rails if my tasks have a mix of CPU and I/O ?

show 1 reply
phendrenad211/07/2024

Seems like ractors would be perfect for a HTTP server.

show 2 replies
cmittal7911/07/2024

benchmarks can never be right. machines with different specs will always show different results.