The next episode of Zig SHOWTIME airs on Saturday 26th of September!
Times for a few different timezones:
3pm CDT / 22.00 CEST / 1:30am IST (Sun)/ 4am SGT (Sun) / 5am JST (Sun)
Go to https://zig.show for more info or subscribe to the Zig SHOWTIME calendar (iCal) to have all episodes automatically added to your calendar.
A Practical Guide to Compile Time Evaluation
By Alexandros Naskos
I love comptime, you love comptime. Don’t try to deny it, I saw you looking at that generic HashMap turn into a Set. You used to believe love had no meaning and that life only reserved macros for you. I don’t blame you, I used to feel the same. But now it’s different; we’re happy, so let’s learn some comptime patterns. Life is beautiful.
In Alex’s own words:
In this talk, we will explore the power of Zig’s comptime evaluation by looking at concrete examples of code used for parsing and creating protobuf data types.
Numeric Types in Zig: The Basics and the Unrepresentable
By Loris Cro
This is a talk that introduces newcomers to numeric types in Zig and how nice it is not to have a secret header file that contains all the right numeric types because the ones built into the language are considered bad practice (!?!?), like in C.
After discussing the basics, we touch upon some corner cases that have a troubled history given their peculiar nature. In preparation for this second part I leave you with a Zen riddle, just to jog your mind:
Can you measure the length of zero, with a zero-length ruler?
If you watch this talk, you’ll know the answer. Maybe.
Here’s a recap of the talks in the last episode, in case you missed it. The full episode is available on YouTube.
I didn’t pull from Zig master for like 2 days and now half of my code doesn’t compile anymore. In the meantime, somewhere in Sweden, production systems depend on a specific commit of Zig.
Mom used to tell me to never accept binary blobs from strangers, and that’s probably why.
Contributing to the Zig Ecosystem (YouTube Link)
By Loris Cro
For some reason I feel like we should spend a moment talking about how to contribute positively and have a good time in the Zig community. I swear I just woke up with that feeling, and it’s not because I spent 2 days straight ranting on Twitter and HN about related issues.
This is going to be just a quick “talk” from me, with a bigger focus on answering questions from Twitch, Discord and IRC. Let’s try to keep it about things to do, and not things not-to-do, as it seems we already have a good example of the latter.
See you at showtime,