Python is memory safe? Can’t you access/address memory with C bindings?

  • seth@lemmy.worldOP
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    That’s what I was hoping someone would reply. I was a bit confused about some of the article wording but this confirmed what I was thinking. I poked around with some C and C++ a couple years ago when an abandoned C# library we were using was becoming a growing issue, and was surprised at how much easier it was (after v11) to avoid pointer hell compared to the last time I used it…decades ago in a computer graphics class writing a very rudimentary 3d engine/solar system model.

    I think of that project fondly now because it was so long ago and it’s easy to forget chasing down memory leaks for a full semester before learning there was a floating point rounding error baked into the Borland compiler. Bastards.

    Rust will be my next language of interest. I don’t like C# or Java and hope to not have to write them again.