ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<GitHub97> [zig] alexnask opened pull request #951: Metaprogramming - @typeInfo/@reify [WIP] (master...reflect_reify) https://git.io/vpnmb
alexnask_ is now known as alexnask
isd has quit [Quit: Leaving.]
<GitHub50> [zig] andrewrk pushed 1 new commit to master: https://git.io/vpn3N
<GitHub50> zig/master 13076d5 Andrew Kelley: std.mem: add more slice manipulation functions...
<GitHub39> [zig] andrewrk closed pull request #944: Just a few std.mem changes (master...MemChanges) https://git.io/vpO1u
JinShil has joined #zig
<MajorLag> Is it possible to make dwarf an option on windows builds just so we can use stack traces?
<andrewrk> I think that's more complicated than implementing stack traces
<andrewrk> I was thinking though, I think Go solves this problem. we could probably read their source code for inspiration
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GitHub62> [zig] andrewrk closed pull request #949: Add initial complex-number support (master...complex-math) https://git.io/vpGce
<GitHub115> [zig] andrewrk pushed 1 new commit to master: https://git.io/vpnG0
<GitHub115> zig/master 27cbb44 Andrew Kelley: Merge pull request #949 from zig-lang/complex-math...
<andrewrk> alexnask, you're next in line! looking at your PR now
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
<andrewrk> alexnask, I'm impressed with how quickly you were able to hack on ir.cpp without any docs
isd has joined #zig
<andrewrk> alexnask, done. hope that helps
alexnask_ has joined #zig
alexnask has quit [Ping timeout: 264 seconds]
isd has quit [Remote host closed the connection]
isd has joined #zig
<GitHub7> [zig] BraedonWooding opened pull request #954: Utf8 Encoding from Codepoint to Bytes (master...patch-2) https://git.io/vpn4L
isd has quit [Quit: Leaving.]
Ichorio has quit [Ping timeout: 255 seconds]
commander has joined #zig
<alexnask_> @andrewrk Tbh looking at how @typeId is implemented got me up an going pretty quick
<alexnask_> But it's only one aspect of the compiler, I'm sure if I tried to do something a bit more involved like return type inference I would get stuck for a bit :P
<alexnask_> Docs are for losers anyways (/s)
alexnask_ is now known as alexnask
alexnask_ has joined #zig
<alexnask_> @andrewrk How do you feel about a small buffer optimization being added to ZigList?
<alexnask_> I think it would make sense since all strings (buf's) are based on it
alexnask has quit [Ping timeout: 260 seconds]
alexnask_ is now known as alexnask
<alexnask> This is my favorite way of doing it: https://www.youtube.com/watch?v=kPR8h4-qZdk, you get 23 bytes of capacity so I guess 99% of buffers would fit in there
davr0s 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…]
JinShil has quit [Quit: Leaving]
l1x has quit []
l1x has joined #zig
<achambe> alexnask: neat
davr0s has joined #zig
<alexnask> @achambe I think so too :) I'll probably go ahead and implement it for ZigList and open a PR after I'm done with @typeInfo
<achambe> The trick with the counter becoming the null terminator is pretty darn clever.
<alexnask> Yes I was mindblown when I saw it the first time :P
<alexnask> Andrei Alexandrescu is a wizard tbh
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ltr__ has quit [*.net *.split]
alandipert has quit [*.net *.split]
ltr__ has joined #zig
alandipert has joined #zig
dpk has quit [Ping timeout: 240 seconds]
dpk has joined #zig
Ichorio has joined #zig
davr0s has joined #zig
redj_ has joined #zig
redj has quit [Ping timeout: 264 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aequus has quit [Quit: Lost terminal]
<alexnask> @andrewrk I implemented the new layout, at least up to some point
<alexnask> Because the field access of a struct member of the union with the same name as a tag gives back the type of the tag
<alexnask> aka @compileLog(@typeOf(TypeInfo.Int)); -> &const TypeId
<alexnask> So for now I'll just keep them as <Name>Info but inside the enum
<alexnask> It's explicitely coded so that it does that
Dodo has joined #zig
<Dodo> look, you can flatten nested Iterators now! https://github.com/DutchGhost/Zigerator/blob/master/src/main.zig#L51
<Dodo> only works for Iterator(Iterator(T)), but hey xD
<Dodo> guess you could do some .map() stuff if you need to flatten more
ltr__ has quit [*.net *.split]
alandipert has quit [*.net *.split]
lorde_kumamon[m] has quit [*.net *.split]
commander has quit [*.net *.split]
hinst has quit [*.net *.split]
MajorLag has quit [*.net *.split]
epsyloN has joined #zig
vec_ has joined #zig
lorde_kumamon[m] has joined #zig
alandipert has joined #zig
ltr__ has joined #zig
commander has joined #zig
MajorLag has joined #zig
hinst has joined #zig
clebermatheus[m] has quit [Ping timeout: 246 seconds]
kammd[m] has quit [Ping timeout: 268 seconds]
lorde_kumamon[m] has quit [Ping timeout: 256 seconds]
dtz has quit [Ping timeout: 240 seconds]
raytracer[m] has quit [Ping timeout: 276 seconds]
<alexnask> @Dodo Nice! :D
<Dodo> mhhh what else...
<Dodo> .split() on a predicate maybe
steveno_ has joined #zig
<Dodo> but that could only work for types that can be converted into a slice-like object
<Dodo> list, string, string-slice or slice
<alexnask> Well you could have Iterator(T) -> split(pred) -> Iterator([]T) but you would have to define wether the item that triggers the predicate should be included in the left slice, the right slice or dropped
<alexnask> Which could be an enum option
<Dodo> uhm, wel, doesnt "hello this is splitted on spaces".split(" ") give you "hello", "this", "is", "splitted", "on", "spaces" ?
<Dodo> so not inclusive of the predicate
<Dodo> maybe a little help of memchar or something would speed things up a bit for strings
kammd[m] has joined #zig
ragge has quit []
ragge has joined #zig
Dodo has quit [Quit: Page closed]
dtz has joined #zig
lorde_kumamon[m] has joined #zig
raytracer[m] has joined #zig
clebermatheus[m] has joined #zig
steveno_ 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: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
btbytes has joined #zig
btbytes has quit [Client Quit]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
jjido has joined #zig
jjido has quit [Client Quit]
jjido has joined #zig
MajorLag has quit [Ping timeout: 248 seconds]
MajorLag has joined #zig
MajorLag2 has joined #zig
MajorLag has quit [Ping timeout: 265 seconds]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ichorio has quit [Ping timeout: 240 seconds]
cenomla has joined #zig
cenomla has quit [Client Quit]
MajorLag2 has quit [Ping timeout: 265 seconds]
MajorLag has joined #zig
MajorLag2 has joined #zig
MajorLag has quit [Ping timeout: 265 seconds]
MajorLag has joined #zig
MajorLag2 has quit [Ping timeout: 265 seconds]
MajorLag has quit [Ping timeout: 265 seconds]
steveno_ has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MajorLag has joined #zig
steveno_ has quit [Read error: Connection reset by peer]