ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<andrewrk> stratact: what kind of checking?
<andrewrk> I'm about to lose internet connectivity for about 6 hours. Back later
<stratact> I mean the reference checking
MajorLag1 has quit [Ping timeout: 276 seconds]
MajorLag1 has joined #zig
commander has quit [Remote host closed the connection]
MajorLag1 has quit [Ping timeout: 255 seconds]
MajorLag1 has joined #zig
davr0s has joined #zig
MajorLag1 has quit [Ping timeout: 276 seconds]
MajorLag2 has joined #zig
MajorLag2 has quit [Ping timeout: 276 seconds]
MajorLag1 has joined #zig
quc has quit [Ping timeout: 256 seconds]
<MajorLag1> stratact, what precisely would separate zig from rust then?
<stratact> MajorLag1: well, it would be a language with a different syntax for different approaches to programming and thinking. Also the same could be said for what would separate zig from C if zig is not safe to begin with.
<stratact> I just think it's really crucial to have safety in this day and age.
<MajorLag1> quite a lot actually. C is very lose with its casting, has lots of undefined behavior, and the mess that are macros. Zig's saftey comes from built in debug checks, explicit syntax, better error checking, etc.
<MajorLag1> It rather like that it doesn't force a memory management paradigm on programers like rust does.
<stratact> I guess that's an approach I haven't thought of. So how does debug checking work?
<MajorLag1> The compiler does a lot of static checks, and then in debug mode (which is the default for builds) the compiler inserts a lot of checks for things like out-of-bounds array access, integer overflows, pointer alignment, etc. So a lot of bugs are caught in testing. Then you can compile a release-fast or release-small version without all the extra checks. Or you can compile release-safe and keep the checks but not the
<MajorLag1> even turn checking on and off at the scope level with @setRuntimeSafety.
<stratact> That sounds interesting
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #zig
<MajorLag1> There's some more runtime checking we'd like to do around pointers and resource handling, so in that way zig is planning to add more safety: https://github.com/ziglang/zig/issues/782 for instance.
zolk3ri has quit [Client Quit]
zolk3ri has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stratact> MajorLag1: gotcha, thanks for sharing
zolk3ri has joined #zig
zolk3ri has quit [Quit: leaving]
dbandstra has joined #zig
<dbandstra> andrewrk: i think while docs should mention the `while (a) |b| : (c)` syntax (noticed this in std somewhere, but it's not documented)
<dbandstra> about the windows sdk thing, is the "Windows Kits" folder something installed by visual studio? if so then whatever, it's no big problem for me. i'm just booted into windows for other reasons and was hoping i could play with zig at the same time
<MajorLag1> IIRC Windows Kits is put down by the SDK install.
<dbandstra> SDK being...
<MajorLag1> like, the Windows 10 SDK
<dbandstra> sorry most of my knowledge of windows programming dates to like visual c++ 6
<dbandstra> i was looking at the implementation of os_find_windows_sdk https://github.com/ziglang/zig/blob/8e714289cac55fd6f793cf21cea5fa1930edb985/src/os.cpp#L1118
<dbandstra> i have the reg key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot81 = C:\Program Files (x86)\Windows Kits\8.1\
<dbandstra> and i have this folder: C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3 (contains a subfolder called "um")
<dbandstra> so i don't see how os_find_windows_sdk is not succeeding
<MajorLag1> yeah, that seems like it should work...
xtreak has joined #zig
xtreak has quit [Remote host closed the connection]
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
fjvallarino has quit [Ping timeout: 264 seconds]
kristate has joined #zig
fjvallarino has joined #zig
dbandstra has quit [Quit: Leaving]
davr0s has joined #zig
darithorn has quit [Quit: Leaving]
dbandstra has joined #zig
xtreak has joined #zig
m6w6 has quit [Quit: ZNC - http://znc.in]
xtreak has quit [Remote host closed the connection]
m6w6 has joined #zig
xtreak has joined #zig
xtreak__ has joined #zig
xtreak has quit [Ping timeout: 260 seconds]
kristate has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Avinash has joined #zig
very-mediocre has joined #zig
kristate has joined #zig
xtreak__ has quit [Ping timeout: 240 seconds]
very-mediocre has quit [Ping timeout: 252 seconds]
commander has joined #zig
kristate has quit [Remote host closed the connection]
dbandstra has quit [Quit: Leaving]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davr0s has joined #zig
Avinash has joined #zig
kristate has joined #zig
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristate has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexnask_ has joined #zig
kristate has joined #zig
davr0s has joined #zig
noonien has joined #zig
kristate has quit [Ping timeout: 268 seconds]
kristate has joined #zig
xtreak has joined #zig
<GitHub56> [zig] Hejsil pushed 1 new commit to master: https://git.io/fbxKq
<GitHub56> zig/master 4f32b86 Jimmi HC: Allow allocation of any 0 sized type (not just void)
<GitHub175> [zig] Hejsil pushed 1 new commit to master: https://git.io/fbxKF
<GitHub175> zig/master 28821b5 Jimmi HC: Fixed last commit compiler error
jkhr has joined #zig
kristate has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kristate has joined #zig
Avinash has joined #zig
kristate has quit [Ping timeout: 276 seconds]
davr0s has joined #zig
quc has joined #zig
zolk3ri has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xtreak has quit [Remote host closed the connection]
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Avinash has joined #zig
alexnask_ has quit [Ping timeout: 256 seconds]
alexnask_ has joined #zig
Avinash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xtreak has joined #zig
<GitHub67> [zig] tiehuis pushed 1 new commit to master: https://git.io/fbxSd
<GitHub67> zig/master 1d18688 Marc Tiehuis: Do not normalize langref.html.in line endings...
very-mediocre has joined #zig
andi3 has joined #zig
<andi3> @MajorLag1 I understand the async examples now, went through them with a friend and figured it out, thanks for your help as well
davr0s has joined #zig
xtreak has quit []
andi3 has quit [Ping timeout: 252 seconds]
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
geocar has quit [Quit: Connection closed for inactivity]
Avinash has joined #zig
Avinash has quit [Client Quit]
Avinash has joined #zig
very-mediocre has quit [Ping timeout: 252 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jkhr has quit [Ping timeout: 252 seconds]
donzx has joined #zig
donlzx has quit [Ping timeout: 256 seconds]
Ichorio has joined #zig
Avinash has quit [Quit: Textual IRC Client: www.textualapp.com]
fjvallarino has quit [Remote host closed the connection]
<GitHub89> [zig] andrewrk pushed 1 new commit to master: https://git.io/fbpkH
<GitHub89> zig/master 8c39cdc Andrew Kelley: fix await on early return when return type is struct...
MajorLag2 has joined #zig
MajorLag1 has quit [Ping timeout: 240 seconds]
fjvallarino has joined #zig
return0e has quit [Remote host closed the connection]
davr0s has joined #zig
donzx has quit [Remote host closed the connection]
<GitHub76> [zig] isaachier opened pull request #1195: Fix crash on assertion for enum switch values (master...switch-enum-fix) https://git.io/fbpOR
noonien has quit [Quit: Connection closed for inactivity]
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
mahmudov has joined #zig
return0e has joined #zig
return0e has quit [Remote host closed the connection]
SimonN has joined #zig
SimonNa has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ofelas has quit [Quit: shutdown -h now]
davr0s has joined #zig
Ichorio has quit [Ping timeout: 260 seconds]
return0e has joined #zig
alexnask_ has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
das has joined #zig
das has quit [Client Quit]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
return0e has quit [Remote host closed the connection]
return0xe has joined #zig
return0xe has quit [Remote host closed the connection]
kristate has quit [Ping timeout: 260 seconds]
return0e has joined #zig
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
return0e has quit [Client Quit]
return0e has joined #zig