ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
alexnask has joined #zig
alexnask_ has quit [Ping timeout: 240 seconds]
quc has quit [Ping timeout: 268 seconds]
alexnask has quit [Ping timeout: 240 seconds]
<andrewrk>
MajorLag2, yeah it's still |*x| for now
<andrewrk>
// TODO once #733 is solved, this will replace create
andrewrk has left #zig ["Leaving"]
andrewrk has joined #zig
darithorn has quit [Read error: Connection reset by peer]
darithorn_ has joined #zig
davr0s has joined #zig
quc 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…]
Skilfingr has joined #zig
alexnask has joined #zig
davr0s has joined #zig
Sahnvour has joined #zig
<Sahnvour>
I've been bitten by ArrayList.resize() growing the number of items for more than I originally asked, since I was then assuming its length and iterating over it to init the elements. Is there a reason for doing this other than ease of implementation ?
Skilfingr has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darithorn_ has quit [Quit: bye]
davr0s has joined #zig
darithorn has joined #zig
<andrewrk>
Sahnvour, yes, it's to make appending to an ArrayList amortized O(1)
<andrewrk>
I agree the items field is a footgun though
<andrewrk>
it's probably the best reason to have private fields
xkern has joined #zig
Ichorio has quit [Ping timeout: 240 seconds]
Sahnvour has quit [Ping timeout: 260 seconds]
Sahnvour has joined #zig
<Sahnvour>
ah, yes of course. it was just weird to be granted iteration on these objects when used to other container classes, but makes perfect sense when aware of it
xkern has quit [Quit: Leaving.]
alexnask_ has joined #zig
alexnask has quit [Ping timeout: 240 seconds]
Ichorio has joined #zig
xkern has joined #zig
<andrewrk>
Sahnvour, you saw the toSlice() function right?
<Sahnvour>
yes, but apparently forgot about it :D
bowman has joined #zig
<bowman>
I am wondering something is like c but improved, and with buildin package mangment and coroutings, And zig is what we are talking about
<andrewrk>
hi bowman
<bowman>
hello
<bowman>
actually I was looking for binary translate information, then I saw your blog, then I saw your youtube