Following the R4L debacle “you are cancer, you are the problem, we are the thin blue line”, another maintainer steps down from the Linux Kernel

  • KrispeeIguana@lemmy.ml
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    5 days ago

    From what I remember, it’s much more difficult to accidentally leak memory in Rust. Combined with the drop-in compatibility with C and the somewhat more intuitive (imo) syntax, I can see its popularity as unsurprising.

    I think the biggest thing is that there aren’t really that many reasons not to use Rust.

    • esa@discuss.tchncs.de
      link
      fedilink
      arrow-up
      8
      ·
      5 days ago

      Leaking isn’t really the issue, though I suppose Rust helps with that as well. Its memory sales pitch is more about memory safety, which is not reading or writing the wrong parts of memory. Doing that can have all sorts of effects, where the best you can hope for is a crash, but it often results in arbitrary execution vulnerabilities. Memory _un_safety is pretty rare and most prominent in languages like C, C++ and Zig.

      Rust also has more information contained in it, which means resulting programs can actually be faster than C, as the optimizer in the compiler is better informed.