cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | mac OS and Fedora are not Windows
jcea has quit [Ping timeout: 250 seconds]
ronan has quit [Ping timeout: 252 seconds]
ronan has joined #pypy
dddddd has quit [Remote host closed the connection]
lritter has quit [Ping timeout: 272 seconds]
lritter_ has joined #pypy
lritter_ has quit [Ping timeout: 252 seconds]
WGH has quit [Ping timeout: 245 seconds]
jcea has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
jcea has joined #pypy
tayfun26 has joined #pypy
tayfun26 has quit [Client Quit]
tayfun26 has joined #pypy
jerith_ is now known as jerith
_whitelogger has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5810 [mattip: force build, unicode-utf8-py3]
forgottenone has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7087 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4238 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1893 [mattip: force build, unicode-utf8-py3]
themsay has quit [Ping timeout: 272 seconds]
Zaab1t has joined #pypy
the_drow has joined #pypy
antocuni has joined #pypy
Zaab1t has quit [Ping timeout: 268 seconds]
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
demonimin has quit [Ping timeout: 246 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7087 [mattip: force build, unicode-utf8-py3]
lritter_ has joined #pypy
antocuni has quit [Ping timeout: 252 seconds]
antocuni has joined #pypy
antocuni has quit [Ping timeout: 272 seconds]
kipras`away has quit [Ping timeout: 252 seconds]
kipras`away has joined #pypy
nunatak has joined #pypy
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
the_drow has quit [Ping timeout: 244 seconds]
the_drow has joined #pypy
Zaab1t has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5810 [mattip: force build, unicode-utf8-py3]
Zaab1t has quit [Quit: bye bye friends]
the_drow_ has joined #pypy
the_drow has quit [Ping timeout: 250 seconds]
the_drow__ has joined #pypy
the_drow_ has quit [Ping timeout: 252 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4238 [mattip: force build, unicode-utf8-py3]
antocuni has joined #pypy
nunatak has quit [Quit: Leaving]
dddddd has joined #pypy
adamholmberg has joined #pypy
the_drow_ has joined #pypy
the_drow__ has quit [Ping timeout: 252 seconds]
the_drow__ has joined #pypy
the_drow_ has quit [Ping timeout: 250 seconds]
the_drow_ has joined #pypy
the_drow__ has quit [Ping timeout: 250 seconds]
the_drow__ has joined #pypy
the_drow_ has quit [Ping timeout: 250 seconds]
tayfun26 has quit [Read error: Connection reset by peer]
tayfun26 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 252 seconds]
adamholmberg has joined #pypy
WGH has joined #pypy
the_drow__ has quit [Ping timeout: 252 seconds]
Rhy0lite has joined #pypy
tayfun26 has quit [Quit: tayfun26]
arigato has joined #pypy
marky1991 has quit [Ping timeout: 268 seconds]
arigato has quit [Ping timeout: 276 seconds]
arigato has joined #pypy
Zaab1t has joined #pypy
arigato has quit [Remote host closed the connection]
graingert is now known as globalThis
marky1991 has joined #pypy
<bbot2> Exception: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1893 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5811 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7088 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4239 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1894 [mattip: force build, unicode-utf8-py3]
altendky has quit [Quit: Connection closed for inactivity]
Zaab1t has quit [Ping timeout: 245 seconds]
marky1991_2 has joined #pypy
marky1991 has quit [Ping timeout: 252 seconds]
antocuni has quit [Ping timeout: 268 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7088 [mattip: force build, unicode-utf8-py3]
Zaab1t has joined #pypy
marky1991_2 has quit [Read error: Connection reset by peer]
marky1991_2 has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5811 [mattip: force build, unicode-utf8-py3]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1894 [mattip: force build, unicode-utf8-py3]
marky1991_2 has quit [Ping timeout: 240 seconds]
Rhy0lite has quit [Quit: Leaving]
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/4239 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5812 [mattip: force build, unicode-utf8-py3]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7089 [mattip: force build, unicode-utf8-py3]
demonimin has joined #pypy
arigato has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
demonimin has quit [Quit: bye]
demonimin has joined #pypy
marky1991 has joined #pypy
Zaab1t has quit [Quit: bye bye friends]
marky1991 has quit [Remote host closed the connection]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7089 [mattip: force build, unicode-utf8-py3]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5812 [mattip: force build, unicode-utf8-py3]
<samth> the code in rlib.longlong2float seems to overflow for some large values (this happens only when interpreted). I wrote a workaround in my code that seems to do the right thing (https://github.com/pycket/pycket/commit/00d63ab76c323d64582b41cba95f68cc4426cb37) but I'm not sure that it's the right thing in general. Any thoughts before I submit a patch?
<samth> cc cfbolz
globalThis is now known as graingert
<arigato> samth: I didn't look in detail, but note that C (and gcc) is particularly picky about overflows on signed arithmetic: it must not occur in C code
<arigato> so if you do "val += rarithmetic.r_int64(ord(v)) << (i * 8)" then a picky C compiler might incorrectly conclude that val cannot be negative, and derive bogus results from that
<arigato> furthermore, this would occur only *before* the commit you pointed to, but not *after*, because after the commit that line is inside an "except OverflowError" so no longer uses a bare C "+"
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
<arigato> so that's a theoretical problem only at this point in time
<arigato> the real problem you're having is simply that "val += xxx" doesn't automatically wrap longlong overflows to negative values, in plain Python
<arigato> so (before translation) you get sometimes a number that uses all 64 bits, but isn't negative, and this is out of bounds
<arigato> a fix for both problems is to use unsigned arithmetic when computing "val", and then cast the result to a signed longlong
<arigato> using longlong2float.longlong2float(rlib.rarithmetic.longlongmask(val))
<samth> arigato: ah, ok, I'll try that then. Certainly would be better than the copy and paste I did
arigato has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Read error: Connection reset by peer]
adamholmberg has joined #pypy
antocuni has joined #pypy
jamesaxl has quit [Quit: WeeChat 2.2]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
altendky has joined #pypy
adamholmberg has quit [Ping timeout: 246 seconds]
lritter_ has quit [Remote host closed the connection]