• 4 Posts
  • 19 Comments
Joined 9 months ago
cake
Cake day: January 28th, 2025

help-circle
  • Ah, got it—let me clarify a bit.

    Right now, I’m working with arrays and slicing them into smaller segments for indexing. Technically, I could rely on bit manipulation to generate much of this, but I’ve chosen to lean into Rust’s type system for that extra layer of expressive control.

    In Rust, a slice is essentially a fat pointer: it includes both a memory address and a length. Because the slice type encapsulates both, I don’t need to manually track sizes or offsets. Plus, in debug builds, Rust automatically panics if I try to access an out-of-bounds index, which helps catch issues early. And I can use methods like get or get_mut for safe, optional access—either retrieving a value or returning None.

    Ultimately, Rust’s type system saves me from fiddling with raw bit arithmetic and length bookkeeping. It handles validation elegantly, letting me focus on logic instead of low-level guards.

    PS: Although it isn’t finished just yet, I’m linking this Node up with a Buf and Slab struct currently. If i remember when I’ve completed the design and I’m happy to freely distribute the code, I’ll make a paste bin and post it here for you. Always happy to help if I can :)














  • TLDR; I chose Rust. Thanks.

    Hello everyone. I just wanted to update everyone on the result of my deliberating on Odin, Zig and Rust.

    After a long time thinking it over. It has become clear that to me in personal opinion that Rust will be the best choice.

    Both in terms of the compiler keeping me a solo dev producing correct code. Without the requirement for a Quality Assurance team. And also i know it really well and languages such as Odin and Zig are fantastic and I am advising my son to learn game-dev with Odin.

    However, ultimately for producing quality reliable machine code. I feel that Rust is a better choice than Odin or Zig.

    Thanks to everyone who commented and helped me find the decision i was looking for <3



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



  • I agree Odin is simple which is why I’m drawn to it, after all i know computer science so really i don’t need a prescribed away to do something like in Rust. Rust is amazing, but it can be slow to develop in, the points is in the compiler as for a solo dev, it reduces my need for a code quality team. Odin just gets out the way and let’s you get going, it’s also Go like which i’m familiar with. I’ve been slowly planning to stick with Rust, i might help my son learn Odin though <3




  • I love me some C, not C++ just C++. That isn’t to say C++ is a bad language, i just prefer the vanilla experience. I picked Rust for it’s expressive syntax and ergonomic approach to programming, also ofc the safety and the fact as a solo dev i cannot afford a quality assurance team to review my code.

    I’m familiar and good at Rust. I know the syntax and can read and write it with easy but, there as some instances where Rust can be a pain. For instance quick prototyping. Rust can sometimes feel like i’m working on Rust not my engine.

    Hence the Odin idea. I like the guy Ginger Bill who made it and although maybe not as performant as Rust it is simple and concise. I did investigate Zig but Zig feels like it’s a mess to be quite honest, that doesn’t mean i dislike or to any Zig fans i like it but it’s just not my cup of tea.

    Also having to use Miri with Rust can make everything feel weird as Rust’s borrow checker has cases not found in other languages.