Zig vs Rust. Which one is going to be future?

I think about pros and cons and what to choose for the second (modern) language in addition to C.

@programming@programming.dev

  • slacktoid
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 months ago

    Oh completely. C is here to stay, C has surpassed language and become protocol cause of libc being so centric to Unix like languages. But it needs to be done carefully and thoughtfully. The other languages are solving some of the pain points C has which I think a lot of people would be better off using than C.

    • lad@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 months ago

      Down that path C may become somewhat of an intermediate representation language for binary interfaces. No one would write it by hand, and maybe for the better

      • bluGill@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        @sukhmel@programming.dev

        @programming@programming.dev @modev@snac.bsd.cafe @TehPers@beehaw.org @slacktoid@lemmy.ml C is a terrible binary interface. It doesn’t say who owns a pointer, or what to call to destroy it. It doesn’t normally provide buffer length (even when it does there is no reason to trust it)