ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<ugla> andrewrk: thanks!
<ugla> std docs still show the old one for some reason https://ziglang.org/documentation/0.7.1/std/#std;crypto.randomBytes
<andrewrk> that's the 0.7.1 docs
<ugla> Oh right, I'm not on that one any more 🤦
<andrewrk> I don't have the master branch std lib docs auto updating yet
ur5us has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
<ifreund> man compiling musl on 0.7.1 feels so slow now compared to master
<andrewrk> haha
<andrewrk> we're starting to feel the benefits of stage2 creeping into stage1
bitmapper has joined #zig
<ifreund> Oh for sure, I doubt I would have felt like working on dynamic musl if that code was still in C++
wootehfoot has quit [Quit: Leaving]
<ifreund> pjz: got it, you need to get rid of the @TypeOf() on the return type
<ifreund> clap.Whatever() is already a type so taking @TypeOf() that gives type type
<ifreund> which is comptime only and forces the whole call to be comptime-known
recombinant has joined #zig
recombinant has quit [Quit: Leaving]
l1x has quit [Quit: Connection closed for inactivity]
<pjz> ifreund: thanks!
remby has quit [Quit: remby]
<pjz> heh, I got 'unreachable code: unreachable;'
<pjz> I think it'd be okay for the compiler to cut me some slack there, really :)
alexpana has quit [Quit: WeeChat 1.9.1]
remby has joined #zig
hch has quit [Quit: hch]
hch has joined #zig
<pjz> ifreund: seriously, thanks much - I spent a couple of hours poking at that.
a92 has joined #zig
<ifreund> pjz: no problem, I remember you asking here a day or two a go but I didn't have time to take a serious look then
<ifreund> definitely room for compile error message improvement here
<ifreund> s/a go/ago/
<daurnimator> huh... does zig build support DESTDIR?
<pjz> It's less terrible once you realize that the 'const expression' may mean comptime as well as const, and once you know all the things that cause a function to be comptime.
<pjz> daurnimator: it support --prefix
<daurnimator> pjz: that's different
<daurnimator> but yes it appears to support DESTDIR as a env var
<ifreund> daurnimator: yes
<ifreund> pjz: yes the error message is logicaly if you are familiar with how zig works
<ifreund> it would be way better if it explained why the thing was required to be comptime-known though
<fengb> Yeah there’s an accepted issue to notate where in the stacktrace is forcing comptime
<ifreund> daurnimator: by the way, I fixed the ugliness with zig-wayland putting generated code inside its own source tree, should be possible to package properly now in theory
<daurnimator> ifreund: I'm updating the river-git package now for the new /etc/river/init support
<ifreund> nice
<g-w1> andrewrk: just to clarify after #7296 there will also be zig-cache *only* for caching, but release and debug are for the binaries and lib
<ifreund> I have one more breaking change I want to do for river then it's 0.1.0 time
<ifreund> also need a wlroots (patch) release first
<andrewrk> g-w1, correct
<daurnimator> It's annoying that `zig build` doesn't have a non-install step
<g-w1> cool, should have a patch by tmrw night
<ifreund> daurnimator: I don't follow, wouldn't that just be `zig build`?
<daurnimator> ifreund: no, I want to build without installing
<ifreund> oh I guess it would still install to zig-cache yeah
<daurnimator> at the moment I have to just not pass --prefix
<daurnimator> but --prefix might be used as *part* of the build
<daurnimator> e.g. to hard-code the path to some config file
<ifreund> indeed, and I should probably be doing that as well
<ifreund> right now I have `/etc/river/init` hardcoded but it should really be `$PREFIX/etc/river/init` with an exception if $PREFIX is /usr
<g-w1> um, with `zig init-exe` zig build run -Drelease-safe doesn't print anything for me? only works on debug
cole-h has quit [Ping timeout: 272 seconds]
<g-w1> is this a known regression
<ifreund> g-w1: if that uses log.info it won't print anything
<g-w1> ah, maybe we should change that. I got very confused
<ifreund> we should probably have init-exe use std.debug.print
<ifreund> TIL I don't need to be setting -Dfoo=true and that -Dfoo works if foo is a bool
<ifreund> time to fix that in river's readme
remby has quit [Quit: remby]
<daurnimator> also FYI http://sprunge.us/YNBRmd
<daurnimator> andrewrk: ^ I think each of those things is a misc open issue
<oats> shouldn't this trigger an out-of-bounds runtime error?
<oats> I thought slices are bounds-checked
<ifreund> daurnimator: would you happen to know if doing that git config submodule.foo.url thing would let me use e.g. a single zig-wayland clone for all my local projects having it as a submodule?
<ifreund> and thanks for packaging and that paste of errors, will investigate
dmiller has quit [Ping timeout: 256 seconds]
<ifreund> oats: there are valid uses for that, see std.ArrayList.allocatedSlice()
<ifreund> I believe if you were to access the array directly that would be safety-checked UB
<daurnimator> ifreund: that paste isn't errors; its missing "good practices" for the package
<daurnimator> ifreund: most are blocked by support in zig. e.g. https://github.com/ziglang/zig/issues/6977
<Ankhers> Maybe a dumb question, but why does `zig init-lib' give me a main.zig instead of lib.zig or something?
<ifreund> daurnimator: ah I see. I think the PIE perhaps just needs to be enabled by setting LibExeObjStep.pie
<ifreund> if I don't set that to true the build system doesn't pass -fPIE to zig build-exe
<daurnimator> yep. I want to add a standard build option for -Dpie. see https://github.com/ziglang/zig/issues/7201#issue-748404883
<ifreund> makes sense to me
<daurnimator> andrewrk: ^ I don't suppose you feel like accepting that issue? if so I might work on it tomorrow
<ifreund> Glad river can serve to show where the ZBS needs work
<g-w1> Ankhers: it is arbitrary, it can be anything. the person who wrote it just liked main.zig
remby has joined #zig
<andrewrk> daurnimator, there ya go
<andrewrk> Ankhers, in zig there is always a root source file, even for libraries
<Ankhers> andrewrk: Which makes sense. I was just expecting it to be lib.zig or something.
jjido has quit [Quit: Connection closed for inactivity]
donniewest has quit [Quit: WeeChat 3.0]
ur5us_ has joined #zig
ur5us has quit [Ping timeout: 240 seconds]
remby has quit [Quit: remby]
ehaas has quit [Ping timeout: 260 seconds]
squeek502 has quit [Remote host closed the connection]
a92 has quit [Quit: My presence will now cease]
ur5us_ has quit [Ping timeout: 260 seconds]
remby has joined #zig
remby has quit [Client Quit]
bitmapper has quit [Quit: Connection closed for inactivity]
ur5us_ has joined #zig
leon-p has quit [Quit: leaving]
Prince213 has joined #zig
Prince213 has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 264 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
_whitelogger has joined #zig
ur5us_ has joined #zig
cole-h has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
kenran has joined #zig
fraktor has quit [Quit: WeeChat 2.9]
squeek502 has joined #zig
_whitelogger has joined #zig
_whitelogger has joined #zig
<ikskuh> heya
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
gazler has quit [Ping timeout: 260 seconds]
cole-h has quit [Ping timeout: 260 seconds]
frett27_ has quit [Ping timeout: 260 seconds]
FireFox317 has joined #zig
mkchan has quit [Ping timeout: 272 seconds]
mkchan has joined #zig
isolier7 has quit [Ping timeout: 240 seconds]
isolier has joined #zig
_whitelogger has joined #zig
alexpana has joined #zig
waleee-cl has joined #zig
FireFox317 has quit [Ping timeout: 256 seconds]
FireFox317 has joined #zig
isolier has quit [Ping timeout: 256 seconds]
wootehfoot has joined #zig
leon-p has joined #zig
ifreund has quit [Ping timeout: 246 seconds]
sawzall has quit [Ping timeout: 240 seconds]
sawzall has joined #zig
donniewest has joined #zig
ifreund has joined #zig
ifreund1 has joined #zig
ifreund has quit [Ping timeout: 240 seconds]
koakuma has joined #zig
ifreund1 is now known as ifreund
FireFox317 has quit [Ping timeout: 256 seconds]
hch has quit [Ping timeout: 256 seconds]
hch has joined #zig
<g-w1> andrewrk: it seems like 7616 differs to stage1 because it allows stuff like `var x = undefined; x = 1; x = null;` is this correct?
<betawaffle> which one of you is working on a zig wayland compositor?
<pixelherodev> ifreund: ^
<pixelherodev> betawaffle: ifreund has a project called river IIRC
<ifreund> betawaffle: https://github.com/ifreund/river
<betawaffle> oh right, i'm actually in #river already :P
<ifreund> lol
<pixelherodev> haha :)
jjido has joined #zig
mschwaig1 has quit [Quit: WeeChat 2.7.1]
mschwaig has joined #zig
frett27_ has joined #zig
bitmapper has joined #zig
a_chou has joined #zig
a_chou has quit [Quit: a_chou]
<betawaffle> does zig already have a thing that converts C to maybe-working zig?
<betawaffle> or is that just for headers?
<scientes> i think it was removed recently
<scientes> but that doesn't mean you can't use it from an old version
<betawaffle> i changed my mind, i don't need it
tane has joined #zig
<g-w1> translate-c?
<g-w1> scientes you are thinking of emit-h
Exonorid has quit [Remote host closed the connection]
cole-h has joined #zig
isolier has joined #zig
<andrewrk> g-w1, no, that's one of the items in the todo list (see the BRANCH_TODO file - I like to make this as a text file that should be deleted before the branch is merged)
hnOsmium0001 has joined #zig
data-man has joined #zig
<data-man> Happy New Year, Zig Community! Good health to everyone, the rest will compile.
data-man has quit [Quit: Konversation terminated!]
Patrice_ has joined #zig
kushalp has quit [Ping timeout: 260 seconds]
rzezeski has quit [Ping timeout: 260 seconds]
raggi has quit [Remote host closed the connection]
frett27_ has quit [Ping timeout: 260 seconds]
rzezeski has joined #zig
kushalp has joined #zig
raggi has joined #zig
l1x has joined #zig
notzmv has quit [Remote host closed the connection]
notzmv has joined #zig
<andrewrk> happy new year!
travv0 has left #zig [#zig]
koakuma has quit [Ping timeout: 256 seconds]
ur5us_ has joined #zig
benjif has joined #zig
mattnite has joined #zig
jjido has quit [Quit: Connection closed for inactivity]
ur5us_ has quit [Ping timeout: 264 seconds]
<justin_smith> happy new year!
l1x has quit [Quit: Connection closed for inactivity]
<tane> yay, happy new one
mikdusan has joined #zig
mattnite has quit [Quit: Lost terminal]
donniewest has quit [Quit: WeeChat 3.0]
<mikdusan> how were 0.7.0 release binaries for macOS x86_64/aarch64 built? Azure? it seems special like it was built without explicit macos min_version settings
<andrewrk> mikdusan, 0.7.0 is superseded by 0.7.1
<andrewrk> I made the x86 one using zig-bootstrap. kubkon built the aarch64 one
<andrewrk> but nobody should be using 0.7.0
<mikdusan> yeah I was just looking at https://github.com/ziglang/zig/issues/7623 ; binaries are definiately built different from 0.7.1 and 0.7.1+
<mikdusan> ok np. your 2nd line to comment answers it for me
<andrewrk> macos support is rough right now with so many things changing at once
<andrewrk> kubkon has been doing great work though, I think we're going to see some really nice and stable support soon