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>
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
<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]
<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
<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…]