In my experience Left-Write is the clear place to start. It's general purpose and fast for reads. Only if that is unsuitable (eg memory usage) does one design a custom data structure. There's a Rust lib implementation with links to more resources:
I only learned about the left-right schema after finishing my design. I thought I came up with something novel - it turns out it was just my ignorance:)
Still, I think the left-right crate could benefit from one optimization I came up with. This is what the lib says in the docs:
> When WriteHandle::publish is called, the writer, atomically swaps the reader pointer to point to the other T. It then waits for the epochs of all current readers to change, and then replays the operational log to bring the stale copy up to date.
I think the lib could postpone the log replaying until the next publish. Chances are all readers will have the new epoch by than = the writer thread won't have to wait at all.
> I think the lib could postpone the log replaying until the next publish. Chances are all readers will have the new epoch by than = the writer thread won't have to wait at all.
I think you can't even do a new publish if all readers haven't finished switching to a new epoch after a previous publish. Otherwise, you risk corrupting readers that are still on the original epoch.
I think the difference is that with double buffering the stale data is thrown away but here they maintain a list of operations to repeat on the stale data to bring it into sync.
Oh neat, that’s what that’s called. I did something similar in ignorance. I needed a histogram metric with multiple lock-free writers and a single reader.
- create two ring buffers (left/right; I called them hot/cold)
- store the hot ring buffer in an atomic pointer
- single reader swaps hot and cold and waits for writers to finish
If you're ok with single writer as a constraint, hazard pointers get you similar read availability at the cost of maybe more expensive writes (and similar 2x memory overhead so long as the read sections are relatively short).
Wages definitely are not driving inflation, wages will never keep up very well nor catch up.
Prices will never come down, except in unusual circumstances like overblown bubbles in market-based commodities where the market controls the value more so than underlying utility.
This is what the FT noted was the paradox of the US dollar's strength.
The problem comes with the fact that the US dollar being the global currency of trade, means that everything is originally priced in US dollars, so the strength or weakness of the US dollar does not change the price.
Furthermore the US is somewhat self-sufficient in terms of trade in key inflation areas such as food, so the dollar is ending up hurting exporters and reducing corporates profits.
Freedom and Democracy is lost. This isn't about the candidate or his policies, I don't even know what they are. It's about the foundation of Western Democracies.
The US has never been a democracy; though I certainly support it becoming one someday.
Anyway, LinkedIn can do whatever they want with the content people are willingly handing over, within the confines of the law, though even that has plenty of built in exceptions for the wealthy.
No one is suggesting the removal of rent. The solution for a higher quality of life for all involved is public housing. This is a problem that Vienna has solved.
I agree that public housing is a very good solution. However most countries have not succeeded I providing this and until that happens villifying private landlords is not helpful.
By all means advocate for social housing, an general easing of restrictions to new housing development. I'm right behind you in that.
Vilifying private landlords is helpful in advocating for public housing and denouncing Rentier Capitalism. Rather than seeking to live off the wages of others, people are better served by earning a wage themselves.
The shortage you mention, do you think it would exist or exist in as significant a degree if landlords were not buying properties they have no intention of occupying?
Under capitalism there's an incentive to manufacture a shortage to drive prices up. That's why Vienna has such a higher quality of life than anywhere in the US: robust public housing which does not have such a detrimental incentive.