6
dmoa
6y

Should I learn Rust for game development?

Comments
  • 4
    Depends
  • 3
  • 3
    Depends
  • 1
    ㅇdepends
    No
    Learning c++ or c# or Java will be better
  • 1
    Depends
  • 5
    The main pro reason for learning Rust for game dev would be for desktop grade games that would run in the webbrowser instantly with WebAssembly.
    example http://chinedufn.com/3d-webgl-basic...
  • 1
    #!/bin/php
    <?php
    //it depends but since you need actual anwser, let me get you random one with propepr chance weights
    echo (random_int(1,100)>99) ? "yes":"no";
  • 3
    Yes. I have used it with Piston2D for the past 3 ludum dare competitions. It reminds me of the Processing environment because it gives you render functions for primitives like rectangles, ellipses, and images.

    Currently in the process of writing a small framework that runs on win, mac, linux and wasm so I dont have to in the future. Also designing a larger voxel game engine. In Rust which is an interesting challenge.
  • 4
    If you want challenge, then yes. Otherwise...well, it depends
  • 0
    I know there are a contrast of answers. I have decided to have a go!
  • 1
    Probably not TBH. You already have really solid choices like C# and C++ that have established game dev communities, tools and learning material.

    If you just wanna have a go at learning something new then by all means go for it.

    If your objective is to seriously make games... Probably go with the aforementioned.
  • 0
    @dmoa my comment was meant seriously unfortunately people made it a joke.

    It really depends, what kind of games do you want to build and why not use C#, C++, Lua or Java. And what is your current experience with game dev.
  • 0
    Rust is kinda cool but also kinda stupid. It was originally designed for games but then it turned out the reference model wasn't that great for games so suddenly it was only designed for game *engines*, use C++ for everything else. It was also meant as a blanket replacement for C and C++ until it suddenly wasn't
  • 0
    @12bitfloat Not sure what you mean. I dont know everything about its history, but currently it is a systems language designed to be just as powerful and fast as C but with more safety. From my experience it is definitely living up to that standard.

    Sure, it may not have "replaced" C and C++ in that they are still used more often, but that's because they're the de facto standard at that level, and that is difficult to simply remove and replace with something else across an entire industry. That will take time, but eventually I think Rust will grow, mature and be a strong competitor.
  • 0
    @Codex404 I already know c++, c#, java, and lua.
  • 1
    @irene tbh I’m just very bored and want to learn something new.
  • 2
    @dmoa nothing is learnt for nothing.
    Go for it then. You'll may find suddenly the perfect use for rust while working on something. Who knows until you've tried.
  • 1
    @heyheni I absolutely agree
  • 0
    @tokumei My point is that rust isn't bad but it certainly is a let down compared to what it's meant to be. A language without a well defined ABI or memory model is *not* a serious systems language
  • 0
    @12bitfloat It doesnt, but that doesnt mean it isn't capable of FFI, and I definitely wouldn't disqualify it just because it doesn't have it's own special ABI It supports the C ABI which is a very common standard, and IMO that is a smart move. Designing a new one around Rust's type system, and then getting people to actually use it, is going to be difficult.
  • 0
    @tokumei Well, that's what it takes to make a truly great language
Add Comment