News for hackers. Stuff that matters.
Re:Four Years of Jai by jplusequalt on Friday April 18, 2025 @11:58AM (#43729279)
>Even AAA games these days happily run on GC languages.

Which games are these? Are you referring to games written in Unity where the game logic is scripted in C#? Or are you referring to Minecraft Java Edition?

I seriously doubt you would get close to the same performance in a modern AAA title running in a Java/C# based engine.

Re:Four Years of Jai by Jasper_ on Friday April 18, 2025 @01:38PM (#43730195)
Re:Four Years of Jai by steveklabnik on Friday April 18, 2025 @01:42PM (#43730237)
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.

Re:Four Years of Jai by tuveson on Friday April 18, 2025 @01:56PM (#43730382)
I think Balatro uses the Love2d engine which is in C/C++.
Re:Four Years of Jai by steveklabnik on Friday April 18, 2025 @02:15PM (#43730531)
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.
Re:Four Years of Jai by jplusequalt on Monday April 21, 2025 @01:48PM (#43754526)
Thanks for the Rust book!
Re:Four Years of Jai by steveklabnik on Monday April 21, 2025 @03:50PM (#43755742)
You're welcome!
Re:Four Years of Jai by neonsunset on Friday April 18, 2025 @01:48PM (#43730302)
C#? Maybe. Java? Less likely.