Hacker News new | ask | show | jobs
by tialaramex 19 days ago
> There are trade-offs everywhere, and it's best to pick the data structure that fits your needs just like any other problem.

That part I think is most crucial. Neither "Lock-free" nor "Wait-free" are vague terms for how awesome a thing is, they're specific properties which are expensive to provide, if you need such a property it was indispensable, if you don't need it then you can likely do better without it.

1 comments

Exactly. I mentioned that those queues aren't formally obstruction-free because the context of the conversation was new developments in wait-free queues, even though I have only needed the guarantee once in my career and end up using descendants of the Vyukov MPMC cycle queue in practically all other cases because they are better on the metrics that count, like speed.
What was the one time when you need something wait free? I'm assuming interacting with hardware?
Hard real-time industrial automation. Worst job ever, by the way.
I don't think any of my immediate opportunities are "real-time industrial automation" shaped, but, can't hurt to ask: Do you think it was the work that inherently was the worst ever, or was there some other enviromental factor (e.g. terrible wages, for some reason your office was up six flights of stairs with no elevator, colleague insisted on playing music from your least favourite genre at maximum volume) ?
It was the work itself. Embedded systems are already known for bad tooling. Once safety certification gets thrown in the mix you're limited to ancient broken versions of GCC that have been rebranded and certified, and are thus more fit for purpose than newer versions of GCC that actually work. MISRA, its derivatives, and the associated static analysis tooling ecosystem are also low quality evolutionary dead ends that ignore the state of the art in both academia and industry.