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/
<allochi> when I try to mutate the array, but not if I only read it.
<allochi> same original code, just comment the line `atest.value[0] = 0;` and you don't get bad access
<emekankurumeh[m]> i think you found a bug in zig
<allochi> Haha :D
<allochi> don't tell Andrew
<allochi> or we should
<allochi> what do you think? :D
<mikdusan> i’m still trying things out :)
<hryx> Hey andrewrk, I left a comment on this commit referencing an issue, but the issue doesn't show a link back: https://github.com/ziglang/zig/commit/3e9697bb35267973554155cedc2e593bd4519dd8#commitcomment-32955443
<hryx> I just wanted to confirm because the title is mismatched -- remove binary/octal but keep hex float literals, yeah?
allochi has quit [Quit: Page closed]
develonepi3 has quit [Remote host closed the connection]
nullheroes has quit [Remote host closed the connection]
<scientes> can I test whether a variable is comptime?
dewf has joined #zig
fsateler has quit [Ping timeout: 250 seconds]
fsateler has joined #zig
scientes has quit [Ping timeout: 250 seconds]
scientes has joined #zig
scientes has quit [Remote host closed the connection]
scientes has joined #zig
scientes has quit [Ping timeout: 245 seconds]
tgschultz has quit [Ping timeout: 245 seconds]
tgschultz has joined #zig
MajorLag has joined #zig
tgschultz has quit [Ping timeout: 250 seconds]
MajorLag has quit [Ping timeout: 268 seconds]
return0e_ has joined #zig
return0e has quit [Ping timeout: 246 seconds]
MajorLag has joined #zig
MajorLag is now known as tgschultz
MajorLag has joined #zig
tgschultz has quit [Ping timeout: 240 seconds]
MajorLag has quit [Ping timeout: 258 seconds]
MajorLag has joined #zig
MajorLag has quit [Ping timeout: 268 seconds]
MajorLag has joined #zig
MajorLag is now known as tgschultz
_whitelogger has joined #zig
gamester has joined #zig
very-mediocre has joined #zig
neceve has joined #zig
very-mediocre has quit [Ping timeout: 256 seconds]
fsateler_ has joined #zig
fsateler has quit [Ping timeout: 246 seconds]
dewf has quit [Quit: Leaving]
scientes has joined #zig
MajorLag has joined #zig
tgschultz has quit [Ping timeout: 250 seconds]
MajorLag is now known as tgschultz
scientes has quit [Remote host closed the connection]
scientes has joined #zig
dd10 has joined #zig
allochi has joined #zig
allochi has quit [Client Quit]
dd10 has quit [Ping timeout: 256 seconds]
hgst has joined #zig
gamester has quit [Ping timeout: 255 seconds]
darithorn has joined #zig
develonepi3 has joined #zig
darithorn has quit [Remote host closed the connection]
Ichorio has joined #zig
neceve has quit [Quit: No Ping reply in 180 seconds.]
neceve has joined #zig
scientes has quit [Ping timeout: 246 seconds]
scientes has joined #zig
keithdc has joined #zig
scientes has quit [Ping timeout: 272 seconds]
oats is now known as oast
keithdc has quit [Remote host closed the connection]
keithdc has joined #zig
keithdc has quit [Remote host closed the connection]
neceve has quit [Read error: Connection reset by peer]
scientes has joined #zig
_whitelogger has joined #zig
hgst has quit [Quit: WeeChat 2.4]
dewf has joined #zig
wink_ has joined #zig
fsateler has joined #zig
fsateler_ has quit [Ping timeout: 244 seconds]
<wink_> I saw "zig cc" was added and thought I'd give it a try. I created helloworld.c which compiles with `clang helloworld.c` and runs. I tried `zig cc helloworld.c` and I got an error "/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found". I see #2010 "add documentaiotn for using Zig as a C compiler" so no wonder there are no docs. Should
<wink_> I be able to compile a c program or may `zig cc` is just for non-main c files?
<andrewrk> zig cc is deprecated
<andrewrk> use --c-source
jjido has joined #zig
<andrewrk> actually I don't think zig cc is deprecated. it's just really low level, meant to be used by tools, not users directly
<andrewrk> zig build-exe --c-source helloworld.c --library c
<wink_> Bravo that worked, txs.
<andrewrk> you can also try some of the cross compiled libc targets, which you can see a listing of with `zig targets`
<wink_> Will it compile c++, just wondering?
<andrewrk> it can compile c++ but I haven't looked into the link dependencies of c++ yet
<wink_> got it, for grins I tried `$ ./build/bin/zig build-exe --c-source ../hw.cpp --library c` it failed 'stdio' file not found. and then output the `zig cc ...` command line that failed. I see why "cc" isn't designed for people, its 643 characters long :)
<scientes> hmmmm, *u21 can't cast to *u32. Why don't we guarantee that u17--u31 all have 32-bit alignment?
<scientes> or might u17-u24 be staggered into 3-bytes, with 1-bytes alignment I guess----maybe if I do Align(4) it could be allowed to up-cast?
Ichorio has quit [Ping timeout: 250 seconds]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wilsonk> speaking of cross compiled libc targets...how long does it take others to build all the glibc targets? I didn't even build the musl libs yet, but all the glibc stuff took just over 3 hours on a massive 64 core AMD EPYC server!! The same machine compiles llvm/clang/lld/compiler-rt in 6m23s! Anyways, just letting others know glibcs will probably take a LONG time to compile :)
<scientes> did you run all the tests?
<scientes> oh yes
<wilsonk> just followed along running the scripts as per: https://github.com/ziglang/zig/wiki/Updating-libc-Headers
<wilsonk> which does seem to have a 'check' stage, so perhaps those are tests? Not totally sure