• Rust will save Linux from C’s inherent security weaknesses.
  • Linux, faced with a flood of AI-discovered security problems, could use the help.
  • Going forward, more and more Linux code will be written in Rust.
  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    3 months ago
    • He described new C “guards” and scoped locks inspired by Rust

    In other words, the improved safety will sometimes come from Rust code, and sometimes from C code. The important point being that safer practices are becoming more common now that Rust has called attention to them.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      3 months ago

      now that Rust has called attention to them.

      More like now that Rust is embarrassing C.

      A common pattern. GCC’s error messages only got good once Clang embarrassed it.

      • jsnfwlr@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Isnt this the way of all technology?

        for N=1; N<∞; N++ {
        
        Thing N is released. It's new and innovative, and addresses all the problems with Thing N-1. 
        
        It gains popularity until it becomes defacto standard, in the process forcing Thing N-1 to adopt a lot of Thing N's new features.
        
        After a while the developers reduce or stop the innovation because their product is #1 and has no real competition, until Thing N+1 is released.
        
        }
        

        We’ve seen this with mobile phones, social networks, frontend frameworks, programming languages, cars, fridges, you name it

        • FizzyOrange@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          Yeah but I think in some cases the thing that needs to improve was obviously wrong and should have been fixed all along, and sometimes it’s was fine but something even better came along.

          For example there was nothing obviously wrong with dumb phones when the iPhone obliterated them. They worked fine for what they were. Another example: nothing obviously wrong with x86 when Apple ditched them for ARM. Ok they were not as performant as they could have been but it’s not like Intel were completely ignoring performance.

    • jimmy90@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 months ago

      improved safety will ALWAYS come from rust code and SOMETIMES come from C code with AI help or these new magical unicorn C coders that have suddenly learned how to manage memory (etc etc) now that rust has appeared

      yeah right