ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
_whitelogger has joined #zig
return0e has quit [Remote host closed the connection]
return0e has joined #zig
_whitelogger has joined #zig
return0e has quit [Remote host closed the connection]
return0e has joined #zig
darithorn has quit []
redj has quit [Disconnected by services]
redj has joined #zig
return0xe has joined #zig
return0e has quit [Ping timeout: 244 seconds]
DutchGh0st has joined #zig
<DutchGh0st> why does that crash, with an 'integer overflow' ?
<DutchGh0st> and how do I fix it?
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
return0xe has quit [Remote host closed the connection]
return0xe has joined #zig
Ichorio has joined #zig
DutchGh0st has joined #zig
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_whitelogger has joined #zig
DutchGh0st has joined #zig
very-mediocre has joined #zig
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
DutchGh0st has joined #zig
mnoronha has joined #zig
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
DutchGh0st has joined #zig
jeffomatic has joined #zig
jeffomatic has quit [Client Quit]
mnoronha has quit [Ping timeout: 252 seconds]
darithorn has joined #zig
return0xe has quit [Ping timeout: 245 seconds]
jjman has left #zig ["WeeChat 1.6"]
return0e has joined #zig
mnoronha has joined #zig
return0e has quit [Remote host closed the connection]
mnoronha has quit [Ping timeout: 260 seconds]
return0e has joined #zig
return0e has quit [Ping timeout: 246 seconds]
return0e has joined #zig
mnoronha has joined #zig
wilsonk has quit [Read error: No route to host]
wilsonk has joined #zig
mnoronha has quit [Ping timeout: 268 seconds]
josh3 has joined #zig
<DutchGh0st> andrewrk: , @typeName(resume) segfaults I think
<DutchGh0st> Ill run gdb over it
<DutchGh0st> @typeName(return) gives just a normal error at comptime
<DutchGh0st> resume should do the same
<josh3> Hi all. I'm new to Zig and wonder what the |x| syntax means. Is it the same as Rust's closures or Crystal's blocks?
<DutchGh0st> it captures, yes
<DutchGh0st> for(array) |item| {}
<DutchGh0st> for(array) |*item| {} <-- this gives pointers
<DutchGh0st> and couldn't you give a closure to the `catch` statement?
<DutchGh0st> and to arms of the switch statements, usefull for switching on unions
<josh3> DutchGh0st, I see, thank you.
<josh3> Is there a tutorial or introduction to Zig available somewhere? The official documentation seems to consist of examples only.
<darithorn> it's also good for nulls
<darithorn> if (nullableVar) |notNull| {}
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mnoronha has joined #zig
DutchGh0st has joined #zig
<DutchGh0st> welp, sorry
<DutchGh0st> an Introduction...
<darithorn> there's not really any official tutorial besides those examples, and be wary of any older tutorial because zig has gone through a few syntax changes since they've been written
<josh3> Thank you. I'll check out the examples and come back if something is not clear to me :)
<DutchGh0st> You can always ask questions here :)
<DutchGh0st> How did you get to know zig, josh3?
return0xe has joined #zig
return0e has quit [Ping timeout: 272 seconds]
<josh3> I am looking for an alternative to C, but I need the Xlib and Xt libraries (C bindings). I found Zig on http://fll.presidentbeef.com/
<DutchGh0st> ah okey!
<DutchGh0st> I have not called C functions in Zig yet
<DutchGh0st> I have called Zig from Rust tho hahaha
<DutchGh0st> well, Zig compiled to a .lib file, and than importing that in Rust again, so it all works with the C abi
<josh3> Interesting. :)
<josh3> I have to leave now. Thanks again and bye!
josh3 has quit [Quit: Leaving]
porky11 has joined #zig
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Ichorio has quit [Read error: Connection reset by peer]
Ichorio has joined #zig
very-mediocre has quit [Ping timeout: 256 seconds]
porky11 has quit [Ping timeout: 252 seconds]
porky11 has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ichorio has quit [Ping timeout: 268 seconds]
porky11 has quit [Ping timeout: 240 seconds]