ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
dbandstra has joined #zig
darithorn has joined #zig
tridactyla has quit [Read error: No route to host]
dbandstra has quit [Quit: Leaving]
davr0s has joined #zig
darithorn has quit []
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfondren has quit [Ping timeout: 246 seconds]
return0xe has joined #zig
return0e has quit [Ping timeout: 252 seconds]
return0xe has quit [Remote host closed the connection]
return0xe has joined #zig
m4ge123 has quit [Ping timeout: 246 seconds]
davr0s has joined #zig
Ichorio has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
RagingDave has joined #zig
noonien has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
RagingDave has quit [Remote host closed the connection]
<wink_> Andrew created `fn ptr` in his tetris game (https://github.com/andrewrk/tetris/blob/master/src/c.zig) which has some code duplication and I thought it might be possible to remove it, but I wasn't able to, see (https://github.com/winksaville/zig-type-conversion).
<wink_> Any suggestions on how the code duplication could be removed?
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
darithorn has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
dbandstra has joined #zig
<dbandstra> wink_, how about this? https://pastebin.com/raw/epd23HXP
darithorn has quit [Ping timeout: 245 seconds]
darithorn has joined #zig
darithorn has quit [Ping timeout: 246 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darithorn has joined #zig
davr0s has joined #zig
<wink_> Perfect, txs. I changed getPtrType to cvrtPtrToOptionalPtrArray which, I think, is more precise. What do you think?
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wink_> How do you like gitlab?
noonien has quit [Quit: Connection closed for inactivity]
darithorn has quit []
davr0s has joined #zig
<dbandstra> i'm more familiar with it tbh because of using it at work
<wink_> I've not really used it yet, but was thinking of giving it a try.
<wink_> txs for the code snippet, I like it much better!
<dbandstra> no problem
<dbandstra> andrewrk, i was away for a few weeks, now trying my project with latest zig. the compiler is crashing (assert in get_abi_alignment). would you be able to take a look? https://gitlab.com/dbandstra/oxid/tree/new-crash
<andrewrk> dbandstra, yeah I'll take a look
<dbandstra> thanks, 'zig build' is crashing
<andrewrk> I reproduced the crash
<dbandstra> i think vs code must be hardwired to look for lldb 6 or something. i'm pretty hopeless at this kind of thing
<andrewrk> I just use gdb command line
<andrewrk> or lldb command line on macos
<dbandstra> i know the bt command that's about it
<dbandstra> when i was young enough to learn and remember things i was using visual studio on windows hehe
<andrewrk> dbandstra, sadly I don't know of a test case to trigger this, but I'm about to push the fix
<dbandstra> oh cool! thanks
<andrewrk> dbandstra, pushed
<dbandstra> nice, looks like this->@This() was the only code change needed
<dbandstra> oh and file stream was moved
<andrewrk> oh yeah, to os.File.InStream os.File.OutStream
<dbandstra> bleh i'm too tired / jet lagged to dive back into this tedious project (oxid) quite yet hehe
<dbandstra> i'm going to try to recreate a weird crash i was getting a few months ago, maybe the compiler will be more informative now
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
emekoi has joined #zig
<emekoi> is there a way to cast an unsigned integer to a signed integer?
emekoi has quit [Ping timeout: 256 seconds]
emekoi has joined #zig
darithorn has joined #zig
<emekoi> nevermind i figured something out.
Ichorio has quit [Ping timeout: 268 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
<wink_> Did you use @intCast or @bitCast?
<wink_> When you had ask the question earlier I hadn't done it, but believe it or not I needed just now and in my case I was converting c_int to c_uint and used @intCast.
Ichorio has joined #zig
Ichorio has quit [Read error: Connection reset by peer]
emekoi has quit [Ping timeout: 256 seconds]