4 comments

  • p11p7 minutes ago
    The authors should have compared against the practical lock-free ART-tree implementation in flock, which IIUC is extremely fast: <a href="https:&#x2F;&#x2F;github.com&#x2F;cmuparlay&#x2F;flock" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cmuparlay&#x2F;flock</a>
  • nwtnni1 hour ago
    Hi, first author here!<p>I&#x27;ve actually been working on a more approachable blog post introducing the data structure; wasn&#x27;t expecting to see the paper here first! The repository is [here](<a href="https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic</a>) and our latest benchmark results are [here](<a href="https:&#x2F;&#x2F;nwtnni.github.io&#x2F;index-bench&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nwtnni.github.io&#x2F;index-bench&#x2F;</a>) (forgive the janky UI). I&#x27;m happy to answer any questions--have been quite excited about this work since I believe it&#x27;s the first time we have a lock-free tree that outperforms lock-based alternatives.
    • benjaminogles1 hour ago
      Any stories yet of your property based tests and&#x2F;or shuttle based tests exposing surprising bugs that required a particular thread schedule and particular sequence of operations?<p>I&#x27;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.
      • nwtnni49 minutes ago
        The most subtle bug I&#x27;ve been able to reproduce with shuttle-based testing is [this race in Node47](<a href="https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic&#x2F;blob&#x2F;efad26c696f28cfdbeec11377689d03f7ebed27d&#x2F;src&#x2F;raw&#x2F;node&#x2F;node_47.rs#L140-L147" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic&#x2F;blob&#x2F;efad26c696f28cfdbeec11...</a>), with [this test](<a href="https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic&#x2F;blob&#x2F;efad26c696f28cfdbeec11377689d03f7ebed27d&#x2F;src&#x2F;raw&#x2F;node&#x2F;header.rs#L199-L244" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic&#x2F;blob&#x2F;efad26c696f28cfdbeec11...</a>). 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.<p>For non-concurrent code, the [state machine tests](<a href="https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic&#x2F;blob&#x2F;efad26c696f28cfdbeec11377689d03f7ebed27d&#x2F;tests&#x2F;state_machine.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nwtnni&#x2F;arctic&#x2F;blob&#x2F;efad26c696f28cfdbeec11...</a>) comparing arctic against std::collections::BTreeMap was invaluable for finding edge cases.<p>&gt; I&#x27;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.<p>I&#x27;ve toyed with [Alloy](<a href="https:&#x2F;&#x2F;alloytools.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;alloytools.org&#x2F;</a>) 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.
    • benjaminogles1 hour ago
      I&#x27;m also curious why linearizability might be desirable over a weaker guarantee (IIUC) like sequential consistency? Apologies if this question doesn&#x27;t make sense. Based on my googling, linearizability is a stricter requirement than just staying consistent with some global ordering of the interleaved operations.
      • nwtnni41 minutes ago
        By my understanding, linearizability is a property of a <i>single</i> object accessed concurrently, like a data structure, whereas sequential consistency is a property of <i>multiple</i> objects accessed concurrently, like transactions over multiple database rows.<p>EDIT: actually I suppose that&#x27;s not quite right, since you could view arctic as multiple key-value pair objects. Then I think linearizability is usually used because it&#x27;s a composable property, whereas sequential consistency is not (<a href="https:&#x2F;&#x2F;concurrencyfreaks.blogspot.com&#x2F;2015&#x2F;11&#x2F;the-importance-of-sequential-consistency.html" rel="nofollow">https:&#x2F;&#x2F;concurrencyfreaks.blogspot.com&#x2F;2015&#x2F;11&#x2F;the-importanc...</a>)
  • colesantiago1 hour ago
    Great work, always looking for new and neat algorithms and data structures.<p>This video is very helpful.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=n8lhCeefQzg" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=n8lhCeefQzg</a>
  • 110623498917 minutes ago
    [flagged]