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

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

  • Rin@lemm.ee
    link
    fedilink
    arrow-up
    3
    arrow-down
    2
    ·
    1 year ago

    Help me understand your point of view. How does Rust not prevent memory leaks?

      • 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.