Assume mainstream adoption as used by around 7% of all github projects

Personally, I’d like to see Nim get that growth.

    • hairyballs@programming.dev
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      And here you’re only talking about a subset of memory leaks, by inaccessible memory. You can also leak memory by pushing new elements in a channel while never reading them for example.

    • zygo_histo_morpheus@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      You are absolutely correct that rusts safety features don’t extend to memory leaks, but it’s still better than most garbage collected languages unless you abuse Rc or something, and it does give you quite fine-grained controll over lifetimes, copying and allocations on the heap which in practice means that rust is fairly good about memory leakages compared to most languages.