ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
dbandstra has joined #zig
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
<unique_id> I just submitted another bug report. Feel free to ignore them and keep them as tests for stage 2! These aren't exactly pressing.
<andrewrk> thanks unique_id
<andrewrk> that's definitely the plan - to use this corpus of tests for stage2
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
_whitelogger has joined #zig
davr0s has joined #zig
adrusi has quit [Ping timeout: 240 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adrusi has joined #zig
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
darithorn has quit [Quit: WeeChat 2.2]
dbandstra has quit [Quit: Leaving]
pdmer has quit [Quit: pdmer]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
very-mediocre has joined #zig
kristate has joined #zig
c15ade4 has quit [Quit: WeeChat 2.0]
davr0s has joined #zig
return0e has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adrusi_ has joined #zig
adrusi has quit [Ping timeout: 246 seconds]
davr0s has joined #zig
dpk has quit [Ping timeout: 240 seconds]
dpk has joined #zig
davr0s has quit [Read error: Connection reset by peer]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
noonien has joined #zig
Barabas has joined #zig
Thorn has quit [Quit: Quit]
porky11 has joined #zig
<porky11> hi
<andrewrk> hi porky11
<porky11> I'm currently installing zig and want to try it
<porky11> is there already some geometric algebra lib written in zig?
<andrewrk> I don't think so
<andrewrk> you could use a C library
<porky11> no, it's not possible to implement geometric algebra in C in a generic way
<andrewrk> ah I see
<porky11> I talk about something like this https://github.com/wolftype/versor
<porky11> I was only able to implement it in scopes yet, which has pretty similar semantics to zig
<porky11> there also is not a list of packages or even a package manager yet?
very-mediocre has quit [Ping timeout: 252 seconds]
<andrewrk> porky11, not yet. here's the issue to track for that: https://github.com/ziglang/zig/issues/943
Thorn has joined #zig
<porky11> can I see some example usage of the zig build system?
<porky11> the documentation is still missing
<andrewrk> porky11, yes, here are some examples:
<andrewrk> the build system is still at proof of concept stage - it works but it's missing some important things like caching, good documentation, and some ergonomic features
qazo has joined #zig
<porky11> andrewrk, since I'm still using just make, it's likely to be an improvement
<andrewrk> it does have the benefit that you remove a dependency on make - so you're probably making the build process easier for cross-platform applications
qazo has quit [Ping timeout: 244 seconds]
Barabas has quit [Ping timeout: 252 seconds]
greglefox has joined #zig
<greglefox> hello
Thorn has quit [Quit: Quit]
<greglefox> any zigger here ?
<andrewrk> hi greglefox
<greglefox> hi andrew
<greglefox> nice video on the memory
<andrewrk> thank you
fsateler has quit [Ping timeout: 272 seconds]
<greglefox> is there any forum outside of redit ?'
<greglefox> to ask 'basic' questions ?
<andrewrk> you can ask basic questions here
<greglefox> ok ...
<andrewrk> there's also stack overflow
<andrewrk> so far 100% of zig tag questions have accepted answers :)
<greglefox> just installed comiled llvm + VS2015 update3 + CMAKE
fsateler has joined #zig
<greglefox> git clone zig
<greglefox> achieved to compile zig
<greglefox> but zig build test failed
<andrewrk> greglefox, I am sorry, I have a flakey test in master right now. https://github.com/ziglang/zig/issues/1364
<andrewrk> I will disable the stage2 tests on all targets until this issue is fixed
<greglefox> I see
<andrewrk> greglefox, I pushed a commit to disable stage2 tests. I am focusing on stage1 until 0.3.0 which is scheduled for sept 21
<andrewrk> now I would expect all the tests to pass for you
<greglefox> btw I get the feeling build.zig was not even starting at all and failing on an assert
<andrewrk> I can help if you show me the output
<greglefox> Build failed. The following command failed: C:\Zig\zig\zig-cache\build bin\zig C:\Zig\zig C:\Zig\zig\zig-cache test
<greglefox> and before an incomplete stacktrace with a failure on an assert
<andrewrk> I'm going to need more than that. Can you link me to a paste of all the output?
<andrewrk> by the way there's an ongoing build you can watch, how it's supposed to look: https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master
<andrewrk> oh this is very interesting, thank you
<greglefox> very clear thank you for the CI
<andrewrk> greglefox, it's still going, but when it's done you can download a zip file with a working build
qazo has joined #zig
<greglefox> sure I will do
<andrewrk> that's very strange that microsoft's CloseHandle returned an error. that's undocumented
<andrewrk> I think we should probably just remove the assert
<andrewrk> greglefox, if I send you a diff can you try it?
<greglefox> PS: another small issue: I use visual code (windows 10 64bits) and when file are saved, zig will complain about carriage return and not compile
<greglefox> C:\Zig\test\test.zig:2:61: error: invalid carriage return, only '\n' line endings are supported
<andrewrk> I think there is a little icon in the bottom right and you can change the line ending style
<greglefox> indeed
<greglefox> (did not get issued on NIM or C/C++, should have pay attention)
qazo has quit [Ping timeout: 264 seconds]
<greglefox> Sorry I have to logoff (I am in HK, it is late here), but I can try diff tomorrow
<andrewrk> thanks for stopping by, cheers
<greglefox> thanks for your time, on my way to learn more on zig
greglefox has quit []
<MajorLag> andrewrk, did you happen to fix that problem where the wrong line number/carrot position is shown in COFF traces?
<andrewrk> MajorLag, no, I haven't figured it out yet
<andrewrk> it also doesn't seem to be a consistent pattern
<andrewrk> in the above stack trace it seems like it's pointing to an address too early
<andrewrk> but in some places it seems late
<andrewrk> I'll fiddle with it and see if I can get better results
<MajorLag> yeah, I've noticed the same thing. sometimes it is even correct.
<andrewrk> MajorLag, one thing I can do to sanity check, is have a program manually print its @returnAddress for every fn call, and then do a stack trace, and make sure RtlCaptureStackBackTrace is getting the correct addresses
<andrewrk> once that is verified then we know it's an issue with the line/col mapping
<andrewrk> even off by a little though, wow, that was incredibly helpful to get that stack trace just now
darithorn has joined #zig
davr0s has joined #zig
ofelas has quit [Remote host closed the connection]
ofelas has joined #zig
kristate has joined #zig
davr0s has quit [Read error: Connection reset by peer]
davr0s_ has joined #zig
kristate has quit [Remote host closed the connection]
Thorn has joined #zig
Thorn has quit [Read error: Connection reset by peer]
Thorn has joined #zig
unique_id has quit [Remote host closed the connection]
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wink_ has joined #zig
<cgag> andrewrk: what's the memory video greglefox mentioned?
davr0s_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adrusi_ has quit [Quit: ZNC 1.7.1 - https://znc.in]
davr0s has joined #zig
adrusi has joined #zig
<cgag> oh nice, sounds useful, i've just been poking around src-self-hosted and mem.zig to figure things out
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
porky11 has quit [Remote host closed the connection]
kristate has joined #zig
davr0s has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Read error: Connection reset by peer]
<wink_> I run into a little problem, I've got a `fn next` which returns `?(error![]u8)`, see: http://bit.ly/2N3yhQq . I've got it to work but if use `try mem.dupe` instead of a `return mem.dupe` I get a compile error. What do I need to do to be able to use the `mem.dupe` result?
<andrewrk> wink_, your next function has to return an error union
<andrewrk> because you're using `try`
<andrewrk> more specifically zig has to be able to implicitly cast the error set of mem.dupe to your return value, which is ?(error![]u8) and this is not an allowed implicit cast
<andrewrk> you could do this: mem.dupe(pAllocator, u8, s.?) catch |err| return (error![]u8)(err);
<andrewrk> but I would recommend that if your function can fail, that it is an error union return type
qazo has joined #zig
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wink_ has joined #zig
<wink_> Thanks, BTW I had to change `return n;` to `return (error![]u8)(n);`When you say "error union return type" what do you mean?
<wink_> Yeah, I normally would use `![]u8`, but I got the idea of returning "null" plus an error union return type from ArgIteratorWindows and ArgIterator in std/os/index.zig. Definitely didn't come up with that myself :)
noonien has quit [Quit: Connection closed for inactivity]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wink_ has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]