• urska@lemmy.ca
    link
    fedilink
    arrow-up
    35
    arrow-down
    8
    ·
    5 months ago

    Aviation, Health, Space and Car industry have only 3 certified languages that they use. Ada, C and C++. Ada is dying because there are way less young engineers who want to invest their future learning it. Then there is C and C++ but they dont offer memory safety and its really hard to master and its really hard and long (thats what she said) to certify the code when being audited for safety by a tier company.

    Rust solves by default (no need to review) like 2/3 of the standard requirements those industries have and are that found in C and C++. Rust will soon be approved in this group by the car industry.

    Im not a rust fan, but I have 3 things to say about rust.

    • Its fun to program like C++ having the peace of mind knowing the compiler is there helping.
    • You dont feel like youre defusing a bomb like when writing C.
    • Even though its a fun language to write, its also really hard to master, itd say 2 years to be really proficient with it. There is just so much knowledge.
      • urska@lemmy.ca
        link
        fedilink
        arrow-up
        5
        ·
        edit-2
        5 months ago

        These industries hire third parties to review c and c++ line per line to make sure it’s memory safe. Rust by default forces you to write memory safe code, otherwise it won’t even compile. The rust compiler tells where is the problem and what it expects. No only for basic Type errors but also for concurrent code.

          • urska@lemmy.ca
            link
            fedilink
            arrow-up
            2
            ·
            5 months ago

            its the way the language was built. Im not sure its possible without breaking C/C++ which have like 35 years + in the making. Also these concepts are have little to do with programing and more architectural designs. The designers are real engineers working on difficult concepts. All big brains tbh

    • imgcat@lemmy.ml
      link
      fedilink
      arrow-up
      4
      arrow-down
      5
      ·
      5 months ago

      Ada SPARK is not dying at all, it’s growing. It is used where formal proof is required like and Rust is nowhere near that!

    • corsicanguppy@lemmy.ca
      link
      fedilink
      arrow-up
      5
      arrow-down
      9
      ·
      5 months ago
      • You dont feel like youre defusing a bomb like when writing C.

      Whoa, Skippy. It’s not saving the world, it’s just coding properly.

      • urska@lemmy.ca
        link
        fedilink
        arrow-up
        4
        ·
        5 months ago

        Well no, those companies deal with really important subjects. Airplanes, car safety, chemotherapy machines, missiles, etc. Have a good day