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