today at 12:23 PM
Hi, first author here!
I've actually been working on a more approachable blog post introducing the data structure; wasn't expecting to see the paper here first! The repository is [here](https://github.com/nwtnni/arctic) and our latest benchmark results are [here](https://nwtnni.github.io/index-bench/) (forgive the janky UI). I'm happy to answer any questions--have been quite excited about this work since I believe it's the first time we have a lock-free tree that outperforms lock-based alternatives.
today at 12:52 PM
Any stories yet of your property based tests and/or shuttle based tests exposing surprising bugs that required a particular thread schedule and particular sequence of operations?
I've always been curious whether there was a way to specify the behavior of a concurrent data structure in something like an LTL to prove it correct without having to implement a reference implementation or write an invariant checker. Although I guess the spec itself plays the role of a reference implementation if it is that sophisticated.
today at 1:19 PM
The most subtle bug I've been able to reproduce with shuttle-based testing is [this race in Node47](https://github.com/nwtnni/arctic/blob/efad26c696f28cfdbeec11...), with [this test](https://github.com/nwtnni/arctic/blob/efad26c696f28cfdbeec11...). I did run into some issues trying to compose proptest with shuttle, i.e., writing a test that exercises both random inputs and random interleavings on that input.
For non-concurrent code, the [state machine tests](https://github.com/nwtnni/arctic/blob/efad26c696f28cfdbeec11...) comparing arctic against std::collections::BTreeMap was invaluable for finding edge cases.
> I've always been curious whether there was a way to specify the behavior of a concurrent data structure in something like an LTL to prove it correct without having to implement a reference implementation or write an invariant checker.
I've toyed with [Alloy](https://alloytools.org/) to verify a small piece of lock-free code in the past, but am no expert. I think verification of lock-free data structures (esp. under weak memory models) is an area of active research.
today at 12:57 PM
I'm also curious why linearizability might be desirable over a weaker guarantee (IIUC) like sequential consistency? Apologies if this question doesn't make sense. Based on my googling, linearizability is a stricter requirement than just staying consistent with some global ordering of the interleaved operations.
today at 1:27 PM
By my understanding, linearizability is a property of a single object accessed concurrently, like a data structure, whereas sequential consistency is a property of multiple objects accessed concurrently, like transactions over multiple database rows.
EDIT: actually I suppose that's not quite right, since you could view arctic as multiple key-value pair objects. Then I think linearizability is usually used because it's a composable property, whereas sequential consistency is not (https://concurrencyfreaks.blogspot.com/2015/11/the-importanc...)
today at 1:05 PM
Great work, always looking for new and neat algorithms and data structures.
This video is very helpful.
https://www.youtube.com/watch?v=n8lhCeefQzg