Better HN
topnewbestaskshowjobs
Log inSign up

nwtnni

19 karma · joined Nov 18, 2026 (1w ago) · 4 submissions

https://nwtnni.me
Submissions

comment 6d ago · link · parent

Oops, thanks for the pointer. I searched for standalone concurrent data structure papers and missed this one.

That said, it seems like their lock-free variant only beats the original lock-based ART under high skew? Whereas arctic out-performs ART for both uniform and skewed key distributions.

comment 6d ago · link · parent

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...)

comment 6d ago · link · parent

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.

comment 6d ago · link · parent

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.