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