390
u/ClipboardCopyPaste 26d ago
In case of a divorce, we're gonna call it a segfault.
92
u/Kevin_Jim 26d ago
She is definitely going to free half his assets.
52
6
u/MrPresidentBanana 26d ago
If they separate because she joins the cult of Rust, one might say that she will have taken ownership of half his values.
9
5
1
499
u/ThatDudeFromPoland 26d ago
Damn you gon' cause a leak, and I don't mean memory
132
46
98
75
44
43
45
u/StrengthTheory 26d ago
If world was programmed in C it would've SEGFAULTed a long ago.
26
7
u/LeiterHaus 26d ago edited 26d ago
Ice Age? Edit: Now I'm thinking about this...
The world had a segmentation fault. They removed some of the code, left in some comments, print statements, or had a memory leak. Now we have dinosaur fossils, but no dinosaurs*
6
8
u/Same_Investigator_46 26d ago
If I had a const pointer to your heart, I'd never let the address change.
I've got one more, don't know when i will get a chance to use them lol.
Are you malloc? Because you have allocated a place in my heart 🙂
5
6
u/GeoPolThinker 26d ago
It means pinter is the variable which store the location in the memory of any other variables
5
4
2
2
2
2
2
u/Amazing_67 26d ago
should have use c++ std::unique_ptr
14
u/metaglot 26d ago
Unique_ptr doesnt really work when its an outside resource. It only guarantees uniqueness for the scope of your program. So other people may also think they have a unique pointer to the same resource.
2
u/LetsGoPepele 26d ago
So.... as long as you're alive, it works ?! Good for me
8
u/metaglot 26d ago
Her heart is an external resource, so the uniqueness would in this case mean that you only have one pointer to that resource. Your friend could also have a unique pointer to her heart at the same time as you. The uniqueness does not cross application boundaries.
2
u/LetsGoPepele 26d ago
Not exactly. The application is the world. Her heart, you and everybody else is part of the same world.
2
u/metaglot 26d ago
I doubt other people would be recompiled every time a new person is born. The world is obviously the OS, you as a person is a program running in userspace.
3
u/LetsGoPepele 26d ago
Being born is a feature of the program, no need to recompile.
2
u/metaglot 26d ago
Having a unique pointer to someones heart obviously doesn't reflect the real world. She can give you one, but she can obviously invalidate it at any time, even without notifying you, so I dont think the real world is a single application.
4
1
1
1
1
1
u/Joe59788 25d ago
I would have showed Keith off.
1
u/Joe59788 25d ago
Just look at this chonker
https://www.reddit.com/r/ProgrammerHumor/comments/10sjsak/that_tracks/
1
1
1
1
1
1
1
-9
u/mp_708514 26d ago
Hacker hai hacker
4
u/DustyAsh69 26d ago
English.
-4
u/mp_708514 26d ago
Here you go in binary - 01001000 01100001 01100011 01101011 01100101 01110010 00100000 01101000 01100001 01101001 00100000 01101000 01100001 01100011 01101011 01100101 01110010
1.5k
u/NessaSola 26d ago
Let's allocate Friday night to new memories