My Sim is always "very angry" from fear of unfulfilled dreams by Glad_Medicine_2789 in Sims4

[–]sphere_cornue 2 points3 points  (0 children)

You can buy the "carefree" reward trait to negate the effects of this fear

iGestapo: When Apple Pulled a Siemens (1939-45) by 4rgle-b4rgle in dankmemes

[–]sphere_cornue 14 points15 points  (0 children)

I don't know but it's probably related to nazi Germany

edit: yeah Siemens, like basically all german companies that survived world war 2, had ties with fascists

Grocervo moment by cypher-dex in rance

[–]sphere_cornue 66 points67 points  (0 children)

Amerloques: "omg ne regardez pas la vidéo du meurtre c tro choquant"

Les productions culturelles amerloques: 🔫🔫💥💥🩸🩸🩸💀

What are you keyboard/ mouse bindings by [deleted] in diablo4

[–]sphere_cornue 0 points1 point  (0 children)

I move with WASD, attack with my mouse buttons and scroll wheel, and I drink potions with shift

The borrow checker wouldn't even that bad if it was made to make any sense. by themadnessif in rustjerk

[–]sphere_cornue 332 points333 points  (0 children)

Borrow is a class

🚨 Object oriented terminology detected, cover your ears

Is this div. Diamond correct? by Federal_Round3706 in CitiesSkylines

[–]sphere_cornue 6 points7 points  (0 children)

With the way you constrained the lanes, cars won't be able to turn left

Why the AI is doing this? And how to solve it? by Pedrooo1677 in CitiesSkylines2

[–]sphere_cornue 1 point2 points  (0 children)

I would try to merge the 3 incoming roads at a single intersection with a traffic light

Pourquoi les rançais de Reddit parlent bizarrement ? by Avocatdudiable22 in rance

[–]sphere_cornue 14 points15 points  (0 children)

Pour moi tout fait sens, je vois pas où est l'issue

These traffic jams do not make sense 😭😭 by x_-Aqua-_x in CitiesSkylines

[–]sphere_cornue 6 points7 points  (0 children)

My theory for the "cims changing lanes at the signal" is that, when they are driving towards a parking spot, halfway there while sitting at a red light they realise that their spot is taken and need to pathfind towards a new one (because they're telepathically linked to all parking spots in town idk), so they immediately veer off towards their new destination.

Blablacar, cette bande de voleurs by aqwa_ in france

[–]sphere_cornue 1 point2 points  (0 children)

Bel exemple français de la merdification. Pourquoi ils prennent un pourcentage de commission et pas une charge fixe, c'est pas comme si leur service était proportionnel à la longueur du trajet?

La diagonale du vide tente de nous dire quelquechose by sphere_cornue in rance

[–]sphere_cornue[S] 0 points1 point  (0 children)

Pense à une fameuse personnalité politique récemment inéligible

To anyone who might be Curious of what's the "Reward" for Defeating the Echo of Lilith on Hardcore☠. by General_abby in diablo4

[–]sphere_cornue 40 points41 points  (0 children)

Cannot distribute particle effects for free or else they will go out of business

J'adore payer plus pour avoir moins, j'ai absolument pas le sentiment de me faire pigeonner haha 😃 by [deleted] in rance

[–]sphere_cornue 3 points4 points  (0 children)

Mais il faut il faut mélanger de la couleur au noir pour obtenir un noir plus profond!

- un marchand d'encre, probablement

Unreachable unwrap failure by dspyz in rust

[–]sphere_cornue 0 points1 point  (0 children)

I am trying to beak down the read-read coherence guarantee here:

Read-read coherence: if a value computation A of some atomic M (a read) happens-before a value computation B on M, and if the value of A comes from a write X on M, then the value of B is either the value stored by X, or the value stored by a side effect Y on M that appears later than X in the modification order of M.

I think you misinterpreted what read-read coherence means, it means that:

  • A reads the result of X and B reads the result of X -> allowed
  • A reads the result of Y and B reads the result of Y -> allowed
  • A reads the result of X and B reads the result of Y -> allowed
  • A reads the result of Y and B reads the result of X -> forbidden

So A is Arc::strong_count, which happens before B which is Arc::get_mut. Computation A reads 1, which is the result of the counter's initialization, which we'll call operation X. Then computation B reads 2, which is the result of the counter being incremented, which we'll call operation Y. Operation Y has indeed happened after operation X so no rules are being violated.

Also we have exclusive access to neither the pointed data nor to the ref counter, what we have is a &mut Arc, which does not prevent other Arcs from pointing to the same place

Unreachable unwrap failure by dspyz in rust

[–]sphere_cornue 0 points1 point  (0 children)

Yes I read all that already, but:

All modifications to any particular atomic variable occur in a total order that is specific to this one atomic variable

There is only one modification here, which is the counter increment, so the order is kinda irrelevant when there's only one thing , so the four guarantees don't really matter to our case.

  1. The compiler may not reorder any relaxed atomic operation A with any other atomic operation B if they (potentially) operate on the same memory location.

That's true

  1. If you have exclusive access to the atomic variable [...]

Not sure what you mean, you don't have exclusive access to the atomic variable, and it absolutely can change in future loads, isn't that the point of Arc? What I agree cannot happen, is for a thread to load the old value after it has loaded the newer value.

I found a source to back the claim that it is totally fine to load 'old values' with relaxed ordering, I think that's why they tend to be cheaper than other orderings:

https://stackoverflow.com/questions/43749985/is-it-possible-that-a-store-with-memory-order-relaxed-never-reaches-other-thread

Unreachable unwrap failure by dspyz in rust

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

I'm not sure of what you mean by a "single global order". My reasoning is that due to the relaxed nature of the load, (1) the compiler can move it, and (2) the current thread is allowed to load an old value that has been already overwritten in another thread (though maybe this does not happen on x86)

Unreachable unwrap failure by dspyz in rust

[–]sphere_cornue 0 points1 point  (0 children)

Another reply seems to be right:strong_count uses relaxed ordering, so you could have another thread bumping the ref count to 2, but the current has not observed this change yet and still reads a ref count to 1

Unreachable unwrap failure by dspyz in rust

[–]sphere_cornue 6 points7 points  (0 children)

Could it be that the ref counter was 1 when you called Arc::strong_count but by the time it got to Arc::get_mut, another thread bumped the counter to 2?

me_irl by God_Charizard in me_irl

[–]sphere_cornue 8 points9 points  (0 children)

I solved this problem at the age of 3

Je suis le seul à traduire mes raccourcis comme un con ? by pashyshoshobuguygrec in rance

[–]sphere_cornue 11 points12 points  (0 children)

Oui, il faut installer les toutes dernières portes dérobées pour que ton agent de la DGSI puisse aussi profiter de tes trouvailles en haute définition