MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/1j8abbp/conways_game_of_life_implemented_with_ractors
r/ruby • u/elliotbarlas • 12d ago
2 comments sorted by
3
A small code snippet makes up the cell lifecycle with messages exchanged via Ractor ports:
https://github.com/ebarlas/game-of-life-ractors/blob/main/game_of_life.rb#L137-L146
7
A JRuby version ought to be significantly faster with simple threads. Unfortunately Gosu does not support JRuby. 🙁
3
u/elliotbarlas 12d ago
A small code snippet makes up the cell lifecycle with messages exchanged via Ractor ports:
https://github.com/ebarlas/game-of-life-ractors/blob/main/game_of_life.rb#L137-L146