ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<andrewrk> emekoi, even better, it's semantically guaranteed to not even analyze the dead branch
<andrewrk> try it yourself - put a compile error such as `var x: bool = 3;` inside the `else` clause of `if (true)`
allan0 has quit [Ping timeout: 250 seconds]
allan0 has joined #zig
porky11 has quit [Ping timeout: 268 seconds]
<emekoi> does the ipv6 parser in std/net support ip addresses like "::1"?
<daurnimator> I'd hope so....
<daurnimator> The real question is does it support scopes
steveno has joined #zig
<daurnimator> looks like it only supports numeric scopes?
<emekoi> from a cursory glance i don't think it does
allan0 has quit [Ping timeout: 250 seconds]
<emekoi> daurnimator, i was talking about my question
<daurnimator> emekoi: ah okay. yeah the lack of tests doesn't make me hopeful.....
<emekoi> yeah, for now i'll just use an addrinfo struct and use that to init the Address
diltsman has joined #zig
<diltsman> andrewrk, should I put my ARM memory mapped IO thoughts in as an Issue or something else?
<andrewrk> diltsman, maybe here: https://github.com/ziglang/zig/issues/1778 or in any issue really, I'll read it
IntoxicatedHippo has joined #zig
steveno has quit [Quit: Leaving]
ibebrett has joined #zig
<ibebrett> question about importing c code
<ibebrett> attempting to use SDL_LoadTexture via: const c = @cImport({ @cInclude("SDL2/SDL_image.h"); });
<ibebrett> getting this error when attempting to use the function: expected type '?*struct_SDL_Renderer', found '*struct_SDL_Renderer' var tex = c.IMG_LoadTexture(renderer, c"test.png")
<ibebrett> now to me this is saying it expected an optional pointer to renderer
<ibebrett> is there a way to cast it to that?
<ibebrett> nevermind i think i figured out what it is
<ibebrett> so i am using someone's zig sdl2 and they redefined all the structs
<ibebrett> got it to work by force casting, but not optional
ibebrett has quit [Ping timeout: 256 seconds]
Shankar has joined #zig
williamcol3 has joined #zig
Shankar has quit [Quit: Leaving]
<emekoi> is there a reason that implicit returns were removed?
suirad has quit [Ping timeout: 256 seconds]
_whitelogger has joined #zig
reductum has joined #zig
IntoxicatedHippo has quit [Ping timeout: 245 seconds]
qazo has quit [Quit: 345345]
reductum has quit [Read error: Connection reset by peer]
emekoi has quit [Ping timeout: 256 seconds]
reductum has joined #zig
<reductum> Oh my goodness. I spent so much time trying to figure out why my tests were passing, but my answer for advent of code 5-1 was wrong.
<reductum> Then I actually read the question.
reductum has quit [Read error: Connection reset by peer]
qazo has joined #zig
reductum has joined #zig
reductum has quit [Quit: WeeChat 2.3]
basro has quit [Disconnected by services]
basro_ has joined #zig
basro_ is now known as basro
<nbjoerg> andrewrk: I would recomment avoiding the term "analyze the dead branch"
<nbjoerg> andrewrk: that brings back nightmares from Visual Studio
<nbjoerg> andrewrk: where certain uninstanciated templates literally contained syntax errors that were not caught for years because VS kind of handled templates as token string
<nbjoerg> andrewrk: without actually parsing them
wilsonk has quit [Read error: Connection reset by peer]
wilsonk has joined #zig
Hejsil has joined #zig
<Hejsil> This is not really what I expected @noInlineCall to doo... https://godbolt.org/z/cGlZrB
<j`ey> ?
<j`ey> Hejsil: what did you expect?
<j`ey> a call I guess? rather than a jmp?
<Hejsil> Well, i guess it is semantically correct, but i did not expect the compiler to inline the value into the function
<Hejsil> But there should really be a call too
<Hejsil> I was hoping I could use @noInlineCall to ensure that the functions code is not inlined, so it is not optimized based on the context of where it is called
<Hejsil> (working on a small benchmarking lib)
<j`ey> wait that looks wrong, got confused
<j`ey> jumo is fine because its a leaf call
<Hejsil> Not if you expect to get your own stackframe (in a GC)
<nbjoerg> hm
<nbjoerg> that's certainly strange
steveno has joined #zig
<j`ey> interested in what the llvm ir looks like
<Hejsil> Anyways, just wrote a simple benchmarking lib https://github.com/Hejsil/zig-bench
steveno has quit [Ping timeout: 252 seconds]
williamcol3 has quit [Ping timeout: 250 seconds]
Hejsil has quit [Quit: Page closed]
return0e_ has quit [Remote host closed the connection]
return0e has joined #zig
steveno has joined #zig
qazo has quit [Ping timeout: 246 seconds]
allan0 has joined #zig
voldyman has quit [Quit: Connection closed for inactivity]
qazo has joined #zig
ibebrett has joined #zig
ibebrett has quit [Client Quit]
qazo has quit [Ping timeout: 250 seconds]
porky11 has joined #zig
steveno has quit [Ping timeout: 264 seconds]
oconnor0 has joined #zig
steveno has joined #zig
Zaab1t has joined #zig
steveno has quit [Ping timeout: 250 seconds]
return0e has quit [Remote host closed the connection]
return0e has joined #zig
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
oconnor0 has quit [Ping timeout: 246 seconds]
oconnor0 has joined #zig
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
wink_ has joined #zig
steveno has joined #zig
oconnor0 has quit [Ping timeout: 245 seconds]
oconnor0 has joined #zig
steveno_ has joined #zig
steveno has quit [Ping timeout: 264 seconds]
abeaumont has joined #zig
oconnor0 has quit [Quit: Quit]
steveno_ has quit [Quit: Leaving]
suirad has joined #zig
Zaab1t has quit [Quit: bye bye friends]
qazo has joined #zig
qazo has quit [Ping timeout: 250 seconds]
qazo has joined #zig
steveno has joined #zig
qazo has quit [Ping timeout: 250 seconds]
steveno has quit [Remote host closed the connection]
porky11 has quit [Ping timeout: 260 seconds]
benjikun has joined #zig