cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | the pypy angle is to shrug and copy the implementation of CPython as closely as possible, and staying out of design decisions
jcea has quit [Ping timeout: 248 seconds]
itamarst has quit [Quit: Connection closed for inactivity]
nexussfan has quit [Remote host closed the connection]
idnar has quit [Ping timeout: 252 seconds]
Techcable has quit [Ping timeout: 272 seconds]
graingert has quit [Ping timeout: 272 seconds]
graingert has joined #pypy
idnar has joined #pypy
Techcable has joined #pypy
BarrensZeppelin has joined #pypy
dustinm has quit [Ping timeout: 248 seconds]
dustinm has joined #pypy
Dejan has joined #pypy
Techcable has quit [Ping timeout: 248 seconds]
Techcable has joined #pypy
jcea has joined #pypy
jcea has quit [Ping timeout: 248 seconds]
jcea has joined #pypy
BarrensZeppelin has quit [Ping timeout: 245 seconds]
nexussfan has joined #pypy
jcea has quit [Ping timeout: 252 seconds]
nexussfan has quit [Remote host closed the connection]
<korvo> Increasingly finding a single particular mutable-bitset abstraction to be useful: https://bpa.st/SH5A
<nimaje> I think you have a bug with s = Bitset(); s.set(2); t = Bitset(); t.set(3); (s.intersect(t)).any()
<korvo> Nice.
<korvo> If only `or any(self.ds)` were legal RPython.
<nimaje> and no reset or toggle operation?
<korvo> Everything I've been doing is append-only, now that I think about it.
<nimaje> you could ensure that the highest part has to be non-zero in intersect, then bool(len(self.ds)) works for any, you just have to ensure that for every operation that could loose bits (and disallow Bitset([0]) or similar)
<korvo> Yep. Which would save memory, too.
<nimaje> ah, well l = [1]; s = Bitset(l); l[0] = 0; s.any() would still be buggy
<nimaje> and are you sure that you want to use SHIFT from rbigint instead of SHIFT=64 (or maybe even 128)? and intmask seems unused
BarrensZeppelin has joined #pypy
<korvo> SHIFT is indeed 128 on one of my machines; it uses the xmm0, xmm1, etc. registers.
<nimaje> hm, did rbigint change since I last pulled? I remember SHIFT being 63 or 31 depending if you have support for int128 or not
itamarst has joined #pypy
Dejan has quit [Quit: Leaving]
BarrensZeppelin has quit [Ping timeout: 252 seconds]
jcea has joined #pypy
jcea has quit [Ping timeout: 245 seconds]