ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<daurnimator> andrewrk: should have just cherry picked the commit :P
daurnimator[m] has joined #zig
<andrewrk> daurnimator, ah, I didn't realize you separated it out
<andrewrk> at at least now we have a reference in the commit history
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Ping timeout: 250 seconds]
darithorn has quit [Remote host closed the connection]
kristate has joined #zig
fsateler_ has joined #zig
kristate has quit [Ping timeout: 268 seconds]
fsateler has quit [Ping timeout: 250 seconds]
return0e_ has joined #zig
return0e has quit [Ping timeout: 252 seconds]
dewf has joined #zig
kristate has joined #zig
kristate has quit [Ping timeout: 252 seconds]
wooter has joined #zig
dewf has quit [Ping timeout: 252 seconds]
schme245 has joined #zig
schme245 has quit [Ping timeout: 246 seconds]
redj has quit [Read error: Connection reset by peer]
bkleiner has quit [Quit: bye]
xentec has quit [Quit: memento mori]
SimonNa has quit [Ping timeout: 246 seconds]
kristate has joined #zig
SimonNa has joined #zig
schme245 has joined #zig
schme245 has quit [Remote host closed the connection]
diltsman has quit [Ping timeout: 256 seconds]
jjido_ has joined #zig
brakmic has joined #zig
jjido_ has quit [Client Quit]
brakmic has quit [Remote host closed the connection]
jjido has joined #zig
jjido has quit [Client Quit]
brakmic has joined #zig
wilsonk has quit [Read error: Connection reset by peer]
Zaab1t has joined #zig
Zaab1t has quit [Client Quit]
marmotini_ has joined #zig
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #zig
gunnarahlberg has joined #zig
<gunnarahlberg> Hi!
<gunnarahlberg> https://ziglang.org/ - error handling - a fresh take, what does that mean? Is it documented? What is "resembles what well-written C error handling" ?
<gunnarahlberg> is this the best documentation ? https://andrewkelley.me/post/intro-to-zig.html#errors
<gamester> gunnarahlberg: That looks like a good introduction. There's also https://ziglang.org/documentation/master/#Error-Set-Type and you can also get an idea from looking at code in the standard library: https://github.com/ziglang/zig/tree/master/std
<gunnarahlberg> gamester: thank you! I'll dig through some code and make myself some code examples
_whitelogger has joined #zig
brakmic_ has joined #zig
brakmic has quit [Ping timeout: 252 seconds]
<gamester> When you call "setOutputDir" and set it to a directory that does not exist then zig build gives an unhelpful error message: "unable to write object file build/foo/bar.o: No such file or directory"
<gamester> though I had no trouble figuring out what was wrong
redj has joined #zig
gunnarahlberg has quit [Quit: Page closed]
brakmic_ has quit [Ping timeout: 246 seconds]
brakmic has joined #zig
brakmic_ has joined #zig
nbjoerg_ is now known as nbjoerg
brakmic has quit [Ping timeout: 246 seconds]
brakmic has joined #zig
brakmic_ has quit [Ping timeout: 250 seconds]
brakmic_ has joined #zig
brakmic__ has joined #zig
brakmic has quit [Ping timeout: 246 seconds]
brakmic_ has quit [Ping timeout: 245 seconds]
halosghost has joined #zig
brakmic has joined #zig
brakmic__ has quit [Ping timeout: 255 seconds]
brakmic has quit [Remote host closed the connection]
brakmic has joined #zig
brakmic has quit [Ping timeout: 246 seconds]
kristate has quit [Ping timeout: 246 seconds]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
marmotini_ has quit [Ping timeout: 250 seconds]
Thalheim has joined #zig
<gamester> andrewrk: Partly broken stack traces? https://pastebin.com/raw/FeQEcaKp - that's a lot of question marks
<andrewrk> looks like a potential problem in std/debug.zig dwarf info handling
<gamester> andrewrk: When I try to check out an old versions of zig I get "Unable to create builtin.zig: invalid format" when running zig build-exe
<gamester> removing zig-cache isn't enough, unless there's more than one
<andrewrk> gamester, yeah, that's because until 3a6f19de4 an unexpected cache format would error rather than treat it as a cache miss
<andrewrk> now if the format changes again it'll just keep working
<andrewrk> you can work around it like this: rm -rf ~/.local/share/zig/stage1/
wooter has quit [Quit: Leaving]
wilsonk has joined #zig
wilsonk has quit [Read error: No route to host]
wilsonk has joined #zig
Akuli has joined #zig
Ichorio has joined #zig
schme245 has joined #zig
<schme245> can you check the currently active tag of a union without a switch?
<andrewrk> (this documentation section is fresh as of a couple days ago)
wootehfoot has joined #zig
schme245 has quit [Remote host closed the connection]
schme245 has joined #zig
<schme245> thanks andrewrk!
jjido has joined #zig
schme245 has quit [Remote host closed the connection]
schme245 has joined #zig
schme245 has quit [Ping timeout: 246 seconds]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
moo has joined #zig
metabulation has joined #zig
wootehfoot has quit [Ping timeout: 246 seconds]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moo has quit [Ping timeout: 252 seconds]
jjido has joined #zig
schme245 has joined #zig
schme245 has quit [Remote host closed the connection]
schme245 has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schme245 has quit [Ping timeout: 252 seconds]
metabulation has quit [Quit: Leaving]
wootehfoot has joined #zig
schme245 has joined #zig
<gamester> Does builder.option create a comptime variable of sorts? How do I make use of these options in comptime code?
<andrewrk> gamester, it's not well stabilized yet but you can do this: https://freenode.irclog.whitequark.org/zig/2019-03-10#24198616;
<andrewrk> that use case is an important one but it's in the middle of a sort of transition
Sahnvour has joined #zig
<Sahnvour> hi, andrewrk I'm debugging the windows c_abi issue, which also has debug info issues
<andrewrk> Sahnvour, I don't remember. sorry for not commenting it. I was probably looking at llvm source code to find out to do that
<Sahnvour> fair enough, did that too
<Sahnvour> I'll look it up
<schme245> does union -> enum implicit casts work for inferred unions as well?
<andrewrk> yes if you implicit cast to the @TagType of the union
<Sahnvour> can confirm LLVM pads to align to u32
<schme245> hmm... I can't get that to work, let me try with a reduced example
jjido has joined #zig
<andrewrk> schme245, note that your `Tag` variable is not a type, it's an enum value
<andrewrk> you can do this: const is_branch = node == Node.Branch;
<Akuli> var a: [][2]u8 = {{1,2},{3,4},{5,6}};
<Akuli> how do i do this so that it works?
<schme245> man I could have sworn that was the first thing I tried, thanks again!
<Akuli> nevermind figured it out
<Akuli> var a: [3][2]u8 = [3][2]u8{[]u8{1,2},[]u8{3,4},[]u8{5,6}};
<andrewrk> Akuli, there are a couple open issues related to this
<Sahnvour> fixed :) the alignment was incorrect
wootehfoot has quit [Read error: Connection reset by peer]
<andrewrk> Sahnvour, wonderful
<schme245> man, I'm enjoying Zig so much, thanks Andy and everyone who's contributed :)
<andrewrk> glad to hear that schme245 :)
<Sahnvour> what's 0.4 planned release date ?
<andrewrk> currently April 08, 2019 but that's based on a prediction of llvm 8.0.0 release date. official release date will be announced day of llvm 8 release
<companion_cube> are you depending on llvm 8 features?
<andrewrk> no
<andrewrk> just keeping up to date
<Sahnvour> ok, and do you have a list of features/fixes you really want to go in before that ?
<andrewrk> actually, I just remembered - yes llvm 8 is the first one that has webassembly as a default target
<andrewrk> the 0.4.0 milestone is accurate: https://github.com/ziglang/zig/milestone/6
<Sahnvour> thanks
<andrewrk> as we near the release date, some stuff will inevitably be post-poned
<andrewrk> until 1.0.0, however, zig will be released based on a schedule. after 1.0.0 zig will be released based on there being no bugs
halosghost has quit [Quit: WeeChat 2.4]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akuli has quit [Quit: Leaving]
jjido has joined #zig
jjido has quit [Client Quit]
<Sahnvour> it's getting late, see you
Sahnvour has quit [Quit: Leaving]
schme245 has quit [Remote host closed the connection]
Dennis__ has joined #zig
Ichorio has quit [Ping timeout: 246 seconds]
Ichorio has joined #zig
Dennis__ has quit [Quit: Page closed]
Ichorio_ has joined #zig
Ichorio has quit [Ping timeout: 250 seconds]
kristate has joined #zig
Ichorio_ has quit [Read error: Connection reset by peer]