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/
layneson has quit [Quit: WeeChat 2.8]
mattmurr has quit [Ping timeout: 265 seconds]
mattmurr has joined #zig
FireFox317_ has quit [Ping timeout: 256 seconds]
dimenus has quit [Quit: WeeChat 2.8]
benjif has quit [Ping timeout: 260 seconds]
dddddd has quit [Remote host closed the connection]
ur5us has joined #zig
nephele has quit [Ping timeout: 240 seconds]
nephele has joined #zig
marijnfs_ has joined #zig
marijnfs has quit [Ping timeout: 264 seconds]
Kingsquee has quit [Ping timeout: 244 seconds]
kevsmith has joined #zig
dnmllr has quit [Quit: Textual IRC Client: www.textualapp.com]
xackus_ has joined #zig
xackus has quit [Ping timeout: 256 seconds]
return0e_ has joined #zig
return0e has quit [Ping timeout: 256 seconds]
slurpie_ has joined #zig
slurpie has quit [Ping timeout: 260 seconds]
mikdusan has quit [Quit: WeeChat 2.6]
foobles has joined #zig
<foobles> ive been inactive for a few days, but im going to try to knock out 1332 once and for all this weekend
<andrewrk> go foobles, it's your birthday, mmm hmm hmm
<foobles> XD lmao
foobles has quit [Ping timeout: 245 seconds]
watzon has joined #zig
<watzon> Can someone explain to me why this doesn't work as expected?
<watzon> I just end up with `0 1` - `0 59` and it stops on the first iteration
<fengb> `var y` needs to be in the middle of the x loop
<watzon> Oof
<watzon> Duh
<watzon> Thanks lol
mikdusan has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
cole-h has quit [Quit: Goodbye]
metaleap has joined #zig
st4ll1 has joined #zig
haliucinas has quit [Remote host closed the connection]
haliucinas has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
return0e has joined #zig
return0e_ has quit [Read error: Connection reset by peer]
ur5us has joined #zig
pystub has joined #zig
dermetfan has joined #zig
frett27_ has quit [Ping timeout: 260 seconds]
frett27_ has joined #zig
FireFox317_ has joined #zig
BaroqueLarouche has quit [*.net *.split]
alva has quit [*.net *.split]
Dominic[m] has quit [*.net *.split]
watzon has quit [*.net *.split]
pltrz has quit [*.net *.split]
BitPuffin has quit [*.net *.split]
eddyb[legacy] has quit [*.net *.split]
wjlroe has quit [*.net *.split]
rom1504 has quit [*.net *.split]
guan has quit [*.net *.split]
cbarrett has quit [*.net *.split]
jicksaw has quit [Ping timeout: 264 seconds]
pltrz has joined #zig
watzon has joined #zig
BitPuffin has joined #zig
alva has joined #zig
BaroqueLarouche has joined #zig
cbarrett has joined #zig
wjlroe has joined #zig
eddyb[legacy] has joined #zig
rom1504 has joined #zig
guan has joined #zig
Dominic[m] has joined #zig
jicksaw has joined #zig
hspak3 has joined #zig
hspak has quit [Ping timeout: 246 seconds]
hspak3 is now known as hspak
metaleap has quit [Remote host closed the connection]
metaleap has joined #zig
slurpie_ has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 260 seconds]
marijnfs has joined #zig
metaleap has quit [Remote host closed the connection]
metaleap has joined #zig
drp has joined #zig
dtz has quit [Quit: killed]
sammich has quit [Quit: killed]
AlexMax has quit [Quit: killed]
BitPuffin has quit [Quit: killed]
fengb has quit [Quit: killed]
afontain_ has quit [Quit: killed]
Snektron has quit [Quit: killed]
ifreund[m] has quit [Quit: killed]
D3zmodos has quit [Quit: killed]
pmwhite has quit [Quit: killed]
Dominic[m] has quit [Quit: killed]
watzon has quit [Quit: killed]
pltrz has quit [Quit: killed]
alva has quit [Quit: killed]
BaroqueLarouche has quit [Quit: killed]
zfoo has joined #zig
zfoo has quit [Remote host closed the connection]
moo has quit [Quit: Leaving]
wootehfoot has joined #zig
D3zmodos has joined #zig
cren has joined #zig
<cren> Hello. I'm learning Zig. Zig is statically typed, but does it have type inference? I haven't seen it anywhere in the documentation but I think I have seen variable declarations and assignments without specifying the type.
<daurnimator> cren: in most places yes
<cren> Is there no special syntax for it?
<daurnimator> cren: notably, zig doesn't allow type inference in return value types
<daurnimator> most other places have inference.
<cren> daurnimator: can you give an example to explain the return value thing
<daurnimator> cren: no. `const foo = bar` ==> foo becomes the type of bar. `const foo: sometype = bar` ==> you're declaringn the type of foo explicitly
<cren> Ah. Well that's what I had guessed. Just wanted to make sure.
<daurnimator> cren: `fn foo(bar: var) mytype { return bar; }` => `mytype` must be explicit
<cren> Oh right. I see. I wouldn't have expected anything else.
<cren> Thank you.
drp has quit [Read error: Connection reset by peer]
drp has joined #zig
ifreund[m] has joined #zig
pltrz has joined #zig
fengb has joined #zig
sammich has joined #zig
AlexMax has joined #zig
pmwhite has joined #zig
afontain_ has joined #zig
Dominic[m] has joined #zig
BitPuffin has joined #zig
alva has joined #zig
dtz has joined #zig
Snektron has joined #zig
BaroqueLarouche has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
metaleap has quit [Remote host closed the connection]
meta_leap has joined #zig
cren has quit [Remote host closed the connection]
plumm has quit [Quit: Textual IRC Client: www.textualapp.com]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #zig
dingenskirchen has quit [Client Quit]
dingenskirchen has joined #zig
marijnfs1 has joined #zig
marijnfs has quit [Ping timeout: 260 seconds]
frett27 has joined #zig
wootehfoot has joined #zig
frett27_ has quit [Ping timeout: 256 seconds]
marijnfs has joined #zig
marijnfs1 has quit [Ping timeout: 264 seconds]
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #zig
plumm has joined #zig
dddddd has joined #zig
layneson has joined #zig
foobles has joined #zig
jleahy has joined #zig
jleahy has quit [Remote host closed the connection]
rzezeski has quit [Quit: Connection closed for inactivity]
<plumm> has anyone had success in using the llvm10 provided by nix for building izg?
<plumm> zig* ?
cren has joined #zig
<cren> Does Zig use UPPER_CASE_LIKE_THIS for names of program constants at all?
<ikskuh> i haven't seen it yet
<ifreund> style guide says to only use it when conforming to something like errno values
cole-h has joined #zig
<plumm> Nevermind, stole andrews ZIg nix shell and that works
dtz has quit [Quit: Idle for 30+ days]
return0e_ has joined #zig
return0e has quit [Ping timeout: 264 seconds]
waleee-cl has joined #zig
<plumm> okie, mikdusan do you know how to override the libSystem library that gets linked? nix explicitly removes some symbols to keep reproducible builds with 10.12, and they told me to find out how to override the link with the real `/usr/lib/libSystem.dylib` but I don't know anything about cmake
FireFox317_ has quit [Remote host closed the connection]
FireFox317_ has joined #zig
Sahnvour has quit [Quit: WeeChat 2.8]
layneson has quit [Ping timeout: 258 seconds]
layneson has joined #zig
<drp> I'm going through the zig live coding webcasts to get an appreciated for the language, in some of the old videos the source code contains an examples folder, the closest I can see is test/standalone.
<drp> Is that the right place to look or am I just overlooking something?
<plumm> thats probably super old, a good place for examples is the standard library (found in lib/std)
<drp> thank you!
<drp> I've noticed some of the coding projects don't work with the latest zig due to age, so it's probably a better source to check out
layneson has quit [Ping timeout: 272 seconds]
rzezeski has joined #zig
Akuli has joined #zig
Xavi92 has joined #zig
slurpie has joined #zig
<drp> nakedcc no longer exists, this appears to be replaced with callconv(.Naked), searching through the git logs showed that fmt automatically converts old code to the new, cool! But this functionality doesn't appear to be in the docs. Are there documentation areas other than https://ziglang.org/documentation/0.6.0/ that I should be on the lookout for?
<andrewrk> drp, not everything is documented yet
<andrewrk> a first draft of the language specification is one of the goals of 0.7.0 though, so that should help
wootehfoot has quit [Read error: Connection reset by peer]
<drp> that's fair enough, thank you.
kevsmith has quit [Remote host closed the connection]
layneson has joined #zig
<ikskuh> andrewrk: i think pretty much everyone except you will have an A-HA moment when you unconver all undocumented features :D
<andrewrk> haha
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #zig
drp has quit [Ping timeout: 240 seconds]
benjif has joined #zig
halbeno has quit [Ping timeout: 272 seconds]
halbeno has joined #zig
cren has quit [Ping timeout: 245 seconds]
cren has joined #zig
dermetfan has quit [Ping timeout: 246 seconds]
chapl has joined #zig
chapl has quit [Remote host closed the connection]
aerona has joined #zig
knebulae has quit [Read error: Connection reset by peer]
knebulae has joined #zig
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #zig
aerona has quit [Quit: Connection closed]
dermetfan has joined #zig
dermetfan has quit [Ping timeout: 260 seconds]
kristoff_it has joined #zig
<kristoff_it> Dominic[m]: hi I read your message from yesterday, I've been discussing it now on stream. I see your point, and we can certainly make the presentation stream not require any account (you can watch twitch without one), but for interacting it seems to me that one way or another some kind of account is needed and Discord does make some things easier on my end (plus it's less friction than IRC for a lot of people for example)
cren has quit [Ping timeout: 245 seconds]
lanodan has quit [Ping timeout: 265 seconds]
marijnfs has quit [Quit: leaving]
lanodan has joined #zig
curtisf has joined #zig
FireFox317_ has quit [Quit: Leaving]
Akuli has quit [Quit: Leaving]
xackus_ has quit [Ping timeout: 272 seconds]
ur5us has joined #zig
meta_leap has quit [Quit: Leaving]
dermetfan has joined #zig
st4ll1 has quit [Ping timeout: 256 seconds]
curtisf has quit [Remote host closed the connection]
dermetfan has quit [Ping timeout: 260 seconds]
_apg has joined #zig
ifreund has quit [Quit: WeeChat 2.8]
Xavi92 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<gonz_> How many things do we know of that hang the compiler and produce no error messages?
<gonz_> I have one case where I add code to a `main` that I execute successfully in a test, but when it's in main it'll just straight up hang the compiler.
mattmurr has quit [Ping timeout: 272 seconds]
mattmurr has joined #zig
kristoff_it has quit [Ping timeout: 258 seconds]
<gonz_> Hmm, two different `@cImport`s that pointed to the same lib. I would've expected that to error, not just hang the compiler..
<gonz_> Anyway, that seems to have been the issue, if anyone stumbles upon it in the future.
pystub has quit [Ping timeout: 258 seconds]