ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
quc has quit [Ping timeout: 256 seconds]
darithorn has joined #zig
<MajorLag2> so, with the new deref, we're still using |*x| ?
quc has joined #zig
hinst_ has joined #zig
hinst has quit [Ping timeout: 268 seconds]
quc has quit [Ping timeout: 264 seconds]
Tobba has quit [Read error: Connection reset by peer]
darithorn has quit [Quit: Leaving]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: Textual IRC Client: www.textualapp.com]
alexnask__ has joined #zig
alexnask_ has joined #zig
alexnask__ has quit [Ping timeout: 248 seconds]
qazo has joined #zig
Tobba has joined #zig
alexnask__ has joined #zig
alexnask_ has quit [Ping timeout: 268 seconds]
davr0s has joined #zig
Ichorio has joined #zig
davr0s has quit [Ping timeout: 256 seconds]
backpropaganda has joined #zig
<backpropaganda> Any game developers here?
<backpropaganda> How can I go about wrapping SDL2?
noonien has joined #zig
<backpropaganda> "Create cross platform Zig modules to compete with SDL and GLFW": why should we create modules which complete with SDL/GLFW when we can just use them directly?
quc has joined #zig
backpropaganda has quit [Ping timeout: 260 seconds]
Hejsil has joined #zig
qazo has quit [Read error: Connection reset by peer]
qazo has joined #zig
backpropaganda has joined #zig
backpropaganda has quit [Quit: Page closed]
davr0s has joined #zig
qazo has quit [Ping timeout: 248 seconds]
qazo has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noonien has quit [Quit: Connection closed for inactivity]
davr0s has joined #zig
sherjilozair has joined #zig
lqd has quit [Ping timeout: 256 seconds]
monteslu has quit [Ping timeout: 256 seconds]
monteslu_ has joined #zig
lqd has joined #zig
Hejsil has quit [Ping timeout: 260 seconds]
Sahnvour has joined #zig
<Sahnvour> hi andrewrk , what's the idiomatic way of initializing allocated structs in zig, if there is any ?
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darithorn has joined #zig
sherjilozair has quit [Remote host closed the connection]
qazo has quit [Ping timeout: 240 seconds]
sherjilozair has joined #zig
sherjilozair has quit [Quit: Leaving...]
Ichorio has quit [Ping timeout: 248 seconds]
davr0s has joined #zig
Ichorio has joined #zig
cenomla has joined #zig
alexnask has joined #zig
alexnask__ has quit [Ping timeout: 260 seconds]
Dodo has joined #zig
Skilfingr has joined #zig
cenomla has quit [Quit: cenomla]
<Dodo> is there some kind of way to do static dispatch?
darithorn has quit [Remote host closed the connection]
<Skilfingr> Dodo, compile-time duck typing (monomorphised) maybe
<Dodo> then I maybe should rewrite my whole iterator library to make use of that
<Dodo> right now its more dynamic dispatch, tho it uses a few heap allocations as possible
<Dodo> maybe there is a way to figure out at compile time if an Iterator object has a .next() method or something
<Skilfingr> compile-time reflection is a thing. not sure how deep it is implemented
<Skilfingr> example: @typeOf(foo).Child == i32
<Skilfingr> for foo = ?i32
<Dodo> yeahhh
<Skilfingr> I will take a look. I see you also use Rust?
<Dodo> Oh yes!'
<Dodo> tho I'm not really good at it, and have not written thàt much of it
<Dodo> do you use it?
alexnask_ has joined #zig
alexnask has quit [Ping timeout: 248 seconds]
<Skilfingr> played with it.
<MajorLag2> Dodo, @typeInfo(@typeOf(iter)) should be able to tell you if there's a `.next()` fn.
<Dodo> yeah
Ichorio has quit [Ping timeout: 240 seconds]
darithorn has joined #zig
Dodo has quit [Quit: Page closed]
ilroe has joined #zig
<Skilfingr> Is there a reason why there is no c_char or c_uchar tpye?
<Skilfingr> Seems to come with 0.4.0 #875
<Skilfingr> Oh :D
ilroe has quit [Quit: Page closed]
Skilfingr has quit [Quit: Page closed]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sahnvour has quit [Quit: Page closed]