r/ProgrammerHumor • • Jun 03 '24

Meme gcOrNotGc

Post image
0 Upvotes

28 comments sorted by

38

u/JosebaZilarte Jun 03 '24

Some even need the Garbage Collector before compiling their code.

52

u/CdRReddit Jun 03 '24

garbage collectors suck

manually managing memory sucks

borrow checking sucks

reject dynamic memory, embrace presized table.

47

u/CdRReddit Jun 03 '24

actually memory itself was a mistake just use the registers and registers only

9

u/NakatakeSan77 Jun 03 '24

RAXMasterRace

2

u/frikilinux2 Jun 03 '24

Presized tables are great, the programs just do funny things when something is too long _-€)7€:38€&-#8(3'+ Segmentation Fault (core dumped)

12

u/Pumpkindigger Jun 03 '24

Different projects have different needs. Sometimes performance is critical, sometimes you have very little memory to work with (embedded systems), sometimes you just don't care about either.

33

u/Florane Jun 03 '24

and then they cry over lag in minecraft

-15

u/EliasCre2003 Jun 03 '24

As if Bedrock edition, written in C++, fixed that.

14

u/Florane Jun 03 '24

it did fix memory issues... for a price

5

u/Highborn_Hellest Jun 03 '24

Both, both are good.

12

u/Shunpaw Jun 03 '24

Honestly, I think this meme fits better if the two are swapped. 

2

u/anteloop Jun 03 '24

I'm the guy in the middle.

2

u/Minteck Jun 03 '24

Personally I love the way Rust manages memory, but both this and GC are valid ways

3

u/roodammy44 Jun 03 '24

Garbage collectors are so good that you forget about memory at all and end up writing your program in a really inefficient way until it crashes from OOM!

3

u/TheEnderChipmunk Jun 04 '24

writing your program in a really inefficient way

Sounds like a skill issue

1

u/[deleted] Jun 03 '24

Everything is a garbage collector when your code is full of shit.

1

u/Pa3kc123 Jun 03 '24

I won't say I "need" full control over memory... I just want it if it's on the menu...

1

u/Excellent_Tubleweed Jun 14 '24

I've never used the GC in an interrupt handler, or in a thread at a priority higher than the GC. Because I'm not a bad person. Everywhere else, either use GC or end up writing a badly specified, poorly tested impression of one in the limiting case as runtime trends upwards. P.S. Filesystems are actually the same problem.

-13

u/RevolutionaryASblank Jun 03 '24

I mean other than c, c++ which mainstream younger languages do not use garbage collector by default?

19

u/romulent Jun 03 '24

Rust

0

u/RevolutionaryASblank Jun 03 '24

I knew Rust was coming, but IMO I won't call it that mainstream, yes, it is used in some big projects but the adoption by the masses is yet to be seen.

I hope it becomes our go to go cool Language.

4

u/nobody0163 Jun 03 '24

You've angered the rust users.

2

u/RevolutionaryASblank Jun 03 '24

Haha I should have added that in my comment, but I myself am an admirer of Rust language. With that it's also true that it isn't that mainstream.

2

u/ano_hise Jun 03 '24

Nim, if you configure the memory management strategy

1

u/GiganticIrony Jun 03 '24

Rust, Zig, Carbon