ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
SimonNa has quit [Quit: Leaving]
hasen_judy has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Ping timeout: 265 seconds]
davr0s has joined #zig
SimonNa has joined #zig
cenomla has quit [Quit: cenomla]
hasen_judy has joined #zig
jfo has joined #zig
hasen_judy has quit [Ping timeout: 265 seconds]
jfo has quit [Ping timeout: 255 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Client Quit]
davr0s has joined #zig
davr0s has quit [Client Quit]
davr0s has joined #zig
davr0s has quit [Client Quit]
<MajorLag_> Wooo, more comptime compiler asserts...
<andrewrk> MajorLag_, are you referring to the latest commit?
<andrewrk> that was a regression
<andrewrk> look at the code diff, haha
<MajorLag_> No, I'm a few commits behind yet. I broke something having to do with a comptime closure and a comptime created empty struct, I think. Windows, so debugging is limited. Have to find a minimal case.
steveno_ has quit [Quit: Leaving]
<MajorLag_> Ok, this is a bit weird. It looks like, if you use the '%' operator with a comptime var... under some circumstances I haven't entirely worked out yet, it throws an unreachable. I think it has to do with the "use @mod or @rem" error, but it actually works depending on context.
<MajorLag_> Ok, specifically, the comptime var seems to have to be a float, and the other operand an int.
<GitHub4> [zig] andrewrk pushed 1 new commit to master: https://git.io/vAZz9
<GitHub4> zig/master ca597e2 Andrew Kelley: std.zig.parser understands try. zig fmt respects a double line break.
<andrewrk> MajorLag_, what a delightfully small test case
<andrewrk> here's a one liner
<andrewrk> comptime { var x = f32(1) % 2; }
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 240 seconds]
<GitHub42> [zig] andrewrk pushed 1 new commit to master: https://git.io/vAZgZ
<GitHub42> zig/master 1c1c069 Andrew Kelley: fix crash when doing comptime float rem comptime int...
<andrewrk> MajorLag_, fixed ^
<MajorLag_> Thanks.
cenomla has joined #zig
cenomla has quit [Remote host closed the connection]
cenomla has joined #zig
davr0s has joined #zig
jfo has joined #zig
jfo has quit [Ping timeout: 240 seconds]
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 260 seconds]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
cenomla has quit [Quit: cenomla]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
dd3 has joined #zig
jfo has joined #zig
dd3 has quit [Ping timeout: 256 seconds]
davr0s has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
davr0s has quit [Client Quit]
jfo has quit [Ping timeout: 252 seconds]
jfo has joined #zig
jfo has quit []
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 276 seconds]
arBmind has joined #zig
davr0s has joined #zig
hasen_judy has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfo has joined #zig
<jfo> andrewrk: my coworker got a mips32 development board and we want to know if he can target it with zig ootb!
<jfo> ~ $ zig targets | grep mips
<jfo> mipsel
<jfo> mips
<jfo> mips64
<jfo> mips64el
steveno has joined #zig
steveno has quit [Client Quit]
steveno has joined #zig
steveno has quit [Client Quit]
steveno_ has joined #zig
steveno_ has quit [Ping timeout: 255 seconds]
steveno_ has joined #zig
hasen_judy has quit []
hasen_judy has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
hasen_judy has quit []
jfo has quit [Ping timeout: 256 seconds]
davr0s has joined #zig
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Ping timeout: 260 seconds]
jfo has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
<andrewrk> jfo, yeah it works out of the box
<jfo> \o/
<jfo> it's this one
<andrewrk> jfo, are you trying to make an OS for it, or run linux on it and then make a zig program for linux on it?
<jfo> I'm not trying to do anything, I have no idea what he's trying to do
<andrewrk> well either way zig will work for it
<jfo> he has no idea either lol
<jfo> but I guess he'll report back
<jfo> maybe a packet sniffer
jfo has quit [Remote host closed the connection]
jfo has joined #zig
Hejsil has joined #zig
jfo has quit [Remote host closed the connection]
Hejsil has quit [Read error: Connection reset by peer]
davr0s has joined #zig
jfo has joined #zig
jfo has quit [Ping timeout: 255 seconds]
<GitHub8> [zig] andrewrk pushed 1 new commit to master: https://git.io/vAngm
<GitHub8> zig/master cc26148 Andrew Kelley: fix compiler crash when struct contains......
<GitHub179> [zig] andrewrk pushed 1 new commit to master: https://git.io/vAnaU
<GitHub179> zig/master 5f58809 Andrew Kelley: zig fmt supports simple line comments
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hejsil has joined #zig
jfo has joined #zig
arBmind has quit [Quit: Leaving.]
ofelas has joined #zig
defenestrator has joined #zig
davr0s has joined #zig
Hejsil_ has joined #zig
Hejsil_ has quit [Quit: Leaving]
jfo has quit [Remote host closed the connection]
jfo has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfo has quit [Remote host closed the connection]
jfo_ has joined #zig
jfo_ has quit [Remote host closed the connection]
steveno_ has quit [Quit: Leaving]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
arBmind has joined #zig
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
davr0s has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
jfo has quit [Remote host closed the connection]
jfo has joined #zig
Hejsil has quit [Read error: Connection reset by peer]
dd3 has joined #zig
cenomla has joined #zig
dd3 has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
<andrewrk> nice!
<MajorLag_> andrewrk: re: #760, what use is specifying an empty instance of a struct as a return type? Or do I misunderstand what is meant by `A{}`?
<andrewrk> MajorLag_, even if it's not useful, it can still make parsing ambiguous and that's still a problem
<andrewrk> one more consideration: if we change struct declaration / instantiation syntax, then if, while, for, switch, etc can drop the required parens
<andrewrk> (and it solves #760)
<MajorLag_> I guess I'm not getting why it can't error in that case. I mean, what does: fn() A{.x = 1} {...}; even mean? It seems fine to consider the first {} as the fn body and error because it doesn't return and/or there's no `;` between it and the code block or whatever.
<andrewrk> MajorLag_, it's an error, but it's a confusing syntax error
defenestrator has quit [Ping timeout: 260 seconds]
jfo has quit [Remote host closed the connection]