Live data from Hacker News

rg3d: Rust 3D game engine with an FPS demo game and scene editor

github.com

51–60 of 143 posts

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#51

Earlier quoted context omitted.

I have nothing against it, and it being a single person project. But the fact remains, it's far behind Unity, Unreal and Godot.

With enough time and resources, I wonder if we'll one day see a Rust game engine that can outperform these projects.

Maybe, but you can already use Rust with Godot.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#52
post #30

Earlier quoted context omitted.

I don't see why Rust would be cleaner than modern C++ codebase.

c++ is a bit more verbose than rust. think about all the stdlib functions that take begin and end iterators for containers. there's an overload for std::set_difference that takes six arguments, five of them being iterators.

Ranges and fold expressions take care of that.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#53
post #30

Earlier quoted context omitted.

I think that Rust's features allow for cleaner code bases.

I don't see why Rust would be cleaner than modern C++ codebase.

C++ is incredibly verbose (STL) and carries a lot of baggage and mental overhead. Rust has improved ergonomics in nearly every area except lifetime handling, which is a concern you want to think about and make explicit.

I predict in ten years the gravitas for new projects will have shifted entirely to Rust. C++ is just too much of a burden to write and verify. C++ will still have plenty of healthy projects, but I think it'll be hard to attract new projects when Rust has come so far.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#54
post #30

Earlier 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.

While I agree, Rust also suffers from it, where " C with Classes" gets turned into "Rust with unsafe", although not required.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#55
post #52

Earlier quoted context omitted.

c++ is a bit more verbose than rust. think about all the stdlib functions that take begin and end iterators for containers. there's an overload for std::set_difference that takes six arguments, five of them being iterators.

Ranges and fold expressions take care of that.

There is a lot more than just those two.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#56

This looks really impressive! Given that Rust -> WebAssembly is at least a thing, would it be plausible for someone to make that rusty-shooter demo work in a browser?

There is also a problem with rg3d-sound - it supports only Windows and Linux right now. So there will be no sound on other OSes. I've tried to add at least macOS backend by myself, but I failed all attempts to install macOS on virtual machine :(

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#57
post #54

Earlier 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.

While I agree, Rust also suffers from it, where " C with Classes" gets turned into "Rust with unsafe", although not required.

Unsafe is not as big of a deal as people make it seem.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#58
post #51

Earlier quoted context omitted.

With enough time and resources, I wonder if we'll one day see a Rust game engine that can outperform these projects.

Maybe, but you can already use Rust with Godot.

Not the same.

Re: rg3d: Rust 3D game engine with an FPS demo game and scene editor

#59
post #54

Earlier quoted context omitted.

While I agree, Rust also suffers from it, where " C with Classes" gets turned into "Rust with unsafe", although not required.

Unsafe is not as big of a deal as people make it seem.

Using C alongside static analysis like Frama-C is also quite safe, one could say.
Post reply on HN