Skip to content

Latest commit

 

History

History

zig

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Zig

VODs

References

Dev Env

Installed zig-mode in emacs.

Compiler

You could install using a package manager. I just downloaded a build from the downloads page. Extract with tar -xvf somewhere you want it to be. Add that directory to your path echo 'export PATH=$PATH:~/path/to/zig' >> .bash_profile.

LSP

zls - I just downloaded the prebuilt binary and put it in the same dir as my zig install. Eglot found it without issue.

Package Management

Zon is the Zig package manager. It currently doesn't have a cli but works from the build.zig.zon file in project root to install dependencies.

Issues

The install process wasn't perfectly smooth, but it wasn't difficult either.

Packages

Zap - Backend web micro framework. Wraps facil.io (which we used for C)

Note: We did have issues with Zap's latest pre-release not being compatible with Zig 0.12, thanks to chatter Southporter we were able to patch our cached version of Zap for compatibility without downgrading our Zig toolchain.

TODO

You actually had a memory leak in your fizzbuzz when you passed the heap allocator, you should've used a general-purpose allocator instead, and it would've given you an error