News for hackers. Stuff that matters.
Re:How I Built Zig-SQLite by jmull on Friday May 27, 2022 @12:04PM (#31531186)
I thought the docs were quite good.

I used "ziglearn" to understand ("chapter 1" and "chapter 2" have tons of foundational stuff): https://ziglearn.org/chapter-1/

I used the language reference for the details: https://ziglang.org/documentation/master/#Introduction

I agree the standard library docs aren't useful (unless something changed a lot in the last six months)... it seemed always better to just search and read the standard library source directly.

Re:How I Built Zig-SQLite by messe on Friday May 27, 2022 @12:40PM (#31531603)
> I agree the standard library docs aren't useful (unless something changed a lot in the last six months)... it seemed always better to just search and read the standard library source directly.

They're automatically generated. As I understand it they've been holding off on improving them until they have the self hosted compiler working, as it will be easier at that point.

Re:How I Built Zig-SQLite by throwawaymaths on Friday May 27, 2022 @12:43PM (#31531654)
To be fair it's really hard to "search" for tuples and anyonymous structs and get an understanding from "reading the stdlib". It's also enough of a departure from C (but not obviously readable like types on the left) to warrant some sort of big red flag in the lang docs... Understanding this tripped me up a bit