ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
isd has quit [Quit: Leaving.]
<MajorLag> ok, so a literal divided by a literal is apparently assumed to be an int literal if there's no decimals? `math.pow(f32, x, 1/2);` is 1;
<MajorLag> I ask because not sure if bug or intended.
davr0s has quit [Read error: Connection reset by peer]
hinst_ has joined #zig
hinst has quit [Ping timeout: 256 seconds]
hinst_ has quit [Read error: Connection reset by peer]
hinst has joined #zig
Braedon has joined #zig
Ichorio has quit [Ping timeout: 240 seconds]
Braedon has quit [Ping timeout: 260 seconds]
hinst has quit [Ping timeout: 260 seconds]
hinst_ has joined #zig
isd has joined #zig
<andrewrk> MajorLag, that's correct
<andrewrk> interesting example
m6w6 has quit [Quit: ZNC - http://znc.in]
m6w6 has joined #zig
uptown has joined #zig
relatingdata has joined #zig
<uptown> anyone have trouble running the tests after compiling the source code on mac os?
isd has quit [Ping timeout: 240 seconds]
<aiwakura> andrewrk, thanks for looking into the inlining problem
uptown has quit [Ping timeout: 260 seconds]
<aiwakura> andrewrk, not sure this is worth an issue, maybe there's a quick workaround
<aiwakura> cursor |= zen.inb(0x3D5) << u3(8);
<aiwakura> integer value 8 cannot be implicitly casted to type 'u3'
<aiwakura> it really should :)
relatingdata has quit [Quit: Page closed]
relatingdata has joined #zig
<hobomatic> u3 would only be 0-7 though. 8 states, but one of them is 0
<hobomatic> (or maybe i'm missing something)
<aiwakura> oh, I see what's happening.
<aiwakura> so if you do just "zen.inb(0x3D5) << 8" it gives you the same error message
<aiwakura> because the type of "zen.inb(0x3D5" is u8, and you can only shift up to 7
<aiwakura> casting "zen.inb(0x3D5)" to usize solves the issue ;)
<relatingdata> talking of signed and unsigned entities I can thing of A->D and D->A converters that are i10 and i12 in size are the smaller than i8 and i4 worth the trouble to implement or is it relatively painless with a bit of judicious bit masking and shifting?
<GitHub68> [zig] Hejsil pushed 1 new commit to master: https://git.io/vxANY
<GitHub68> zig/master 0d8646d Jimmi Holst Christensen: std.zig.parser now parses alignment of functions...
relatingdata has quit [Quit: Page closed]
arBmind has joined #zig
<GitHub33> [zig] tiehuis opened pull request #915: Revise self-hosted command line interface (master...self-hosted-cli) https://git.io/vxxcL
hoppetosse has joined #zig
<MajorLag> andrewrk, I guess zig has spoiled me by a) not making me explicitly put decimals on float literals and b) usually catching my mistakes during compilation.
hopppetosse has joined #zig
hoppetosse has quit [Ping timeout: 260 seconds]
profan_ is now known as profan
hopppetosse has quit [Ping timeout: 256 seconds]
hopppetosse has joined #zig
hopppetosse has quit [Ping timeout: 260 seconds]
hopppetosse has joined #zig
Braedon has joined #zig
<andrewrk> MajorLag, the only thing I can think of to address this situation is deleting the `/` operator for integers and forcing to use one of the @div* functions
<andrewrk> I feel like that might be a little harsh though
<andrewrk> we already do this for signed integers
<MajorLag> Yeah, I'm not saying there's a good way to catch it. You could, in that specific situation of two literals which could be either int or float and where the result would differ depending on which way they went, force the programmer to be more explicit, but that seems like a cumbersome hack.
Braedon has quit [Ping timeout: 260 seconds]
noonien has quit [Quit: Connection closed for inactivity]
arBmind has quit [Quit: Leaving.]
hopppetosse has quit [Ping timeout: 240 seconds]
hopppetosse has joined #zig
Ichorio has joined #zig
so has quit [Read error: Connection reset by peer]
hopppetosse has quit [Ping timeout: 276 seconds]
isd has joined #zig
Ichorio has quit [Remote host closed the connection]
Ichorio has joined #zig
hoppetosse has joined #zig
<GitHub189> [zig] andrewrk pushed 1 new commit to master: https://git.io/vxpwQ
<GitHub189> zig/master 373b358 Andrew Kelley: inline functions must be stored in const or comptime var...
cenomla has joined #zig
<aiwakura> @andrewrk thanks
<andrewrk> thank you for the report
<andrewrk> and the generous patreon pledge
<aiwakura> my pleasure
davr0s has joined #zig
hoppetosse has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
Ichorio has quit [Ping timeout: 264 seconds]
isd has quit [Quit: Leaving.]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]