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