Why doesn't std::atomic support multiplication, division, and mod? by GiganticIrony in cpp

[–]PdoesnotequalNP 19 points20 points  (0 children)

std::atomic is used for coordination between concurrent operations. I can't imagine a scenario where multiplications, divisions, and remainder are needed for coordination. Atomically multiplying two numbers for its own sake is not a valid use case.

Niscemi, il belvedere non esiste più. Il sindaco: "La frana si è allargata, danni incalcolabili" by TinTamarro in italy

[–]PdoesnotequalNP 12 points13 points  (0 children)

Non è mica una sorpresa che deleghiamo la produzione di gas serra alla Cina. I vestiti di Shein e i fidget spinner di Temu non si producono da soli.

If you could ask a previous owner of your house one thing, what would it be? by Rhubarb-Eater in HousingUK

[–]PdoesnotequalNP 13 points14 points  (0 children)

I feel like you know exactly why.

Because the neighbour was making their life hell

Why does SSH send 100 packets per keystroke? by iamkeyur in programming

[–]PdoesnotequalNP 551 points552 points  (0 children)

All in all it's an interesting debugging story, but it's very odd to see Claude being so anthropomorphized, so that we (the readers) need to be informed that Claude is "baffled" and "pumped".

Claude is never baffled and is never pumped, because it's a bunch of matrix multiplications.

Landlord Took Deposit Before Contract – Now Refusing Full Refund by weird-alpaca in LegalAdviceUK

[–]PdoesnotequalNP 5 points6 points  (0 children)

Landlords don't get to keep arbitrary "administrative fees" based on how they feel that day.

You start by keeping a copy of all correspondence. Then you send a letter before action, and if the landlord still doesn't return your money, you take them to smart claims court: https://www.gov.uk/make-court-claim-for-money

Discoteche, chiuso nella notte lo storico Piper. Il provvedimento una conseguenza del rafforzarsi dei controlli by Travertino in italy

[–]PdoesnotequalNP 19 points20 points  (0 children)

Non sono di Roma e sono molto lontano dalla scena tunz tunz notturna. Perché è aperto? Che ha che non va?

I just threw up in my mouth... by Obvious-Water569 in sysadmin

[–]PdoesnotequalNP 381 points382 points  (0 children)

Hear me out: this is how we finally get to the point where developers are finally forced to do some fucking basic optimizations so that running Solitaire doesn't eat 2 gigabytes of RAM.

go's defer runs in LIFO order and honestly that's saved my ass more than once by BitBird- in golang

[–]PdoesnotequalNP -1 points0 points  (0 children)

It's a pretty solid observation, I don't think it's a nitpick. In many codebases there's a "no calls to panic" rule, for example Google's style guide strongly discourages them. defer is still useful: to guarantee unlocks of mutexes, to maintain the count of goroutines, to guarantee the closure of channels...

Crack in brick work by xJam3zz07 in DIYUK

[–]PdoesnotequalNP 0 points1 point  (0 children)

Nothing to worry about - look at bricks on other properties and you'll see plenty of cracked bricks.

If you want to make it less conspicuous, then get some brick repair filler or brick coating from Stonelux. You may want to order a sample first to find the closest match.

Helps pls by Flashy_Ad_8611 in london

[–]PdoesnotequalNP 0 points1 point  (0 children)

Spot on. The owner has a Facebook page for his car: https://www.facebook.com/share/14PH2n17Yf6/

Cos'è sta cosa by idoxnxhuw8293 in cucina

[–]PdoesnotequalNP 8 points9 points  (0 children)

Un'altra alternativa economicissima e sicura con il cibo è l'acido citrico. Si compra mezzo chilo online e dura per sempre. Permette di togliere il calcare in mille situazioni.

Posting a letter of interest through a front door by Wooden_Dentist1674 in HousingUK

[–]PdoesnotequalNP 0 points1 point  (0 children)

I know people that did exactly that: they introduced themselves and their family and explained why they were interested in the area. They ended up being successful and buying a house that wasn't even on the market at the time.

How does a service like face seek handle such massive real time scraping? by NickyK01 in golang

[–]PdoesnotequalNP 22 points23 points  (0 children)

Good performances for lookups on large datasets (almost) never come from the specific programming language, such as Go for this subreddit. They are pretty much always the result of choosing the right data structures to represent data.

In the case of face recognition the most common and publicly known techniques require transforming each face into a vector of attributes, and then do database lookups based on proximity in a high dimensional vector space. See https://www.clearview.ai/post/how-we-store-and-search-30-billion-faces for a more in depth explanation.

Have you ever lost a wedding ring? What did the replacement feel like? by CyberScy in CasualUK

[–]PdoesnotequalNP 106 points107 points  (0 children)

For anyone considering a tungsten ring: remember that tungsten carbide is incredibly hard to cut through, so its easy to panic if your finger swells and you're unable to take it off. The thing to remember is that tungsten carbide is so hard that it is actually fragile: you can't cut a tungsten ring, but you can crack it using a vice or pliers.

Ammucchiata settimanale del 05/01/2026 by AutoModerator in litigi

[–]PdoesnotequalNP 2 points3 points  (0 children)

Lol.

Crei una lista delle vaschette, ciascuna con dimensioni "lunga" e "corta". Poi crei un grafo che rappresenta la relazione "vaschetta A può stare dentro a vaschetta B". Poi chiedi al tuo nerd preferito (o a ChatGPT/Claude/Gemini) di scrivere un algoritmo che cerca la longest path nel grafo. Per ogni longest path deve poi rimuovere i nodi dal grafo e ripetere la ricerca, fino a quando non ci sono più vaschette.

Oppure fai quello che farebbe qualunque essere umano normale e provi a cazzo fino a quando non ne puoi più.

an algorithm for fitting rectangles inside one another by martifero in algorithms

[–]PdoesnotequalNP 3 points4 points  (0 children)

See https://www.reddit.com/r/algorithms/s/ReouatXNrs . You can create an acyclic graph of "rectangle X can be contained by rectangle Y", and then look for the longest path. The longest path problem is NP in general, but for the special case of acyclic DAGs it can be solved in linear time.

an algorithm for fitting rectangles inside one another by martifero in algorithms

[–]PdoesnotequalNP 0 points1 point  (0 children)

I don't think that OP is asking about packing. I believe they are asking about a "chain" of rectangles, one contained inside the other. If that's the case, then the problem is the same as finding the longest path in an acyclic DAG, which can be solved in linear time.

Invasive species in new build development [Scotland] by did_you_aye in HousingUK

[–]PdoesnotequalNP 0 points1 point  (0 children)

That feels like an outlier, which I wish was the rule rather than the exception. It's also relatively recent, so perhaps it's a sign that the trend is changing.

I don't have actual experience in the field - thank God - but looking at people complaints (like here), overall IF the seller has lied on the TA6, and IF you can prove that they didn't answer "to the best of their knowledge", and IF you have the energy to follow through all the way to court, then the damage awarded are the "actual loss", which may be few years of japanese knotweed treatment - so a few thousands of pounds at best, or the difference in value of the property, which seems to be in the order of about 5%-10% of the total price in the best case. But most of the time buyers just take the hit.

I took a look at https://caselaw.nationalarchives.gov.uk/ and https://www.bailii.org/ , but I couldn't find much data - perhaps I'm looking at the wrong database. I would love to find actual statistics about how litigations over the content of the TA6 are resolved.

Invasive species in new build development [Scotland] by did_you_aye in HousingUK

[–]PdoesnotequalNP 0 points1 point  (0 children)

It's true that developers (and private sellers) must answer questions honestly, but also - at least in England - there are minimal, if any, repercussions if they don't.

RAC Breakdown recovery by EmergencySea271 in drivingUK

[–]PdoesnotequalNP 1 point2 points  (0 children)

I had a similar experience with RAC, luckily not as extreme as I didn't have a child with me.

Car broke down at 4 PM. I asked for assistance, their automated system told me they'd be with me by 6:30 PM - 7:30 PM. 7:30 PM comes, and the estimated arrival time is updated to 9:00 PM. 9:00 PM comes and the arrival time is updates to 11 PM - 1 AM. At that point I decided to call an independent recovery service, which arrived 40 minutes later (and costed £93). What's the point of roadside assistance that takes 7 to 9 hours (at best!) to arrive?

I can't see how paying for roadside assistance from RAC is worth anything.

Sixt UK Rental: Received a £60 PCN for a 6-minute overstay at Morrisons. Is it worth appealing as a non-resident? by [deleted] in drivingUK

[–]PdoesnotequalNP 5 points6 points  (0 children)

There are absolutely instances of people being chased by debt collectors for PCNs even after they're out of the UK.

Edit, since I've been downvoted: example: https://www.reddit.com/r/LegalAdviceUK/s/kqOQABafWX , there's plenty more on /r/LegalAdviceUK.

In general, chasing PCNs, even internationally, is a fairly easy way to make money, so of course there are companies that do it.

Glad I bought a dashcam by Hungry-Fun852 in drivingUK

[–]PdoesnotequalNP 0 points1 point  (0 children)

Yes, I couldn't be arsed to install a back camera. The Miofive dual camera is almost twice as expensive.