R / PC ✳
THE PERSONAL INDEX / P C RANGARAJAN ↗

Around, and around.

Push, pop, and watch an eight-slot FIFO wrap.

LIVE MODEL / CHANGE SOMETHINGAll experiments ↗

Eight-slot FIFO with a separate count. A full buffer rejects a push; unread values are never overwritten. Read and write indices wrap modulo eight.

write = (write + 1) % capacity;
read  = (read  + 1) % capacity;

Keep exploring.