Remix.run Logo
steveklabnik 3 months ago

Unreal Engine has a GC.

You're right that there is a difference between "engine written largely in C++ and some parts are GC'd" vs "game written in Java/C#", but it's certainly not unheard of to use a GC in games, pervasively in simpler ones (Heck, Balatro is written in Lua!) and sparingly in even more advanced titles.

tuveson 3 months ago | parent | next [-]

I think Balatro uses the Love2d engine which is in C/C++.

steveklabnik 3 months ago | parent [-]

Sure, but you write games in it in Lua. That Love2d is implemented in C++ (GitHub says like 80% C++ and 10% C) doesn't mean that you're writing the game in it. In my understanding, Love2d uses reference counting (which is still GC) for its own stuff, and integrates those into Lua's tracing GC.

jplusequalt 2 months ago | parent | prev [-]

Thanks for the Rust book!

steveklabnik 2 months ago | parent [-]

You're welcome!