Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
csl
on Dec 14, 2016
|
parent
|
context
|
favorite
| on:
I've been writing ring buffers wrong all these yea...
This seems to use modulus. The whole point of the mmap trick is to get the kernel/MMU to do the work for you, IIRC.
EDIT: Oops, I see they use mirrored memory here as well.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
EDIT: Oops, I see they use mirrored memory here as well.