ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
atk has quit [Quit: Well this is unexpected.]
atk has joined #zig
stereosteve has joined #zig
stereosteve has quit [Client Quit]
SimonNa has joined #zig
SimonN has quit [Ping timeout: 268 seconds]
Sahnvour has quit [Quit: Page closed]
<mreiland>
I saw a discussion in here and I'd like to be explicit, does dot syntax dereference pointers completely?
<mreiland>
a.b will do the right thing whether a is a value or a pointer or a double pointer?
<mreiland>
am I understanding that correctly?
<andrewrk>
mreiland, we now have single-item pointers - *T - and unknown-length pointers - [*]T
<andrewrk>
for single-item pointers, field access can do 1 dereference
<andrewrk>
for unknown length pointers, field access cannot deref
<mreiland>
alright, thanks
<mreiland>
did you see the note yesterday about the 301 redirects on the download page causing issues?
<mreiland>
the download link is issuing a 301 which is moved permanently and it's causing browsers to cache so that when a person tries to download a new version of master the browser doesn't see it
<mreiland>
that should probably be a 307 I believe (moved temporarily). just thought I'd mention it in case you didn't see it
<mreiland>
I think that's the proper status code for it
<mreiland>
in addition the date-modified header is wrong, it's showing 5/23, but my understanding is that it was updated a day or so ago
<andrewrk>
damn, I don't think s3 lets you make the redirect non-301
<mreiland>
yes, that's the link
clownpriest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mreiland>
it's still trying to pull down 0.2.0.717ac85a.tar.xz, I had to pull it up in a private window to get the latest
<mreiland>
without forcing FF to flush caches
<andrewrk>
looks like it's possible. I have to jump through a bunch of hoops to get the redirect code to be non-301
<andrewrk>
I'll make an issue
<mreiland>
I'm not an expert on browser caching behavior, but I believe the date-modified isn't correct and I know my browser was sending the if-modified-since header when it made the request
<mreiland>
so it could be simply that the date-modified header needs to be correct and then the browsers will start grabbing the latest version appropriately
<andrewrk>
that's where it uploads the file. I guess the clock could be wrong on travis ci
<mreiland>
I did a little more investigation and updated that issue. I'm not really familiar with S3 or your setup so it's all just WAG's, but hopefully it's helpful
<andrewrk>
yes, but std.ChildProcess.create is not trying to mimick cmd
<alpha>
Well anyways, currently even `C:\zig\zig build` fails, and you need to be explicit and type `C:\zig\zig.exe build` for it to work
<andrewrk>
thanks for the bug report - I'm planning on doing bug fixes and merging of pull requests tomorrow
<alpha>
Thank you. Also I think this should have a newline after `file not found` -> `unable to open 'C:\Users\alpha\Desktop\s\src\main.zig': file not foundThe following command exited with error code 1:`
<andrewrk>
noted
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
return0e has quit [Remote host closed the connection]
return0e has joined #zig
<alpha>
What is the equivalent to `--library` in the build.zig file?
davr0s has joined #zig
alpha has quit [Quit: Page closed]
kristate has joined #zig
<kristate>
Hi
clownpriest has joined #zig
<kristate>
I'm hooked on zig and want to know what I can do to help
clownpriest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clownpriest has joined #zig
clownpriest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quc has joined #zig
Tobba_ has joined #zig
Tobba has quit [Ping timeout: 256 seconds]
mreiland has quit [Ping timeout: 260 seconds]
Ichorio has joined #zig
vec__ has joined #zig
DuClare_ has joined #zig
ltr__ has joined #zig
vec_ has quit [*.net *.split]
DuClare has quit [*.net *.split]
ltr_ has quit [*.net *.split]
kristate has quit [Ping timeout: 260 seconds]
<MajorLag2>
kristate, there's a lot of things. If you look at github userland issues, for instance. We can always use improvements to the std library as well. Oh, and win32 is in desperate need of someone to tackle coff/pdb stack traces.
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alpha has joined #zig
<alpha>
Is code written in zig supposed to segfault?
<MajorLag2>
generally not. is it a compiler segfault or your program?
<alpha>
program
<MajorLag2>
zig has runtime protections to catch many kinds of problems in debug/release-safe builds, but doesn't catch everything.
<MajorLag2>
do you have a code snippet of what's causing the segfault?
<alpha>
The code is big right now. Will try to find the exact cause
<alpha>
andrewrk: How to include *.c file for compilation and linking alongside zig code?
<alpha>
andrewrk: Any ETA on when we get proper traces on Windows? Because right now, nearly everything I am trying to do is crashing without any error and it is very hard to debug.
<andrewrk>
I'm going to try to solve some of these windows bugs today. eta on stack traces for windows, 6 months from now
<andrewrk>
failing silently is a big problem. it's not supposed to do that
alpha has joined #zig
<alpha>
Okay, thank you.
<alpha>
Another `reached unreachable code Unable to dump stack trace: Unable to open debug info: TodoSupportCoffDebugInfo` on using `const obj = b.addCObject(name, path); exe.addObject(obj)` :(
<GitHub99>
[zig] andrewrk closed pull request #1033: Add a format guard (master...fmt-guard) https://git.io/vhC8k