#How robust is GDNative/GDExtension? How good is the experience using it? Mostly for using Rust.

3 messages · Page 1 of 1 (latest)

royal citrus
#

As forword Im a beginner in Godot, I am studying computer engineering and I want to broaden my Horizon. I am getting into Rust a lot lately and want to get into a more complicated project. Now I thought to my self why not get into game engines again like back then when I toyed around with Unity.

When you look at the ecosystem you have very young but already pretty slick engines in pure rust (like Bevy). I worked myself into them for some month now but I slowly feel like if u get harder errors to debug or get into UI it is a lot work do get things done (not because the engine is bad, its just still very young). The other option I read upon is to use GDNative or the newly announced GDExtension to use Rust in a project. Now my question is. Is it more pain than fun to use Rust as main language in a project or not. Whats the purpose of GDExtension, is it just to have a possibility to use a faster language to implement a more computational intensive tasks or is it truly an interface to fully open up the way for more languages than just GDScript and C# as main project languages.

Hows the current feel about this? I would also appreciate any articles that highlight how working with C/C++ or Rust feels like in Godot.

broken niche
#

Honestly? If you want to develop in full Rust, Godot might not be the right choice.
You see, the goal behind GDNative (rebranded as GDExtension for Godot 4) is to provide more options while developing your project. HOWEVER, they do not aim to fully replace GDScript / C#.
But, that doesn't mean that using Godot with rust, python, kotlin, d, nim, c , c++ or whatever is completely off the table. If you are willing to work with the built-in scripting languages as a base, while delegating the work that feels more fitting to another language to your GDNative bindings of choice, you're in for a great experience. Say, develop the player, enemies, etc on GDScript, but do world generation in Rust. That can work great!
So, I say give it a try. Do a small project, and see for yourself.

royal citrus
#

You see, the goal behind GDNative (rebranded as GDExtension for Godot 4) is to provide more options while developing your project. HOWEVER, they do not aim to fully replace GDScript / C#.
hmm alright, then I know what imma get myself into if I try to go for Rust. So maybe Godot might not be the best option to get deeper into rust. But lets see. I will definetly give it a try and then see for my self