Zig for Impatient Devs

  Рет қаралды 126,081

Isaac Harris-Holt

Isaac Harris-Holt

Күн бұрын

Пікірлер: 369
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
ERRATA: 0:33 - I mentioned that Zig doesn't have nice stack traces. This isn't true! They're very good, and quite detailed. It also does have a package manager. See @mlugg5499's comment for more information :) (or see the package manager release notes: ziglang.org/download/0.11.0/release-notes.html#Package-Management) 1:18 - []const u8 is a SLICE of const bytes, not an array! Also, strings will COERCE to this type, but as @rexicon2269 correctly pointed out, Zig string literals are technically constant single item pointers to null terminated byte arrays (*const [N:0]u8), however, I left this out of the video as we didn't cover sentinel termination :) 1:30 - @as is not a cast! It's effectively an inline type assertion. It'll only work if the type can be safely (upwardly) cast (thanks again @rexicon2269) 3:02 - The output would be 1, 4, 16, 64, not 4, 16, 64, 256 (thanks @someoneunknown6894!) 4:15 - There are some `const`s missing from types (thanks @unperrier5998!) 4:27 - The first line should be `const x` (thanks @GhislainGt!) 4:43 - Same as 1:18 4:58 - Missing `u8` between `[_]` and `{0}` (thanks @unperrier5998!) 5:39 - Struct fields are assigned with `=` not `:` (thanks @unperrier5998!) 8:18 - The inline loop should print `false` twice at the end (thanks @jcsahnwaldt!)
@raffimolero64
@raffimolero64 Жыл бұрын
Nice work. Good middle-ground between Fireship's " in 100 Seconds" and other more in-depth tutorial vids. 7:10 Rust's actual Option type declares `None` before `Some`, affecting the order of comparisons. This means the discriminant (tag) for None is 0, None < Some(0), and this behavior will be optimized out for Option. 9:16 As a newbie, I hadn't seen this syntax before. Looks like the while loop is taking an expression, which should only return true or false as per if/else, but the expression manages to return a value which is captured in the block. It looks more like some sort of Optional value matching, which wasn't explained earlier. I did a little bit of research and it looks like you can run an expression like if (?T) |t| { doSomething(t); } else { doSomethingElse(); } which appears to be special-cased for optional types and error unions. Maybe this errata comment could also be used with a "NOT COVERED:" section to dump a bunch of keywords that may be important to search, starting with the words you said at the end of the video. One thing you haven't mentioned, I think, is tests. Just put those words in there and go. The video is long enough, writing out whole examples in a comment would just be extra work that could go into making a part 2.
@tatterdemalion898
@tatterdemalion898 Жыл бұрын
well this sounds like C with a little more error handling XD
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Sounds like a good thing to me 👀
@master74200
@master74200 Жыл бұрын
At 0:39 the PATH specified is also incorrect. It should be a path to where the binary resides, not a path to the binary itself. In fact, /usr/bin very well should already be in the PATH variable.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
In this case, zig is a directory, as that's what comes from the download :)
@felixjohnson3874
@felixjohnson3874 Жыл бұрын
As someone who is so used to 2x speed for everything it is unexplainably refreshing to have a video that *_actually_* needs to be slowed
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I watch most stuff at 2.7-3x speed, so I understand your plight 😅 it's one of the reasons I like making content like this!
@laycookie-f6i
@laycookie-f6i Жыл бұрын
God dam so true
@bpo217
@bpo217 Жыл бұрын
100% agree
@Yash9278
@Yash9278 Жыл бұрын
​@@IsaacHarrisHoltBamboozled 😂😂😂
@krellin
@krellin 9 ай бұрын
oh crap i forgot i had this on faster speed
@oerickmuller
@oerickmuller Жыл бұрын
This video is like a movie trailer, but for a language, and in a good manner: you watch the video, see how things happen in Zig, and if you think that it's for you, you go deeper. This kind of content is extremely helpful.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I'm glad you found it useful! Let me know what else you'd like to see
@lolilollolilol7773
@lolilollolilol7773 5 ай бұрын
@@IsaacHarrisHolt maybe i watched too quickly, but you didn't mention the complete interoperability with inline C and C++. Heck, the zig compiler can also compile these 2 languages !
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
Yes, I know, and that's really cool! I was focusing more on the language itself in this video though :)
@jordanhildebrandt3705
@jordanhildebrandt3705 5 ай бұрын
Wow. This video forced my brain into a higher gear than I'm used to using when watching KZbin. Usually, I'm just vegetating. This required serious focus. But, with sufficient focus, this was well-paced and gave an EXCELLENT overview of Zig. Thanks.
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
Awesome! Glad you found it helpful
@besknighter
@besknighter 3 ай бұрын
Me too! I usually watch videos on PnP while working because it's not dense at all. This one I had to actually stop and pay full attention, rewinding and stopping to read the code. This is much better.
@alexon2010
@alexon2010 9 ай бұрын
I'm a complete beginner in Zig, I've been developing for the web - front-end, Javascript with React for about 10 years, I love the productivity of Reat, but I also want to learn a compiled language because I really like embedded electronics for machines... I liked it a lot about Zig... even though I don't know English, your video was the best so far for learning Zig... congratulations
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
Thank you! I'm glad you found it helpful
@not_herobrine3752
@not_herobrine3752 Жыл бұрын
Zig sounds like chrismas for C users
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Why do you think I released the video at this time of year 😉
@not_herobrine3752
@not_herobrine3752 Жыл бұрын
@@IsaacHarrisHolt how long were you waiting for someone to comment this
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
So long
@Kraboobee
@Kraboobee Жыл бұрын
Merry zig to all C users
@Maagiicc
@Maagiicc Жыл бұрын
All of this looks pretty good, but I think I'll stick with C
@someoneunknown6894
@someoneunknown6894 Жыл бұрын
Just got recommended to me, great video! Really enjoyed it and subscribed :D A small note, on 3:02 the loop with the continue expression would print 1, 4, 16, 64 instead of 4, 16, 64, 256 Idk what's your style but I personally like No Boilerplate's errata comment where he mentions small mistakes like this Again though, the video is awesome, thanks for making it! :D
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Done! It's something I've done before too. Thanks for pulling me up on it :)
@samdavepollard
@samdavepollard 9 ай бұрын
so impressive, how much you manage to pack into 10 minutes great work - many thanks for sharing your knowledge subbed
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
Thanks! I hope you found it helpful :)
@amolizm
@amolizm 6 ай бұрын
3:36 most beautiful switch statement ever.
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
🙃
@koool56
@koool56 Жыл бұрын
Using Zig have been awesome, exactly what I needed after envying Rust/Go features I wished C had!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Cool! What would you say is your favourite Zig feature?
@koool56
@koool56 Жыл бұрын
⁠​⁠​⁠@@IsaacHarrisHoltWell, it’s three things I missed in C, hard to pick one. * optional value as 1st class language citizen (not unwieldy C++ implementation, null pointer or magic value) * being able to add methods to structures (C void pointer way loses type safety and syntax is nuts) * Errors as values, checking for null on top of checking some global error variable is hacky in both C and C++
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Very valid reasons! Let me know how you get on with Zig
@TheMachina42
@TheMachina42 Жыл бұрын
Zig is really my favorite language, as a C developer it really is everything I wish C was and more : - No more Macro cancer. - No more make/cmake/ninja cancer. - No more implicit integer promotion foot guns. - No more namespace conflict. - No more quirks. - No more checking for null everywhere. - No more void* and macros for generic. - Actually useful and usable standard library. - Seamless interop with C. - Lower level control than C with native support for SIMD primitive. - Errors as value. - Stricter type system. - Allocators are first class citizens - Very readable and explicit code, there is next to no hidden control flow everything you read is everything you get.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
This is exactly what Zig is trying to solve! It's still not my cup of tea personally - I like slightly higher level languages - but I'm not solving low level problems, so I don't need as much control as Zig provides. That said, I definitely want to experiment more with working on low level systems and such, and I think Zig is definitely a fun way to try and accomplish that.
@TheMachina42
@TheMachina42 Жыл бұрын
@@IsaacHarrisHolt That's understandable. If you wish to get the broader perspective on why Zig is so awesome, a quick experiment that I would recommend, would be to re implement something relatively trivial like hex dump. Try to do it in C, try do to it in your favorite language, then try to do it in Zig. This shouldn't take too long, (around 500 loc for a bare bone implementation). If you try hard to write good C code redoing everything in Zig will really give you valuable insights on why Zig is so great.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Ooh thanks! I'll take a look into it. Honestly I've never actually written any C outside of RaspPi/Arduino programming, so it might take me ages to get through it all
@lolilollolilol7773
@lolilollolilol7773 5 ай бұрын
I agree, zig is the true successor to C. It only needs to be ported to platforms where C is used.
@TheMachina42
@TheMachina42 5 ай бұрын
@@lolilollolilol7773 Technically the stage1 compiler is in C, so wherever C is, Zig is not far away if I may say
@vojtastruhar8950
@vojtastruhar8950 Жыл бұрын
Awesome video. I hope your channel grows! Great work
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Thank you!
@mlugg5499
@mlugg5499 Жыл бұрын
At 0:33, you mention some missing features. Firstly, Zig does have a package manager - it's a quite recent creation and so somewhat immature, but it does exist, and is being used in the wild (the best example is probably the Mach project). Secondly, I'm not sure what you meant by "reasonable stack traces". I haven't heard of any major issues we currently have with stack traces - in general, stack traces are printed by the panic handler on any crash, and they're detailed & prettified. If you've encountered any specific issue with incomplete/incorrect stack traces, that's a bug, and possibly one we're not aware of, so please report it!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Apologies for that! I couldn't find any information on the Zig package manager (I assume you mean Zon?) on the ziglang.org site, so I assumed it was potentially third-party, like nektro/zigmod. If you could just make sure I've got the right one, and provide some documentation, I'll include a link in the pinned ERRATA comment. I'll do the same re the stack traces. I don't know why, and I can't reproduce them, but I didn't have a great experience when I was researching for this video. Thanks for calling me out, though!
@mlugg5499
@mlugg5499 Жыл бұрын
(I just wrote a detailed reply here and KZbin in its infinite wisdom deleted it when I tried to fix a typo. I'll rewrite it later on :p)
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Looking forward to it :)
@mlugg5499
@mlugg5499 Жыл бұрын
@@IsaacHarrisHolt Sorry it took me so long to get around to this, I've been quite busy. Okay, so! ZON is not the name of the package manager, but rather a file format. It stands for Zig Object Notation - like JSON, we've basically taken Zig's construction syntax and turned it into a file format. ZON is used by the package manager, but it's a general-purpose file format. The package manager itself does not have a name - it's just a system integrated into the compiler. The way it works is that you create a file named `build.zig.zon`, which declares the name of this package, and all of its dependencies and their URLs (the package system is decentralized, unlike e.g. npm). These dependencies can then be referenced from your `build.zig`. The schema for this ZON file is detailed at github.com/ziglang/zig/blob/master/doc/build.zig.zon.md. Unfortunately documentation for the package manager itself is a little lacking at the minute - the best resource is probably the release notes for 0.11.0 (ziglang.org/download/0.11.0/release-notes.html#Package-Management), but keep in mind that might be a little outdated. You can see an example package at github.com/andrewrk/SDL, and an example usage of said package at github.com/andrewrk/sdl-zig-demo. I hope this helps!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Very helpful, thank you! I'll add a link to this comment in the errata :)
@lolilollolilol7773
@lolilollolilol7773 5 ай бұрын
it's amazing how comptime seems to be actually C++ templates without the garbage syntax !
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
It's great!
@AK-vx4dy
@AK-vx4dy 10 ай бұрын
Zig big feature is seamless integration with C, not only using libraries in both directions with lon the fly bindings generation but zig even can compile C code or be used as build system (programmed in Zig !).... Zig author(s) should take some prize for it!!! Oh i forgot, Zig can compile itself and c *cross-platform*... you can compile to Windows binary (exe) on mac or linux or vice-versa....🤯
@IsaacHarrisHolt
@IsaacHarrisHolt 10 ай бұрын
Yeah, Zig is great! And this is very compelling. I know Vercel used `zig cc` as the build tool for their Go/Rust project
@DanFromIran
@DanFromIran 8 ай бұрын
I love C and I think I will love Zig even more. thank you for this video.
@IsaacHarrisHolt
@IsaacHarrisHolt 8 ай бұрын
You're so welcome! I'm glad you found it useful
@fleaspoon
@fleaspoon Жыл бұрын
thank you for the video but I had to slow it down to have some time to think
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
That's the point! It's meant to be a speedrun of the language. You can always watch it a couple of times 😉
@reed6514
@reed6514 Жыл бұрын
Alternatively, drink 6 pots of coffee, and you'll have to slow down so the universe can think. (Don't drink 6 pots of coffee! Care for your heart! ☕❤💥)
@joopie46614
@joopie46614 Жыл бұрын
This looks a lot like rust in some cases, I also see a lot of rust developers alternating between rust and zig, it looks promising. As for things like panicking on integer overflow, how about dynamic integers? Does it have runtime checks for overflows? That sounds like a poor trade off between performance and safety.
@mgord9518
@mgord9518 Жыл бұрын
It has runtime checks in Debug and ReleaseSafe mode. For ReleaseSmall and ReleaseFast, integer overflows are UD
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Good to know, thanks!
@dealloc
@dealloc Жыл бұрын
i think the analogy most people make is Rust is "the new C++" and Zig is "the new C". Of course doesn't mean they're going to replace the languages; just that Rust is more implicit like C++ and Zig is more explicit like C. Of course it's not apples to apples, since C++ is (somewhat) extended C, not the same history with Zig and Rust. Interop between the two is a whole other rabbit hole :P
@aveydotdev
@aveydotdev Жыл бұрын
Everything I need is in C, Zig, and Go!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Well good job I have overviews of 2/3 of those on the channel 😉
@konstantinrebrov675
@konstantinrebrov675 7 ай бұрын
Don't forget about C++, Rust, D, Odin, and HLA!
@pdgiddie
@pdgiddie 9 күн бұрын
Maybe try Elixir instead of Go - it offers a lot of advantages 😊
@blouse_man
@blouse_man Жыл бұрын
Zig feels like a mix, can u tell what the special reason for which zig is in the talks for sometime now??
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
A lot of it is down to how low level you can get with it. It's as low level as C, but ultimately safer. Comptime is also very useful once you start getting into advanced stuff with it - much nicer than headers and macros.
@TheMachina42
@TheMachina42 Жыл бұрын
Zig is meant to replace C, If you know C well you can clearly see (no pun intended) that Zig was built off the frustrations of C. The problem with C is that it lacks type safety, and carries a lot of terrible decisions, namely, macros, preprocessor, nullability implicit conversion rules, forward declaration etc. You might think that alternatives already exist, like C++ or Rust, the problem with those languages is that they aren't "real" C replacement, Why ? Because they don't follow the same set of principles. Zig on the other hand really focus on simplicity and ease of use, especially if you are a C programmer all of the very "unsafe" things and all of the error prone stuff is replaced with more explicit or safe constructs and idioms. In Zig you can't cast variables as freely as you used to do in C, instead you have to use specific builtins to do so. You don't need to use macro magic or void* to get generics, instead you can use a safe alternative called comptime. You don't need to worry about the build system and portability and linking error, instead you can use Zig to build Zig. You don't have to migrate to a new testing framework, instead you can just rely on the Zig builtin testing framework, You don't need to use more macro magic from another language to generate bindings to interops with your old C you can just compile it with the Zig compiler, You also avoid namespace conflict out of the box, and so much more that I can't really name everything, the point is that I'm a C developer, and Zig literally is everything I wished C was.
@salty_cucumber
@salty_cucumber 11 ай бұрын
​@@TheMachina42 excellent answer
@Somali-iv9pu
@Somali-iv9pu 11 ай бұрын
It really seems to be a beautiful language i think ill try learning it i wanna invest time in it but i dont know if it will ever be in demand
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
There are some really big projects using it! Bun is probably the most famous example at the moment
@user-lg4le8xr4s
@user-lg4le8xr4s 11 күн бұрын
It absolutely will. Once it reaches a full release state it will be everywhere
@rexicon2269
@rexicon2269 Жыл бұрын
at 1:18 this is not a array of "const u8" :) it's actually a slice of "const u8". the difference being "[]const u8" and "[N]const u8", where N is a comptime known value. "this is a string" is of type "*const [N:0]u8" aka a pointer to a const 0 terminated array of u8. this then coerces into a []const u8 through the explicit type you give "const string: []const u8". same thing at 4:43 minor error, but they are distinctly different things. error 2: at 1:30 the @as is not a cast. it's a inline way of writing `const flt: f80". the actual cast here happens implicitly. the same thing would have worked if you had written "const flt: f80 = 5000.1". of course this can only happen if it's a safe cast such as casting upwards i.e u32 => u64. casting downwards would not work, and be an error, and would require i.e @intCast
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Have added to the pinned errata comment! Thanks for calling me out :)
@rexicon2269
@rexicon2269 Жыл бұрын
always happy to help :) just saying: @as is not a cast! It's effectively an online type assertion. i think you meant to say "inline type assertion"
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I do! Thanks 😅
@xerathgaming1915
@xerathgaming1915 7 ай бұрын
as someone who programs in c this looks really interesting
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
Definitely give it a go
@hypernarutouzumaki
@hypernarutouzumaki 6 күн бұрын
What about unicode strings? How are they stored?
@IsaacHarrisHolt
@IsaacHarrisHolt 6 күн бұрын
They're still sorted as arrays of UTF-8 codepoints, the same as any other string. The std.unicode package in the standard library has functions for wrangling unicode strings, and I believe you can have it output a u21 for a unicode codepoint, as that's enough to cover the entire unicode space. There are some really good articles online you can look at if you want more info :)
@matteac_rs
@matteac_rs Жыл бұрын
zig is awesome, quite difficult to understand the memory model coming from a gc lang, but it is extremely powerful. I love the fact that zig aims to be simple, like c, instead of being complex (but more powerful out of the box) like rust. I also love rust, but at some point it becomes overcomplicated I really liked the video, a lot of info in 10 minutes, loved it!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Yeah, going to a low level lang from a GC Lang is difficult, but eventually you'll wrap your head around it and it'll all just click :) Glad you enjoyed the video!
@offroaders123
@offroaders123 Жыл бұрын
Great comment, and heck yeah King Crimson!
@unperrier
@unperrier 11 ай бұрын
**ERRATUM** The return values at 3:01 (loop with continue expr) are wrong, it should be: 1, 4, 16, 64 At 4:15 you're missing a bunch of 'const' to specify the pointer is pointing to constant value (two consts in the pointer definition, just like in C) At 4:24 the code you display works because you forgot to make the variable constant. At 4:58 you're missing the type: [_]{0} requires a type. It should be [_]u8{0} At 5:39 the code doesn't even compile
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
Thanks! I think a couple of these are already in the pinned "ERRATA" comment, but I'll add the missing ones
@unperrier
@unperrier 11 ай бұрын
@@IsaacHarrisHolt I was going along with your examples, playing with them, that's how I noticed them. They're helpful because even though they're slightly wrong at times, the audio commentary tells what matters. On that note I had to reduce the audio speed and pause to actually digest the teaching.
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
@@unperrier totally fair! I know it's a lot to get through in a short space of time - that's how it's designed - and I definitely expect people to pause and rewatch parts. I'm glad you found it helpful though :)
@comradepeter87
@comradepeter87 11 ай бұрын
Nice to see more videos in the NoBoilerplate style.
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
I just hope you found it useful :)
@ilonachan
@ilonachan Жыл бұрын
I really like Zig in concept, as a replacement for C it's definitely a stellar option with just straight upgrades everywhere! I've never really worked that low-level though, I don't deal well with the whole "manual memory management" thing, which is why I'll probably stick with Rust instead. What's really sad to me is how awesome the whole comptime and emergent type meta stuff is, and how that whole system is probably fundamentally incompatible with Rust's type system. If the Rust team ever finds a way to integrate all this comptime magic into their code naturally, it's really gonna pop off for me! (and yes I know macros exist, but they only operate on tokens and not actual types and structures. Again because Zig's model of building the types at comptime seems pretty much incompatible with Rust's type checker.)
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I like this take! Yeah, comptime is pretty much my favourite feature of Zig. Like you, I prefer Rust's memory management and I find the type system more robust. You can still accomplish most of what comptime offers through generic types, but not everything, sadly. And don't get me started on lifetimes...
@LageAfonso
@LageAfonso Жыл бұрын
I don't feel like Zig syntax is well structured enough, seems like a bunch of syntax sugar that someone just added to make things work. Maybe I'm just used to Rust typesystem.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I do love the Rust typesystem. Zig is still technically pre-1.0 though, and I think there's a lot of room for it to grow and improve
@shrin210
@shrin210 Жыл бұрын
​@@IsaacHarrisHolt There is no room to grow and improve syntax i guess
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Major versions could introduce breaking changes :)
@TheMachina42
@TheMachina42 Жыл бұрын
From the perspective of a rust developers maybe, but if you've been programming in C extensively, you might be able to see that basically all of the "syntactic sugar" is really just very common C idioms (who are very error prone, or unreadable) expressed in a shorter and or safer way. Because the target audience for zig is really just C developers who want to migrate/maintain their old code base with a more modern and safer language, with more control/freedom than what Rust offers (at the expense of memory safety), and without the ugliness of C++. Which makes a lot of sense, I also believe that they've said that the syntax might evolve once everything is ready for the 1.0 as they don't think syntax should be their primary concern.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I disagree with the developers here somewhat. People these days are generally flocking to languages that feel good to write, and syntax is a big part of that. Zig is currently lauded because it's a vast improvement on C, but lots of things are a vast improvement on C, tbh. As soon as a 'Zig with nice syntax' comes along, Zig could be in trouble.
@Pesquisando0b1011
@Pesquisando0b1011 10 ай бұрын
Y'all have some idea of Zig 1.0 ETA? Another question: Why Zig code in Compiler Explorer generate so much assembly lines?
@IsaacHarrisHolt
@IsaacHarrisHolt 10 ай бұрын
Sadly I have no idea when Zig will hit 1.0. You'd probably be better off asking one of the core team members. Same goes for the second question :)
@yongkangchia1993
@yongkangchia1993 10 ай бұрын
how did you make this video? PowerPoint?
@IsaacHarrisHolt
@IsaacHarrisHolt 10 ай бұрын
Obsidian!
@fabricehategekimana5350
@fabricehategekimana5350 5 ай бұрын
Really interesting ! Go also has something that works the same as calss delegation named type embedding
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
Very similar! Struct embedding in Go is great for sure
@pippabrooks2162
@pippabrooks2162 11 күн бұрын
The whole video I can't help but think: Move Zig, for great justice!
@IsaacHarrisHolt
@IsaacHarrisHolt 11 күн бұрын
Zig is good!
@j.r.8176
@j.r.8176 7 ай бұрын
Why do arrays store their length by default? isn't that memory wasted? Also what's a point of 'arbitrary bitwidth' variables? All modern CPUs have a minimum operation width of 8 bits. If you define two variables of type 'u3', it is smart enough to fit both into one byte? Or will it fit each into an individual byte? If it's the latter then what's the point?
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
To answer your first question, yes, it's extra memory usage at the cost of safety. As for the arbitrary bitwidth ints, I'm not sure. I would Google it, if I were you.
@ant1fact
@ant1fact 7 ай бұрын
Zig is pure joy after Rust
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
I've still not properly used it, but I think I will
@gp5381
@gp5381 Жыл бұрын
would you make one episode on F# and fsx scripts? :) lovely channel
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I'll add it to the list!
@iaconst4.0
@iaconst4.0 8 ай бұрын
good video , many persons say that zig is the fastest language program, is that true?
@IsaacHarrisHolt
@IsaacHarrisHolt 8 ай бұрын
I mean, Zig is a manually memory managed, low level language, so it's gonna be fast. As for the fastest, who knows? It'll vary benchmark by benchmark, but generally the fastest is probably gonna be assembly
@phenanrithe
@phenanrithe 11 ай бұрын
Why the rush?
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
Cause I'm Impatient 😉
@abcdefg-nu4xj
@abcdefg-nu4xj Жыл бұрын
you are so underrated
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Thank you!
@Ashalmawia
@Ashalmawia 2 ай бұрын
I *love* it in principle but it's a bit hard to use so far. no function overloading, strings should be easier than C but seem harder instead, and I haven't so far figured out how to have shared libraries, which is pretty important. otherwise I would totally want to use it for small CLI tools.
@IsaacHarrisHolt
@IsaacHarrisHolt 2 ай бұрын
All totally fair criticisms, I think. For shared libraries, I think there technically is a package manager, but I've not used it. Strings I half agree with - once you've gotten used to using an allocator for them, they're pretty fine
@yadukrishnan8577
@yadukrishnan8577 Жыл бұрын
Please do a part 2.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Interesting request! What would you like it to cover?
@yadukrishnan8577
@yadukrishnan8577 Жыл бұрын
@@IsaacHarrisHolt I've heard that Zig does async differently when compared to other languages. I'd love to know if that is true. And maybe c-interop as well.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
It's true! I'd recommend looking at ziglearn.org
@danser_theplayer01
@danser_theplayer01 22 күн бұрын
comptime sounds like *eval* but for compile insted or runtime, neat.
@IsaacHarrisHolt
@IsaacHarrisHolt 22 күн бұрын
It's great
@justafreak15able
@justafreak15able Жыл бұрын
Bro what tool do you use to generate these voice tracks for your videos? 😮
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
A Blue Yeti, Reaper FM and Adobe Podcast :)
@EverRusting
@EverRusting 2 ай бұрын
AAAAAAAAAAA I read the title as Zig is for impatient devs thinking it is heavy on shortcut syntax... and it also is
@IsaacHarrisHolt
@IsaacHarrisHolt 2 ай бұрын
There's definitely some strange syntax, but you get used to it quite quickly once you actually start writing Zig, and it's actually quite nice!
@veryboringrides3664
@veryboringrides3664 4 ай бұрын
would be better to have a slightly longer pauses between the sections.
@IsaacHarrisHolt
@IsaacHarrisHolt 4 ай бұрын
Thanks for the feedback!
@toby9999
@toby9999 5 ай бұрын
I've been a C++ developer for 28 years. I like C++ but Zig looks interesting. How difficult is it to get a Zig development environment working on Windows?
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
Not at all! It's a single binary for the language, and then zigls is available for editors
@reed6514
@reed6514 Жыл бұрын
It looks nice. This is the first time I've looked a new (to me) language and actually wanted to use it. Like I've watched Rust videos & C & python & I've played with C#, but meh idc whatever I'll stick with my PHP. Zig actually looks like a thing i wanna try. But i have 30+ FOSS php projects, so i won't be switching languages any time soon.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
It's always worth experimenting, even if you don't do anything major with it. Give it a go for the advent of code or whatever :)
@ikirachen
@ikirachen 9 ай бұрын
AOP reinvented ... nice to see this aproach :)
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
Ooh interesting take! What makes you say that?
@RoyaltyInTraining.
@RoyaltyInTraining. 11 күн бұрын
Snake case for variables and camel case for functions immediately pisses me off. What if I want to take in a function as an argument?
@IsaacHarrisHolt
@IsaacHarrisHolt 11 күн бұрын
It's probably my least favourite part of Zig. That said, you would always just write all your function names in snake case and deal with the fact that library functions will be camel case
@cardboardpig
@cardboardpig 7 ай бұрын
Great video, thank you.
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
I'm glad you found it helpful!
@necauqua
@necauqua 10 ай бұрын
don't understand the comments complaining about pacing, it's literally perfect good video, keep it up 👍👍
@IsaacHarrisHolt
@IsaacHarrisHolt 10 ай бұрын
Thank you! I appreciate this
@peanutbutter8885
@peanutbutter8885 Ай бұрын
take a shot every time he says type.
@IsaacHarrisHolt
@IsaacHarrisHolt Ай бұрын
Bet
@danser_theplayer01
@danser_theplayer01 22 күн бұрын
"If and loops and switch can be used as expressions" goddamn, I might want to leave easy to write js and try zig for a hot minute.
@IsaacHarrisHolt
@IsaacHarrisHolt 22 күн бұрын
Honestly having everything as expressions is one of my favourite languages features, be it in Zig, Rust or Gleam!
@lattehour
@lattehour Жыл бұрын
the day i will write .* to dereference a pointer will happen only in end times
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Understandable
@friedrichdergroe9664
@friedrichdergroe9664 3 ай бұрын
Discord link is invalid.
@IsaacHarrisHolt
@IsaacHarrisHolt 3 ай бұрын
Working for me. What happens when you click it?
@ottergauze
@ottergauze 9 ай бұрын
Take a shot every time he says "type", I dare you.
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
Only if you do it first 👀
@kacaii
@kacaii 7 күн бұрын
More zig videos pls 🙏
@IsaacHarrisHolt
@IsaacHarrisHolt 7 күн бұрын
It's pretty cool, right! Though it's not particularly likely I'll be doing more Zig at the moment - I'm pretty focused on Gleam
@TheSaintsVEVO
@TheSaintsVEVO Жыл бұрын
Why do you people edit videos like this with zero pauses
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
So I can stick "in 10 minutes" in the thumbnail 😉
@user-he4ef9br7z
@user-he4ef9br7z Жыл бұрын
Good. Most tutorials are too slow paced and boring.
@colto2312
@colto2312 9 ай бұрын
ngl i'm sold. if i'mma compile to binary; this is probably my choice. mostly a scripter personally however
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
It's a good choice! Zig is pretty good
@AdityaRahalkar
@AdityaRahalkar 5 ай бұрын
Amazing tutorial
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
Thank you!
@KieranHolroyd
@KieranHolroyd Жыл бұрын
No Boilerplate is spreading across languages now
@KieranHolroyd
@KieranHolroyd Жыл бұрын
top quality video in your own right though
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Thank you!
@classic-25
@classic-25 8 күн бұрын
Brain overload🤯🤣 5:52
@IsaacHarrisHolt
@IsaacHarrisHolt 8 күн бұрын
💯
@patriotlightning7791
@patriotlightning7791 6 ай бұрын
Anyone else thought it was a video about the new Zed code editor?
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Curious, what made you think that? I wanna know so I can tweak things if needed :)
@patriotlightning7791
@patriotlightning7791 6 ай бұрын
@@IsaacHarrisHolt I misread the title bro :D Great Video Btw !
@chefaku
@chefaku 8 ай бұрын
8:00 I have never seen a macro so simple to understand
@IsaacHarrisHolt
@IsaacHarrisHolt 8 ай бұрын
It's fantastic
@venir_dev
@venir_dev Жыл бұрын
Next, you'll do Elixir... right? 😍
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Oooh interesting! I hadn't thought of doing Elixir. Maybe I'll start running polls and suggestion stuff on Discord
@silloo2072
@silloo2072 7 ай бұрын
C has really the vest syntax
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
But so many footguns 👀
@silloo2072
@silloo2072 7 ай бұрын
@@IsaacHarrisHolt what is a footgun?, yes but c is soo simple and straightforward, the datatype before the name is so much more natural than name: type
@vincent06
@vincent06 11 ай бұрын
I have mixed feelings about Zig after watching this... I like the errors handling, var VS const, defer keyword and many other things but operators look horrific... I don't want my code to looks like hieroglyphes ** +%= ++ .*
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
Totally valid points! Zig isn't for everyone, but I'd also argue that syntax isn't everything. You'd get used to it after a while.
@modolief
@modolief Жыл бұрын
Thanks!!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
You're welcome! Let me know what you'd like to see next 😉
@modolief
@modolief Жыл бұрын
@@IsaacHarrisHolt Ok well ... this is kind of a big ask, but I haven't seen a good overview video for the general software dev audience on the topic of TLA+, the formal specification language that can be used to prove the correctness of programs. Yes, I know, it's a really out there topic, but it has been on my radar for years.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
@@modolief interesting! I'll look into it, but it seems quite far from my usual content, so I can't make any promises 😅
@__vyre
@__vyre 21 күн бұрын
not a huge fan of the syntax, but holy fuck the overflow operator is peak
@IsaacHarrisHolt
@IsaacHarrisHolt 21 күн бұрын
I think syntax is a hurdle you can get over pretty quickly. Give it a shot!
@henrispriet9812
@henrispriet9812 Жыл бұрын
This feels like C trying to Rust 🤔
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Is that such a bad thing? 👀
@holthuizenoemoet591
@holthuizenoemoet591 Жыл бұрын
To me it feels like C trying to Python, which is not bad
@user-lg4le8xr4s
@user-lg4le8xr4s 11 күн бұрын
@@holthuizenoemoet591 Agree, I see more Python inspiration than Rust
@ΝικΝοκ
@ΝικΝοκ 11 ай бұрын
Maan zig came out of nowhere
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
What do you think of it?
@ΝικΝοκ
@ΝικΝοκ 11 ай бұрын
@@IsaacHarrisHolt Seems pretty fast and nice. I saw a video of zig being the first in speed in some task. Faster than c and rust. That is amazing ! I hope it replaces c or at least be used as much as c. It feels like a new breath or smthing. I like c / c++ but i would totally love to use zig for a project in my university. The only drawback i see atm is that i feel i cant use it for something solid or long term (since i guess there would be some changes in the languages ). Mostly for some demo projects i guess. I hope it goes well
@IsaacHarrisHolt
@IsaacHarrisHolt 11 ай бұрын
There are some pretty big production projects happening in Zig right now - you can definitely use it long term! There's nothing saying you'll be forced to update versions.
@element1192
@element1192 2 күн бұрын
Man I wish we had Defer in C
@IsaacHarrisHolt
@IsaacHarrisHolt 2 күн бұрын
It's such a great pattern when implemented well, for sure
@alexon2010
@alexon2010 9 ай бұрын
This pointer thing and I don't understand anything
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
Yeah, pointers take some time to get used to!
@KimberlyWilliamsch
@KimberlyWilliamsch Жыл бұрын
So it's literally modern c
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Pretty much! It's a vast improvement
@AWriterWandering
@AWriterWandering 8 ай бұрын
I was too impatient. Watched at 1.5.
@IsaacHarrisHolt
@IsaacHarrisHolt 8 ай бұрын
I'm impressed!
@f.artemenkov
@f.artemenkov 7 ай бұрын
Why the modern language as Zig still need semicolons as end of the line?
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
A lot of the time it can prevent undesired function calls, or situations where the compiler may get confused between attempting to call a function or some.other operation with parens
@j.r.8176
@j.r.8176 7 ай бұрын
Removing semicolons is a step backwards, not forwards. Regard.
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
My RSI disagrees
@ThatBonsaipanda
@ThatBonsaipanda Ай бұрын
Whitespace is not a good character in source code (hidden). Imagine that the compiler sees the source code as one continuous line, not like how we view it on screen.
@sambazeley5366
@sambazeley5366 5 ай бұрын
this is fkn awesome
@IsaacHarrisHolt
@IsaacHarrisHolt 5 ай бұрын
Thank you!
@tigros999
@tigros999 7 ай бұрын
zig needs a few more years to settle down, every time i come across it i have to find a specific compiler version otherwise full of errors, well that's no fun!
@IsaacHarrisHolt
@IsaacHarrisHolt 7 ай бұрын
Fair! I'm not experienced enough with Zig to be able to comment on this I'm afraid
@davidissel7980
@davidissel7980 3 ай бұрын
You lost me at 1:15 "Zig doesn't have a string type". I think I'll just stick with C#...
@IsaacHarrisHolt
@IsaacHarrisHolt 3 ай бұрын
Totally fair! It does make certain things more difficult
@user-lg4le8xr4s
@user-lg4le8xr4s 11 күн бұрын
C#, gross Anyways, two totally different kinds of language. C# just won't cut it when you need low-level
@xE92vD
@xE92vD 10 ай бұрын
Is it comparable to Rust? And why would anyone use Zig over Rust?
@IsaacHarrisHolt
@IsaacHarrisHolt 10 ай бұрын
I would say Zig is lower level than Rust. Rust allows you to write high-performance code, but other than the borrow checker, it mostly feels like a high level language. Zig gives you a lot more control over your memory, and you can therefore probably write more efficient code in Zig.
@xE92vD
@xE92vD 10 ай бұрын
@@IsaacHarrisHolt So it's basically a new C++?
@IsaacHarrisHolt
@IsaacHarrisHolt 10 ай бұрын
It's closer to a C alternative than a C++ alternative, I think. It's like C with more constructs to help with safety
@ibrahimshehuibrahim918
@ibrahimshehuibrahim918 3 ай бұрын
NIce vide😍😍😍😍
@IsaacHarrisHolt
@IsaacHarrisHolt 3 ай бұрын
Thank you!
@SillySussySally
@SillySussySally 6 ай бұрын
This looks unreadable af 😢
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Depends what you're used to! And syntax is something you get used to very quickly
@ekaansh
@ekaansh Жыл бұрын
so well presented, a treat to watch
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Thank you!
@rawpointer
@rawpointer 3 ай бұрын
I think there's a "bug" (sorry if it was already mentioned) @ kzbin.info/www/bejne/a3qXi56jgrhnY5I: ``` var overflow: u8 = 0; //you example inits with 255 overflow -%1 // overflow == 255 ``` Now, that's the example you intended for, if I'm wrong please shout me.
@IsaacHarrisHolt
@IsaacHarrisHolt 3 ай бұрын
That example starts at 255, adds 1 (and therefore overflows to 0) then subtracts 1, underflowing from 0 back to 255
@AsbestosSoup
@AsbestosSoup 9 күн бұрын
I love what Zig is bringing to the table, offering C-like performance with more modern features... but wow the syntax is awful
@IsaacHarrisHolt
@IsaacHarrisHolt 9 күн бұрын
Thankfully syntax is something you can get over pretty quickly when learning a language
@mrk131324
@mrk131324 Жыл бұрын
Sounds like Rust without the weirdness.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Interesting! What do you find weird about Rust?
@mrk131324
@mrk131324 Жыл бұрын
@@IsaacHarrisHolt A lot of small things. Like not using a ; for return lines. The naming of the crates.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Fair enough! It's not for everyone
@RiwenX
@RiwenX Жыл бұрын
@@mrk131324 You call them weirdness, I call them coolness.
@guilherme5094
@guilherme5094 Жыл бұрын
👍👍!
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Thanks! Let me know what you'd like to see next :)
@runnow2655
@runnow2655 Жыл бұрын
trying to follow along and add zig to my VScode but I don't know which file is the zig executable 😭
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
When you download Zig, the compressed file contains the executable and the standard library :)
@lujoconnor
@lujoconnor 4 ай бұрын
10 minute IQ test fr
@IsaacHarrisHolt
@IsaacHarrisHolt 4 ай бұрын
Did you pass? 😉
@deathlife2414
@deathlife2414 Жыл бұрын
Tried it the cache for zig init-exe was to large for simple project. Wait for it for another 2 more years for it to reach 1.0
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Interesting! I didn't experiment with init-exe that much for this
@reed6514
@reed6514 Жыл бұрын
What's init-exe?
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
It's how you initialise a new Zig project. It's technically not needed, but it gives a nice structure etc. It's kinda like Cargo init, but more optional
@holthuizenoemoet591
@holthuizenoemoet591 Жыл бұрын
noob question, but why not use C?
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Zig provides more safety in things like optionals and error unions, as well as safer patterns for memory allocation :)
@user-he4ef9br7z
@user-he4ef9br7z Жыл бұрын
Really not a replacement for C though. The whole advantage of C is that it maps very well to assembly and how memory is represented. Zig seems to have too many abstractions, making it more high level. Anyways, looking forward to learning and implementing it.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Fair take! I think Zig is supposed to give you as much low level control (which I think it does) while being safer than C. Glad you enjoyed the video though!
@cbk620
@cbk620 3 ай бұрын
I don't like zig language. Code reading is not easy. İt is so complex
@IsaacHarrisHolt
@IsaacHarrisHolt 3 ай бұрын
That's fair! You get used to it pretty quickly though, and it's a lot easier to read than C or C++
@cbk620
@cbk620 3 ай бұрын
@IsaacHarrisHolt try this :) fn writeToArrayListCallback(data: *anyopaque, size: c_uint, nmemb: c_uint, user_data: *anyopaque) callconv(.C) c_uint { var buffer: *std.ArrayList(u8) = @alignCast(@ptrCast(user_data)); var typed_data: [*]u8 = @ptrCast(data); buffer.appendSlice(typed_data[0 .. nmemb * size]) catch return 0; return nmemb * size;
@EduardKaresli
@EduardKaresli Жыл бұрын
OK, we have C, C++ and Rust, why would one prefer Zig instead? What is Zig's best use-case scenario?
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Zig is supposed to be a replacement for C. It's not finished yet, so it doesn't cover quite as wide a surface area, but I can see Zig being used anywhere C might. A good example is Bun, the new JS runtime built as an alternative to Node.
@krellin
@krellin 9 ай бұрын
i know zig -Neo
@pr0master
@pr0master Ай бұрын
Another new language...
@IsaacHarrisHolt
@IsaacHarrisHolt Ай бұрын
Another great new language!
@CodingResoures
@CodingResoures 9 ай бұрын
zig vs rust
@IsaacHarrisHolt
@IsaacHarrisHolt 9 ай бұрын
Personally I think they solve different problems. Zig gives you more control and will ultimately allow for slightly better performance, but Rust is safer and makes it more difficult to shoot yourself in the foot.
@lockbert99
@lockbert99 Жыл бұрын
I would say the majority of "modern languages" allow exceptions for errors. And they all have a string type. But with "try" and "catch" in the language it looks an awful lot like exception handling.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
I disagree. With exceptions it's difficult to predict where errors are going to come from. Error unions tell you in advance that a function could throw an error via their return type. Take JavaScript for example. `JSON.parse('not JSON')`, will error, but there's no warning in advance. Also, by returning the error rather than throwing it, you know the code won't stop unless you explicitly tell it to stop.
@lockbert99
@lockbert99 Жыл бұрын
@@IsaacHarrisHolt I think input data is ideally verified with a predicate function. If it is too much to do both (verify and process) there should be an indication that a function returns an invalid input error. I wouldn't do that with an exception in C++/Java etc. since it is a known possibility that the data is malformed and the function should return success/failure. If the Zig code is forcing error handling on a function with a known error possibility that's a good feature since programmers can code like, for example, fopen will never return NULL. I would save exceptions for errors that cannot be anticipated and which don't have a path forward other than program termination and find out what went wrong.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Fair take! This is what languages like Go and Rust do. Errors are values, so you're forced to handle them when they arise, but you can also panic to halt termination
@TobiasCastillo-f7u
@TobiasCastillo-f7u 2 ай бұрын
The syntax is ugly af. I'll just use C
@IsaacHarrisHolt
@IsaacHarrisHolt 2 ай бұрын
Syntax should never be a big reason not to use a language. Unless that language is Perl.
@friedrichmyers
@friedrichmyers Жыл бұрын
My biased ass towards C would never make it comparable but it seems promising enough to try. Comparing to other languages, If it makes a good package system then I might ditch Go for backend development and use this instead.
@IsaacHarrisHolt
@IsaacHarrisHolt Жыл бұрын
Ooh interesting take! I think I still prefer Go - development speed is much higher - but I can see Zig working if you're doing high throughput computing
JavaScript for Impatient Devs
7:34
Isaac Harris-Holt
Рет қаралды 6 М.
Trying Zig Part 1
1:30:00
TheVimeagen
Рет қаралды 124 М.
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,2 МЛН
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,4 МЛН
Making Smallest Possible Linux Distro (x64)
27:43
Nir Lichtman
Рет қаралды 134 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 339 М.
What's a Memory Allocator Anyway? - Benjamin Feng
48:30
Zig SHOWTIME
Рет қаралды 61 М.
Your backend is too complicated
9:47
Isaac Harris-Holt
Рет қаралды 97 М.
C++ Game Programmer Tries ZIG for the first time.
5:28
Low Level Game Dev
Рет қаралды 76 М.
"BEST C++ CODE ever written" // Code Review
27:38
The Cherno
Рет қаралды 130 М.
zig will change programming forever
9:34
Low Level
Рет қаралды 408 М.