This was a really good summary of what Rust feels like in my opinion. I’m still a beginner myself but I recognize what this article is saying very much.

The hacker news comments are as usual very good too:

https://news.ycombinator.com/item?id=40172033

  • Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    24
    arrow-down
    1
    ·
    6 months ago

    Well, the alternative to “Rust” here is not another programming language, but rather another game engine.

    Because ultimately, most game engines will be implemented in either C++ or Rust, for performance reasons, and C++ itself isn’t terribly better at iteration speed than Rust.

    The C++ engines have simply already invested decades into abstractions, like an ECS architecture, higher-level APIs and scripting languages. There’s nothing inherent to Rust which prevents these abstractions from being built into game engines, it just hasn’t been around for that long.

    • Lung@lemmy.world
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      6 months ago

      Well, generously I think this guys point is that you shouldn’t use rust for developing actual game logic (you’d use those higher level scripts). For game logic, it’s bad bc it’s not very iterative - and the rest of the stack sucks too but everyone knew that getting into it. But yes, I’m sure you could make a game engine with it

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        6 months ago

        Exactly. I make games for a hobby in Godot, and my workflow is to iterate in GDScript and optimize in something faster (I wrote a world gen in Rust).

        Most of a game’s performance is going to be in the engine in shaders, physics, etc, so most of your logic could very well be in a scripting language.