ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
hooo has quit [Quit: Connection closed for inactivity]
steveno has joined #zig
kristate has joined #zig
steveno has quit [Quit: Leaving]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
<daurnimator> uh, I think I'm mildly confused with in #1873.... to set through a pointer zig doesn't have an operator like C's `foo->bar = ` does it? I have to use: `foo.*.bar =`?
<MajorLag> daurnimator: you can just use `foo.bar =`
<daurnimator> ah. I think I see my issue: I think I'm missing an error-unwrapping
emekoi has joined #zig
<emekoi> what is TargetSubsystemPosix?
<daurnimator> emekoi: at first guess with no context: the posix subsystem for windows
<daurnimator> (which was deprecated with the *release* of windows xp)
marmotini has joined #zig
marmotini_ has joined #zig
marmotini has quit [Ping timeout: 258 seconds]
marmotini_ has quit [Ping timeout: 258 seconds]
marmotini_ has joined #zig
return0e has quit [Ping timeout: 258 seconds]
return0e has joined #zig
jfondren has quit [Ping timeout: 244 seconds]
fsateler_ has joined #zig
fsateler has quit [Ping timeout: 258 seconds]
emekoi has quit [Remote host closed the connection]
allan0 has joined #zig
kristate has quit [Remote host closed the connection]
tobbez has quit [Ping timeout: 250 seconds]
tobbez has joined #zig
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #zig
_whitelogger has joined #zig
kristate has joined #zig
kristate has quit [Ping timeout: 258 seconds]
kristate has joined #zig
<MajorLag> I didn't realize the integration testing actually tested the code in the langref. That's neat.
xentec has quit [Quit: memento mori]
xentec has joined #zig
marmotini_ has quit [Ping timeout: 245 seconds]
steveno has joined #zig
hgctl has joined #zig
forgot-password has joined #zig
steveno has quit [Ping timeout: 268 seconds]
THFKA4 has joined #zig
knebulae has joined #zig
steveno has joined #zig
hgctl has quit [Quit: WeeChat 2.3]
forgot-password has quit [Quit: leaving]
hgctl has joined #zig
very-mediocre has joined #zig
Ichorio has joined #zig
Zaab1t has joined #zig
hgctl has quit [Quit: WeeChat 2.3]
hgctl has joined #zig
steveno has quit [Ping timeout: 250 seconds]
steveno has joined #zig
very-mediocre has quit [Ping timeout: 256 seconds]
meheleventyone has joined #zig
steveno has quit [Remote host closed the connection]
steveno has joined #zig
marmotini_ has joined #zig
forgot-password has joined #zig
marmotini has joined #zig
marmotini_ has quit [Ping timeout: 246 seconds]
meheleventyone has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hooo has joined #zig
fsateler_ has quit [Read error: Connection reset by peer]
fsateler has joined #zig
steveno has quit [Remote host closed the connection]
steveno has joined #zig
kristate has quit [Remote host closed the connection]
<hgctl> oh cool
<hgctl> I didn't know zig was operating on sr.ht
<hgctl> also, you are incredibly conscientious to even consider testing downstream devs code before merging feature changes to zig
<andrewrk> hgctl, just for mailing lists and (partial) ci
<andrewrk> I'd like to see some interface improvement before committing further to sr.ht. in particular, I'd like to see the features of sr.ht link to each other in a project-specific way
<hgctl> makes sense to me
<hgctl> I haven't really evaluated sr.ht at all yet
<andrewrk> we'll probably use issues, git, and wiki from github for the foreseeable future
<hgctl> (the following is not meant as a suggestion as I do not think it scales well, and does not account for CI or mailing lists) I'm planning on moving over to stagit to host my own repos
marmotini has quit [Ping timeout: 250 seconds]
<hooo> I use bitbucket, free, private, unlimited repos. I dont see anything that could possibly be better
<hgctl> hooo: I've tried to use bitbucket and I was really turned off by the layout and organization (though I imagine that is a lot to do with personal preference); plus, when I was last looking at it, it was mercurial-only (iirc)
<hgctl> which, admittedly, was a long time ago
<hooo> I use it for git. The gui is a bit slower than github but I dont really use the web gui anyway. just need to dump my code somewhere
<hgctl> sure
<hgctl> that's kind of how I feel about stagit
<hgctl> I don't need much
<hgctl> and with stagit, I get reasonable organization and can serve the pages statically
<hgctl> (which also means I get to integrate it with my own webserver without any shenanigans)
<hgctl> plus, then I get to have my own server be upstream
* hgctl prefers to be in-control
<hooo> I prefer it too but then I have to care about the security and hosting payments..
<hooo> i rather just let bitbucket handle it
<hgctl> I suppose
<hgctl> I already have a server, so I don't really worry about that aspect
<hgctl> and my security system is default-deny, so there's not too much to that :P
<hooo> wow lol, github literally just announced that they also offer unlimited private repos now: https://blog.github.com/2019-01-07-new-year-new-github/
<hgctl> yep
<hgctl> though with a limited number of collaborators on private repos
<hooo> maybe I'll switch to github from bitbucket
<hgctl> 🤷
<hgctl> if you're going to switch, why not switch to gitlab
<hgctl> it's had unlimited private repos for a while now
<hooo> the gitlab gui is always buggy and it's also slower than github
<hgctl> 🤷
<hgctl> to each their own
<hgctl> they're all giant piles of JS these days
<hgctl> (again, one of the reasons I'm so enticed by stagit)
<hooo> hm wow, I finally checked it out and yeah it does feel damn fast and simple
<hgctl> which? stagit?
<hooo> all the alternatives are pretty damn good nowadays and free
<hooo> really doesnt matter anymore
<hooo> i guess the reason I would switch to github is to be able to colaborate more effectively with people because I learn how it's done on there
<hgctl> sure
steveno has quit [Quit: Leaving]
knebulae has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: bye bye friends]
marmotini has joined #zig
emekoi has joined #zig
<emekoi> andrewrk, when you say that you're removing the static flag for executables, does that mean that `is_static` in `CodeGen` would always be false on all platforms except linux when compiling an executable?
<andrewrk> emekoi, is_static will be undefined for executables; it will only be meaningful for libraries
<emekoi> but will it be okay to access for executables?
marmotini has quit [Ping timeout: 268 seconds]
<andrewrk> which means that every time is_static is read in the code, can assert that the build kind is a library
<emekoi> what about code like this? http://ix.io/1xLl
<emekoi> what happens if you're building an executable?
<andrewrk> that logic needs to change
<andrewrk> instead of checking is_static, the linking logic needs to determine if any of the libraries the executable links against are dynamic
<emekoi> so on non-linux platforms just link against libgcc_s?
<andrewrk> no, that's not correct behavior
<andrewrk> for example, windows in the msvc environment would never link against libgcc_s
<emekoi> sorry i mean on unix-like systems.
kristate has joined #zig
<andrewrk> All targets, including Windows link libgcc (not sure about 's' or not; I'd have to refresh my memory) when the target environment is gnu
<andrewrk> when the target environment is gnu and libc is being linked
<andrewrk> many popular linuxes have the native environment as gnu. some linux distros, such as alpine linux, do not (or if zig reports gnu as native then it is a bug)
kristate has quit [Ping timeout: 258 seconds]
<andrewrk> emekoi, are you working on a patch to solve #1828?
<emekoi> no, i'm working on a patch for #1532
<andrewrk> I see
<forgot-password> Is there a waay to format a string into a buffer that is allocated on the stack?
<andrewrk> forgot-password, you may be interested in std.fmt.bufPrint
<andrewrk> which I believe returns an error if it runs out of buffer space, which you can assert will never happen with `catch unreachable`
<forgot-password> Thanks, is it also possible to put a \0 at the end of the string? I need to pass the string to a c function
<forgot-password> \x00 did the trick, since \x0 didn't work I thought this is done in some other way
hgctl has quit [Quit: WeeChat 2.3]
Ichorio has quit [Ping timeout: 268 seconds]
<forgot-password> Good night everybody :)
forgot-password has quit [Quit: leaving]
testuser678 has joined #zig
<andrewrk> good night
<andrewrk> copy elision progress: 491 behavioral tests passing out of 521