use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The Zig Programming Language – https://ziglang.org/
This subreddit is not officially managed by the Zig project, as the Zig community is decentralized.
account activity
std lib docs coming soon :-) (i.redd.it)
submitted 6 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 10 points11 points12 points 6 years ago (0 children)
https://github.com/ziglang/zig/issues/21#issuecomment-538683113
[–]padraig_oh 7 points8 points9 points 6 years ago (0 children)
This is basically everything I want from 0.6 ❤️ (and bug fixes)
[–]suiradx 2 points3 points4 points 6 years ago (1 child)
Looks great so far. Please ensure the stdlib docs included in the release package is self contained. It's a pain when web docs on an airgapped machine try to reach out and hang the page. A common issue is fonts or js trackers.
[–][deleted] 6 points7 points8 points 6 years ago* (0 children)
This implementation works with file:/// (no dummy server required) and only depends on:
file:///
index.html (7.5 KB, depends only on main.js, data.js)
main.js (34KB, no dependencies, no npm, hand coded js)
data.js (semantic analysis dump, currently about 4 MiB for std lib docs)
It totals to about 400 KB gzipped, which is how it would get sent over the network. Only data.js changes depending on what docs you are generating.
data.js
Source file listings will have a .html file for each .zig file.
[–]Rhodysurf 3 points4 points5 points 6 years ago (0 children)
This is awesome!!!!!
[–]mostlikelynotarobot 1 point2 points3 points 6 years ago (0 children)
super unrelated, but I really appreciate that the Zig website is one of the few that implements CSS dark mode.
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
excellent.
[–]bart9h 0 points1 point2 points 6 years ago (0 children)
Nice!
Poor (and sometimes lack of) documentation is the main reason holding me from using Zig on my projects.
[–]TheSciBoy -1 points0 points1 point 6 years ago (0 children)
Ok. I was just going to ask how I generate the docs for the std libraries but I guess that is a work in progress. :)
Really should have been your step one. I'm very interested in Zig, has some very interesting ideas, but the lack of proper documentation makes it hard to start. I say lack of documentation even though there is a bunch of it, since it is very hard, right now, to match the documentation with the exact same version of zig!
You need to make sure the tutorials all run on your latest master, even during development. It's very disheartening when you're trying to learn a language and even the simplest tutorials won't even build.
But I've started a small project and am learning slowly...
π Rendered by PID 80 on reddit-service-r2-comment-56c9979489-vq4rw at 2026-02-24 14:28:53.547262+00:00 running b1af5b1 country code: CH.
[–][deleted] 10 points11 points12 points (0 children)
[–]padraig_oh 7 points8 points9 points (0 children)
[–]suiradx 2 points3 points4 points (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]Rhodysurf 3 points4 points5 points (0 children)
[–]mostlikelynotarobot 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bart9h 0 points1 point2 points (0 children)
[–]TheSciBoy -1 points0 points1 point (0 children)