No offence

    • Unicorn 🌳
      link
      fedilink
      51 year ago

      Its cross-platform support (not just for using but also for building it) is not there yet, and it is quite huge and unstandardized with only one full implementation. I’d agree the last part will change with age, but given the frequent large changes and feature additions I am afraid it will be harder and harder and it is simply too complex and fast-moving for many low-level applications. It is closer to C++ than C in my eyes. I’d be happy seeing it replace C++ though for its memory safety benefits!

    • Justin
      link
      fedilink
      21 year ago

      At the same time, C is the only stable ABI available for Rust.

      • @pingveno@lemmy.ml
        link
        fedilink
        English
        21 year ago

        That’s true, but they’re working on an ABI implementation. It’s no mean feat with a language like Rust. A quick search around the Internet found various possible candidates, though many of the discussion threads have petered out.

    • @Ret2libsanity
      link
      11 year ago

      Rust won’t replace c.

      The programs are too bloated for many embedded systems where every byte counts because it’s in ROM or loaded jnto IRAM

      All that memory safety and garbage collection, for example, comes at a big cost

      • @Auburn@beehaw.org
        link
        fedilink
        11 year ago

        Rust actually doesn’t have a garbage collector! The point of Rust is that memory safety is statically verified at compile time, automatically inserting allocations and frees. The bloat of Rust binaries in my experience comes from excessive code generation such as generics or macros. If you’re aware of that, though, you can avoid the more bloaty bits (such as the string formatting machinery) and compile some quite tiny binaries. For example, I was able to write a simple GameBoy Advance game that only took 2kb of ROM including the assets.

        That said, C still very much has its place, but Rust can definitely do embedded.