15 votes

Zig 0.6.0 has been released

9 comments

  1. [3]
    sqew
    Link
    May have to check out Zig soon. I'm currently pretty much a Python-only programmer (although I've been learning C++ in class), and I'd really like to add a modern systems language to my...

    May have to check out Zig soon. I'm currently pretty much a Python-only programmer (although I've been learning C++ in class), and I'd really like to add a modern systems language to my repertoire. My plan was Rust but Zig might be a good one to look at.

    3 votes
    1. [2]
      pvik
      Link Parent
      It depends on what your goal is with learning the new language. Zig is a language you will be able to carry over most of your knowledge from Python and C++. However it is mostly not going to...

      It depends on what your goal is with learning the new language.

      Zig is a language you will be able to carry over most of your knowledge from Python and C++. However it is mostly not going to expose you to new paradigms of programming. If you have a project in mind suited for Zig (say an embedded application), I think zig would be a great language to learn next)

      Haskell is a great language to force you to learn functional programming (cause you can;t cheat and use procedural constructs to solve a problem, like in Scala or OCaml, etc)

      Erlang is a great language to learn functional concepts and also learn Actor Model of concurrency. The prolog like syntax could also lead you down a rabbit-hole of prolog/datalog :)

      Rust is also a great language because of the novel way in which it handle memory. The borrow-checker in Rust has a steeper learning curve (than malloc/free, etc), but I think it again expands the way you think about memory allocations, etc. It is also generally a pleasure to work in rust with its great toolchain and library package system.

      Either way, learn as many languages as possible, inthe long run it will make you a better developer :)

      Edit: obligatory lisp mention. Check out languages like CommonLisp or scheme as well!

      7 votes
      1. sqew
        Link Parent
        Thank you so much for the recommendations! I have this perennial problem of starting projects and never finishing them, including learning new languages. Really hoping that being at home because...

        Thank you so much for the recommendations! I have this perennial problem of starting projects and never finishing them, including learning new languages. Really hoping that being at home because of COVID-19 will give me a chance to really put the time in to finish some projects up, and I'll definitely remember your advice here.

        2 votes
  2. [4]
    joelthelion
    Link
    Who's behind Zig? How does it compare to Rust?

    Who's behind Zig? How does it compare to Rust?

    1 vote
    1. [2]
      hungariantoast
      Link Parent
      Andrew Kelley. Why Zig When There is Already CPP, D, and Rust? I am barely familiar with C, let alone Zig, and have zero experience with Rust, so make of this what you will, but I think Zig and...

      Andrew Kelley.

      Why Zig When There is Already CPP, D, and Rust?

      Zig is going for all the beautiful simplicity of C, minus the pitfalls.

      I am barely familiar with C, let alone Zig, and have zero experience with Rust, so make of this what you will, but I think Zig and Rust are sort of being developed to solve problems in the same area, but Zig is very much a modern iteration of C (and is trying to replace it), whereas Rust strikes me as something entirely different.

      Zig is also very young compared to Rust and has none of the institutional backing that Rust does. It's literally developed full-time by one guy.

      Having said all that, I think Zig has a bright future. It's C, but modern and better, in ways that are meaningful. It would also be much easier for existing C programmers to pick up than something like Rust would be, I think.

      To be honest, if Zig can just manage to survive and grow sustainably, I think we're going to see some extremely important projects that are currently implemented in C slowly transition to Zig. Like, I would imagine Zig code being introduced into the Linux kernel before Rust, if that helps illustrate what I am trying to say.

      7 votes
  3. meenit
    Link
    Hmm, looks super super interesting. I'll have to learn Zig sometime; C is one of my favorite languages.

    Hmm, looks super super interesting. I'll have to learn Zig sometime; C is one of my favorite languages.