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/
<shritesh> andrewrk: Master is broken https://github.com/ziglang/zig/pull/2365 ;)
<andrewrk> shritesh, oops, thanks
<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
marmotini_ has joined #zig
<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 joined #zig
wootehfoot has joined #zig
qazo has joined #zig
yawryck has quit [Ping timeout: 256 seconds]
_whitelogger has joined #zig
m6w6 has quit [Quit: https://m6w6.name]
m6w6 has joined #zig
qazo has quit [Ping timeout: 255 seconds]
marmotini_ has quit [Ping timeout: 250 seconds]
qazo has joined #zig
meowray has quit [Quit: ZNC 1.6.6 - http://znc.in]
\u has joined #zig
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
eagle2com has joined #zig
<ysgard> Like this seems like it would work: https://gist.github.com/ysgard/1fb5b475d68ec92864f28c7aefccdc95.js
<ysgard> The documentation describes a for but it looks like it's for iterating over collections
Sahnvour has joined #zig
meheleventyone has joined #zig
<tgschultz> ysgard, nested while should work: var i = usize(0); while(i < end):(i += 1) { var j = usize(0); while(j < inner_end):(j += 1) {//do stuff} }
<tgschultz> your gist won't work because j is never reset to 0
<tgschultz> so the inner loop only runs once
<tgschultz> see: https://ziglang.org/documentation/master/#while, specifically the "while loop continue expression"
<ysgard> Ah, I see! Thanks tgschultz!
jevinskie has joined #zig
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]
jjido has joined #zig
qazo has quit [Ping timeout: 250 seconds]
<shritesh> Here's zig fmt running on the web. https://shritesh.github.io/zigfmt-web/ Could be made prettier, and handle errors better.
<mikdusan> so my browser is doing the format? excellent!
vramana has quit [Quit: Connection closed for inactivity]
porky11 has joined #zig
ysgard has quit [Remote host closed the connection]
hio has quit [Quit: Connection closed for inactivity]
wootehfoot has quit [Read error: Connection reset by peer]
qazo has joined #zig
fengb has joined #zig
porky11 has quit [Quit: Leaving]
fengb has quit [Ping timeout: 256 seconds]
Sahnvour has quit [Read error: Connection reset by peer]
shritesh has quit [Quit: Segmentation Fault]
jjido has quit [Quit: Textual IRC Client: www.textualapp.com]