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/
kbd has joined #zig
kbd has quit [Client Quit]
a92 has quit [Read error: Connection reset by peer]
a92 has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
<mikdusan> yeah it's about time I tried discord. I seem to be connect now
SebastianKeller has quit [Quit: leaving]
a92 has quit [Quit: My presence will now cease]
marler8997 has quit [Read error: Connection reset by peer]
nore has quit [Ping timeout: 264 seconds]
nore_ has joined #zig
a92 has joined #zig
benjif has quit [*.net *.split]
DarkUranium has quit [*.net *.split]
mikdusan has quit [*.net *.split]
ifreund has quit [*.net *.split]
WilhelmVonWeiner has quit [*.net *.split]
swills has quit [*.net *.split]
st4ll1 has quit [*.net *.split]
cow-orker has quit [*.net *.split]
lunamn has quit [*.net *.split]
linuxgemini has quit [*.net *.split]
Ristovski has quit [*.net *.split]
allan0 has quit [*.net *.split]
racoon has quit [*.net *.split]
RoguePointer has quit [*.net *.split]
wesleyac has quit [*.net *.split]
andrewrk has quit [*.net *.split]
justin_smith has quit [*.net *.split]
swills has joined #zig
DarkUranium has joined #zig
mikdusan has joined #zig
ifreund has joined #zig
WilhelmVonWeiner has joined #zig
linuxgemini has joined #zig
st4ll1 has joined #zig
lunamn has joined #zig
Ristovski has joined #zig
allan0 has joined #zig
racoon has joined #zig
RoguePointer has joined #zig
wesleyac has joined #zig
justin_smith has joined #zig
andrewrk has joined #zig
cow-orker has joined #zig
benjif has joined #zig
tsujp has joined #zig
kbd has joined #zig
redj has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
redj has joined #zig
lunamn9 has joined #zig
linuxgemini3 has joined #zig
mikdusan1 has joined #zig
techtirade_ has joined #zig
DarkPlutonium has joined #zig
gpanders has joined #zig
craigo has joined #zig
benjif_ has joined #zig
st4ll11 has joined #zig
ifreund1 has joined #zig
washbear has joined #zig
tsujp1 has joined #zig
lonjil2 has joined #zig
[Ristovski] has joined #zig
techtirade has quit [*.net *.split]
gpanders_ has quit [*.net *.split]
midgard has quit [*.net *.split]
quint has quit [*.net *.split]
lonjil has quit [*.net *.split]
so has quit [*.net *.split]
KoljaKube has quit [*.net *.split]
jwmerrill has quit [*.net *.split]
tsujp has quit [*.net *.split]
benjif has quit [*.net *.split]
DarkUranium has quit [*.net *.split]
mikdusan has quit [*.net *.split]
ifreund has quit [*.net *.split]
WilhelmVonWeiner has quit [*.net *.split]
st4ll1 has quit [*.net *.split]
cow-orker has quit [*.net *.split]
linuxgemini has quit [*.net *.split]
lunamn has quit [*.net *.split]
Ristovski has quit [*.net *.split]
allan0 has quit [*.net *.split]
RoguePointer has quit [*.net *.split]
racoon has quit [*.net *.split]
wesleyac has quit [*.net *.split]
andrewrk has quit [*.net *.split]
justin_smith has quit [*.net *.split]
lunamn9 is now known as lunamn
linuxgemini3 is now known as linuxgemini
midgard has joined #zig
so has joined #zig
a92 has quit [Quit: My presence will now cease]
_whitelogger has joined #zig
kbd has quit [Ping timeout: 268 seconds]
marler8997 has joined #zig
<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
<marler8997> I see what you're saying now
<daurnimator> heh; almost exactly a year ago: https://freenode.irclog.whitequark.org/zig/2020-01-10#26112835;
<daurnimator> and apparently 3 months before that: https://freenode.irclog.whitequark.org/zig/2019-09-02#25274654;
DarkPlutonium is now known as DarkUranium
fputs has joined #zig
wilsonk_ has quit [Quit: Leaving]
wilsonk has joined #zig
[Ristovski] is now known as Ristovski
<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…]
Jeanne-Kamikaze has joined #zig
<dch> I was expecting the compiler to slap me for using undefined; https://dpaste.org/NJ1E#L11
<dch> instead `zig test main.zig` reports all tests passed.
<dch> even `zig test -O Debug main.zig` is happy. I'd thought this would assign 0xaa to the undefined variable, but evidently it ends up with 0
notzmv has quit [Read error: No route to host]
notzmv has joined #zig
hnOsmium0001 has joined #zig
kbd has joined #zig
riba has joined #zig
kbd has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kbd has joined #zig
gawenr has joined #zig
fputs has quit [Ping timeout: 264 seconds]
gawenr has quit [Remote host closed the connection]
gawenr has joined #zig
gawenr has quit [Ping timeout: 264 seconds]
washbear is now known as nia
midgard has quit [Read error: Connection reset by peer]
lucid_0x80 has quit [Ping timeout: 246 seconds]
midgard has joined #zig
<leeward> dch: That is super weird.
<leeward> It looks like it's deciding that `undefined < 8` is always false.
<leeward> Yeah, in fact, `var i: u8 = undefined; std.testing.expect(i > 8)` passes
gawenr has joined #zig
<dch> huh
<leeward> That seems like a bug to me.
<dch> ok I will add an issue for that
<leeward> Yeah, that's a good idea.
<dch> is there a way to get zig to print out the underlying llvm stuff?
<leeward> You want the IR?
<dch> i guess, yeah. first time delving into this, so pointers (sic) welcomed
layneson has joined #zig
FireFox317 has joined #zig
<leeward> -femit-llvm-ir[=path] might be what you want. `zig build-exe --help` has lots of information.
<dch> tyvm
gawenr has quit [Remote host closed the connection]
gawenr has joined #zig
gawenr has quit [Ping timeout: 256 seconds]
<g-w1> I think it is probably a weird llvm optimisation. llvm knows that 0xaa > 8, so it doesn't compile that branch. that is my guess
<FireFox317> andrewrk, in #7598 i added llvm backend testing to test-stage2, however i did not enable it on the ci yet. Should i do that?
gawenr has joined #zig
gawenr has left #zig [#zig]
<pixelherodev> FireFox317: I'd say yees, but I could be wrong
ur5us has joined #zig
benjif has joined #zig
nore_ is now known as nore
<leeward> g-w1: Confirmed. `expect(i == 0xaa)` passes.
<g-w1> yep, so we must tell llvm to not optimise that or just make stronger checks for using undefined. idk anything about llvm.
<g-w1> you should file a bug
Jeanne-Kamikaze has quit [Ping timeout: 256 seconds]
cole-h has joined #zig
Akuli has quit [Quit: Leaving]
<dch> I read the llvm-ir output. And then I ran away to a small dark corner and cried for my mommy.
<dch> I need to level up somewhat to deal with that. not today.
marijnfs has joined #zig
<marijnfs> did something change in build.zig? I don't get my binaries in zig-cache/bin anymore
<marijnfs> ah I see, so it just add another dir?
<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