{"id":13415605,"url":"https://github.com/digital-fabric/polyphony","last_synced_at":"2025-10-27T18:31:18.282Z","repository":{"id":32955134,"uuid":"145374867","full_name":"digital-fabric/polyphony","owner":"digital-fabric","description":"Fine-grained concurrency for Ruby","archived":false,"fork":false,"pushed_at":"2024-03-25T09:56:08.000Z","size":3101,"stargazers_count":658,"open_issues_count":9,"forks_count":17,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-09-30T23:17:27.762Z","etag":null,"topics":["concurrency","io-uring","iouring","libev","networking","polyphony","ruby","ruby-fibers","structured-concurrency"],"latest_commit_sha":null,"homepage":"https://www.rubydoc.info/gems/polyphony","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digital-fabric.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"noteflakes"}},"created_at":"2018-08-20T06:22:07.000Z","updated_at":"2024-09-12T23:07:50.000Z","dependencies_parsed_at":"2023-01-16T22:45:14.584Z","dependency_job_id":"9b459027-8497-47ca-892b-dc2de9d1dbcb","html_url":"https://github.com/digital-fabric/polyphony","commit_stats":{"total_commits":1719,"total_committers":11,"mean_commits":"156.27272727272728","dds":"0.014543339150668966","last_synced_commit":"dc5bb6fc43196ef71cf9bda5de0bfb65ef57ae0f"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digital-fabric%2Fpolyphony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digital-fabric%2Fpolyphony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digital-fabric%2Fpolyphony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digital-fabric%2Fpolyphony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digital-fabric","download_url":"https://codeload.github.com/digital-fabric/polyphony/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238461548,"owners_count":19476343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrency","io-uring","iouring","libev","networking","polyphony","ruby","ruby-fibers","structured-concurrency"],"created_at":"2024-07-30T21:00:50.663Z","updated_at":"2025-10-27T18:31:17.841Z","avatar_url":"https://github.com/digital-fabric.png","language":"C","funding_links":["https://github.com/sponsors/noteflakes"],"categories":["C","Concurrency and Parallelism","Ruby"],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/digital-fabric/polyphony/raw/master/docs/assets/polyphony-logo.png\"\u003e\n\n# Polyphony: Fine-Grained Concurrency for Ruby\n\n\u003ca href=\"http://rubygems.org/gems/polyphony\"\u003e\n  \u003cimg src=\"https://badge.fury.io/rb/polyphony.svg\" alt=\"Ruby gem\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/digital-fabric/polyphony/actions?query=workflow%3ATests\"\u003e\n  \u003cimg src=\"https://github.com/digital-fabric/polyphony/workflows/Tests/badge.svg\" alt=\"Tests\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/digital-fabric/polyphony/blob/master/LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\"\u003e\n\u003c/a\u003e\n\n\u003e Polyphony \\| pəˈlɪf\\(ə\\)ni \\|\n\u003e\n\u003e 1. _Music_ the style of simultaneously combining a number of parts, each\n\u003e    forming an individual melody and harmonizing with each other.\n\u003e\n\u003e 2. _Programming_ a Ruby gem for concurrent programming focusing on performance\n\u003e    and developer happiness.\n\n## What is Polyphony?\n\nPolyphony is a library for building concurrent applications in Ruby. Polyphony\nharnesses the power of [Ruby fibers](https://rubyapi.org/3.2/o/fiber) to provide\na cooperative, sequential coroutine-based concurrency model. Under the hood,\nPolyphony uses [io_uring](https://unixism.net/loti/what_is_io_uring.html) or\n[libev](https://github.com/enki/libev) to maximize I/O performance.\n\n## Features\n\n* Ruby fibers as the main unit of concurrency.\n* [Structured concurrency](https://en.wikipedia.org/wiki/Structured_concurrency)\n  coupled with robust exception handling.\n* Message passing between fibers, even across threads!\n* High-performance I/O using the core Ruby I/O classes and\n  [io_uring](https://unixism.net/loti/what_is_io_uring.html) with support for\n  [advanced I/O patterns](docs/advanced-io.md).\n\n## Usage\n\n- [Installation](docs/installation.md)\n- [Overview](docs/overview.md)\n- [Tutorial](docs/tutorial.md)\n- [All About Cancellation: How to Stop Concurrent Operations](docs/cancellation.md)\n- [Advanced I/O with Polyphony](docs/advanced-io.md)\n- [Cheat-Sheet](docs/cheat-sheet.md)\n- [FAQ](docs/faq.md)\n\n## Technical Discussion\n\n- [Concurrency the Easy Way](docs/concurrency.md)\n- [How Fibers are Scheduled](docs/fiber-scheduling.md)\n- [Exception Handling](docs/exception-handling.md)\n- [Extending Polyphony](docs/extending.md)\n- [Polyphony's Design](docs/design-principles.md)\n\n## Examples\n\nFor examples of specific use cases you can consult the [bundled\nexamples](https://github.com/digital-fabric/polyphony/tree/master/examples) in\nPolyphony's GitHub repository.\n\n## Contributing to Polyphony\n\nIssues and pull requests will be gladly accepted. Please use the [Polyphony git\nrepository](https://github.com/digital-fabric/polyphony) as your primary point\nof departure for contributing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigital-fabric%2Fpolyphony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigital-fabric%2Fpolyphony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigital-fabric%2Fpolyphony/lists"}