• onlinepersona@programming.dev
    link
    fedilink
    arrow-up
    27
    arrow-down
    3
    ·
    edit-2
    23 hours ago

    Phoronix comments really are a battlefield for rust vs C. The seaheads just can’t accept rust is safer and will moan about the borrow checker telling them they are doing something unsafe. Probably the same people would argue static typing is better then dynamic typing, but can’t seem to see the parallels between safety guarantees at compilation time vs checking at runtime. Impressive.

    More to zlib-rs: good job! RiR without bothering people is great. Just do it.

    Anti Commercial-AI license

    • BB_C@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      They talk too much. But almost none of them actually code or know how to at a good level.

      We have someone just like that here.

    • solrize@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      6
      ·
      edit-2
      4 hours ago

      There has been a zlib in Ada for many years, doing its job quietly. Speed comparable to the C version, probably not beating it, but not trailing by much in any case. Rust is safer than C but less safe than Ada from what I can tell.

      Rust (edited for clarity) looks to me to be about halfway between C and C++ in complexity, with a bunch of footguns removed, and using implicit move semantics (“borrowing”) more than C++ does, and the notorious borrow checker is simply the compiler making sure you don’t make RAII mistakes because of that.

      It’s always seemed to me that Phoronix is too often about turning mailing list drama into clickbait. I’ve mostly disliked it, because of that.