@josias I've given it a solid look, but I've been so spoiled by Go and Python that I don't want to go to a language that requires manual memory management. Looks very interesting otherwise.
@JonYoder I understand, but a garbage collector and other overhead is too much for many environments. Like embedded programming and other realtime programs like video games. afaiu
@josias You're completely right. A lot of video games are programmed in either C# or C++. Embedded is still largely C, but Rust is making big strides in that space. I can see Zig being pretty important in areas where C is the appropriate tool.
@josias I really like Zig (I've written about it semi-extensively here and on my gemlog) but it's just not stable enough for me to use it right now. Code written less than a year ago doesn't compile on the most recent version of Zig (neither the stable release nor development branch). I'll be using it after 1.0 is released for sure, but right now I can't in good conscience recommend it.
Maybe they'll actually bother documenting the stdlib by the time it's “officially” released too.
@nytpu What kind of documentation do you want for the stdlib? If you look at the source, the doc comments are generally quite extensive.
I understand the stability issues. It's a new language still. But it's beginning to stabilize, which should help with the incompatibilities.
I recommend it not as something that will solve all of your problems, but rather as a language to look into and possibly contribute to.
@josias Oh yeah, I don't fault them for being unstable, that's the whole point of being in pre-release. I just wouldn't use it for any project that I want to use long-term right now, even small personal projects. I'm looking into contributing but language and stdlib design isn't my forté.
And the main problem is the generated stdlib documentation. The doc comments are pretty good and the code is very readable, but their HTML stdlib docs are not useful at all. It'd be useful for browsing the stdlib if they linked to the source code for each function, but they don't. I'm imagining something like the Go documentation generator, links to the source, docs generated from the doc comments, everything nice and organized.
I wonder how I would go about offering to write a documentation generator à la godoc, that'd be a good place for me to contribute.
A family-friendly social network (Mastodon instance) devoted to the new life found in Christ.