arigato changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | mac OS and Fedora are not Windows
jcea has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
speeder39_ has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
jcea has quit [Quit: jcea]
dddddd has quit [Remote host closed the connection]
oberstet_ has quit [Remote host closed the connection]
speeder39_ has quit [Quit: Connection closed for inactivity]
<mattip> another project now has pypy running in CI - https://github.com/scikit-build/scikit-build/pull/418
<mattip> scikit-build wraps cmake and is needed to build opencv
<mattip> python-opencv
_whitelogger has joined #pypy
<cfbolz> mattip: nice!
Masklinn has joined #pypy
tsaka__ has quit [Ping timeout: 272 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
oberstet has joined #pypy
inhahe has quit []
inhahe has joined #pypy
mattip has quit [Ping timeout: 244 seconds]
themsay has quit [Read error: Connection reset by peer]
themsay has joined #pypy
tsaka__ has joined #pypy
mattip has joined #pypy
mattip has quit [Ping timeout: 258 seconds]
themsay has quit [Ping timeout: 246 seconds]
jacob22 has quit [Read error: Connection reset by peer]
antocuni has joined #pypy
jacob22 has joined #pypy
mattip has joined #pypy
rubdos_ is now known as rubdos
themsay has joined #pypy
themsay has quit [Read error: Connection reset by peer]
themsay has joined #pypy
mvantellingen has quit [Ping timeout: 252 seconds]
pierreg has joined #pypy
mvantellingen has joined #pypy
mvantellingen has quit [Ping timeout: 252 seconds]
pierreg has quit [Quit: Page closed]
pierreg has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
dddddd has joined #pypy
jamadden has joined #pypy
antocuni has quit [Ping timeout: 272 seconds]
mvantellingen has joined #pypy
jcea has joined #pypy
kajetanj has joined #pypy
kajetanj has left #pypy [#pypy]
kajetanj has joined #pypy
kajetanj has quit [Client Quit]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 248 seconds]
lritter has joined #pypy
antocuni has joined #pypy
Masklinn has quit [Ping timeout: 246 seconds]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-lib-python-linux-x86-64/builds/57 [cfbolz: force build, json-decoder-maps]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/6476 [cfbolz: force build, json-decoder-maps]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/5254 [cfbolz: force build, json-decoder-maps]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6252 [cfbolz: force build, json-decoder-maps]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7502 [cfbolz: force build, json-decoder-maps]
Masklinn has joined #pypy
jcea has quit [Remote host closed the connection]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/5254 [cfbolz: force build, json-decoder-maps]
adamholmberg has joined #pypy
jcea has joined #pypy
pierreg has quit [Quit: Page closed]
<kenaan> mattip py3.6 b0cb066e7e1f /pypy/: trivial fixes
Rhy0lite has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/6476 [cfbolz: force build, json-decoder-maps]
<bbot2> Success: http://buildbot.pypy.org/builders/pypy-c-lib-python-linux-x86-64/builds/57 [cfbolz: force build, json-decoder-maps]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7502 [cfbolz: force build, json-decoder-maps]
<arigato> issue 3014: "how could it ever have worked"
<arigato> I think it's caused by the following optimization pass:
<arigato> p95 = new_array(4, descr=<ArrayU 1>)
<arigato> # copy 4 bytes into this new array:
<arigato> # read the initial two bytes as a single operation:
<arigato> i127 = gc_load_indexed_i(p95, 0, 1, 16, 2)
<arigato> call_n(ConstClass(ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed), p96, p95, 0, 0, 4, descr=<Callv 0 rriii EF=2 OS=1>)
<arigato> gets optimized as:
<arigato> p182 = new_array(4, descr=<ArrayU 1>)
<arigato> i235 = gc_load_indexed_i(p182, 0, 1, 16, 2)
<arigato> setarrayitem_gc(p182, 0, i183, descr=<ArrayU 1>)
<arigato> setarrayitem_gc(p182, 1, i186, descr=<ArrayU 1>)
<arigato> setarrayitem_gc(p182, 2, i188, descr=<ArrayU 1>)
<arigato> setarrayitem_gc(p182, 3, i190, descr=<ArrayU 1>)
<arigato> the load has been moved before the four setarrayitem_gc's
<arigato> or more precisely the setarrayitem_gc have been delayed and occur later in the trace
Graypup_ has quit [Quit: ZNC 1.6.1 - http://znc.in]
<mattip> strange
<mattip> since what you have here definitely looks wrong
Graypup_ has joined #pypy
<antocuni> weird
<antocuni> I am using struct.unpack extensively in capnpy and in gambit we have lots of processing reading them 7/24, never found any error
<arigato> it's clearly what occurs, I could write an optimizeopt test
<arigato> note that in pypy, the problem only seems to occur by struct.unpack(.., bytearray(..)[:slice])
<antocuni> ah I see, it's the slice which produces the ll_arraycopy
<arigato> yes, but for some reason the optimizeopt test doesn't require ll_arraycopy
<antocuni> ok, this is a pattern I never use, so it explains why I never encountered the bug
<arigato> maybe it's a pattern where you build a bytearray somehow and then pass it to struct.unpack()
<arigato> ah, if you manipulate a string (and not a bytearray) then you get lots of copystrcontent, which are not reordered
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6252 [cfbolz: force build, json-decoder-maps]
Masklinn has quit [Ping timeout: 246 seconds]
irclogs_io_bot has quit [Remote host closed the connection]
<kenaan> arigo default 4570c3e9b030 /rpython/jit/metainterp/optimizeopt/: Issue #3014 The gc_load family of operations must force the lazy setfields and setarrayitems to occur first
<kenaan> arigo default 7419bb5bbb41 /rpython/jit/metainterp/optimizeopt/heap.py: meh, fix for 4570c3e9b030
irclogs_io_bot has joined #pypy
<kenaan> arigo default 631c5b49bd25 /rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py: Improve the test, still passing
Masklinn has joined #pypy
Masklinn has quit []
<cfbolz> arigato: ouch
<cfbolz> That's really terrible
moei has joined #pypy
antocuni has quit [Ping timeout: 248 seconds]
jamadden has quit [Quit: Leaving.]
<arigato> yes, bad us
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
Ai9zO5AP has joined #pypy
lritter has quit [Remote host closed the connection]
speeder39_ has joined #pypy
mattip has quit [Ping timeout: 244 seconds]
mattip has joined #pypy
Rhy0lite has quit [Quit: Leaving]
xcm has quit [Remote host closed the connection]
lritter has joined #pypy
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 246 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
oberstet has quit [Remote host closed the connection]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
Ai9zO5AP has quit [Quit: WeeChat 2.4]
rubdos has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
rubdos has joined #pypy
lritter has quit [Quit: Leaving]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy