Why Nostr? What is Njump?
2024-06-08 12:07:04
in reply to

weilawei on Nostr: For instance, the interface of a queue is front()/back()/push()/pop(), but there's no ...

For instance, the interface of a queue is front()/back()/push()/pop(), but there's no obvious way to make that truly atomic without locking. It also requires that front() and back() have non-const variations, which means now I have to hand back a reference to something that -logically- cannot be modified or it breaks the invariants for the lock-free code.

I think most performance concerns are overblown if you're skimming the generated code, which is normal for high-perf code.
Author Public Key
npub1hygs455y8xt0a3hcqh5k4d8gdg7xvveuplj994qnzywfl8pg5ycspl98h0