I have been reading about this new language for a while. It’s a C competitor, very slim language with very interesting choices, like supporting cross platform compilation out of the box, supports compiling C/C++ code (and can be used as a drop in replacement for C) to the point in can be used as replacement of ©make and executables are very small.

But, like all languages, adoption is what makes the difference. And we don’t know how it goes.

Is anyone actually using Zig right now? Any thoughts?

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    I’ve heard of it, and don’t know what the point is.

    In zigs defence, I felt the same way about rust a few years back as well.

    I wonder what the killer feature for zig is. At least rust promises safer code, what does zig promise?

    • Chrobin@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I think the main advantages over C are:

      • better tooling
      • modern syntax
      • by default, pointers must be non-null. You have to specify if you want to use null pointers
      • better exception handling using the functional style of exceptions-as-values

      There are probably more, but those are the ones I remember.