Re:Sadly, I must say goodbye to Leaf, my programming language
by annywhey on Wednesday August 08, 2018 @12:15AM
(#17713169)
Zig is on my "must follow" list right now. It's still early enough in the going that I don't want to maintain code in it, but it's developing in a promising direction and making the kind of commitments that are reasonable to keep.
A lot of language devs want to play with semantics but aren't into the whole "let's do the hard work of actually getting off of C as the baseline" idea so it's nice to have a project that does and has a fairly explicit goal of absorbing and replacing the existing infrastructure step by step.
Re:Sadly, I must say goodbye to Leaf, my programming language
by ndh2 on Wednesday August 08, 2018 @04:29AM
(#17714077)
Zig is Linux-first, though. I don't think they have any dev who runs Windows. For games especially, you don't want Windows to be an afterthought. Maybe they'll get to it eventually, but it doesn't seem a priority.
Re:Sadly, I must say goodbye to Leaf, my programming language
by AnIdiotOnTheNet on Wednesday August 08, 2018 @07:09AM
(#17714837)
I pretty much exclusively dev on Windows, and the only thing that's a problem for me is the lack of error and assert traces. Someone started implementing the support for it, but never finished it. It is complicated by the fact that Microsoft does not distribute DIA with Windows and Zig can't include it in its own distribution.
Then I started working with Zig[0]. It's about 90% the language I want and even though it's still immature and the syntax, std lib, and semantics are in flux, I still find the quality of life improvement so huge that all my current projects are in Zig.
Zig is a better C to Jai's better C++, I think. It's a small language, it favors simplicity and explicitness, it has entirely manual memory management to the point that there isn't even a default allocator (we pass one in to anything that requires one). It even lets you import C headers directly to interface with C libraries.
[0] https://ziglang.org/
(skip the "stable" 2.0 download, it's way out of date from master)