r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

9

u/suvlub Oct 07 '26

And Godot uses some customized not-quite-python

28

u/agocs6921 Oct 07 '26

It's not customised, it's custom. Also, it has reference counting. Not garbage collection in the sense like Java, Go, or C#. It's more like how Windows does it.

1

u/WilkerS1 Oct 08 '26

i genuinely thought reference counting was a thing used in garbage collection for Godot

1

u/Acceptable_Handle_2 Oct 08 '26

It is if you want it to be, that's what RefCounted objects do.

1

u/WilkerS1 Oct 08 '26

oh... so it is in fact, not a default behavior in Godot?

1

u/Acceptable_Handle_2 Oct 08 '26

it is a thing used in garbage collection, just not the default thing.

1

u/agocs6921 Oct 08 '26

It is a form of garbage collection, but it's not garbage collection like in those languages I mentioned because those stop your program from executing while they are finding and freeing objects, Godot does not.

11

u/nekomata_58 Oct 07 '26

Godot has c# bindings as well

11

u/sfmqur Oct 07 '26 edited Oct 07 '26

Godot's GDScript isn't a garbage collected language, it is reference counted/manually managed. Once an object(Node, Object) is no longer referenced you have to free it. Some objects are refrence counted (Respurces mostly). And when the reference count gets to zero. The engine frees the memory.

Edit: clarity.

2

u/TheMusicalArtist12 Oct 07 '26

Objects are manually controlled, but most things inherit RefCounted, which uses a reference counter. Meaning that usually you don't need to manually free things, you just gotta stop holding onto it

0

u/not_some_username Oct 07 '26

It’s C++ under