Earlier quoted context omitted.
that's true and I am very excited for ranges. sadly I am still waiting for c++17 to be switched on in my build system :/ still there's lots of other stuff that's more verbose in c++ than rust, often because it was bolted on much later. think about getting individual elements out of a tuple. in c++: `std::get (tuple)` for each desired element or `std::tie(elt0, std::ignore, elt2) = tuple;` in rust: `tuple.0`, not sure…
C++ has structured destruction now.
rg3d: Rust 3D game engine with an FPS demo game and scene editor
81–90 of 143 posts
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#82Earlier quoted context omitted.
Using C alongside static analysis like Frama-C is also quite safe, one could say.
It's not just safety though. It's just...all of it. I legit don't enjoy writing C. Rust is fun to write 90% of the time.
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#83What I love about this engine, is that I can really easily read the code and reason what it does. I'd guess that given an hour or so of study I would feel reasonably confident in trying to modify it.
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#84Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#85Earlier quoted context omitted.
The game and the editor are massively helps to find right approaches in development. All my previous attempts to write engines (in other languages) were bad because all they had is just some very simple demos with some meshes and lights. You never know which features engine should have until you need them. Many engines trying to have best possible graphics and does not pay attention to other very important things, li…
As they say, you don't write an engine - you write a game, and the engine comes out of it. Impressive work!
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#86Earlier quoted context omitted.
I don't see why Rust would be cleaner than modern C++ codebase.
Theoretically yes, practically it's a different story. Sure you can write clean modern cpp (the act of which is harder than writing clean Rust), but if your dependencies are still "C with classes", you are forced to particular patterns.
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#87Quite cool! This is the kind of stuff that might drive adoption among game devs.
For smaller developers projects like this still wont help drive adoption since smaller developers have the freedom to decide on their own what language they'd use (assuming they aren't already using an existing codebase, some of the stuff above also apply to smaller developers) and they'd already be using rust if they thought it'd help. In general i believe that developers who have enough knowledge to make their own engine in other languages and be able to make their engine in rust, would be able to tell if rust is a good choice or not.
Or to put it in another way, i doubt projects like this will help drive adoption for rust among game developers because the developers have either already decided what language to use (be it rust or something else) or are not in a position to decide what language to use.
(yeah sure, there might be an exception or two out there, but there are hundreds -if not thousands- of engines... after all Remedy, a AAA studio, used D in their engine yet you do not see much of an uptake of D among game developers even though technically D would be easier to grok by C++ programmers, integrate with existing engines with its C++ interop and even provides features like compile time code evaluation and generation for features that i've seen C++ projects use overcompilated macros and external build time generators that rely on brittle code comments to work)
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#88Earlier quoted context omitted.
Theoretically yes, practically it's a different story. Sure you can write clean modern cpp (the act of which is harder than writing clean Rust), but if your dependencies are still "C with classes", you are forced to particular patterns.
FWIW some people -e.g. me :-P- consider "C with classes" much more readable than modern C++.
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#89Earlier quoted context omitted.
You need to look at this as result/time. Godot has been around for six years, the others for much longer. This has been around for a year and again, it's a one person project. What do you expect?
Well, I'm talking from the point of view of a user. Why would I choose this engine over Godot, Unity, Unreal? Just because it's a single-person project?
Also this post is really about showing off an engine made in Rust, a "hack" so to speak. You are in Hacker News where people post (usually technical) things that others might find interesting - but not necessarily useful. Consider we get posts about people writing software for retro computers, just for the fun of it.
Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor
#90Quite cool! This is the kind of stuff that might drive adoption among game devs.
I doubt projects like this would help. For big developers, 99.99% of the time they are already riding on existing codebases (even when they call it by different names for marketing reasons) - the last two AAA games i worked at have codebases more than a decade old, one actually two decades old. While technically they could add rust as an extra language, in practice this wont happen both because the vast majority of g…
In my experience, Rust is relatively fast on recompilation, possibly faster than C++.
Rust is a much younger language so you have to wait.