UringMachine - High Perf. Concurrency for Ruby Using io_uring
summary
UringMachine implements fiber-based concurrency on Linux using io_uring, a run queue plus submission/completion queues, automatic buffer management with provided buffers, and multi-shot reads/accepts. It exposes a low-level syscall-like API, a buffered IO class, cancellation and timeouts, SSL BIO hooks, and a fiber scheduler adapter. A proof‑of‑concept Rack server and Cynthropy framework run, and a synthetic test with 50 Unix pipes shows growing advantage over threads as concurrency rises.
AI-written summary · about
chapters (15)
- 0:00Introduction to UringMachine
- 2:20Fibers for concurrency
- 9:40What is io_uring
- 13:59Combining fibers and io_uring
- 15:25UringMachine design
- 17:59Multi-shot operations
- 20:07Provided buffers
- 21:59Automatic buffer management
- 23:27UringMachine IO class
- 25:56Fiber scheduler
- 27:46SSL integration
- 29:36Performance comparison
- 31:51Current use cases
- 32:55Future plans
- 34:21Q&A
