ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
adagio has joined #zig
isd has joined #zig
<MajorLag> So here's a weird thing: `while(true){ warn("A"); }`. In win32 in a `test` block, does what you'd expect, but in linux there's no output. wrap it in a `main` instead and it acts as expected.
<MajorLag> hmm... it's probably something wrong with my environment. compilation takes a lot longer than it should too.
hinst_ has quit [Ping timeout: 264 seconds]
hinst has joined #zig
isd has quit [Quit: Leaving.]
JinShil has joined #zig
<achambe> anyone here use apparmour on nixos?
adagio has quit [Quit: Leaving.]
<andrewrk> MajorLag: do you have a nonstandard installation? Is that working around an issue or something?
<achambe> oh sorry, wrong chat .. dug
<achambe> duh'
adagio has joined #zig
davr0s has joined #zig
adagio has quit [Quit: Leaving.]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JinShil has quit [Quit: Leaving]
adagio has joined #zig
adagio has quit [Quit: Leaving.]
adagio has joined #zig
davr0s has joined #zig
<MajorLag> andrewrk: my linux environment is a pretty bog-standard ubuntu installation, but it is on a VM with rather contrained resources. My windows environment has a non-standard setup for BS build tools though.
<MajorLag> *VS
hoppetosse has joined #zig
davr0s has quit [Quit: Textual IRC Client: www.textualapp.com]
hoppetosse has quit [Ping timeout: 256 seconds]
hoppetosse has joined #zig
hoppetosse has quit [Ping timeout: 246 seconds]
hoppetosse has joined #zig
hopppetosse has joined #zig
hoppetosse has quit [Ping timeout: 264 seconds]
adagio has quit [Quit: Leaving.]
Ichorio has joined #zig
<GitHub87> [zig] andrewrk pushed 1 new commit to master: https://git.io/vpIGw
<GitHub87> zig/master f1f998e Andrew Kelley: improve cmpxchg...
Heimdall has joined #zig
<MajorLag> andrewrk: I've built a std.os.time, but have some questions. What's the policy on tests that consume real time? And I made an effort to provide functionality for iOS/Darwin, but have no way of testing it, so I'm not sure I should include it at all.
<andrewrk> that's a good question
<andrewrk> you could try collecting time twice and assert that the 2nd one is >= the 1st one
<andrewrk> go ahead and include the darwin code and I'll test it on my laptop tonight
<andrewrk> oh, also travis CI will test your darwin code
<MajorLag> That's more or less what I'm doing. I suppose I don't need to wait a full second to check.
adagio has joined #zig
hopppetosse has quit [Ping timeout: 256 seconds]
Heimdall has quit [Ping timeout: 260 seconds]
hoppetosse has joined #zig
Heimdall has joined #zig
davr0s has joined #zig
hoppetosse has quit [Ping timeout: 268 seconds]
hoppetosse has joined #zig
adagio has quit [Quit: Leaving.]
hoppetosse has quit [Ping timeout: 256 seconds]
<MajorLag> I have a function that needs to do different things based on the OS. In some OSs it can fail and it is appropriate to return an error, in others it can't. The compiler is unsatisfied with this. I feel like changing the return type based on the OS is a bad idea, because it means everywhere you use that function you'll have to switch on the OS, so I feel like I have to trick the compiler. Is their something I'm missi
<MajorLag> le this?
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<andrewrk> MajorLag, the pattern for this is to create an explicit error set that includes errors from all OSes
hoppetosse has joined #zig
<andrewrk> I'm not 100% satisfied with this. I might relax that compile error and allow functions with inferred error sets to not return an error. and then we would need to address the problem of switching on an error code where some of the switch prongs only applied to some OSes
<andrewrk> this is related to multibuild, which apparently I still haven't typed up an issue for
<MajorLag> Oh, I see, it isn't a problem as long as I'm explicit about the error set.
davr0s has joined #zig
alexnask_ has joined #zig
alexnask has quit [Ping timeout: 260 seconds]
hopppetosse has joined #zig
Heimdall has quit [Quit: Page closed]
<GitHub141> [zig] andrewrk pushed 1 new commit to master: https://git.io/vpI7f
<GitHub141> zig/master ca4341f Andrew Kelley: add --no-rosegment cli option...
hoppetosse has quit [Ping timeout: 264 seconds]
Ichorio has quit [Ping timeout: 246 seconds]
return0e_ has joined #zig
adagio has joined #zig
isd has joined #zig
Ichorio has joined #zig
Ichorio has quit [Ping timeout: 256 seconds]
<GitHub148> [zig] tgschultz opened pull request #933: Std.os.time (master...std.os.time) https://git.io/vpIjq
<MajorLag> does travis do x86 linux too or just x64?
hopppetosse has quit [Ping timeout: 240 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MajorLag> andrewrk: according to process monitor, zig still completely ignores --kernel32-lib-dir and --msvc-lib-dir, it always just looks at `<drive>:\Lib\(null)\<assumed VS path>`. I've had to create reparse points at that location to make it happy.
<MajorLag> ...only it still isn't happy, it just exits silently with code 1
hinst_ has joined #zig
hinst has quit [Ping timeout: 240 seconds]
<MajorLag> `18:19:47.1495265zig.exe11248QueryOpenE:\experimental\VC\BuildTools\lib\x64" --kernel32-lib-dir e:\experimental\VC\BuildTools\umlib\x64"\vcruntimed.libNAME INVALID`
<MajorLag> that's um... strange
<MajorLag> ok, so that apparently is because it can't parse the quoted paths correctly. But even without the quotes it fails (silently, exit code 1), even though now it does seem to be finding everything it is looking for.