<marler8997>
anyone know how "zig run" may have been broken recently? It's adding the compiler as an extra argument to the running program
<g-w1>
I just fixed it in a pr :P
<marler8997>
thanks g-w1
benjif_ has quit [Quit: Leaving]
a_chou has joined #zig
leon-p has quit [Quit: leaving]
justin_smith has joined #zig
semarie has quit [Ping timeout: 256 seconds]
andrewrk_ has joined #zig
andrewrk_ is now known as andrewrk
a_chou has quit [Quit: a_chou]
semarie has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
cole-h has quit [Ping timeout: 256 seconds]
radgeRayden has joined #zig
_whitelogger has joined #zig
<andrewrk>
PSA: zig build now installs to $build_root/{debug,release}/ by default instead of $cwd/zig-cache/
<andrewrk>
thanks g-w1 for that
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
<leeward>
ooh, fancy
<marler8997>
$build_root?
bitmapper has quit [Quit: Connection closed for inactivity]
mikdusan1 has quit [Quit: WeeChat 2.6]
cCCCCcccccCCc has quit [Ping timeout: 240 seconds]
_whitelogger has joined #zig
mikdusan has joined #zig
<Nilium>
Very nice.
craigo has quit [Quit: Leaving]
quint has joined #zig
Patrice_ has quit [Ping timeout: 260 seconds]
Patrice_ has joined #zig
<marler8997>
g-w1 doesn't look like your PR fixed the issue
<daurnimator>
ooooo, idea for an alternate implementation of `EnumSet`: make a large packed struct at comptime
<marler8997>
g-w1, nevermind, I was running the old zig.exe which has not moved because the install dir was changed :)
<daurnimator>
damn, idea doesn't work nicely for non-exhaustive enums
Ekho has quit [Ping timeout: 268 seconds]
sharpobject has joined #zig
lucid_0x80 has joined #zig
Ekho has joined #zig
FireFox317 has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
cCCCCcccccCCc has joined #zig
wootehfoot has joined #zig
_whitelogger has joined #zig
<marler8997>
darunimator I didn't understand your comment in the array format specifier proposal
<marler8997>
woops spelled your username wrong, daurnimator
<daurnimator>
marler8997: I thought I made an issue for it once but I forgot
<daurnimator>
marler8997: if there was a distinct String type from just "array of u8", then there would be no debate over how slice of u8 is printed: it would always be as the numbers
<daurnimator>
whereas this proposed String type would have a format() method that would render it as a string
<daurnimator>
its useful for other reasons (e.g. to attach string methods to)
<marler8997>
that would fix the issue around string literals/error messages yes
<pixelherodev>
What's the reasoning for the convention of one compilation unit per project?
lucid_0x80 has quit [Ping timeout: 256 seconds]
<DarkUranium>
pixelherodev, don't know about Zig's, but I can think of *a* reason to do it. It mostly makes sense if you don't have good LTO, though.
<DarkUranium>
It's a common practice in some projects (especially embedded, but also some audio-related stuff) to basically #include the whole source into one huge file, to allow the compiler to optimize better.
<DarkUranium>
LTO's kind of slowly obsoleting that advantage, but LTO's still very buggy --- or was, last I've tried it.
<pixelherodev>
DarkUranium: it *is* Zig's "LTO," yes. LTO is also sickeningly slow, impotently inperformant, and absurdly... uh..... achronistic?
<DarkUranium>
pixelherodev, I'd argue the opposite, that trying to merge object files manually is anachronistic. But yes, LTO as is done nowadays is a mess.
<pixelherodev>
Great idea, not so great implementations :P
<pixelherodev>
Also, I was using achronistic as a stupid alliterative way of saying "untimely" ;P
leon-p has joined #zig
<daurnimator>
pixelherodev: what do you even mean by saying untimely?
<pixelherodev>
"takes a lot of time" :P
cole-h has joined #zig
waleee-cl has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
lucid_0x80 has joined #zig
notzmv has joined #zig
Patrice_ has quit [Ping timeout: 272 seconds]
cole-h has quit [Ping timeout: 272 seconds]
bitmapper has joined #zig
haliucinas has quit [Remote host closed the connection]
Akuli has joined #zig
nycex has quit [Write error: Connection reset by peer]
haliucinas has joined #zig
<fengb>
I mean, none of those other words you used means takes a lot of time...
nycex has joined #zig
<pixelherodev>
fengb: I know, I was blatantly trying to force a bad alliteration :P
Patrice_ has joined #zig
ehaas has joined #zig
WilhelmVonWeiner has joined #zig
fraktor has quit [Quit: WeeChat 3.0]
FireFox317 has quit [Remote host closed the connection]
ehaas has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marijnfs>
people better not have a dir named 'debug' ;)
Cadey has joined #zig
<fengb>
I think a `dist` folder would be more standardized
riba has quit [Ping timeout: 246 seconds]
<marijnfs>
i also wouldn't mine a zig-cache/debug or something
SebastianKeller has joined #zig
<sebonirc>
does anyone know what the current status of [#1717](https://github.com/ziglang/zig/issues/1717) is? when can we expect a variant of this to be merged into master?
ur5us_ has joined #zig
ur5us has quit [Ping timeout: 264 seconds]
FireFox317 has quit [Ping timeout: 264 seconds]
DrDeano has joined #zig
<marijnfs>
i would like that
<marijnfs>
struct{fn bla() void {}}.bla is getting a bit much
<g-w1>
it says on the issue milestone 0.8.0
<sebonirc>
g-w1: but to my knowledge the way it will be implemented still hasnt been fully worked out. for a while there was a proposal to drop the `const` keyword in global scope and just have it be implicit, but that was scrapped. i also vaguely remember some other issues that hadnt been worked out that i cant think of rn
<sebonirc>
discussion on the issue seems to have died down, so i was just wondering if there was any progress on it or if its being held off
<mikdusan>
fwiw my pref would be 'zout/{cache,lib,bin}` adjacent to `build.zig`: 1. only one git ignore. 2: easy to nuke cache by itself. 3: easy to nuke install artifacts + cache. 4: 'zout' sorts close to or bottom of `ls -l` listing :)
<sebonirc>
mikdusan: i like that, but i think something like zig-out would be better
<g-w1>
my suggestion was keep $root/zig-cache and have $root/install/$mode
<mikdusan>
tbh the biggest thing for me is, that it _all_ be contained in one dir. so 'zout/{cache,variant/{lib,bin}}' where variant a string uniquing the build-mode and/or cross-target in some fashion