LMAX-Exchange/disruptor ? reverse-engineered prompt
Reverse engineered prompt
Build me a Java library for fast communication between threads, the kind of thing where one part of an app can hand off work to another with as little delay as possible.
I want it to feel production ready, with clear examples, solid tests, and enough documentation that someone can understand how to use it without already knowing the internals. Please make sure it focuses on high performance and safe coordination between producer and consumer threads, and include a simple way to plug it into a normal Java project.
If there are any current best practices or newer Java details that help, look them up online and use them. Keep the public API clean and easy to read, and make sure the project builds and runs from the command line.
Are you gonna build this?
make sure you review the code using coderabbit