Unorganized Notes on Zig
I love zig, and I'm growing to like it more everyday. It can be frustrating at times, especially since the learning curve coming from javascript was so steep, but it is so rewarding to build things I never would have been able to before.
If you're coming from javascript like me, I would start by reading these posts:
- Stack memory by Karl Seguin. Being aware of the lifetime of your memory is probably the hardest thing about moving away from a garbage-collected language, and is the toughest to internalize and master.
- Beginner's notes on Slices and Arrays by David Vanderson. This is the other thing that takes a long time.
- Pointers and constness in Zig convinced me that I wasn't crazy, and that the two different zig tutorials I was trying to follow referred to things differently!
If you'd like, you can also read this this older post of mine complaining about some of my growing pains with the language.
<END>