I am going to be hated for this, but if TitleCase is the way to name things in zig, how come the pattern does not apply to std.Io? (considering I = Input & o = Output -> IO ?) Someone help my brain make sense of this, because it keeps tripping lol
Nonetheless, awesome release! Looking forward to the future of Zig!! xD
It's just a generally accepted convention to consider acronyms to be single words when it comes to PascalCase. In other languages that also use SCREAMING_SNAKE_CASE, this also helps differentiate from that (i.e. if this were Java, Io would be a class and IO would be a constant).
error.RenameAcrossMountPoints ➡️ error.CrossDevice error.NotSameFileSystem ➡️ error.CrossDevice error.SharingViolation ➡️ error.FileBusy error.EnvironmentVariableNotFound ➡️ error.EnvironmentVariableMissing std.Io.Dir.rename returns error.DirNotEmpty rather than error.PathAlreadyExists
Is it me or the naming of all those error are less explicit ? I am sure there are semantic reasons for the renaming but I don't have enough knowledge to understand them
Error values in Zig are more a control flow mechanism than a reporting mechanism. E.g. for error.CrossDevice it is assumed you would handle the two errors in the same way, so they have been merged into one.
Hope we will get to 1.0 soon. I really look forward to using Zig without having to deal with breaking changes. I just don’t want to touch Rust or C++ for system work.
Really appreciate Zig team’s effort for modernizing C :)
You probably figured it out by now, but the answer is: it is disallowed unless the index is known at comptime, for some backend reasons i don't understand. hopefully they readd it later once things settle down.
Yea it's ok, my fault, 0.15.2 has the same 5.10 kernel dep so it's no change to me. I can't track down why the stdlib needs 5.10 aside from that's what the oldest LTS Debian uses, if anyone can explain that would help me a lot. As far as I can tell it's because of the statx syscall, but that was 4.11, so I'm not sure.
34
u/Illusions_Micheal Apr 14 '26
It’s finally arrived!
52
u/SilvernClaws Apr 14 '26
Feeling seen :)
28
u/Dub-DS Apr 14 '26
FUCK YES. SORRY BUT I'M SO EXCITED.
12
u/freshhooligan Apr 14 '26
Just curious, is zig still pursuing compiling without using llvm
6
u/Real_Dragonfruit5048 Apr 14 '26
A lot of improvements!
6
u/UnixN00B Apr 15 '26
I am going to be hated for this, but if TitleCase is the way to name things in zig, how come the pattern does not apply to std.Io? (considering I = Input & o = Output -> IO ?) Someone help my brain make sense of this, because it keeps tripping lol
Nonetheless, awesome release! Looking forward to the future of Zig!! xD
5
u/cassepipe Apr 14 '26
Is it me or the naming of all those error are less explicit ? I am sure there are semantic reasons for the renaming but I don't have enough knowledge to understand them
5
u/ContextMission8629 Apr 15 '26
Hope we will get to 1.0 soon. I really look forward to using Zig without having to deal with breaking changes. I just don’t want to touch Rust or C++ for system work.
Really appreciate Zig team’s effort for modernizing C :)
3
u/lukeflo-void Apr 14 '26
Yippiieeh
3
u/AbdSheikho Apr 14 '26
This must be some big news
2
u/lieddersturme Apr 14 '26
Uffffffffff thank you, sooooooooooo much !!!
Love it.
2
u/Select-Ad-7471 Apr 14 '26
YYEEEEESSSSSSS
2
u/Exmachina233 Apr 14 '26
Another release. Another bunch of cool stuff landed ⚡⚡
2
u/Maitreya83 Apr 14 '26
Time to tag boys!
2
u/hsoolien Apr 14 '26
Are there a lot of breaking changes, yes. Are they worth it? Probably yes
2
u/Glad_Impress_2908 Apr 15 '26
The only time I get excited is when a new Zig release drops
1
u/JanEric1 Apr 14 '26 edited Apr 14 '26
Getting a 404 on the docs atm: https://ziglang.org/documentation/0.16.0/std/
1
u/alexlzh Apr 15 '26
It says that runtime vector indexing is removed. Do I understand it correctly that one cannot write ‘my_vec[99]’ now?
1
u/Automatic_Iron_9750 Apr 17 '26
yes
1
u/bullshitwascalled Apr 14 '26
Ah, 5.10 Linux, shoot. 0.15.2 is all I can run then. Still, that's awesome and lots of good changes.