–2 votes

Reason why I suggest this is because:

  • OOP is slower than POP (as Rust is POP)
  • Rust has strict compiler checks and the rust concept borrowing make a lot of common programming and memory bugs nonexistant. Though that’s not to say you can’t have bugs in rust.
  • Easier to code than C++

Take a look at Redox OS and see why they use Rust over C++

https://www.redox-os.org

in Engine by (194 points)
edited by

1 Answer

+1 vote

I see you've already asked a variation of this question 2 months ago and received a very good answer:
https://godotengine.org/qa/23880/if-godot-was-written-in-rust-instead-of-c-what-would-it-be-like

Rewriting the engine gets suggested by newcomers now and again: https://github.com/godotengine/godot/issues/8873

Frankly, the arguments about rust's speed don't matter. Godot's C++ codebase already exists. The amount of time that would be lost trying to rewrite it could never be justified versus improving and extending the existing code.

by (21,979 points)

How about if we were to design something new for Godot, it should be written in Rust then. Production time is much faster in Rust. Less time to worry about debugging due to strict compiler checks.

You're welcome to do so, and to make the case that your way is better. Do you intend to contribute Rust code to Godot, or are you just advocating that others do it?

Well if I knew Rust I would be more than happy to contribute, but unfortunately I don't so I can't do much other than to suggest. I have not used Godot much so once again it is not me really telling people to do something, it is more of a suggestion as this would not really benfit me but I can see that everyone else could benifit from this.

Maybe you should learn about Godot before suggesting something is wrong with it or how it could be improved. And if you don't even know Rust, how can you make all these claims that it will be better?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.