• thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    منذ 9 أيام

    So could have Java, Go, C# or any language with GC.

    No. Those aren’t allowed in Linux Kernel.

    With garbage collection

    Garbage Collection is not usable in an operating system Kernel.

    • xmo748@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      منذ 9 أيام

      Clearly, but it’s worth pointing out that this kind of problem isn’t uniquely fixed by “just use Rust”.

      • thingsiplay@lemmy.ml
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        منذ 9 أيام

        I never said that only Rust prevents this. I just said using Rust in the Kernel would have prevented this issue.

        • xmo748@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          منذ 9 أيام

          Fair enough. Don’t you think it simplifies the issue a little bit? How long would it take to rewrite the entire TCP stack in rust?