I’m currently suffering a dilemma and I’m considering using Odin over Rust.
I was hoping for friendly and positively constructive assessments of which language and why from anyone who wishes to answer?
I’m currently suffering a dilemma and I’m considering using Odin over Rust.
I was hoping for friendly and positively constructive assessments of which language and why from anyone who wishes to answer?
what do you want to do?
Hobby game engine, i’m debating if Odin being a quick, simple and performant language would help me get my idea from in my head into RAM
Game engines seem to be explicitly what Odin was built do. I’m just reading their website for the first time but they make that clear.
My impression of Odin is that its explicitly made to enable you to write unsafe code. But that’s good if you want to get some crazy optimizations going through.
Odin might be better because it has built in vendor libraries like glfw/sdl2 for windowing and events and box2d if you need physics.
Yes and although since originally posting, I’ve began to lean towards Rust. My son wants to learn how to program and Odin will be great for him <3
For any other use case, I would have recommended Rust, but for making a hobby game engine, I would advise not using either rust or Odin and instead use C and C++. The graphics drivers have a primary C Abi and you would spend a really long time debugging C to Odin/Rust translation layer bugs than actually working on he engine.
I would suggest write a C rendering library, wrap it in safe Rust and move on from there.
I already know C/C++, I love them but I never use them again. Rust’s borrow checker is still active in unsafe Rust, combined with Miri it detects most UB, leaks and various other problems. For instance I’m building a allocator now in Rust and i know it compiles and Miri didn’t complain, sure i can do it in C and use Valgrind but Rust makes it a dream.
I know for Odin there are 3 tools i was looking at which could validate it for UB and leaks at runtime, but what attracts me to Odin is the fact it’s not OOP and simple. I’m considering using it because i will be more debugging my game, rather than the language (to quote Zig).
But all that being said I’m good with Rust and it’s tooling, so I’m probably going to remain with Rust. But yours and everyone’s opinions is helping me form this so thank you!!