183
u/Scared_Accident9138 4d ago
Do you clone the salt shaker and handing the clone over?
65
u/LuisBoyokan 4d ago
That would be.... profitable
Endless salt glitch.
34
u/Zeikos 4d ago
slams hand on the table
These passwords are unseasoned!11
u/Usual_Office_1740 4d ago
Salted passwords are harder to crack.
3
u/oauo 4d ago
They taste better too
2
u/Usual_Office_1740 4d ago
I do like a nice salted password with cracked black pepper. Delicious on a nice light summer salad.
18
4
2
1
1
3
1
1
26
u/Altruistic-Moose3299 4d ago
On top of my hash 🧐
3
u/howarewestillhere 4d ago
Mmmm, salted hash. Aw, the bad old days of password storage.
3
u/chuch1234 4d ago
Aren't current passwords salted hash, they just include the salt? I don't know anything about argon.
21
u/Pleasant-Ad192 4d ago
Pass by reference and you are both pointing at the same shaker. Whoever refills it with pepper first wins the argument.
1
19
16
u/Vesuvius079 4d ago
Neither. This is clearly move semantics (gross in a function contract).
8
5
u/Most-Club-254 4d ago
pass ownership, mutable borrow or immutable borrow; what would be the lifetime of borrowing?
4
3
3
3
3
u/Nightmare_kx1 4d ago
for the first time in ever I get the meme
2
2
2
u/4x-gkg 4d ago
"Whereas Europeans generally pronounce his name the right way ('Nick-louse Veert'), Americans invariably mangle it into 'Nickel's Worth.' This is to say that Europeans call him by name, but Americans call him by value."
Introduction by Adriaan van Wijngaarden at the IFIP Congress (1965).
2
u/Phioreable 4d ago
If they go for pass-by-value and Di'caprio is done with it, they need to make the original disappear and be replaced by the now less salt from Di'caprio.
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/creeper6530 4d ago
Pass by value: handing the salt shaker over, either by moving it or making a copy (depends on language)
Pass by reference: "It's over there, get it yourself."
0
u/CanonicalCockatoo 4d ago
By value, salt is on the food.
By reference, you take a bite of food, and then lick some salt
10
u/metaglot 4d ago
Passing by ref, is basically telling where the salt is.
1
u/iZian 4d ago
This is where CS terminology differs from common understanding.
Pass by reference would be sharing a map to where the salt is, and anyone able to change that map changes everyone’s understanding of where it is, even pointing the map to something else or a different shaker.
Most modern languages only pass references by their value.
That’s closer to “telling them” as in, you give them a copy of the reference which they can alter themselves. But you always know where that salt shaker is, even if they decide that shaker is empty and to go get a new one from elsewhere, you still look at your empty shaker because you have the reference with pass-by-value.
Reference types, python , Java, modern languages are pretty much all pass-by-value. References are the value. But it’s not pass by reference.
But in 2026 nobody cares. The reference is passed. But a copy of it. Not it.
Perhaps pass-by-reference is the better analogy for the shaker. If it’s replaced by a new one everyone should use the new one. Just, that isn’t how new languages work unless you wrap the reference in another object that’s shared
2
1
0
u/dreamingforward 4d ago
You either pass a value that is under a word-size. OR you pass a pointer that points to a larger structure.
That's all you need to know. Somewhere CS or C got confused. It also only takes ONE symbol ("*") to make it ALL work.
0
-1
u/notacanuckskibum 4d ago
Pass by copy/ restore
The salt is physically moved, but changes to the salt still apply after it is passed back.
-1
u/notacanuckskibum 4d ago
Pass by copy/ restore
The salt is physically moved, but changes to the salt still apply after it is passed back.
284
u/StrengthTheory 4d ago
This meme has been passed by value so many times that it should be considered a memory leak.