Premium Only Content
Learning: Zig Programming Language
Streamed on 2024-12-26 (https://www.twitch.tv/thediscouragerofhesitancy)
I've wanted to take the Zig programming language for a test drive and today is the day. I scanned through some of the Zig information on the webpage, downloaded it and installed it. To learn a programming language the best thing to do is have a project. I have never done an Advent of Code (AOC) so that's what we'll do. I don't want someone in the stream to know the solutions so I went back in time to the 2020 AOC.
I worked my way through three days of the 2020 AOC. We solved the puzzles and parts of it were easy enough with Zig. However, there are some usability and documentation issues. It is not obvious or easy to find how to do things. For example, in the case of reading a file line-by-line all the examples won't work with Windows line endings. I found various feature requests and forum discussions on the topic from 2020 (coincidentally the same year as our AOC) and it hasn't been addressed since then. The first AOC day puzzle I ended up reading in the whole file, then scanning it myself for the lines. The second day of AOC I read the whole file and then used std.mem.tokenizeAny on the text. This was better, but I still don't like it. Luckily the AOC day 3 didn't need any line splitting.
It doesn't feel like Zig is ready for prime-time. Maybe I'll revisit it later.
-
5:28
Dr. Nick Zyrowski
13 hours agoDopamine Detox - Get Your Energy, Sleep Quality & Focus Back
4.34K -
LIVE
Wendy Bell Radio
6 hours agoAmerica Needs To Be Democrat-Proofed
9,787 watching -
1:01:56
2 MIKES LIVE
13 hours agoTHE MIKE SCHWARTZ SHOW with DR. MICHAEL J SCHWARTZ 01-14-2025
9.74K -
19:15
Clownfish TV
12 hours agoElon Musk Buying TikTok?! TikTok Users FLEE to RedNote!
16.4K5 -
26:35
BonginoReport
6 hours agoCarrie Underwood Shakes Off the Cancel Mob’s Wrath (Ep.118) - 01/14/2025
73.8K64 -
LIVE
Vigilant News Network
16 hours agoBone-Chilling “Conspiracy Theory” Emerges as California Burns | The Daily Dose
800 watching -
1:27:16
Game On!
11 hours ago $5.49 earnedJerry Jones SHOCKS the world! Ready to make Deion Sanders head coach of the Dallas Cowboys!
47.6K9 -
8:50
Space Ice
18 hours agoSteven Seagal's Sniper: Special Ops Is His Greatest Achievement - Worst Movie Ever
61.1K26 -
14:57
MichaelBisping
18 hours agoBISPING: The Complete History UFC's Lightweight Division | "Will ISLAM BECOME GOAT after UFC 311?"
81.1K1 -
12:53
NC Dirt Hunter
1 day agoMetal Detecting a Civil War Camp. Both Union and Confederate!
50.9K4