ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
tiehuis has joined #zig
klltkr_ has quit [Ping timeout: 256 seconds]
<andrewrk> Just got off a 5 hour plane ride. I almost have error sets done. This is gonna be great
Hejsil has quit [Read error: Connection reset by peer]
<tiehuis> awesome, will be interested to play around with it. I've made some decent progress on a regex implementation, too: https://clbin.com/BLZ07
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MajorLag_> andrewrk, you around?
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dd3 has joined #zig
davr0s has joined #zig
tiehuis has quit [Quit: WeeChat 2.0.1]
dd3 has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has joined #zig
hoppetosse has joined #zig
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
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
hopppetosse has joined #zig
hoppetosse has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dd3 has joined #zig
tjpalmer has joined #zig
<tjpalmer> andrewrk, sounds great!
<tjpalmer> tiehuis, also sounds great! Is it compile-time parsed?
davr0s has joined #zig
tjpalmer has quit [Client Quit]
Hejsil has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hopppetosse has quit [Ping timeout: 240 seconds]
davr0s has joined #zig
Hejsil has quit [Read error: Connection reset by peer]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hopppetosse has joined #zig
hopppetosse has quit [Ping timeout: 240 seconds]
* MajorLag_ shakes fist at comptime loop unrolling bug
hopppetosse has joined #zig
<MajorLag_> huh, actually, this isn't the comptime loop unrolling bug afterall
<MajorLag_> it's a completely new bug
arBmind has quit [Quit: Leaving.]
hasen_judy has joined #zig
<hasen_judy> has anyone tried using freetype with zig?
<GitHub139> [zig] andrewrk closed pull request #734: Made Zig support tabs (master...master) https://git.io/vNbSn
<hopppetosse> I'd very much like to be able to store sets of function arguments
<hopppetosse> sorry, that was meant to be up on a terminal =P
davr0s has joined #zig
dd3 has quit [Ping timeout: 256 seconds]
hasen_judy has quit [Remote host closed the connection]
<MajorLag_> andrewrk: @TagType throws a compiler error when used on an extern union. I am unaware of a way to differentiate between extern and non-extern unions in reflection code, so cannot branch out of this.
<MajorLag_> The first solution that comes to mind is having @TagType return void in this instance
<MajorLag_> Interesting note: @tagName reveals the secret tag in a simple union.
arBmind has joined #zig
dd3 has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redj has quit [Ping timeout: 264 seconds]
davr0s has joined #zig
redj has joined #zig
klltkr has joined #zig
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 276 seconds]
klltkr has quit [Quit: Lost terminal]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
arBmind has quit [Quit: Leaving.]
hopppetosse has quit [Ping timeout: 256 seconds]
arBmind has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hopppetosse has joined #zig
tiehuis has joined #zig
tjpalmer has joined #zig
<tjpalmer> tiehuis, well I guess that example won't be parsing regexps at compile time. But do you support that, too? And I haven't explored comptime much in zig. Would be possible today without hacking the compiler to generate code from a regexp?
tjpalmer has quit [Client Quit]
<tiehuis> tjpalmer: the only thing needed is some sort of comptime allocator to allocate the nodes of the expression tree. otherwise all the parsing should actually be fine.
<tiehuis> It would be straight-forward to do an example backed by a fixed comptime sized array to test this.
davr0s has joined #zig
<tiehuis> that would have a different interface of course, but to test that everything works at compile time
arBmind has quit [Quit: Leaving.]
hopppetosse has quit [Ping timeout: 256 seconds]
hopppetosse has joined #zig
hopppetosse has quit [Ping timeout: 240 seconds]
tiehuis has quit [Quit: WeeChat 2.0.1]
klltkr has joined #zig
klltkr has quit [Changing host]
klltkr has joined #zig
jfo has joined #zig
hopppetosse has joined #zig
<jfo> andrewrk: I am curious about some things wrt structs and fns v "methods", small write up here : https://gist.github.com/7aa30e26738df634b247011b0912087b
hopppetosse has quit [Ping timeout: 268 seconds]
klltkr has quit [Ping timeout: 264 seconds]
<MajorLag_> >> // why isn't this internal to the struct? `pub` seems to not matter here. Pub lets importers use it
<jfo> it's the same effect if I import it though. the pub annotation on the struct itself works as expected but there seems to be no distinction inside the struct definition
hasen_judy has joined #zig
<MajorLag_> huh, ok, I didn't realize that.
hasen_judy has quit [Ping timeout: 276 seconds]
<jfo> my expectation would be for the pub keyword to expose "static" and/or "instance" methods outside the struct definition block
<jfo> terms being used loosely but, I think, appropriately
<jfo> (probably also "methods")
<jfo> I'm curious about the internals of structs actually now that I think about it. Does every instatiation carry around its own "method" copies? or is that optimized to a single function address?
<MajorLag_> the "methods" are just regular namespaced functions. The instance.func() syntax passes &instance as the first parameter (if it can) as a convenience.