ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
darithorn has joined #zig
isd has joined #zig
return0e has quit [Ping timeout: 240 seconds]
return0e has joined #zig
zolk3ri has quit [Remote host closed the connection]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
donlzx has joined #zig
fjvallarino has quit [Ping timeout: 248 seconds]
JinShil has joined #zig
isd has quit [Ping timeout: 260 seconds]
fjvallarino has joined #zig
kristate has quit [Ping timeout: 245 seconds]
donlzx has quit [Remote host closed the connection]
dbandstra has joined #zig
kristate has joined #zig
quc has quit [Remote host closed the connection]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
kevw has joined #zig
kevw has quit [Client Quit]
fjvallarino has quit [Ping timeout: 240 seconds]
kristate has quit [Remote host closed the connection]
adagio1 has quit [Quit: Leaving.]
xtreak has joined #zig
<dbandstra> andrewrk, do you know any reason why this might not work? https://pastebin.com/wqCp9LSX
<dbandstra> it's an init function returning struct-in-struct-in-struct, methods in the innermost one (two layers of fieldParentPtr)
<dbandstra> just off hand. i'm getting a crash but it seems to depend on random other parts of the program so i still haven't been able to isolate it
<dbandstra> (like if i instantiate one of these "Outer" objects as a global, and use it in a test, it crashes. but if i instantiate it within the test, it works. if i copy the whole thing to a new empty project, it works even as a global...)
<dbandstra> possibly some kind of struct-returning-memcpy-related thing?
fjvallarino has joined #zig
adagio1 has joined #zig
adagio1 has left #zig [#zig]
kristate has joined #zig
kristate_ has joined #zig
kristate has quit [Ping timeout: 245 seconds]
davr0s has joined #zig
kristate_ has quit [Remote host closed the connection]
very-mediocre has joined #zig
darithorn has quit [Quit: Leaving]
xtreak_ has joined #zig
xtreak has quit [Ping timeout: 240 seconds]
dbandstra has quit [Quit: Leaving]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<andrewrk> dbandstra, this should be straightforward to test with a debugger
<andrewrk> printing the memory addresses of the things
davr0s has joined #zig
donlzx has joined #zig
donlzx has quit [Client Quit]
donlzx has joined #zig
redj_ has joined #zig
kristate has joined #zig
redj has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xtreak has joined #zig
xtreak_ has quit [Ping timeout: 240 seconds]
alexnask has joined #zig
donlzx has quit [Remote host closed the connection]
davr0s has joined #zig
xtreak has quit [Remote host closed the connection]
xtreak has joined #zig
tiehuis has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
<GitHub134> [zig] tiehuis pushed 1 new commit to master: https://git.io/f4FGk
<GitHub134> zig/master 4a35d7e Marc Tiehuis: Correct hex-float parsing...
kristate has quit [Remote host closed the connection]
kristate has joined #zig
<GitHub9> [zig] tiehuis opened pull request #1166: compiler_rt f128 support additions (master...issue-495) https://git.io/f4FZZ
<GitHub143> [zig] Hejsil opened pull request #1167: Implement const_values_equal for arrays (master...comptime-array-by-value) https://git.io/f4FZd
xtreak has quit [Remote host closed the connection]
very-mediocre has quit [Ping timeout: 260 seconds]
JinShil has quit [Read error: Connection reset by peer]
kristate has quit [Ping timeout: 260 seconds]
xtreak has joined #zig
zolk3ri has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quc has joined #zig
kristate has joined #zig
tiehuis has quit [Quit: WeeChat 2.1]
noonien has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
very-mediocre has joined #zig
kristate has quit [Ping timeout: 260 seconds]
xtreak has quit [Remote host closed the connection]
<GitHub199> [zig] isaachier opened pull request #1168: Clarify reason implicit cast does not work for large RHS (master...shift-amt-error-improvement) https://git.io/f4F6a
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xtreak has joined #zig
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
very-mediocre has quit [Ping timeout: 260 seconds]
xtreak has quit [Remote host closed the connection]
ysengrimm has quit [Quit: Ping timeout (120 seconds)]
ysengrimm has joined #zig
davr0s has joined #zig
Ichorio has joined #zig
redj_ is now known as redj
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
fjvallarino has quit [Ping timeout: 264 seconds]
v1bri has joined #zig
darithorn has joined #zig
kristate has joined #zig
alexnask has quit [Ping timeout: 260 seconds]
fjvallarino has joined #zig
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
nuoji has quit [Quit: Page closed]
kristate has quit [Remote host closed the connection]
fjvallarino has quit [Remote host closed the connection]
kristate has joined #zig
fjvallarino has joined #zig
fjvallarino has quit [Remote host closed the connection]
fjvallarino has joined #zig
kristate has quit [Ping timeout: 240 seconds]
vegecode has joined #zig
kristate has joined #zig
isd has joined #zig
vegecode has quit [Ping timeout: 260 seconds]
Yaargh has joined #zig
alexnask has joined #zig
isd has quit [Ping timeout: 260 seconds]
kristate has quit [Remote host closed the connection]
Yaargh has left #zig ["Closing Window"]
kristate has joined #zig
kristate has quit [Ping timeout: 260 seconds]
noonien has quit [Quit: Connection closed for inactivity]
isd has joined #zig
alexnask has quit [Ping timeout: 248 seconds]
isd has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ichorio has quit [Ping timeout: 256 seconds]
<v1bri> are there any docs on the motivation to avoid a borrow checker in zig?
<v1bri> i found this reddit thread https://www.reddit.com/r/Zig/comments/774yy9/borrowchecker but not much else
isd has joined #zig
kristate has joined #zig
kristate_ has joined #zig
kristate has quit [Ping timeout: 260 seconds]
<andrewrk> v1bri, why not use rust, if you want a borrow checker?
<andrewrk> what I want to avoid in zig is a large set of valid, safe programs which are unable to compile
<v1bri> "why not use rust", a valid question...
<v1bri> because zig is getting more things right: defer, error handling, comptime, memory allocation (and failure to do so)
isd has quit [Ping timeout: 260 seconds]
<Triplefox[m]> rust is talented at solving certain memory management problems that are both intrinsically complex and need deep optimization...most either aren't that complex or do not need optimization and i think zig is currently working on answers within the "not that complex" part of this venn diagram
<Triplefox[m]> there's always opportunities to discover simpler semantics that get many of the same qualities without the same overhead...if we analogize that cs is like mathematics, it's all a question of figuring out how to reframe the problem
kristate_ has quit [Remote host closed the connection]
kristate has joined #zig
<v1bri> rad thanks. i think enforced error handling is going to go a long way in helping everyone avoid common PITA bugs
<andrewrk> I do want to make the semantic analysis catch more memory safety bugs
<andrewrk> but not the full guarantees that rust provides
kristate has quit [Remote host closed the connection]
<v1bri> great. i agree, there is room for improved ergonomics over what rust provides
<v1bri> very interested in the proposals on enforced resource type handling (#494, #782, #885)
btbytes has joined #zig
<v1bri> also the docs are a little vague on the "blk: { <stuff>; break :blk <expression>; }" pattern
<v1bri> that just means the block evaluates to the expression following the "break"?
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
v1bri has quit [Quit: Page closed]
zolk3ri has quit [Remote host closed the connection]