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/
<fengb> "A CP/M system has only one directory, which contains fixed-size (32-byte) entries."
ur5us__ has joined #zig
notzmv has quit [Read error: Connection reset by peer]
notzmv has joined #zig
sundbp has quit [Ping timeout: 268 seconds]
cole-h has quit [Ping timeout: 268 seconds]
<mikdusan> heh oops
ur5us__ has quit [Quit: Leaving]
ur5us has joined #zig
brzg has joined #zig
M-ou-se has quit [Ping timeout: 258 seconds]
ur5us_ has joined #zig
M-ou-se has joined #zig
powerofzero has joined #zig
earnestly has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 250 seconds]
earnestly has joined #zig
notzmv has quit [Read error: Connection reset by peer]
leon-p has quit [Quit: leaving]
notzmv has joined #zig
gazler_ has joined #zig
gazler has quit [Ping timeout: 265 seconds]
powerofzero has quit [Ping timeout: 246 seconds]
osa1 has quit [Ping timeout: 240 seconds]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klltkr has joined #zig
klltkr has quit [Client Quit]
brzg has quit [Quit: leaving]
ifreund has quit [Ping timeout: 252 seconds]
selby has joined #zig
zuyoutoki has quit [Ping timeout: 246 seconds]
ur5us_ has quit [Ping timeout: 240 seconds]
spacelove has joined #zig
<spacelove> Found something interesting. Somehow looping over two seemingly identical datastructures produces vastly different speeds: https://zigbin.io/f42387
RadekCh has joined #zig
<spacelove> The words are sorted by length. In V1 in the above link, I used std.sort to sort the words. In V2, I used a bucketSortString function that I made. These return the same array. But looping over V1 is lightning fast compared to V2.
nullheroes has joined #zig
nycex has quit [Remote host closed the connection]
nycex has joined #zig
andreao has joined #zig
<spacelove> Zig is really amazing. Now that I'm more into it... my mind is getting blown every day
bitmapper has quit [Quit: Connection closed for inactivity]
sord937 has joined #zig
cole-h has joined #zig
ur5us has joined #zig
haliucinas has quit [Ping timeout: 252 seconds]
haliucinas has joined #zig
selby has quit [Quit: My MacBook has gone to sleep.]
selby has joined #zig
selby has quit [Quit: My MacBook has gone to sleep.]
decentpenguin has quit [Ping timeout: 268 seconds]
selby has joined #zig
selby has quit [Quit: My MacBook has gone to sleep.]
FireFox317 has joined #zig
selby has joined #zig
tnorth_ has joined #zig
spacelove has quit [Quit: Connection closed]
selby has quit [Quit: My MacBook has gone to sleep.]
selby has joined #zig
haliucinas has quit [Ping timeout: 252 seconds]
haliucinas has joined #zig
ur5us has quit [Read error: Connection reset by peer]
sundbp has joined #zig
RadekCh has quit [Quit: Connection closed]
selby has quit [Quit: My MacBook has gone to sleep.]
yyp has joined #zig
FireFox317 has quit [Remote host closed the connection]
drakonis- has joined #zig
shachaf_ has joined #zig
drakonis has quit [Remote host closed the connection]
shachaf has quit [Ping timeout: 260 seconds]
drakonis- is now known as drakonis
tnorth_ has quit [Quit: Konversation terminated!]
14WAAAKOI has joined #zig
14WAAAKOI is now known as tnorth
cole-h has quit [Ping timeout: 268 seconds]
RadekCh has joined #zig
yyp has quit [Quit: yes]
l1x has joined #zig
<daurnimator> andrewrk: I thought linux was going to add create+open in one go
<daurnimator> let me go chase what happended to that
<daurnimator> :/ of course the only thing I found in my emails was https://github.com/ziglang/zig/pull/4184#discussion_r367703419
<daurnimator> shot off an email
<noam> andrewrk: working towards the test you linked a few days ago now :)
jokoon has joined #zig
leon-p has joined #zig
ifreund has joined #zig
artmb has joined #zig
<artmb> hi I am working on PR for std lib that changes an algorithm for float parsing. The new alogorithm is https://github.com/fastfloat/fast_float. GoLang
<artmb> GoLang's stdlib has already switched to it
<artmb> but I want to do some benchmarks. What is the best way to do it? Is there a default tool for benchmarking zig code (like go test)?
<DarkUranium> Shame it's AL2, I could've used that, too.
<artmb> daurnimator: i could probably work on that
Snaffu has joined #zig
<artmb> DarkUranium: btw what's so special about AL2?
<DarkUranium> Incompatible with my license.
frett27 has joined #zig
komu has joined #zig
<komu> artmb: Golang also have a few PRs to add Ryu float parsing; https://github.com/golang/go/issues/15672#issuecomment-477896112 but they aren't merged yet.
proteusguy has joined #zig
jokoon has quit [Quit: Leaving]
<artmb> Ryu's algo does the inverse: float => string
komu has quit [Quit: Connection closed]
jokoon has joined #zig
zuyoutoki has joined #zig
selby has joined #zig
RadekCh has quit [Quit: Connection closed]
<daurnimator> artmb: the ryu repository has an algorithm for string => float too
frett27 has quit [Ping timeout: 246 seconds]
<artmb> thanks. I see from the benchmards I found here https://github.com/golang/go/issues/15672#issuecomment-477896112 that Ryu's algorithm seems to be faster in some cases
<noam> Gah. /buffer 24
<noam> ...oops.
TheLemonMan has joined #zig
frett27 has joined #zig
jokoon has quit [Ping timeout: 246 seconds]
jokoon has joined #zig
dyeplexer has joined #zig
spacelove has joined #zig
<spacelove> I noticed something kind of interesting. Not sure if it's the expected behavior or not:
<spacelove> when I do zig build install -Drelease-fast=true I get a binary: zig-cache/bin/main
<spacelove> if I do zig build-exe main.zig -O ReleaseFast I get another binary
<spacelove> These binaries should be the same, but the one produced by the build command is significantly smaller (1/2 the size) and runs much slower, and the one produced by the build command is significantly faster but larger
<noam> zig build probably uses a different CLI
<noam> e.g. strips the binary or something
<spacelove> Hm
<spacelove> I can definitely confirm the speed thing, but actually I may have misspoken about the size thing
<spacelove> The binaries are actually the same size
<spacelove> I see
<spacelove> so if I run zig build run it's slow
<spacelove> But not if I run the binary directly
<spacelove> That's interesting
<ifreund> zig build run with no futher args will be a debug build by default
<ifreund> try zig build -Drelease-fast run
<spacelove> Cool, that works. Thanks!
jokoon has quit [Quit: Leaving]
selby has quit [Quit: My MacBook has gone to sleep.]
selby has joined #zig
<spacelove> I made a bucket sort algorithm and a fifo queue: https://github.com/alecstein/word_chains/blob/master/word_chains.zig
<spacelove> I'm learning so much. This is so cool!
<spacelove> I was really frustrated at first, but now that I kind of get the basics... life is good
selby has quit [Quit: My MacBook has gone to sleep.]
selby has joined #zig
<TheLemonMan> that's the spirit
selby has quit [Client Quit]
selby has joined #zig
<spacelove> datastructures are amazing
shachaf_ is now known as shachaf
bitmapper has joined #zig
spacelove has quit [Quit: Connection closed]
selby has quit [Quit: My MacBook has gone to sleep.]
selby has joined #zig
Akuli has joined #zig
selby has quit [Ping timeout: 260 seconds]
<andrewrk> TheLemonMan, I'm real behind on testing llvm12 branch
<andrewrk> any objections to merging https://github.com/ziglang/zig/pull/8390 ?
<TheLemonMan> yo, I think I tried building pretty much every weird arch combo and found no significant issue
<andrewrk> wonderful
<TheLemonMan> speaking of LLVM, if you have some time can you request 4f024938e4c932feba4d28573ec4522106f8d879 to be backported into LLVM12?
<TheLemonMan> that'd solve the weird miscompilations of mem.cpy over irregularly-sized types
<TheLemonMan> I do have another patch to let the vectorizer handle those too but it's still under review :\
<TheLemonMan> haven't looked at the PM patch yet, will do soon
ur5us has joined #zig
<andrewrk> TheLemonMan, yeah how do I do that? open a bug and make it block the release?
<TheLemonMan> yeah, the reference ticket is https://bugs.llvm.org/show_bug.cgi?id=48902
<TheLemonMan> still a handful of open tickets left
artmb has quit [Ping timeout: 276 seconds]
ur5us has quit [Ping timeout: 245 seconds]
dyeplexer has quit [Remote host closed the connection]
marler8997 has quit [Ping timeout: 252 seconds]
<mikdusan> when do we support arm v9? :P
<andrewrk> serious answer: an arm employee will shortly update the CPU feature details in llvm trunk, and when they cut the release/13.x branch we'll re-run tools/update_cpu_features.zig and then have awareness of it
<mikdusan> 👆
<ifreund> andrewrk: if you haven't started switch astgen by tomorrow morning I'll give it a go by the way, was busy with other things today
<ifreund> or wait, it looks like you already did astgen as well as sema, I just didn't read the full commit
<ifreund> looks like we still need @bitCast astgen
andreao6 has joined #zig
tnorth has quit [Ping timeout: 252 seconds]
andreao has quit [Ping timeout: 268 seconds]
andreao6 is now known as andreao
artmb has joined #zig
Snaffu has quit [Quit: leaving]
artmb has quit [Ping timeout: 245 seconds]
<andrewrk> ifreund, I'm about to finish up switch today :)
<ifreund> cool :)
artmb has joined #zig
artmb has quit [Ping timeout: 246 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
dimenus has joined #zig
cole-h has joined #zig
artmb has joined #zig
Sphax has joined #zig
<andrewrk> mikdusan, we'll want to make sure that zig's language support for SIMD vectors make sense with armv9 SVE2
<andrewrk> looks like the neat thing here is that you can emit vectorized code and the *CPU* will lower it appropriately
<mikdusan> imagine that and imagine not needing new instructions depending on length
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
klltkr has joined #zig
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreao6 has joined #zig
andreao has quit [Ping timeout: 260 seconds]
andreao6 is now known as andreao
sord937 has quit [Quit: sord937]
ur5us has joined #zig
neptunepink has quit [Ping timeout: 268 seconds]
neptunepink has joined #zig
zuyoutoki has quit [Quit: leaving]
neptunepink has quit [Ping timeout: 268 seconds]
yyp has joined #zig
yyp has quit [Client Quit]
mikdusan has quit [Quit: WeeChat 3.0.1]
klltkr has joined #zig
neptunepink has joined #zig
neptunepink has quit [Ping timeout: 240 seconds]
neptunepink has joined #zig
<g8U4Z1xGzjlm> is there something in std that expands ~ to $HOME? i grepped for expand, but didn't find anything
<andrewrk> I believe this is called "shell expansion" and no, there is no shell expansion APIs in zig std lib
<g8U4Z1xGzjlm> thx
Akuli has quit [Quit: Leaving]
<earnestly> It's called tilde expansion
<earnestly> And there's a set of rules defining how it expands, as ~user will expand to that user's home rather than $HOMEuser
neptunepink has quit [Ping timeout: 246 seconds]
frett27 has quit [Ping timeout: 246 seconds]
neptunepink has joined #zig
dimenus has quit [Quit: WeeChat 3.1]
redj has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wilsonk_ has joined #zig
wilsonk__ has joined #zig
wilsonk has quit [Ping timeout: 240 seconds]
redj has joined #zig
<g8U4Z1xGzjlm> actually posix wordexp does also tilde expansion
wilsonk_ has quit [Ping timeout: 268 seconds]
di-wu has quit [Quit: Ping timeout (120 seconds)]
blueberrypie7 has joined #zig
benaiah` has joined #zig
hspak3 has joined #zig
g-w1_ has joined #zig
blueberrypie has quit [Quit: Ping timeout (120 seconds)]
casaca has quit [Ping timeout: 265 seconds]
benaiah has quit [Ping timeout: 265 seconds]
g-w1 has quit [Ping timeout: 265 seconds]
benaiah` is now known as benaiah
blueberrypie7 is now known as blueberrypie
Ristovski has quit [Read error: Connection reset by peer]
Techcable has quit [Ping timeout: 265 seconds]
Ekho has quit [Ping timeout: 265 seconds]
bens has quit [Ping timeout: 265 seconds]
commander has quit [Ping timeout: 265 seconds]
commander has joined #zig
lemmi has quit [Ping timeout: 240 seconds]
hspak has quit [Ping timeout: 240 seconds]
Ristovski has joined #zig
hspak3 is now known as hspak
Techcable has joined #zig
Ekho has joined #zig
artmb has quit [Ping timeout: 245 seconds]
bitmapper has quit [Quit: Connection closed for inactivity]
lemmi has joined #zig
dimenus has joined #zig
artmb has joined #zig
artmb has quit [Ping timeout: 246 seconds]
ShockTohp has joined #zig
g-w1_ is now known as g-w1
leon-p has quit [Quit: leaving]
dimenus has quit [Quit: WeeChat 3.1]
mikdusan has joined #zig
dimenus has joined #zig