<andrewrk>
I ran the tests and then made a minor change with that breakage
<shritesh>
The tests run much faster with your latest change.
<andrewrk>
the zig fmt thing? that's kind of surprising
<shritesh>
Or maybe the builds are just cached.
<andrewrk>
it moves the compilation of zig fmt from first run to during `make`
<shritesh>
ah
hio has quit [Quit: Connection closed for inactivity]
fengb has joined #zig
fengb has quit [Ping timeout: 256 seconds]
<emekankurumeh[m]>
does zig emit compiler errors if you try to link a library that it can't find? or does it assume that the library will be dynamically loaded?
<emekankurumeh[m]>
also zig doesn't build libc from source on freebsd so does it need to link crtbegin.o and friends?
<daurnimator>
emekankurumeh[m]: yes. on freebsd there is no stable syscall ABI: you must link against libc
<daurnimator>
linux is the only widely in use platform that actually has a stable syscall AB
<daurnimator>
+I
<emekankurumeh[m]>
i thought so but i wasn't sure
mbarkhau has quit [Ping timeout: 246 seconds]
<daurnimator>
How can I get an empty error set?
<daurnimator>
I'm trying to do: `const NoErrorOutStream = std.io.OutStream(EmptyErrorSet);`
<daurnimator>
ah! error{}
yawryck has quit [Ping timeout: 256 seconds]
scientes has quit [Ping timeout: 250 seconds]
jevinskie has joined #zig
yawryck has joined #zig
<emekankurumeh[m]>
have you guys seen: https://github.com/vlang/v and if so what are your thoughts about it?
<tyler569>
I know andrew's fielded questions about it in stream Q&As, he said he won't care about it until it's not vaporware
hio has joined #zig
<daurnimator>
emekankurumeh[m]: that's a very common question. search around for zig and vlang :P
<emekankurumeh[m]>
do we have zig benchmarks for things like parser speed or compilation speed?
<emekankurumeh[m]>
preferably for the self-hosted compiler.
<torque>
I have never seen someone tease "soon to release" source code for software before, what an extremely bizarre thing
<tyler569>
it seems to be a bit of a trend in system programming languages these days unfortunately
<tyler569>
v and Jon Blow's jai are in very similar situations
<torque>
I haven't really been following Jai's development but to my knowledge it's more or less a hobby project with no real promises or set schedule. At the very least he hasn't made like 5 different github repos saying "will open source soon" which is I think the weirder part for me
<daurnimator>
torque: I have...
jevinskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jevinskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
very-mediocre has joined #zig
marmotini_ has joined #zig
marmotini_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #zig
marmotini_ has joined #zig
very-mediocre has quit [Ping timeout: 256 seconds]
scientes has joined #zig
Sahnvour has joined #zig
marmotini_ has quit [Ping timeout: 246 seconds]
<Sahnvour>
andrewrk, I figured out my issue with linking. my working directory had leftovers from a previous compilation, especially kernel32.lib, which was probably then found by lld. removing it fixed the build
<Sahnvour>
I guess it should avoid looking in the cwd if possible, you never know what's there
jjido has joined #zig
qazo has quit [Read error: Connection reset by peer]
wootehfoot has quit [Read error: Connection reset by peer]
qazo has joined #zig
qazo_ has joined #zig
qazo has quit [Ping timeout: 250 seconds]
qazo_ has quit [Ping timeout: 245 seconds]
qazo has joined #zig
<andrewrk>
Sahnvour, aha. I actually have experienced that problem before. I think it might be worth considering how we can prevent that accident
<andrewrk>
I agree we should definitely make it stop looking in the cwd if possible
Sahnvour has quit [Ping timeout: 250 seconds]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wootehfoot has joined #zig
ysgard has joined #zig
<ysgard>
How would I do a nested for in Zig? For example, in C I would use "for (int i = 0; i < WIDTH; i++) { for (int j = 0; j < HEIGHT; j++) { ..."
<ysgard>
I thought using a nested while would work, but strangely the outer loop never increments
meheleventyone has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shritesh>
So my zigfmt WASM binary is 837K (197K compressed) in debug mode, 899K (145K compressed) with --release-small, 921K (144K compressed) with --release-safe and 788K (131K compressed) with --release-fast.
eagle2com has quit [Ping timeout: 256 seconds]
klltkr has quit [Remote host closed the connection]
companion_cube has quit [Remote host closed the connection]