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?
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!!