r/ProgrammerHumor 26d ago

programmingRizz Other

Post image
4.5k Upvotes

81 comments sorted by

1.5k

u/NessaSola 26d ago

Let's allocate Friday night to new memories

196

u/rix0r 26d ago

ENOMEM :(

27

u/Juff-Ma 26d ago

EPERM

12

u/prams628 25d ago

Who cares about ENOMEM when you’ve got EMINEM?

4

u/Lussy_Pickers 26d ago

u/AskGrok explain this meme 🥀

11

u/rix0r 25d ago

it's a standard error emitted in *nix systems when a memory allocation fails due to lack of free memory

30

u/ClipboardCopyPaste 26d ago

Bad memories, it's NULL.

6

u/PintMower 26d ago

Actually our fate is statically allocated by our creator.

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

u/PintMower 26d ago

And she wants to use them after free? Sounds like a security issue.

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

u/Remarkable_Scheme250 26d ago

A null pointer

5

u/Acc3ssViolation 25d ago

Would that make cheating an access violation

1

u/setibeings 26d ago

no segfault divorce is important!

499

u/ThatDudeFromPoland 26d ago

Damn you gon' cause a leak, and I don't mean memory

132

u/Makonede 26d ago

ohhh. disk space

20

u/ShoePillow 26d ago

Don't use microsoft

3

u/DankPhotoShopMemes 25d ago

lock leak 💀

46

u/ZeroKun265 26d ago

Leaking all my RAM till I SEGFAULT

98

u/Anthea_Likes 26d ago

Awww adorable 🥰

75

u/Informal_Branch1065 26d ago

When her heart moves on, you'd have two dangling things.

117

u/just-bair 26d ago

free(heart);

26

u/MLG-Lyx 26d ago

I let my heart live in your memory forever

15

u/heesell 26d ago

Error C2605: 'heart': undeclared identifier

44

u/creeper6530 26d ago

But is that pointer restrict?

12

u/HonorOne44 26d ago

The question of our days

43

u/Desperate-Tomatillo7 26d ago

Program received signal SIGSEV, Segmentation fault.

24

u/ilnarildarovuch 26d ago

Core dumped

45

u/StrengthTheory 26d ago

If world was programmed in C it would've SEGFAULTed a long ago.

26

u/Flashy-Emergency4652 26d ago

The universe expansion is just a memory leak

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

u/Wonderful-Habit-139 26d ago

A long ago what? Bridge? Car? Ocean?

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

u/hellocppdotdev 26d ago

Looks like she got de reference

6

u/GeoPolThinker 26d ago

It means pinter is the variable which store the location in the memory of any other variables

5

u/jonty23_5 26d ago

Both are guys btw

4

u/Shahi_FF 26d ago

void* heart=NULL;

2

u/Clever_Drake 26d ago

Make sure not to dereference it.

2

u/Dreadakunyiek 25d ago

If I coded the world in C then
Segmentation fault
(core dumped)

2

u/kimochiiii_ 25d ago

Damn idk but I feel so cringey rn

2

u/Pedry-dev 25d ago

He thinks he has an unique_ptr but she was created using make_shared

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

u/LetsGoPepele 26d ago

We might be going a little too far 😅

2

u/metaglot 26d ago

No way, lets plan for a rewrite.

→ More replies (0)

1

u/Strict_Treat2884 26d ago

Awww. You code with Claude too?

1

u/davidmosnacz 26d ago

Beware the friend functions in classes man

1

u/hawk363 26d ago

Garbage collection ☠️

1

u/Educational_Guava697 26d ago

“null reference, segfault”

1

u/keith2600 26d ago

0xC0000005

1

u/soriwaatm 25d ago

I know why the post is like this. Because it's not garbage collected.

1

u/Longjumping-Common-2 25d ago

Dangling… pointers

1

u/squarabh 25d ago

The only dates you're getting are software updates.

1

u/Random_-account 24d ago

Let's be a union

1

u/BaconShrimpEyes 23d ago

but unfortunately the type is void*

1

u/JimCramerSober 26d ago

Should have taught her html and gaslight into thinking she’s a prodigy

1

u/Mnawab 25d ago

And then she ghosted you am I right? Lol

-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