r/brainfuck • • Apr 05 '22

Average bf user

Post image
81 Upvotes

8 comments sorted by

11

u/c001_b01 Apr 05 '22

For those who don’t get it, it’s a memory leak

7

u/Ning1253 Apr 05 '22

Good joke btw!! What follows is a mild critique based on me being nitpicky - don't take it to heart, the joke is really good, I just feel like pointing this out:

Technically, since the original BF spec comes with a bounded memory of 40kB, and since it does not define cyclical pointers but instead says there will be "undefined behaviour" if attempting to go past the memory boundaries, I should argue that as soon as you reach 40kB a proper implementation would crash and hence would not cause a memory leak

Once again, I'm just being super nitpicky - the joke was great!!

5

u/c001_b01 Apr 06 '22

Wouldn't it still be a memory leak though because by definition a memory leak is when memory is used but cannot be accessed again until manually stopped or the program crashes? Correct me if I'm wrong (because honestly, I didn't understand half of those words lol) but I think the whole point of a memory leak is it usually ends in a crash.

1

u/Ning1253 Apr 06 '22

Hmm... Honestly I'm not sure. My personal understanding of a memory leak is that it causes the program to ask for more and more ram until it is limited by the size of the physical ram on the computer, and crashes then.

Then again that's my own understanding, not some kind of rigorous definition - so your version of the definition might actually be the correct one.

Not too sure, I'll think on it for a bit!

2

u/c001_b01 Apr 06 '22

I think we’re both correct it’s just the way it was worded in your original comment confused me lol

7

u/Flesh_Bag Apr 05 '22

XD This really needs to go in r/ProgrammerHumor too.

4

u/c001_b01 Apr 10 '22

On it lol

1

u/Skyradder Nov 15 '23

returns "Error, Out of Memory"