The next episode of Zig SHOWTIME airs on Saturday 3rd of October!
Times for a few different timezones:
2pm CDT / 21.00 CEST / 12:30am IST (Sun)/ 3am SGT (Sun) / 4am 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.
As if trusting the coder was ever a good idea...
Trust web developers and all you'll get is misalinged boxes. Trust embedded people and your teapot will require you to sign up and enable desktop notifications to function. Trust C programmers and all you'll get is memory belonging to other processes. Anyway, LoLa is a small language meant to be embedded into video games, kinda like Lua often is, but with some critical differences. @Felix I hope in the presentation you're going to explain to me and to JB (who's certainly going to be watching) why your programming language isn't as capable as Fortnite.
...uhmm I just realized Zig trusts the developer too much, brb going back to Java where nothing bad ever happException in thread "main" java.lang.NullPointerException
at FactoryFactory.loadClass(test.java:58)
at test.main(test.java:30)
at Main.main(Main.java:69)
By Loris Cro
The truth is that I have never once written in my life a piece of code that handled properly all possible errors. In this talk we'll make the courteous assumption that instead we do know what we're doing, that we know what to do when errors happen, and that we care about finishing our projects (yeah right).
In other words, this talk is useless: just @panic("TODO"), that's what the microservices people do anyway. If anybody complains, say that you're following the "fail fast and loud" agile design pattern.
Boom, 30mins of your life saved.
Here’s a recap of the talks in the last episode, in case you missed it. The full episode is available on YouTube.
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.
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.
See you at showtime,
Loris Cro