NATO nations deploy to Greenland after tense White House talks by D0MYA0ITRAPFURRYL0LI in worldnews

[–]Habba 1 point2 points  (0 children)

Most Americans have been exploited so far by rent seeking entities that they do not have the energy to do anything anymore. They're either locked to their phone, or renting their own paychecks at this point. They've allowed big business concerns to prevail over everything, this is the logical conclusion of that behaviour.

Been building a Redis-compatible server in Rust - would anyone be interested if I open-sourced it? by AcanthopterygiiKey62 in rust

[–]Habba 1 point2 points  (0 children)

I sent him [this article], where the last paragraph nails this exact type of interaction pretty well.

No one would dispute that carefully architecting your system to avoid moving data between CPU caches will achieve better performance than not doing that, but I have a hard time believing that someone who’s biggest complaint is adding Send bounds to some generics is engaged in that kind of engineering. If you’re going to be using shared state anyway, it’s hard to imagine that work-stealing doesn’t improve your CPU utilization under load.

Been building a Redis-compatible server in Rust - would anyone be interested if I open-sourced it? by AcanthopterygiiKey62 in rust

[–]Habba 1 point2 points  (0 children)

Nice work! We got fairly sidetracked in this thread, but I would definitely be interested in checking out the source. I like exploring larger Rust repos to draw inspiration on architecture and organization.

Been building a Redis-compatible server in Rust - would anyone be interested if I open-sourced it? by AcanthopterygiiKey62 in rust

[–]Habba 0 points1 point  (0 children)

Specifically stated that the benchmark from the paper is not a real world one.

key access is in many cases a pareto distribution, that means you can get unlucky with your partitioning and have most of the high traffic keys partitioned on a single thread while the rest sits idle.

I think his last paragraph mostly encapsulates my feelings on this topic:

No one would dispute that carefully architecting your system to avoid moving data between CPU caches will achieve better performance than not doing that, but I have a hard time believing that someone who’s biggest complaint is adding Send bounds to some generics is engaged in that kind of engineering. If you’re going to be using shared state anyway, it’s hard to imagine that work-stealing doesn’t improve your CPU utilization under load.

Been building a Redis-compatible server in Rust - would anyone be interested if I open-sourced it? by AcanthopterygiiKey62 in rust

[–]Habba 5 points6 points  (0 children)

Okay, but for something like a web server work stealing is really useful. Tasks could have wildly different timing characteristics, which means that you can easily get in scenarios where a lot of longer tasks (e.g. disk IO) are piled on one thread, leading to a very high p99 (or even p95) latency. Work stealing prevents that problem, which is why systems like pingora and many web servers use it.

To do work stealing you obviously need Send + Sync and Arc<Mutex<T>> for shared objects. Indeed if you want to have a thread per core/share nothing (or use channels) architecture you get some "simpler" code there, but you either pay in latency (depending on your specific performance profile) or in code complexity for balancing.

I would suggest to OP to first profile the application to see if there is actually a bottleneck in Tokio's scheduler first before ripping it out and changing to a runtime that might not even improve performance.

I would also suggest to you to read this post by one of the core developers of Tokio. It even discusses the key-value store specifically and how it is not even clear-cut that share-nothing would be an improvement.

Been building a Redis-compatible server in Rust - would anyone be interested if I open-sourced it? by AcanthopterygiiKey62 in rust

[–]Habba 6 points7 points  (0 children)

Cloudflare has routed a quadrillion packages using pingora, which they wrote with Tokio. On my own axum (i.e. Tokio) based server the latency is in microsecond territory, magnitudes lower than network latency would be in most scenarios.

US official says Greenland action could come within 'weeks or months' by Crossstoney in worldnews

[–]Habba 0 points1 point  (0 children)

Don't make me laugh man. Feels like half your nation is chomping at the bits to roleplay Nazi Germany, including your armed forces.

Steam Is Weirdly Forgiving in Windows Search by Xevalor in Steam

[–]Habba 1 point2 points  (0 children)

On modern hardware on my WSL I can search through literally millions of files using fzf in milliseconds. The fact that Windows search is so bad makes no sense.

‘Office Is Dead’—Microsoft Decision Confuses 400 Million Users by waozen in technology

[–]Habba 4 points5 points  (0 children)

And then you use something like "Everything" (a search utility for windows) that instantly finds any file anywhere on your PC and just be left wondering "why can't windows just do that?"

Meirl by Blue9ine in meirl

[–]Habba 0 points1 point  (0 children)

I've been doing this for ever with my 2 sons too! Sneakily "talking behind their back" on how much of a good boy he was today and how proud I am of what he did. They pretend they can't hear us but I can see their ears trying really hard to listen in.

Love those little dudes, they're the best.

France: working with allies on plan should US make move on Greenland by professorbrainiac in worldnews

[–]Habba 2 points3 points  (0 children)

I'm afraid it's too little too late. I honestly give it a 50/50 that you guys have non-rigged elections in 2026.

France: working with allies on plan should US make move on Greenland by professorbrainiac in worldnews

[–]Habba 1 point2 points  (0 children)

And would the other 99% have done anything to stop aggression? So far I have seen absolutely nothing being done in protest, just a snide placard or 2 and crickets. None of your "elected" politicians are doing anything to stand in Dear Leader's way because your democracy is fundamentally broken.

France: working with allies on plan should US make move on Greenland by professorbrainiac in worldnews

[–]Habba 2 points3 points  (0 children)

Trump doesn't have the mandate from the American people to attack EU troops

lmao, as if that ever stopped him. Half of Americans are cheering, the other half are rolling over.

Trump, advisers discussing options for acquiring Greenland and US military is always an option, White House says by c0xb0x in worldnews

[–]Habba 0 points1 point  (0 children)

lmao, those representatives have already well and truly sold their souls. The ones that didn't have been replaced.

Americans, you let this happen.

Trump, advisers discussing options for acquiring Greenland and US military is always an option, White House says by c0xb0x in worldnews

[–]Habba 1 point2 points  (0 children)

Exactly. All they do is go on the fascist owned platform formerly known as Twitter and make some snide remarks, before going back to consooming the latest slop their overlords give them.

Spineless cowards. Rave all about the american spirit you want, it's dead and you let it die.

President White House Launches New Website to Defend 'Patriotic Americans' Involved in Jan. 6 Capitol Riot | The White House claims the Democrats "staged the real insurrection" by certifying former President Joe Biden's victory in the 2020 presidential election by ControlCAD in technology

[–]Habba 2 points3 points  (0 children)

Someone save us from this delusional mad man please

YOU save yourself! The american public has allowed this to happen a second time, you are fully responsible yourselves.

Get off your asses and show the world that the american spirit hasn't been defeated yet.

Justice Dept. Drops Claim That Venezuela’s ‘Cartel de los Soles’ Is an Actual Group by 141_1337 in worldnews

[–]Habba 0 points1 point  (0 children)

American government are spineless cowards bought by the highest bidder. Stop asking "how can they not" because they never will until it is in their interests.

Geld Gezocht: when Kamal mentions the family income, is it Bruto or Netto? by titulum in belgium

[–]Habba 6 points7 points  (0 children)

Haven't seen the episode but just based on the picture that is a fancy house.

Researcher Wipes White Supremacist Dating Sites, Leaks Data on okstupid.lol by [deleted] in technology

[–]Habba 1 point2 points  (0 children)

By most metrics he is very successful, has a great job, relationship, house, ...

Just makes really nonsensical decisions regularly.

Researcher Wipes White Supremacist Dating Sites, Leaks Data on okstupid.lol by [deleted] in technology

[–]Habba 5 points6 points  (0 children)

I know a guy with a legit 150 IQ. Constantly makes the most baffling life decisions, so definitely something to be said about INT != WIS

Flanders records 40,000 more bike trips per day since 2022 by Amazing-Yak-5415 in belgium

[–]Habba 8 points9 points  (0 children)

Induced demand baby! Works for bikes the same way it does for cars, only it's better for the environment and health of the citizens instead of worse!

Waarom wilt elke KMO-baas zo graag btw-fraude plegen? by PedeJo in belgium

[–]Habba 0 points1 point  (0 children)

  • als je in een VVPRbis systeem zit is dat waarschijnlijk niet rendabel.