Skip Navigation

Search

Zig Programming Language @lemm.ee
cryptocode @lemm.ee

Comptime Zig ORM - an advanced Zig tutorial

matklad.github.io Comptime Zig ORM

This post can be considered an advanced Zig tutorial. I will be covering some of the more unique aspects of the language, but won't be explaining the easy part. If you haven't read the Zig Language Reference, you might start there. Additionally, we will also learn the foundational trick for implemen...

From the ingress:

This post can be considered an advanced Zig tutorial. I will be covering some of the more unique aspects of the language, but won’t be explaining the easy part. If you haven’t read the Zig Language Reference, you might start there. Additionally, we will also learn the foundational trick for implementing relational model.

You will learn a sizable chunk of Zig after this post, but this isn’t going to be an easy read, so prepare your favorite beverage and get comfy!

Zig Programming Language @lemm.ee
cryptocode @lemm.ee

Zig Comptime is Bonkers Good

Great interactive blog post about the Zig comptime feature

Zig Programming Language @lemm.ee
cryptocode @lemm.ee

Safely handling C structs in Zig

ash.fail My favorite way to safely handle C structs in Zig

Out of all non-C languages Zig has hands down the best interoperability with it, yet people still write wrappers for libraries. That's because C is C and C has void pointers and other "features", that we'd like to not see in our code at all. In this post I show how I handle writing wrappers, that en...

My favorite way to safely handle C structs in Zig

FFI and C interop and how to do it safely from Zig

Zig Programming Language @lemm.ee
cryptocode @lemm.ee

Zig•EM: The EM language is dead, long live EM !!!

Zig•EM is a novel programming framework for resource-constrained embedded systems.

Read all about it in the linked blog post