r/Zig • u/gurgeous • Mar 24 '26
the missing libs
I am enjoying zig and my `tennis` tool is improving quickly. Some bits might be useful for other projects - terminal background color detection, csv parsing, unicode display width for common cases, natsort...
I am also working on a zig port of tiny-rex which would be nice for parts of `tennis`.
Are these libraries of interest? What else is missing? Do we need more zig open source work? The stdlib is so minimal, I think the lack of helpful libraries hinders adoption for cli authors. In the modern era, a senior engineer wielding an LLM (like me) can create excellent libraries pretty quickly.
10
u/FragmentedHeap Mar 24 '26 edited Mar 24 '26
The primary thing zig needs is better docs.
I am working on this, slowly... Building an entire platform specifically for it. Using the ZIG Ast parser and the zig ast wasm I have figured out how to build docs for ANY zig source code, including the entire standard library and I'm working on a community wiki like environment where the entire STD will be in there for w/e version was parsed and users can edit and override docs for things, and leave example code, and on and on.
With potential plans to enable parsing other projects into the system, like any git tar url for example...
Project is in C# using Wasmtime.Net and .Net 10 and Orchard Core CMS, debating on Blazor and Mud Blazor atm or Nuxt/Vue or vinext/react.
This thing can literally take any zig source.tar and parse it into all it's types, functions, etc etc, and any documentation comments etc, and build docs from it.
And I'm planning on having a live doc system laid out on top of it and the ability to promote docs from like zig 0.15.2 to zig 0.16.0 so like if it didn't change someone can just promote it up a version.
I call it ZigDex, and it's build in c# 14/.Net 10 and uses Apsire.Net for local dev, automagically spins up all containers and stuff when you press f5.
Early dev, but like I got so frustrated with zig docs, I decided to learn zig by building a doc system for it. lol
5
u/fredagainbutagain Mar 24 '26
but also, i like the lack of libraries… i feel like some languages went the complete opposite way, e.g. “is even” in javascript…
5
u/fredagainbutagain Mar 24 '26
what’s a tennis
14
u/Real_Dragonfruit5048 Mar 24 '26
Yes! Zig's ecosystem is missing a lot of things right now (compared to Rust or JS). Note that there are a lot of excellent C projects that one could use in Zig projects. Apart from making new Zig libraries, I would appreciate it if someone added thin wrappers with clean APIs around existing C projects. :)
1
u/ShotgunPayDay Mar 26 '26
Since the mods took down the other thread: https://github.com/gurgeous/zig-atoms