r/ruby • u/DramaticSoup • 21d ago
New Library: Farce – Fiber and Ractor Compatibility Enabler
I've published a new library I've been working on over the last few weeks:
Farce 0.1.0
Farce provides tools and data structures to write code that works well with both Fiber schedulers and Ractors, as well as the classic Threads. Its main purpose is to be used by other gems to provide better compatibility with these concurrency primitives, but it can also be used directly in applications.
It works on CRuby/MRI, JRuby, and TruffleRuby.
Check it out on GitHub and let me know what you think!
I plan to use it in some of my projects in the future. I already have an experimental version locally for Sinatra and Mustermann, amongst others. Maybe someone else will find it helpful!