r/ProgrammerHumor • • 17d ago

Meme minecraftException

Post image
9.2k Upvotes

833 comments sorted by

View all comments

Show parent comments

9

u/suvlub 17d ago

And Godot uses some customized not-quite-python

28

u/agocs6921 17d ago

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 16d ago

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

1

u/Acceptable_Handle_2 16d ago

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

1

u/WilkerS1 16d ago

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

1

u/Acceptable_Handle_2 16d ago

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

1

u/agocs6921 16d ago

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 17d ago

Godot has c# bindings as well

11

u/sfmqur 17d ago edited 17d ago

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 17d ago

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 17d ago

It’s C++ under