• 1 Post
  • 9 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle




  • IsoSpandy@lemm.eetoProgramming@programming.devOdin or Rust
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    1 month ago

    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 started with rust 2 years back. It has been amazing since. Just build stuff you want to use, even recreate simple apps that you use everyday and have a rough idea on how they work. Getting used to the borrow checker takes time so don’t do something massive. Also if you haven’t finished the rust book and rustlings, I highly recommend them. They are amazing materials.

    You can check out my github for ideas. I have till now as far as I can remember built a notification daemon, an automatic music player, a time management app, a video server, video library manager, a C/C++ build system and lots of other stuff. Reading other people’s code will make you get best practices.

    PS Don’t learn from my builder_cpp project. The code is utter garbage, but it was how I used to do stuff in the early days