News for hackers. Stuff that matters.
Re:Show HN: Chaotic Life – deterministic behavior from unsyn... by omazurov on Monday August 14, 2017 @09:58AM (#15008567)
I'm not aware of any unsynchronized concurrent queue implementation. Being lock-free implies using Compare-And-Swap - a very powerful synchronization primitive.

I agree that the current implementation won't survive integer overflow, Java or not. That's fixable, though. Theoretically, algorithm's description would still use unbounded integers.

I disagree on atomic reads/writes. If the algorithm can deal with totally wrong values, why would partially wrong values make any difference? Atomic reads/writes certainly help with error probabilities but it's not clear to me to what extent. A C implementation will be as robust, Java doesn't add any magic here. A totally different CPU with no guarantee of atomic 4-byte updates would be needed. Do those exists?

Re:Show HN: Chaotic Life – deterministic behavior from unsyn... by burgerdev on Monday August 14, 2017 @04:03PM (#15012297)
> I'm not aware of any unsynchronized concurrent queue implementation.

Would the queues from https://www.liblfds.org/ qualify?

Re:Show HN: Chaotic Life – deterministic behavior from unsyn... by omazurov on Monday August 14, 2017 @05:31PM (#15013135)
No, as it clearly qualifies for the second part of my statement:

> Being lock-free implies using Compare-And-Swap - a very powerful synchronization primitive.

Just look inside https://github.com/liblfds/liblfds7.1.1/blob/master/liblfds7...

It's full of synchronization stuff. By "unsynchronized" I mean NOT using that.