News for hackers. Stuff that matters.
Re:Comfy, the 2D rust game engine, is now archived by Aeolos on Monday September 09, 2024 @08:12AM (#41487789)
C++ doesn't do quick and dirty either. That's why in a experienced game developers combine a core engine written in a high-performance language (C++, Rust, C#), with a scripting language (Lua, Python, hand-rolled).

That approach gives you the best of both worlds: high-performance core with high-velocity iterations for gameplay. Don't use Rust or C++ for scripting... madness lies that way.

Re:Comfy, the 2D rust game engine, is now archived by pjmlp on Monday September 09, 2024 @08:45AM (#41487995)
Except hot code reloading and interpreters is something that C++ devs can reach for, and Rust ones not, at least for the foreseable future.
Re:Comfy, the 2D rust game engine, is now archived by bendhoefs on Monday September 09, 2024 @12:57PM (#41490560)
What do you mean by this? Rust has multiple game engines that support hot reloading and/ or scripting.

https://fyrox-book.github.io/beginning/hot_reloading.html

https://github.com/jarkonik/bevy_scriptum

Re:Comfy, the 2D rust game engine, is now archived by pjmlp on Monday September 09, 2024 @01:04PM (#41490683)
This the bare minimum, https://liveplusplus.tech/

Also supports is kind of relative,

"CHR is very new and experimental feature of the engine, it is based on wildly unsafe functionality which could result in memory corruption, subtle bugs, etc."

Re:Comfy, the 2D rust game engine, is now archived by bendhoefs on Monday September 09, 2024 @03:00PM (#41492226)
Why is that the bare minimum?

I also think that doc page is a little old. The feature is over 2 years old now and hot reloading is inherently "unsafe" in any compiled language. It's just letting you know that Rust's safety guarantees might go out the window if there are bugs in the code that handles hot-reloading.

Re:Comfy, the 2D rust game engine, is now archived by pjmlp on Monday September 09, 2024 @03:04PM (#41492269)
Because that is what existing game studios expect, as shown by their customer list.

Also that was only one example, there are other similar ones.

Re:Comfy, the 2D rust game engine, is now archived by desumeku on Wednesday September 11, 2024 @02:58PM (#41514274)
Funnily enough, Mojang is on that list, and I remember recently watching a video[1] of Notch hot-reloading code while developing Minecraft, except it was with Java and I'm sure he didn't pay a dime for the ability to do that.

[1] - https://youtu.be/BES9EKK4Aw4

Re:Comfy, the 2D rust game engine, is now archived by pornel on Monday September 09, 2024 @04:33PM (#41493392)
That live reload probably already works with Rust — they say they don't parse any source code, and instead analyze the compiled binary and debug info.
Re:Comfy, the 2D rust game engine, is now archived by lenkite on Monday September 09, 2024 @11:02AM (#41489172)
"C++ doesn't do quick and dirty either."

You can do very easily do quick and dirty in C++. (And shoot your foot off also..but that's a different thing)

Re:Comfy, the 2D rust game engine, is now archived by pornel on Monday September 09, 2024 @11:40AM (#41489632)
C++ will easily let you write non-thread-safe code anywhere, won't complain about multiple mutable pointers to the same object, will let you leave pointers dangling and resources leaked.

Such code is of course crappy, but the OP wants to test if things are fun before committing to implementing them properly. Rust wants things done properly on the first try (which usually is a good thing, except throw-away prototypes).

https://loglog.games/blog/leaving-rust-gamedev/

Re:Comfy, the 2D rust game engine, is now archived by Narishma on Monday September 09, 2024 @03:54PM (#41492822)
It also introduces a lot of complexity where the two languages interact.