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

  • qprimed@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    heh! so glad I intentionally avoided C++ from the get-go. C when I want to blow some fingers off quickly, python when I want to stroll down a country lane picking flowers. there is no in-between ;-)

    • solrize@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      C++ is nicer to use than C, and with currently preferred style it’s safer, though not safe in the way Python is.

      You might also try Go and Ada. I confess to not having clear understanding of how Rust beats Ada or vice versa. There are very few people really knowledgeable about both, who have addressed this afaik. I can say coding in Ada feels clanky but very solid. Idk yet about Rust.