# zig lang https://ziglang.org/ https://ziglang.org/learn/overview/ https://ziglang.org/learn/samples/ ## issues [self-hosted compiler: ship it!](https://github.com/ziglang/zig/issues/89) [package manager](https://github.com/ziglang/zig/issues/943) ## github https://github.com/ziglang https://github.com/zigtools/zls .. sadly *zls* is a huge binary.. [linked list](https://github.com/ziglang/zig/blob/master/lib/std/linked_list.zig) ## docs ### primitive types values: `true`, `false`, `null`, `undefined` https://ziglang.org/documentation/master/#Primitive-Types |-----------|-----------|----------- | `i8` | `u8` | | `i16` | `u16` | `f16` | `i32` | `u32` | `f32` | `i64` | `u64` | `f64` | `i128` | `u128` | `f128` | `isize` | `usize` | |-----------------|---------------- | `c_short` | `c_ushort` | `c_int` | `c_uint` | `c_long` | `c_ulong` | `c_longlong` | `c_ulonglong` | `c_longdouble` |--------- | `bool` | `void` |------------------- | `anyopaque` | `noreturn` | `type` | `anyerror` | `comptime_int` | `comptime_float` https://ziglang.org/documentation/master/#Arrays https://ziglang.org/documentation/master/#Pointers ### std https://ziglang.org/documentation/master/std/ - HashMap - ArrayHashMap - ArrayList - AutoHashMap - ArrayListAligned - AutoArrayHashMap - wasm - zig - x - unicode - json https://ziglang.org/documentation/master/ - switch - Async and Await - struct - while with Optionals ### https://gist.github.com/josephg/873a21d4558fd69aeccea19c3df96672 https://duckduckgo.com/?q=zig+struct+reference+cycle&t=ffab&ia=web https://stackoverflow.com/questions/37688034/how-to-reference-an-instance-of-a-struct-inside-of-itself https://duckduckgo.com/?q=zig+struct+pointer+to+struct&t=ffab&ia=web https://stackoverflow.com/questions/68454051/zig-structs-pointers-field-access https://zig.news/david_vanderson/interfaces-in-zig-o1c https://github.com/ziglang/zig/issues/7769 ### postgres https://www.postgresql.org/docs/current/libpq.html https://www.postgresql.org/docs/current/libpq-connect.html https://www.postgresql.org/docs/current/libpq-example.html https://www.postgresql.org/docs/current/backup.html https://www.postgresql.org/docs/current/backup-dump.html https://www.postgresql.org/docs/current/backup-file.html https://github.com/tonis2/zig-pg https://github.com/tonis2/zig-postgres#how-to-use https://github.com/postgres/postgres https://github.com/batok/zig-pg-demo/blob/master/zig-pg-demo.zig (2022-05-17) (2022-10-15)