• jdnewmil@lemmy.ca
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    28 days ago

    I have only skimmed the surface of learning Rust, but I am wondering what it has over Ada. The memory safety features that Rust emphasizes have been standard there for 40 years, and just as unglamorous compared to C++.

    I tend to focus on scripting nowadays… R and Pyrhon… with the odd C++ for high-speed algorithms because it is popular. But is Rust merely a new face on Ada?

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      13
      ·
      28 days ago

      Rust is already dramatically more popular and widespread than ADA ever was ( outside the US military ). Devs that use Rust say they love it. I do not believe that is the rule for ADA.

      Rust is also very well suited to extending existing C and C++ code bases. I do not know enough about ADA to compare but it is my sense that it is not as strong there.

      There is no ADA in the Linux or Windows kernels.

    • nous@programming.dev
      link
      fedilink
      English
      arrow-up
      11
      ·
      28 days ago

      But is Rust merely a new face on Ada?

      They share some features. But what language does not share any features with any other language? Any new language these days will be heavily inspired by and take features from other languages while making changes to or pulling in features from other places to create a mix that is unique to that new language. Rust is far more than just its GCless memory safety features and I am not even sure if they are inspired by ada or were just arrived at a similar solution to ada - they are not exactly a one to one matching with how ada does anything. If anything I believe that rust is much more heavily inspired by ocaml than ada.

    • BitSound@lemmy.worldOP
      link
      fedilink
      arrow-up
      7
      ·
      28 days ago

      From what I understand, Ada does not have an equivalent to Rust’s borrow checker. There’s efforts to replicate that for Ada, but it’s not there yet.

      • jdnewmil@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        26 days ago

        Thanks for the helpful response. The BC looks like a potentially very useful anti-bugging tool.