–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++


asked Apr 8, 2018 in Engine by Joe0239 (188 points)
edited Apr 8, 2018 by Joe0239

1 Answer

+1 vote

I see you've already asked a variation of this question 2 months ago and received a very good answer:

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.

answered Apr 8, 2018 by kidscancode (17,164 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 How to use this Q&A? before posting your first questions.