Decide whether an agent writes a lock-free ring buffer
Your task
Your trading system needs a lock-free ring buffer in C++, passing market data from 1 producer thread to 1 consumer thread with the lowest possible latency. A subtle bug here means lost or duplicated messages under load. A junior engineer wants an agent to generate the whole thing.
Would you let the agent write it? Decide where an assistant helps and where it stops being the right tool.
It covers
- When not ai
- Novel problem