Biden administration calls for developers to embrace memory-safe programing languages and move away from those that cause buffer overflows and other memory access vulnerabilities.

    • Pennomi@lemmy.world
      link
      fedilink
      English
      arrow-up
      81
      arrow-down
      3
      ·
      9 months ago

      I think that’s the point. You can’t trust the average developer to do things safely. And remember, half of all programmers are even worse than average.

    • u_tamtam@programming.dev
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      8 months ago

      Or rather a Dunning Kruger issue: seniors having spent a significant time architecturing and debugging complex applications tend to be big proponents for things like rust.

  • riodoro1@lemmy.world
    link
    fedilink
    arrow-up
    38
    arrow-down
    1
    ·
    edit-2
    8 months ago

    Guys, C++ is gonna be dead in a couple of years now. Remember this comment…

    …and read it again in ten years.

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

      Are you the guy who has been posting this same comment every 10 years over the last half century?

      (Edit: is joke)

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    2
    ·
    9 months ago

    You mean like android running java which is why everyone and their mom bought Israel’s Pegasus spyware toolkit?

    • bamboo@lemm.ee
      link
      fedilink
      arrow-up
      13
      ·
      9 months ago

      The apps are (sometimes) Java, but the OS is a mix of languages, mostly C and C++. The Java runtime itself is C++.

      • zik@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        edit-2
        8 months ago

        Java’s runtime has had a large number of CVEs in the last few years, so that’s probably a decent reason to be concerned.

        • u_tamtam@programming.dev
          link
          fedilink
          arrow-up
          4
          arrow-down
          2
          ·
          8 months ago

          Yep but:

          • it’s one runtime, so patching a CVE patches it for all programs (vs patching each and every program individually)

          • graalvm is taking care of enabling java to run on java

      • ScreaminOctopus@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        Nothing really, the JVM has a pretty troubled history that would really make me hesitate to call it “safe”. It was originally built before anyone gave much thought to security and that fact plauges it to the present day.

        • u_tamtam@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          and how much of this troubled history is linked to Java Applets/native browsers extensions, and how much of it is relevant today?

        • FooBarrington@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          8 months ago

          There’s a difference between writing code on a well-tested and broadly used platform implemented in C++ vs. writing new C++.

    • Leeker@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      What are you talking about? Did you read the report? On page 7 They directly say that C/C++ “lack traits associated with memory safety”.

    • ScreaminOctopus@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      8 months ago

      Thats because in government products many unsafe languages shittier than C(++) are used, like Ada, Fortran, and Cobol. It wouldn’t surprise me if most of the code running on products for government use werent written in C or C++

  • a4ng3l@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    4
    ·
    9 months ago

    Also like it’s the only source of vulnerabilities… in addition a lot of the trendy python libs are developed in C; do we also ditch those?

  • Omega_Haxors@lemmy.ml
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    9 months ago

    When all the talented programmers are all gay communists and your entire state exists to murder gay communists. Still can’t forget how Allen Turing, a gay man whose inventions were a gigantic help in winning WW2, KYS’d because they still treated him like garbage even after the fact.

  • Treczoks@kbin.social
    link
    fedilink
    arrow-up
    9
    arrow-down
    2
    ·
    9 months ago

    Nice. Now I’m waiting for all the Rust or whatever “safe” languages environments for embedded systems to fall from the sky. And please some that actually work on small processors with little memories.