18:51
<shu>
bakkot: i'm doing something kind of cursed with the reals. opinions on the following? i'm fixing a bug in the resizable buffers proposal for %TypedArray%.prototype.slice in a way i want to increment a TA index by 1/element size inside a loop that does bytewise copy
18:51
<shu>
that TA index is an MV
18:51
<shu>
so... this is fine, but it seems cursed
23:12
<bakkot>
oof
23:12
<bakkot>
I am fine with it as a mathematician but that's scary as a thing-to-ask-machines-to-implement
23:13
<bakkot>
I guess it's not so bad when element size is a power of 2, which it presumably is here?
23:13
<bakkot>
but still, is there a way to rephrase it to increment by 1 instead, and count when have incremented enough times, or something to that effect?
23:14
<bakkot>
I am much happier with having the loop counter be integral if possible, even if it entails doing a division in the body of the loop
23:18
<shu>
i feel the same way
23:18
<shu>
so in the end i refactored to get around it
23:18
<shu>
it wasn't one of those observable loops
23:18
<shu>
but still