News for hackers. Stuff that matters.
Re:Someday aliens will land and all will be fine until we ex... by layer8 on Sunday September 25, 2022 @04:46PM (#32976019)
In a ring buffer, you have a start and an end pointer, not two end pointers.
Re:Someday aliens will land and all will be fine until we ex... by adhesive_wombat on Sunday September 25, 2022 @05:49PM (#32976690)
If we think of it like iterators in C++, though, begin() is Monday, and end() is the next Monday.
Re:Someday aliens will land and all will be fine until we ex... by layer8 on Sunday September 25, 2022 @06:08PM (#32976882)
If Saturday is weekend, then Sunday is one-past-the-end. ;)
Re:Someday aliens will land and all will be fine until we ex... by Quekid5 on Sunday September 25, 2022 @06:04PM (#32976846)
One-past-the-end is the way.