Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

polyphony

> 编程语言
Open source

Fine-grained concurrency for Ruby

662 stars0 likes1 views
WebsiteGitHub

About

Fine-grained concurrency for Ruby

Polyphony: Fine-Grained Concurrency for Ruby

Polyphony | pəˈlɪf(ə)ni |

  1. Music the style of simultaneously combining a number of parts, each forming an individual melody and harmonizing with each other.

  2. Programming a Ruby gem for concurrent programming focusing on performance and developer happiness.

What is Polyphony?

Polyphony is a library for building concurrent applications in Ruby. Polyphony harnesses the power of Ruby fibers to provide a cooperative, sequential coroutine-based concurrency model. Under the hood, Polyphony uses io_uring or libev to maximize I/O performance.

Features

  • Ruby fibers as the main unit of concurrency.
  • Structured concurrency coupled with robust exception handling.
  • Message passing between fibers, even across threads!
  • High-performance I/O using the core Ruby I/O classes and io_uring with support for advanced I/O patterns.

Usage

  • Installation
  • Overview
  • Tutorial
  • All About Cancellation: How to Stop Concurrent Operations
  • Advanced I/O with Polyphony
  • Cheat-Sheet
  • FAQ

Technical Discussion

  • Concurrency the Easy Way
  • How Fibers are Scheduled
  • Exception Handling
  • Extending Polyphony
  • Polyphony's Design

Examples

For examples of specific use cases you can consult the bundled examples in Polyphony's GitHub repository.

Contributing to Polyphony

Issues and pull requests will be gladly accepted. Please use the Polyphony git repository as your primary point of departure for contributing.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Cconcurrencyio-uringiouringlibev

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言