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?

  • voxel@sopuli.xyz
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    zig’s biggest feature is comptime. completely removes need for generics as types exist as first class at compile time. also all functions can run at comlile time. no exceptions.
    for example the Vec function accepts a type as and returns a struct that can hold arbitrary amounts of said type on the heap.