High Definition Standard Definition Theater
Video id : pnnx1bkFXng
ImmersiveAmbientModecolor: #f5b44d (color 2)
Video Format : 22 (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: Opus - Normalized audio
PokeTubeEncryptID: 6e137df83407a6d19656b0525afc8248ae57fb4c906a57c7d2da0fd747c2d635e4e665c4ffc3e309970b9d5b29de7a15
Proxy : eu-proxy.poketube.fun - refresh the page to change the proxy location
Date : 1716391714302 - unknown on Apple WebKit
Mystery text : cG5ueDFia0ZYbmcgaSAgbG92ICB1IGV1LXByb3h5LnBva2V0dWJlLmZ1bg==
143 : true
zig is the future of programming. here's why.
Jump to Connections
156,611 Views β€’ Apr 30, 2024 β€’ Click to toggle off description
For a long time, I really didn't understand where Zig fit in in the developer ecosystem. Now, I think I get it.

🏫 COURSES 🏫 Learn to code in C at lowlevel.academy/
πŸ“° NEWSLETTER πŸ“° Sign up for our newsletter at mailchi.mp/lowlevel/the-low-down

πŸ›’ GREAT BOOKS FOR THE LOWEST LEVELπŸ›’
Blue Fox: Arm Assembly Internals and Reverse Engineering: amzn.to/4394t87
Practical Reverse Engineering: x86, x64, ARM, Windows Kernel, Reversing Tools, and Obfuscation : amzn.to/3C1z4sk
Practical Malware Analysis: The Hands-On Guide to Dissecting Malicious Software : amzn.to/3C1daFy
The Ghidra Book: The Definitive Guide: amzn.to/3WC2Vkg

πŸ”₯πŸ”₯πŸ”₯ SOCIALS πŸ”₯πŸ”₯πŸ”₯
Low Level Merch!: lowlevel.store/
Follow me on Twitter: twitter.com/LowLevelTweets
Follow me on Twitch: twitch.tv/lowlevellearning
Join me on Discord!: discord.gg/gZhRXDdBYY
Metadata And Engagement

Views : 156,611
Genre: Science & Technology
Date of upload: Apr 30, 2024 ^^


Rating : 4.953 (85/7,185 LTDR)
RYD date created : 2024-05-22T15:19:29.156905Z
See in json
Tags

YouTube Comments - 808 Comments

Top Comments of this video!! :3

@LowLevelLearning

3 weeks ago

come learn about C and other languages at lowlevel.academy/

57 |

@foobar3202

3 weeks ago

You didn't even talk about one of the best features of Zig - seamless integration with C! It's really cool, you can straight import and start using C libs without writing any FFI.

724 |

@TheDolphiner

3 weeks ago

One aspect of Zig I find so refreshing is how minimal it feels - you can comfortably go through the language documentation in a couple hours because there just isn't that much to learn. Zig comfortably gets so much done with comparably so few features.

179 |

@cubemaster1298

3 weeks ago

Let's all agree on the fact that Zig has by far the best build system. It is literally built into the language itself. No more bullshit Makefiles, pkgconf or Ninja. Don't even get me started with CMake.

316 |

@zactron1997

3 weeks ago

If I didn't have Rust, I'd definitely be using Zig. For me, the philosophy behind Rust and Zig is what matters: we can make the compiler do more work for you, so why don't we? While I appreciate certain problems are so much easier to solve in Zig than in Rust, the stuff I write works really well in Rust, and it just clicks for me mentally.

238 |

@krtirtho

3 weeks ago

Zig is the best C toolchain ever

211 |

@sirbuttonhd

3 weeks ago

Zig makes low level development fun, accessible and productive

115 |

@CoolestPossibleName

3 weeks ago

My takeaway: Learn everything!

137 |

@pierreollivier1

3 weeks ago

Zig is definitely an amazing language, but there is so much you should have mentioned, maybe in another video, because as a C developer, Zig is really everything I wish C was. 1 - It's simple and easy to use. 2 - I'ts the most refactorable language (meaning you don't have to jump in 30 files fixing headers and function prototypes. 3 - Comptime is capturing 90% of the power of C++ templates/Macros, while still being very readable and type safe. 4 - The build system is insanely good, I replaced make/cmake with Zig, and with Zig itself it's really amazing. 5 - Zig found the right balance of freedom, meaning you can do exactly what you are doing in C (aka crazy casting and weird stuff unlike Rust) but at the same time the language design makes it very inconvenient and verbose to do so. Which makes it actually easier to just to the right thing and not take any shortcuts. So for once the Type system is actually one that doesn't deceive you because of how loose it is like C or how tight it is like Rust. 6 - Allocators are first class citizen. Even the Std is build around that which is amazing. I really don't get how a manual memory managed language like C didn't come with some form of interface for allocators. 7 - The interops with C is the most natural, intuitive, and straightforward that I've ever seen. You literally just add an @cImport("header.h"); and a exe.addCsourceFile("") in your build.zig and you are good to go. 8 - Zig also has integrated unit testing, which makes it so easier and cheaper to test code. In C I would literally spend 30 minutes writing some code and one hour testing it properly. In Zig you write a function write 2/3 tests forget about it and just do a quick zig build test and you are good to go. Which is also why it's so easy to refactor Zig btw. 9 - No hidden memory allocation, no hidden control flow, everything you read is everything you get, you don't have to guess whether this functions aborts, returns -1 or 0, or whether it sets ernno. 10 - The error handling and all the builting safety features makes it so much easier to write fast and correct code. I could go on an on but TLDR if you are a C developer you should definitely try Zig as I'm sure it's going to be the real C replacement. In System level programming.

127 |

@Elesario

3 weeks ago

After reading some of the comments my thought is "since when did programming languages become religions?"

22 |

@m4rt_

3 weeks ago

technically, defer runs at the end of the current scope, not function scope. so if you have something like this: fn main() { { defer print("b"); print("a"); } print("c"); } you get this: a b c if it was at the end if the function it would be this: a c b if it ran at the end of the function scope rather than watever nested scope it's in, it would try to free a pointer that is out of scope, which doesn't work.

12 |

@ImmiXIncredible

3 weeks ago

Finally you got zig-pilled :D One nitpick though: in zig defer operates on block scope, not function scope! Go's defer is function scope. Little, but important difference

44 |

@maxturgeon89

3 weeks ago

Pros and cons of C: you can do what the hell you want

24 |

@AkitooMusic

3 weeks ago

Zig is nice.

60 |

@itr00ow93

3 weeks ago

Zig is for puppygirls, rust for catboys

819 |

@nathanfranck5822

3 weeks ago

Zig makes 1000% more sense for game dev IMO ... Dont want to be worrying about Arc> when I'm just trying to do stuff. Zig's "reflection" is also amazing for game dev stuff like network\io serialization, GUI etc

34 |

@hacking4arabs

3 weeks ago

At first, I was suspicious of Zig, thinking it was just another pointless endeavor. However, after giving it a try, I'm now addicted to it. I've been able to accomplish incredible things that I couldn't achieve with other languages

139 |

@user-fi6qx8bw6k

3 weeks ago

as a beginner to programming, zig is my favourite out of all the languages i tried, i feel like i can read the standard library code and have an understanding of what its doing, unlike other low level languages where i cant comprehend anything others wrote , but the thing is , it feels like zig is dependant on C , you cant really do anything without importing a C library atleast from my prospective, also it feels like the community around it assumes everyone is coming from using C

24 |

@aniketbisht2823

3 weeks ago

As a C++ dev, Rust sucks but Zig comes close to what modern C++ offers you without any bullshit.

28 |

@BrainySmurf77

3 weeks ago

Nice video! Some good pros for Zig, and you didn't even get to its build system, which is arguably even more impressive in concept than the language itself.

22 |

Go To Top