ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #zig
<andrewrk> unique_id, are you using https://github.com/isaachier/ztags ?
<wink_> I've got a routine which may return error in release builds but not in debug. I'm using a switch (builtin.mode) but when I have a debug build the compiler complains that ".. must return at least one possible error" how should I handle that?
<unique_id> andrewrk: no I'm using https://github.com/tiehuis/zig-ctags
<andrewrk> oh wow that's very simple
<unique_id> heh yeah
<unique_id> I didn't know about ztags
<andrewrk> ztags uses std.zig.parser, so that's neat
return0e has joined #zig
return0xe has quit [Ping timeout: 276 seconds]
mnoronha has joined #zig
davr0s has joined #zig
mnoronha has quit [Quit: Ping timeout (120 seconds)]
mnoronha has joined #zig
kristate has joined #zig
<kristate> andrewrk: you online?
mnoronha has quit [Read error: Connection reset by peer]
<andrewrk> hi kristate
<kristate> andrewrk: hi
<kristate> when you squash commits, you lose author information.
mnoronha has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<andrewrk> kristate, sorry about that
<andrewrk> I did know that you did that. thanks for helping mtn with the PR
<kristate> andrewrk: can you rebase so that I am included?
<andrewrk> I don't want to force push master but how about a whitespace modification so that you're tagged on those lines?
<kristate> andrewrk: I would like to be accredited with the work I do.
<andrewrk> that is a very reasonable thing to want. master branch has an error in it, so let's solve it how we solve all bugs/problems in master branch, by pushing more commits
<andrewrk> I can push a revert commit, and then merge a different way
mnoronha has quit [Ping timeout: 276 seconds]
<kristate> andrewrk: I leave it up to you on the logistics of the master branch, but I just don't like code written by one person claimed by another
<kristate> we're inside of git, so we have the metadata to do this -- sometimes I have brought-in code from the 90s in past projects and I make a note of it in the commit and of course in the source
<kristate> andrewrk: as long as you make it right, it is fine by me.
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wink_ has joined #zig
<andrewrk> kristate, it is fixed now. I apologize for not properly crediting you in git
<kristate> andrewrk: thanks -- what was the command you were calling before versus now
<kristate> andrewrk: I don't want to make the same mistake myself
<andrewrk> in git? I was using the squash button in the PR interface
<andrewrk> on github
<kristate> ah -- github should know better
<andrewrk> that's what I was hoping. anyway I did the merge manually just now
<scientes> it gives you three options, merge squash and rebase
<kristate> andrewrk: but I don't like squash because it removes lots of commit history which is valuable to check how someone fixed a problem, etc
<andrewrk> I think this is more coherent as 1 commit rather than 10: https://github.com/ziglang/zig/commit/937b822fa90181bf59f1c2ac45faab09342a183f
<andrewrk> I hear your preference though. I'm fine with using the --no-ff option for your PRs from now on
<kristate> andrewrk: that's a merge commit, no? the individual commits still exist
<andrewrk> kristate, yes, I mean the diff is simple enough to be 1 commit
<andrewrk> but it's all good. --no-ff it is for you :)
<andrewrk> alright back to merging scientes's PR
<andrewrk> scientes, I took your code but I'm doing a more thorough job of eradicating allocators in std where we can rely on PATH_MAX
<kristate> andrewrk: thanks -- I am going to push my bigint branch so that you can understand `bool allow_binop_cast` more
<scientes> yeah mine was really just to show that it could be
<scientes> done
<scientes> go ahead and write your own
<andrewrk> scientes, for windows we have to use the value 98302
<scientes> why so much more than 64k?
<andrewrk> because the max path on most windows file functions is 32767 "wide characters" which means UTF-16LE codepoints
<scientes> oh wait utf-16 can have doubles
<scientes> so why not 128K?
<andrewrk> so it is 32767 * 3 + 1
<andrewrk> here's the comment I wrote
<andrewrk> // Each UTF-16LE character may be expanded to 3 UTF-8 bytes. // If it would require 4 UTF-8 bytes, then there would be a surrogate // pair in the UTF-16LE, and we (over)account 3 bytes for it that way. // +1 for the null byte at the end, which can be encoded in 1 byte.
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<scientes> oh, its really ucs-4, not utf-16
<scientes> on linux it really is 4096, not 4096+1
<scientes> ucs-2
<scientes> utf-16 can have doubles that are 32-bits long
<andrewrk> are you suggesting that windows file paths do not support surrogate pairs?
<scientes> i'm saying that if they do we need to up the limit
<andrewrk> but I think 32767 is counting the number of u16 values, not the number of characters
<andrewrk> I will test
<scientes> also, if you don't use getcwd() you can go above PATH_MAX with openat()
<scientes> but I don't think we should do that in std lib
<andrewrk> I'm changing std.os.getCwd to
<andrewrk> pub fn getCwd(out_buffer: *[MAX_PATH_BYTES]u8) ![]u8
wink_ has joined #zig
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig
_whitelogger has joined #zig
mnoronha has quit [Quit: The Lounge - https://thelounge.github.io]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 276 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 256 seconds]
kristate has quit [Remote host closed the connection]
davr0s has joined #zig
kristate has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 272 seconds]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
_whitelogger has joined #zig
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 272 seconds]
kristate has quit [Ping timeout: 272 seconds]
davr0s has joined #zig
hoppetosse has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 260 seconds]
noonien has joined #zig
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 255 seconds]
kristate has joined #zig
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wink_ has joined #zig
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kristate> andrewrk: hey -- what is bigint like on stage2 ?
<kristate> std.math.big.Int
<andrewrk> kristate, yep that's it
<andrewrk> tiehuis and I had some discussion about the data layout
<kristate> andrewrk: Yeah -- I am not having fun with stage1 anymore. lets get to stage2 as fast as possible
<andrewrk> there are 2 use cases - zig's use case where nearly all ints are less than 64 bits, and general math library computing where each int having an allocator kinda makes sense
<kristate> andrewrk: I like that at comptime, ints are big and they can be anything -- I also like that we can cast down
<kristate> but the infra for that is not really in place. it's very wishy washy
<andrewrk> so my eventual plan is to divide std.math.big.Int up - the core will be a smaller data layout size, optimized for int sizes less than usize, and you have to pass the allocator in for all the functions
<andrewrk> and then tiehuis's use case will wrap that one
<andrewrk> so everybody is happy
<kristate> andrewrk: btw, any progress on #1364?
<andrewrk> pull requests first then I'm on it
<kristate> andrewrk: okay -- about to push what I have for bigint
<andrewrk> I'm on 1392 now
<kristate> hopefully it can be a stop gap
return0xe has joined #zig
return0e has quit [Ping timeout: 276 seconds]
Hejsil has joined #zig
l1x has quit [*.net *.split]
saolsen has quit [*.net *.split]
bheesham has quit [*.net *.split]
Hejsil has quit [Quit: Page closed]
mnoronha has joined #zig
karlguy has quit [*.net *.split]
fkaa has quit [*.net *.split]
kristate has quit [Remote host closed the connection]
ltr_ has quit [*.net *.split]
jwmerril1 has quit [*.net *.split]
ragge has quit [*.net *.split]
strmpnk has quit [Ping timeout: 256 seconds]
davr0s has joined #zig
ltr_ has joined #zig
strmpnk has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
kristate has joined #zig
\u has joined #zig
meowray has quit [*.net *.split]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnoronha has joined #zig
davr0s has joined #zig
bheads has quit [Ping timeout: 272 seconds]
mnoronha has quit [Ping timeout: 264 seconds]
kristate has quit [Read error: Connection reset by peer]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig