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/
osa1 has quit [Ping timeout: 256 seconds]
osa1 has joined #zig
notzmv has joined #zig
jjsullivan1 has quit [Ping timeout: 264 seconds]
ur5us has joined #zig
jjsullivan1 has joined #zig
nyaa8 has joined #zig
jjsullivan1 has quit [Ping timeout: 260 seconds]
jjsullivan1 has joined #zig
selby has quit [Read error: Connection reset by peer]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
ur5us has quit [Ping timeout: 260 seconds]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
a92 has joined #zig
jjsullivan1 has quit [Ping timeout: 260 seconds]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
ur5us has joined #zig
mokafolio has joined #zig
xackus has quit [Ping timeout: 256 seconds]
jjsullivan1 has joined #zig
a92 has quit [Quit: My presence will now cease]
ur5us has quit [Ping timeout: 268 seconds]
spiderstew_ has joined #zig
yeti has quit [Ping timeout: 260 seconds]
yeti has joined #zig
spiderstew has quit [Ping timeout: 272 seconds]
fengh has quit [Ping timeout: 256 seconds]
midgard has quit [Ping timeout: 258 seconds]
midgard has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
<pixelherodev> Does this look right? https://pixelhero.dev/zyg_typification.md
radgeRayden has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
st4ll1 has quit [Quit: WeeChat 2.9]
st4ll1 has joined #zig
lucid_0x80 has joined #zig
semarie has quit [Quit: WeeChat 3.0]
osa1 has quit [Quit: osa1]
osa1 has joined #zig
radgeRayden has quit [Remote host closed the connection]
_whitelogger has joined #zig
leon-p has joined #zig
ur5us has joined #zig
hcnelson has quit [Quit: Idle for 30+ days]
Snektron has quit [Quit: Idle for 30+ days]
cole-h has quit [Ping timeout: 256 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #zig
nullheroes has joined #zig
nullheroes has quit [Remote host closed the connection]
waleee-cl has joined #zig
nullheroes has joined #zig
nullheroes has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 264 seconds]
_whitelogger has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
notzmv has quit [Ping timeout: 246 seconds]
notzmv has joined #zig
riba has joined #zig
<g-w1> ahhh, I spent like 10 hours trying to debug a memory leak, and then with like 20 mins just reading the diff of my changes I found it immediatly! Now my pull requests are unblocked!
<ifreund> :)
kenran has joined #zig
<ikskuh> heya
<ikskuh> is variadic function cimpor known to be broken? or is this a new bug of the changes to translate-c?
<ifreund> ikskuh: I've successfully called @cImport()'ed varargs functions before, not sure if that works on the lastest zig though
<ikskuh> fresh from translate-c
<ifreund> oh stuff like that has probably never worked
<ifreund> that would require support for defining C ABI vardaic functions not just calling them
<ikskuh> ifreund: it has! that's from the SDL2 headers
<ikskuh> but now it doesn't compile anymore
<ifreund> translate-c change then I guess
<ikskuh> yeah
<ikskuh> switching from extern fn to fn() callconv(.C)
<ifreund> you should able to trivially work around it by manually translating that function
<ikskuh> well
<ikskuh> i don't want to manually translate-c the SDL headers D
<ikskuh> that function is *not* referenced
<ifreund> oh I see
<ikskuh> the backtrace is … weird
<ikskuh> something is calling a refalldecls i assume
<ikskuh> huh
<ikskuh> broke since 0.7.1
<ifreund> ikskuh: probably this: https://github.com/ziglang/zig/pull/7435
<ikskuh> yeah, could be it
<ikskuh> :O
<g-w1> is "||=" a valid operand (assign merge error set)? it works in stage1, but is not in stage2 so zig fmt wont parse it, but it will compile. should I remove it from stage1, or add to stage2?
<g-w1> *not operand but assign operator
<ikskuh> imho we can remove it. i never used it…
<ikskuh> is it documented to exist? :D
<ifreund> woah that exists?
<ikskuh> if not, it's an implementation bug :D
<ifreund> no it's not in the docs or PEG grammer
<g-w1> I was just reading the ast_render.cpp code, and found it
<g-w1> ill remove it
<ikskuh> :D
<ikskuh> g-w1: btw, wonderful PRs! <3
<ikskuh> i see you added @compileLog to stage2?
<g-w1> yep, I figured it would be needed for debugging, and also had to make a decl have multiple errors since compileLog doesn't stop analysis
<ikskuh> hehe, yeah
<ikskuh> @compileLog is a wonderful debugging tool
<ikskuh> wat, someone started Haiku support? sweet
<g-w1> why is src passed around as a usize in stage2 even though the max source size is (2 * (1024 ** 3)) (2**31)? this seems not correct because if a system has a pointer size of <u31, something bad would happen, but on 64 bit systems, usize is using double the memory it should be (u31)
<ikskuh> properly including SDL2 into build.zig feels like the same amount of work as just building it and all dependencies from source
<ifreund> g-w1: why is that the maximum value?
cren has joined #zig
<g-w1> 2 gb (main.zig:29)
<ifreund> ok well if a the pointer size is less than 32 bits then it wont compile
<ifreund> I'm not sure if using a u32 instead of a usize would be worth it here. It would certainly be less ergonomic
<ifreund> I feel like doing that now would be premature optimization
<g-w1> yeah, especially with #6624
<g-w1> just wondering
<ikskuh> hm. compiler-rt for i386-windows-gnu seems to be missing ___chkstk_ms? *scratches head*
marnix has quit [Ping timeout: 272 seconds]
marnix has joined #zig
a_chou has joined #zig
a_chou has quit [Remote host closed the connection]
<ikskuh> g-w1: git commit -m "foo " || = "from stage1"
<ikskuh> are two commands :D
<ikskuh> git commit
<ikskuh> and if that fails, "=" is executed :D
<ikskuh> you need to escape \"||=\" in the string
<g-w1> ohhhhhhhhhhhhhhhh, it was the fault of bash
<ikskuh> yeah
lucid_0x80 has quit [Ping timeout: 240 seconds]
lucid_0x80 has joined #zig
lucid_0x80 has quit [Ping timeout: 240 seconds]
hnOsmium0001 has joined #zig
<ikskuh> heya
<ikskuh> anyone here using github actions + zig + compile with msvc?
<ikskuh> i'm struggling with setting up the SDK correcty
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
<pixelherodev> g-w1: ouch, I know that *exact* feeling :P
<torque> this is why lord linux torvalds himself invented $EDITOR
<pixelherodev> ... Linux Torvalds?
kenran has quit [Quit: leaving]
<g-w1> which feeling, debugging for 10 hrs and then reading the diff for 20 mins and finding bug, or bash being weird with quotes?
<pixelherodev> Yes
zippoh has joined #zig
riba has quit [Ping timeout: 272 seconds]
bgiannan has quit [Read error: Connection reset by peer]
marnix has quit [Ping timeout: 256 seconds]
zippoh has quit [Ping timeout: 256 seconds]
danyspin97 has quit [Quit: ZNC - https://znc.in]
danyspin97 has joined #zig
ur5us has joined #zig
tracernz has quit [Ping timeout: 268 seconds]
kushalp has quit [Read error: Connection reset by peer]
kushalp has joined #zig
kwilczynski has quit [Ping timeout: 268 seconds]
tracernz has joined #zig
tracernz has quit [Max SendQ exceeded]
tracernz has joined #zig
r0bby has quit [Ping timeout: 272 seconds]
kushalp has quit [Read error: Connection reset by peer]
r0bby has joined #zig
kushalp has joined #zig
kwilczynski has joined #zig
knebulae has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 264 seconds]
marijnfs has joined #zig
bitmapper has quit [Quit: Connection closed for inactivity]
cole-h has joined #zig