• Wheaties [she/her]@hexbear.net
    link
    fedilink
    English
    arrow-up
    65
    ·
    edit-2
    8 months ago

    White house urges developers forget programming languages that necessitate an understanding of computers as machines with limits and tolerances, not simply magic boxes to receive instruction.

    • DefinitelyNotAPhone [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      42
      arrow-down
      1
      ·
      8 months ago

      Being aware that the gun you’re holding naturally tends towards pointing directly at your own foot does not make the existence of the footgun any more tolerable. Even the best developers will fuck up; having your language enforce memory safety is objectively a good thing, and arguments against it come from FUDDs and gatekeepers.

      • NephewAlphaBravo [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        48
        ·
        edit-2
        8 months ago

        C and assembly should 100% be a part of any formal programming education, and then any actual work should be done with memory-safe languages because we’re all the dumbest people alive.

      • AnarchoSnowPlow@midwest.social
        link
        fedilink
        English
        arrow-up
        28
        ·
        8 months ago

        I work in embedded systems (more and more test lately though), historically in aviation (not fucking Boeing lol) and test and measurement instruments. So, critical environments. In those situations, when you’re writing bare metal firmware, you never dynamically allocate anything. Everything tends to be accounted for, RAM usage is tightly controlled, there are even points where you’re counting clock cycles for efficiency. We even accounted for radiation based bit flip events, which are incredibly uncommon, but we know they exist so they have to be handled.

        My point is, this is a valid concern in some spaces, but when you use C in a purely functional way, it’s not the loaded gun they portray it as.

      • Helmic [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        6
        ·
        8 months ago

        It is also a serious boon to open source projects because it dramatically limits the damage a PR from someone new might accidentally do. Being able to reasonably expect that this fast, low level code won’t introduce memory leaks is part of why even end users tend to like Rust projects.