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/
reductum has joined #zig
reductum has quit [Client Quit]
zags has quit [Quit: leaving]
ed_t has quit [Quit: Leaving]
xackus has quit [Ping timeout: 246 seconds]
leeward has joined #zig
cole-h has joined #zig
ovf has quit [Ping timeout: 264 seconds]
ovf has joined #zig
losinggeneration has joined #zig
osa1_ has joined #zig
osa1 has quit [Ping timeout: 246 seconds]
craigo_ has quit [Ping timeout: 258 seconds]
gazler has joined #zig
gazler_ has quit [Ping timeout: 246 seconds]
proteusguy has quit [Ping timeout: 264 seconds]
proteusguy has joined #zig
mmohammadi9812 has quit [Ping timeout: 240 seconds]
mmohammadi9812 has joined #zig
mmohammadi9812 has quit [Ping timeout: 256 seconds]
mmohammadi9812 has joined #zig
mmohammadi9812 has quit [Ping timeout: 240 seconds]
mmohammadi9812 has joined #zig
midgard has quit [Read error: Connection reset by peer]
midgard has joined #zig
craigo_ has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
cole-h has quit [Ping timeout: 264 seconds]
mmohammadi9812 has quit [Ping timeout: 264 seconds]
mmohammadi9812 has joined #zig
decentpe- has joined #zig
decentpenguin has quit [Ping timeout: 265 seconds]
decentpe- is now known as decentpenguin
haliucinas has quit [Ping timeout: 264 seconds]
haliucinas has joined #zig
haliucinas has quit [Ping timeout: 265 seconds]
haliucinas has joined #zig
haliucinas has quit [Read error: Connection reset by peer]
haliucinas has joined #zig
drawkula has joined #zig
yeti has quit [Ping timeout: 240 seconds]
<daurnimator> andrewrk: hmm? how does the jsonStringify not work re: recursion? all of its recursion is comptime-known.
frett27_ has joined #zig
haliucinas has quit [Read error: Connection reset by peer]
haliucinas has joined #zig
haliucinas has quit [Read error: Connection reset by peer]
haliucinas has joined #zig
hjarvard has joined #zig
gpanders has quit [Quit: ZNC - https://znc.in]
gpanders has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
Patrice_ has joined #zig
frett27_ has quit [Ping timeout: 272 seconds]
mikdusan has joined #zig
Patrice_ has quit [Ping timeout: 272 seconds]
<ifreund> andrewrk: nicely done with the SIMD :) Just gave your single allocation implementation a review, I think it should be good.
<ifreund> I'm not sure there is a need for the nicer toOwnedSlice() API the multiple allocation version could provide, we can re-examine if a good use-case is found
<daurnimator> ifreund: I think the lack of efficient shrinking is a pretty major drawback
<daurnimator> ifreund: whereas your original approach leaves andrew's version possible, but up to the allocator.
wootehfoot has joined #zig
<ifreund> hmm, that is true
earnestly has joined #zig
riba has joined #zig
drawkula is now known as yeti
koakuma has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
Patrice_ has joined #zig
mmohammadi9812 has quit [Ping timeout: 264 seconds]
mmohammadi9812 has joined #zig
gazler_ has joined #zig
gazler has quit [Ping timeout: 240 seconds]
gazler__ has joined #zig
gazler_ has quit [Ping timeout: 246 seconds]
gazler__ has quit [Remote host closed the connection]
gazler__ has joined #zig
earnestly has quit [Ping timeout: 240 seconds]
earnestly has joined #zig
Akuli has joined #zig
frett27_ has joined #zig
<ifreund> andrewrk: updated my PR with a toOwnedSlices() function for comparison
Patrice_ has quit [Ping timeout: 264 seconds]
cole-h has joined #zig
midgard has quit [Read error: Connection reset by peer]
midgard has joined #zig
hvm has joined #zig
wootehfoot has joined #zig
Patrice_ has joined #zig
frett27_ has quit [Ping timeout: 265 seconds]
hvm has quit [Quit: Connection closed]
nycex- has joined #zig
nycex has quit [Ping timeout: 268 seconds]
frett27_ has joined #zig
Patrice_ has quit [Ping timeout: 260 seconds]
cole-h has quit [Ping timeout: 264 seconds]
shirty has joined #zig
shirty has quit [Client Quit]
wootehfoot has quit [Read error: Connection reset by peer]
hvm has joined #zig
bitmapper has quit [Quit: Connection closed for inactivity]
hjarvard has quit [Ping timeout: 272 seconds]
waleee-cl has joined #zig
hnOsmium0001 has joined #zig
<hvm> Does zig have any way to detect that the frame you're about to resume has already returned?
hvm has quit [Quit: Ping timeout (120 seconds)]
hvm has joined #zig
<andrewrk> daurnimator, re: recursion: my bad, I did not realize that
<andrewrk> thanks ifreund
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
Nilium has joined #zig
gazler__ has quit [Read error: Connection reset by peer]
gazler__ has joined #zig
Xatenev has joined #zig
a_chou has joined #zig
marijnfs has joined #zig
<marijnfs> what's the right way to allocate a sentineled array?
jokoon has joined #zig
<ifreund> Allocator.allocSentinel()
<marijnfs> ah yes, didn't see that one
<marijnfs> and how to I see if a .Pointer has a sentinel?
<marijnfs> i tried: if (std.meta.sentinel(T)) |s| {
<marijnfs> but the else branch still requires a sentinel
<ifreund> marijnfs: the sentinel field is an optional, you can check it against null
<marijnfs> ifreund: i see, that works.
<marijnfs> if does the 'grabbing' not work?
<marijnfs> somewhere else i do: var for_me: bool = if (node.self_guids.get(guid)) |exists| true else false;
<marijnfs> does that make sense?
<ifreund> just check if it == null
<ifreund> var for_me = node.self_guids.get(guid) == null;
<marijnfs> yes, im just trying to understand why it doesnt work/
<ifreund> what doesn't work?
<marijnfs> but you're right
<marijnfs> In the other case, i didn't get the same behaviour as == null
<ifreund> which case?
<marijnfs> the sentinel case, in the 'else' branch it still expected a sentinel somehow
<marijnfs> but maybe somehow something else was wrong
<marijnfs> i'll just stick with == null
<marijnfs> btw, what's nowadays the way to print to stdout?
<marijnfs> the writers have changed, and it's hard to find an example
<ifreund> const foo = std.io.getStdOut().writer(); try foo.print("bar\n", .{});
<ifreund> that is, the hello world in the documentation does indeed work :P
jokoon has quit [Quit: Leaving]
hvm has quit [Quit: Connection closed]
<marijnfs> ah the one I saw maybe was older
Akuli has quit [Quit: Leaving]
v0idify has quit [Remote host closed the connection]
v0idify has joined #zig
Xatenev has left #zig ["Leaving"]
craigo_ has quit [Quit: Leaving]
frett27_ has quit [Ping timeout: 272 seconds]
a_chou has quit [Ping timeout: 265 seconds]
xackus has joined #zig
v0idify has quit [Remote host closed the connection]
v0idify has joined #zig
midgard_ has joined #zig
midgard has quit [Ping timeout: 265 seconds]
cole-h has joined #zig
riba has quit [Ping timeout: 246 seconds]