ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
darithorn has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
davr0s has joined #zig
davr0s has quit [Read error: Connection reset by peer]
kmelva has quit [Quit: Konversation terminated!]
jjman has joined #zig
_whitelogger has joined #zig
jeffomatic has joined #zig
jeffomatic has quit [Ping timeout: 256 seconds]
darithorn has quit []
very-mediocre has joined #zig
Ichorio has joined #zig
jjido has joined #zig
return0xe has quit [Remote host closed the connection]
return0xe has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
return0xe has quit [Ping timeout: 252 seconds]
_whitelogger has joined #zig
tom1998 has joined #zig
<tom1998> Hey!
<tom1998> I'm trying to interface with C, but it's getting annoying because *T won't cast to [*]T, am I doing something wrong here?
<tom1998> Currently I'm having to @ptrCast, which makes stuff pretty unreadable
<tom1998> Also, there's a struct which has a member named 'type' - when I try to access this, the language thinks I'm getting the type of the struct
<tom1998> (because I have to write out my_struct.type)
<tom1998> Oh, ignore that last bit, i was just reading the error wrong;)
<tom1998> This seems to be a problem in general with C pointers, they're all [*], so I can't just access fields on them normally without putting [0] afterwards
davr0s has joined #zig
Jenz has joined #zig
DutchGh0st has joined #zig
Jenz has left #zig [#zig]
<DutchGh0st> if you have a function, that takes a buff, and writes from the BACK of the buffer to the beginning of the buffer, using 2 loops,
<DutchGh0st> 1 unrolled loop, writing in chunks of 4,
<DutchGh0st> and 1 fixup loop
<DutchGh0st> would you check if the buffer has a length of 0 at the start of the function? or would you write the loop condition so they dont run at a length of 0?
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<DutchGh0st> here is a little example function, it writes the digits of a number into a buffer: https://github.com/DutchGhost/zigiffy/blob/master/zig/hello.zig#L23
mnoronha has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
return0e has joined #zig
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
darithorn has joined #zig
tom1998 has quit [Ping timeout: 245 seconds]
very-mediocre has quit [Ping timeout: 256 seconds]
DutchGh0st has joined #zig
wink_ has joined #zig
<DutchGh0st> are defered statements always run when you run a coro?
<DutchGh0st> *cancel a coro
DutchGh0st has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
return0e has quit [Quit: Leaving]
mixi has quit [Quit: leaving]
mnoronha has quit [Ping timeout: 260 seconds]
mnoronha has joined #zig
mixi has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 260 seconds]
mnoronha has joined #zig
return0e has joined #zig
return0e has quit [Ping timeout: 252 seconds]
return0e has joined #zig
Ichorio has quit [Ping timeout: 240 seconds]
mnoronha has quit [Ping timeout: 252 seconds]