Zig NEWS

# learn

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
Do not rely on the pointer to content of returned struct

Do not rely on the pointer to content of returned struct

1
Comments
3 min read
`tmpfile.zig`, a reusable utility for using tmp files in sys tmp

`tmpfile.zig`, a reusable utility for using tmp files in sys tmp

Comments
1 min read
A "distinct index types" journey

A "distinct index types" journey

3
Comments 6
5 min read
tip: use any git branch in `build.zig.zon`

tip: use any git branch in `build.zig.zon`

1
Comments
2 min read
Building Zig libraries with C dependencies

Building Zig libraries with C dependencies

5
Comments
2 min read
High Performance HashMap + Disk-based Allocator

High Performance HashMap + Disk-based Allocator

3
Comments 1
1 min read
Upcoming zig 0.12 changes of writing `build.zig`

Upcoming zig 0.12 changes of writing `build.zig`

5
Comments 2
1 min read
On Allocator Names
Cover image for On Allocator Names

On Allocator Names

7
Comments 8
2 min read
Learnings From Building a DB in Zig

Learnings From Building a DB in Zig

2
Comments 1
9 min read
Hot-reloading with Raylib
Cover image for Hot-reloading with Raylib

Hot-reloading with Raylib

10
Comments 4
11 min read
Zig Zap -- WTF is ⚡Zap⚡
Cover image for Zig Zap -- WTF is ⚡Zap⚡

Zig Zap -- WTF is ⚡Zap⚡

8
Comments 6
9 min read
Learning interfaces by implementing iterator in zig

Learning interfaces by implementing iterator in zig

5
Comments 5
6 min read
Zig Erasure Coding -- WTF is Zig Comptime 2 (Part 1)
Cover image for Zig Erasure Coding -- WTF is Zig Comptime 2 (Part 1)

Zig Erasure Coding -- WTF is Zig Comptime 2 (Part 1)

2
Comments
13 min read
how to use your fav pkg in `build.zig`

how to use your fav pkg in `build.zig`

7
Comments
5 min read
Implementing Closures and Monads in Zig

Implementing Closures and Monads in Zig

14
Comments 2
5 min read
Don't `Self` Simple Structs!
Cover image for Don't `Self` Simple Structs!

Don't `Self` Simple Structs!

18
Comments 20
2 min read
Zig is now also a Windows resource compiler
Cover image for Zig is now also a Windows resource compiler

Zig is now also a Windows resource compiler

9
Comments 2
14 min read
Zig Package Manager 2 - WTF is Build.Zig.Zon and Build.Zig (0.11.0 Update)
Cover image for Zig Package Manager 2 - WTF is Build.Zig.Zon and Build.Zig (0.11.0 Update)

Zig Package Manager 2 - WTF is Build.Zig.Zon and Build.Zig (0.11.0 Update)

11
Comments 6
14 min read
Dissecting a Simple Zig Program

Dissecting a Simple Zig Program

6
Comments 6
7 min read
Extending a C Project with Zig (2023)

Extending a C Project with Zig (2023)

5
Comments 2
12 min read
Comptime struct tagging

Comptime struct tagging

4
Comments 1
3 min read
The nice path to learn Zig now to EOY?

The nice path to learn Zig now to EOY?

Comments 3
1 min read
Zig Comptime - WTF is Comptime (and Inline)
Cover image for Zig Comptime - WTF is Comptime (and Inline)

Zig Comptime - WTF is Comptime (and Inline)

7
Comments 4
12 min read
Pointers and constness in Zig (and why it is confusing to a C programmer)

Pointers and constness in Zig (and why it is confusing to a C programmer)

16
Comments 6
3 min read
How to cast an array from one type to another type using pointers
Cover image for How to cast an array from one type to another type using pointers

How to cast an array from one type to another type using pointers

6
Comments
3 min read
Zig C/C++ Compiler -- WTF is Zig C++
Cover image for Zig C/C++ Compiler -- WTF is Zig C++

Zig C/C++ Compiler -- WTF is Zig C++

2
Comments 2
7 min read
Deciphering Many-Item Types. The skeleton.

Deciphering Many-Item Types. The skeleton.

7
Comments 1
4 min read
Zig Package Manager - WTF is Zon
Cover image for Zig Package Manager - WTF is Zon

Zig Package Manager - WTF is Zon

36
Comments 18
17 min read
Zig Union(Enum) -- WTF is switch(union(enum))
Cover image for Zig Union(Enum) -- WTF is switch(union(enum))

Zig Union(Enum) -- WTF is switch(union(enum))

12
Comments 4
8 min read
Methods

Methods

4
Comments
3 min read
Zig If -- WTF is !?bool
Cover image for Zig If -- WTF is !?bool

Zig If -- WTF is !?bool

13
Comments
6 min read
Anytype Antics
Cover image for Anytype Antics

Anytype Antics

36
Comments 5
5 min read
Feedback on Zig: real-life example through libIPC

Feedback on Zig: real-life example through libIPC

2
Comments
1 min read
Testing and Files as Structs

Testing and Files as Structs

22
Comments 4
3 min read
Coming Soon to a Zig Near You: HTTP Client

Coming Soon to a Zig Near You: HTTP Client

28
Comments 11
8 min read
When should I use an UNTAGGED Union?
Cover image for When should I use an UNTAGGED Union?

When should I use an UNTAGGED Union?

16
Comments 1
6 min read
Beware the copy!

Beware the copy!

11
Comments 7
3 min read
How to escape Python and write more Zig

How to escape Python and write more Zig

18
Comments 1
1 min read
Less but also more supported functions for trace.zig 0.2.0

Less but also more supported functions for trace.zig 0.2.0

3
Comments
4 min read
trace.zig: A small and simple tracing client library

trace.zig: A small and simple tracing client library

7
Comments 2
4 min read
How to create a zig project

How to create a zig project

5
Comments 1
1 min read
Easy Interfaces with Zig 0.10.0
Cover image for Easy Interfaces with Zig 0.10.0

Easy Interfaces with Zig 0.10.0

36
Comments 15
4 min read
NuttX RTOS for PinePhone: Display Driver in Zig
Cover image for NuttX RTOS for PinePhone: Display Driver in Zig

NuttX RTOS for PinePhone: Display Driver in Zig

5
Comments 1
28 min read
Function Tables
Cover image for Function Tables

Function Tables

8
Comments 3
1 min read
Howto Pair Strings with Enums
Cover image for Howto Pair Strings with Enums

Howto Pair Strings with Enums

11
Comments 6
1 min read
Simpler, safer LVGL Touchscreen Apps with Zig and Apache NuttX RTOS
Cover image for Simpler, safer LVGL Touchscreen Apps with Zig and Apache NuttX RTOS

Simpler, safer LVGL Touchscreen Apps with Zig and Apache NuttX RTOS

7
Comments
1 min read
MicroZig: Curiosity Nano serial communication
Cover image for MicroZig: Curiosity Nano serial communication

MicroZig: Curiosity Nano serial communication

7
Comments
7 min read
Type/pointer cheatsheet

Type/pointer cheatsheet

22
Comments 10
2 min read
But, will this blow up ?

But, will this blow up ?

12
Comments 2
5 min read
Programming SAM E51 Curiosity Nano with Zig
Cover image for Programming SAM E51 Curiosity Nano with Zig

Programming SAM E51 Curiosity Nano with Zig

12
Comments 1
4 min read
Read NuttX Sensor Data with Zig
Cover image for Read NuttX Sensor Data with Zig

Read NuttX Sensor Data with Zig

7
Comments 2
23 min read
Re: Makin' wavs with Zig
Cover image for Re: Makin' wavs with Zig

Re: Makin' wavs with Zig

23
Comments 7
10 min read
Zig files are structs

Zig files are structs

7
Comments 2
1 min read
When a var really isn't a var - part 2

When a var really isn't a var - part 2

6
Comments
2 min read
Build an LVGL Touchscreen App with Zig
Cover image for Build an LVGL Touchscreen App with Zig

Build an LVGL Touchscreen App with Zig

6
Comments 2
29 min read
Build a PinePhone App with Zig and zgt
Cover image for Build a PinePhone App with Zig and zgt

Build a PinePhone App with Zig and zgt

7
Comments
15 min read
When a var really isn't a var (ft. String Literals)

When a var really isn't a var (ft. String Literals)

9
Comments 7
4 min read
Why isn't my file being compiled

Why isn't my file being compiled

9
Comments 1
2 min read
Build an IoT App with Zig and LoRaWAN
Cover image for Build an IoT App with Zig and LoRaWAN

Build an IoT App with Zig and LoRaWAN

5
Comments
41 min read
Zig on RISC-V BL602: Quick Peek with Apache NuttX RTOS
Cover image for Zig on RISC-V BL602: Quick Peek with Apache NuttX RTOS

Zig on RISC-V BL602: Quick Peek with Apache NuttX RTOS

7
Comments
14 min read
loading...