cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
<jredondo> dash: ImportError: No module named 'psycopg2._psycopg'
<jredondo> Same for plyvel._plyvel
<dash> jredondo: yes, for psycopg you can use psycopg2cffi
<jredondo> dash: Yes, thanks. My main problem is now plyvel.
<jredondo> dash: Actually with psycopg2cffi it imports as expected so far. But what could I do with plyvel?
<dash> not sure there's a plyvel version using cffi, you might look into leveldb-py or such
<jredondo> Ok, thank you dash.
jredondo has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 256 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest92476 has quit [Remote host closed the connection]
pf_moore has quit [Quit: Connection closed for inactivity]
TheAdversary has quit [Ping timeout: 240 seconds]
Hasimir has quit [Ping timeout: 248 seconds]
asmeurer has quit [Quit: asmeurer]
jcea has quit [Quit: jcea]
amaury_ has quit [Ping timeout: 240 seconds]
asmeurer has joined #pypy
asmeurer has quit [Quit: asmeurer]
dddddd has quit [Remote host closed the connection]
jamesaxl has joined #pypy
asmeurer has joined #pypy
TheAdversary has joined #pypy
TheAdversary has quit [Ping timeout: 256 seconds]
danchr has quit [Ping timeout: 256 seconds]
danchr has joined #pypy
forgottenone has joined #pypy
mcyprian has joined #pypy
mcyprian has quit [Client Quit]
asmeurer has quit [Quit: asmeurer]
illume has joined #pypy
tayfun26 has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
amaury__ has joined #pypy
LooCfur has joined #pypy
<LooCfur> so I was annoyed that my python 3 code was so slow, did some googling and stumbled on this. What takes minutes in python 3 is taking under 2 seconds in pypy3
<LooCfur> what in the world is wrong with vanilla python that it's so retardedly slow?
<LooCfur> if you guys can python so much faster, why isn't python even trying? I don't get it
<LooCfur> make
<simpson> Yep.
<LooCfur> simpson, do you know what's going on with that? I honestly can't make sense of it
<cfbolz> mattip: ouch, thanks for finding
<cfbolz> mattip: imo it's a symptom of a real jit bug. But we should still just back out that changeset. arigato, do you have an opinion?
Remi_M has joined #pypy
<LooCfur> I see pypy hates recursion too tho:p
<cfbolz> Yup
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheAdversary has joined #pypy
TheAdversary has quit [Ping timeout: 255 seconds]
mattip has quit [Ping timeout: 246 seconds]
amaury__ is now known as amaury
illume has joined #pypy
Hasimir has joined #pypy
Hasimir has quit [Ping timeout: 248 seconds]
energizer has quit [Ping timeout: 246 seconds]
amaury has quit [Read error: Connection reset by peer]
amaury has joined #pypy
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has joined #pypy
amaury has quit [Ping timeout: 240 seconds]
mattip has joined #pypy
<bbot2_> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3786 [mattip: force build, py3.5]
<kenaan> mattip py3.5 83c9f6e4e93b /: more msvc debugging for buildbot failure
mattip has quit [Quit: bye]
illume has joined #pypy
Hasimir has joined #pypy
LooCfur has quit [Ping timeout: 264 seconds]
LooCfur has joined #pypy
Hasimir has quit [Ping timeout: 248 seconds]
inad923 has joined #pypy
inad923 has quit [Ping timeout: 256 seconds]
<kenaan> rlamy rpython-sprint cba6b37e11fc /: Close branch rpython-sprint
<kenaan> rlamy default e4136ea7f1b6 /rpython/: Merged in rpython-sprint (pull request #598) Cleanup + document enforceargs()
TheAdversary has joined #pypy
<hawkowl> *beats head against keyboard*
<hawkowl> okay so I still don't understand what is holding on to this frame
TheAdversary has quit [Ping timeout: 256 seconds]
inad922 has joined #pypy
<kenaan> Raemi guard-compatible 84015df039c9 /rpython/jit/metainterp/optimizeopt/unroll.py: fix missing part of a previous commit 931f5eaed82f Apparently we missed another place where ResumeAtPosit...
oberstet has joined #pypy
<cfbolz> Remi_M: wow
<cfbolz> I'm impressed
<cfbolz> I can take care of the test failures, if you want
<cfbolz> Remi_M, arigato: can I ask how you managed to find it?
<Remi_M> cfbolz: looking at trace trees and seeing that the bridges connected to the wrong places
<Remi_M> so now, on richards, guard_compatible is 20% slower than some default version of pypy
<Remi_M> we're going for a hike soon, so if you want to fix tests while I'm away, feel free :)
<cfbolz> Ok
<Remi_M> also arigato had suspicions about the disabled value-profiling for guard_compatible. That (and possibly suboptimal assembly ) may account for the 20% slowdown
<cfbolz> Right
<cfbolz> Because he suspects there are clashes?
<hawkowl> I have a nasty feeling some frames are holding things and not letting it get GC'd
<cfbolz> It's possible to re-enable the value profiling, but needs extra cleverness
<Remi_M> and if you want to look at traces, here is guard_compat http://vmprof.com/#/397ebf93-f86e-47da-a1e3-465a445d410d/traces
<cfbolz> Thx
<cfbolz> Remi_M: eg the values would have to be the results of the compatibility conditions, as opposed to the map itself
<cfbolz> But maybe just using the map is fine anyway?
<Remi_M> cfbolz: maybe, we didn't think that far :)
<Remi_M> Armin is currently skiing
<cfbolz> Excellent :-)
<kenaan> mattip py3.5 6c7ff533e018 /lib-python/3/distutils/msvc9compiler.py: debug printing fixed?, revert previous commits
<cfbolz> Remi_M: anyway, that was already a huge help, I tried to find this bug for days and days already
<Remi_M> I think Armin's concern was that when a counter for a value reaches the compilation-threshold, then maybe other counters should be reset so that we are not compiling too many bridges too fast. but it's not clear to me right now
<hawkowl> hence holding on to arguments in threads forever
<cfbolz> hawkowl: right, that would indeed be my suspicion, that some code in the thread module is just not careful at all
<hawkowl> hence both not GCing them ever and also failing twisted's test suite
<hawkowl> and it doesn't look like I can reach in to delete the frame?
* Remi_M -> lunch
<hawkowl> if I can find where it's storing it, I can hack around it
<cfbolz> hawkowl: where do you see it creating the frame?
dddddd has joined #pypy
<hawkowl> but I think this is actually a symptom of a memory leak
<cfbolz> (warning, I don't know this code at all)
<hawkowl> cfbolz: I don't see it creating one, but it never releasing one
<hawkowl> as in
<hawkowl> I don't know where in this code it picks up the frame
<cfbolz> so how do you know it's this file?
<hawkowl> but I know it's holding it
<hawkowl> so referants to the object not freed includes a frame, which still has it in the context for some reason
<hawkowl> referants to that frame are thread._local
<hawkowl> so either I am barking up the craziest tree
<hawkowl> or I don't understand how gc works
<hawkowl> ..but weirdly
<hawkowl> it says it is referred to by... a dict? and also a tuple
<cfbolz> hawkowl: can you manage to make a small file that runs quickly that shows the problem? if yes, you could try to run it on an untranslated pypy
<hawkowl> so maybe the thread local is a red herring
<hawkowl> let me see if i can reduce it to not use twisted
<cfbolz> that would be super helpful
<cfbolz> fwiw, my gut feeling still says that you are right and thread.local is at fault
<cfbolz> hawkowl: hm, all this occurs after some thread finished, right?
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hawkowl> well it's supposed to yeah
<hawkowl> but even if i stop and join the threads, doesn't help
<hawkowl> oh what
<hawkowl> this is a race condition
<cfbolz> ?
<hawkowl> this might be an assumption by the test
<hawkowl> yeah it is
<hawkowl> it's a GC bug
<hawkowl> it relies on the GC running after it's freed
<hawkowl> it's supposed to have a test saying "oh this works here" by dumping the result of the weakrefs
<hawkowl> but of course we haven't got rid of it
<hawkowl> ...and so it creates a new reference.
<hawkowl> gc.collect() in the thread callback does it
Remi_M has quit [Quit: See you!]
Remi_M1 has joined #pypy
<hawkowl> this is a dumb test
Remi_M1 has quit [Client Quit]
Remi_M has joined #pypy
Hasimir has joined #pypy
<hawkowl> a dumb test with gc assumptions
<hawkowl> okay so there isn't a leak there, cfbolz
<hawkowl> at least here
Remi_M has quit [Client Quit]
<cfbolz> hawkowl: ok
<hawkowl> cfbolz: thanks
<cfbolz> hawkowl: it was just rubber duck services ;-)
<hawkowl> cfbolz: I mean, yes
<hawkowl> but you also made me inspect _thread.local more
<cfbolz> 👍
jamesaxl has quit [Read error: Connection reset by peer]
Hasimir has quit [Ping timeout: 248 seconds]
lritter has joined #pypy
jamesaxl has joined #pypy
<hawkowl> cfbolz: btw this is the only real test failure on pypy3
<hawkowl> so next twisted release may support pypy3 as a supported platform
<cfbolz> awesome!
<hawkowl> ...not pypy2.7 yet...
<cfbolz> hawkowl: thanks for doing this!
<hawkowl> pypy3 doesn't have the gnarly trash that pypy2.7 has to run
<hawkowl> in twisted, that is
<hawkowl> cfbolz: thanks for pypy3!
<hawkowl> i am real excited
<hawkowl> *leaves CI to run for six thousand years*
raynold has quit [Quit: Connection closed for inactivity]
illume has joined #pypy
codehotter has quit [Ping timeout: 264 seconds]
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kenaan> cfbolz guard-compatible 7825277c4910 /pypy/objspace/std/: re-enable support for immutability tracking of attributes of user-defined instances. This works by piggyb...
<kenaan> cfbolz guard-compatible 689868846245 /rpython/jit/metainterp/compatible.py: fix typo
<kenaan> cfbolz guard-compatible d8319beb1fe4 /rpython/jit/metainterp/test/test_compatible.py: change the test slightly to show the real problem: calls aren't getting removed in bridges
codehotter has joined #pypy
jcea has joined #pypy
Jonno_FTW has quit [Remote host closed the connection]
pf_moore has joined #pypy
TheAdversary has joined #pypy
Hasimir has joined #pypy
Rhy0lite has joined #pypy
inad922 has quit [Ping timeout: 245 seconds]
jredondo has joined #pypy
inhahe has joined #pypy
illume has joined #pypy
inhahe has quit [Ping timeout: 268 seconds]
orion has joined #pypy
orion is now known as Guest30818
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 240 seconds]
amaury has joined #pypy
mcyprian has joined #pypy
marky1991 has joined #pypy
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
illume has joined #pypy
inad922 has joined #pypy
jredondo has quit [Ping timeout: 268 seconds]
jredondo has joined #pypy
amaury has quit [Quit: Konversation terminated!]
amaury has joined #pypy
Remi_M has joined #pypy
Khayman has joined #pypy
Hasimir has quit [Ping timeout: 248 seconds]
Khayman is now known as Hasimir
inad922 has quit [Ping timeout: 264 seconds]
amaury__ has joined #pypy
amaury has quit [Ping timeout: 265 seconds]
dddddd has quit [Ping timeout: 248 seconds]
inad922 has joined #pypy
tayfun26 has quit [Quit: tayfun26]
jredondo has quit [Ping timeout: 240 seconds]
dddddd has joined #pypy
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amaury__ has quit [Quit: Konversation terminated!]
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
<bbot2_> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3786 [mattip: force build, py3.5]
illume has joined #pypy
amaury__ has joined #pypy
amaury__ has quit [Ping timeout: 256 seconds]
marr has quit [Remote host closed the connection]
<bbot2_> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3787 [mattip: force build, py3.5]
lritter has quit [Remote host closed the connection]
<dash> perfect ending
energizer has joined #pypy
<kenaan> standy66 cpyext-py3-instancemethod-attributes a178c81744b1 /pypy/module/cpyext/: [cpyext] Add missing attributes to instancemethod
<kenaan> mattip cpyext-py3-instancemethod-attributes 4800349b3d58 /pypy/doc/whatsnew-pypy3-head.rst: document, close branch to be merged
<kenaan> mattip py3.5 93baaf2e069a /pypy/: merge branch which adds missing dunder-atributes to instancemethods
inad922 has quit [Ping timeout: 240 seconds]
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asmeurer has joined #pypy
mattip has joined #pypy
raynold has joined #pypy
illume has joined #pypy
asmeurer has quit [Quit: asmeurer]
inad922 has joined #pypy
asmeurer has joined #pypy
asmeurer has quit [Client Quit]
inad922 has quit [Ping timeout: 260 seconds]
krono has quit [Quit: Connection closed for inactivity]
asmeurer__ has joined #pypy
marr has joined #pypy
inad922 has joined #pypy
mitsuhiko has quit [Ping timeout: 276 seconds]
dstufft has quit [Excess Flood]
dstufft has joined #pypy
raynold has quit [Ping timeout: 276 seconds]
simpson has quit [Ping timeout: 276 seconds]
simpson has joined #pypy
mitsuhiko has joined #pypy
raynold has joined #pypy
<nanonyme> njs, I guess that kind of makes sense. It makes resource management a bit of a PITA though
marky1991 has quit [Ping timeout: 256 seconds]
asmeurer__ has quit [Quit: asmeurer__]
marky1991 has joined #pypy
<bbot2_> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3787 [mattip: force build, py3.5]
<kenaan> mattip py3.5 016ce1e2ce8b /lib-python/3/distutils/msvc9compiler.py: running vcvarsall.bat is not changing path, try to figure out why
<nanonyme> mattip, what do you mean. PATH?
<mattip> nanonyme: the win32 buildbot is not correctly building cffi modules, since it cannot find cl.exe
<mattip> nanonyme: in order to find cl.exe, it needs to run a file called vcvarsall.bat which modifies the os.eviron['PATH'] to include cl.exe
<bbot2_> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3788 [mattip: force build, py3.5]
<mattip> for some reason this is not happenning, so I am trying to remotely debug it with print statements
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inhahe has joined #pypy
inhahe_ has joined #pypy
inad922 has quit [Ping timeout: 260 seconds]
inhahe has quit [Ping timeout: 240 seconds]
marky1991 has quit [Ping timeout: 268 seconds]
marky1991 has joined #pypy
jredondo has joined #pypy
amaury__ has joined #pypy
tbodt has joined #pypy
amaury has joined #pypy
amaury has quit [Client Quit]
amaury has joined #pypy
amaury__ has quit [Ping timeout: 256 seconds]
Remi_M has quit [Ping timeout: 245 seconds]
<nanonyme> mattip, any luck?
mattip has quit [Ping timeout: 256 seconds]
amaury__ has joined #pypy
amaury has quit [Quit: Konversation terminated!]
illume has joined #pypy
amaury__ has quit [Ping timeout: 256 seconds]
lritter has joined #pypy
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
amaury__ has joined #pypy
inhahe__ has quit [Ping timeout: 240 seconds]
inhahe__ has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
marky1991 has quit [Ping timeout: 260 seconds]
marky1991 has joined #pypy
amaury__ has quit [Quit: Konversation terminated!]
amaury__ has joined #pypy
__pv_ has joined #pypy
amaury__ has quit [Ping timeout: 265 seconds]
__pv_ has quit [Quit: leaving]
__pv has joined #pypy
jredondo has quit [Quit: jredondo]
jredondo has joined #pypy
jredondo has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Quit: WeeChat 2.0.1]
Remi_M has joined #pypy
illume has joined #pypy
illume has quit [Client Quit]
<kenaan> mattip py3.5 b13c7b3ad6ee /lib-python/3/distutils/msvc9compiler.py: fix
antocuni has joined #pypy
<bbot2_> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3788 [mattip: force build, py3.5]
<bbot2_> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3789 [mattip: force build, py3.5]
forgottenone has quit [Read error: Connection reset by peer]
mcyprian has left #pypy [#pypy]
mattip has joined #pypy
hniksic has joined #pypy
asmeurer__ has joined #pypy
Remi_M has quit [Ping timeout: 256 seconds]
asmeurer__ has quit [Quit: asmeurer__]
marky1991 has quit [Read error: Connection reset by peer]
asmeurer has joined #pypy
asmeurer has quit [Quit: asmeurer]
Guest30818 has quit [Remote host closed the connection]
mcyprian has joined #pypy
mcyprian has left #pypy [#pypy]
inhahe has joined #pypy
inhahe_ has quit [Ping timeout: 256 seconds]
asmeurer__ has joined #pypy
lritter has quit [Quit: Leaving]
oberstet has quit [Ping timeout: 264 seconds]
asmeurer__ has quit [Quit: asmeurer__]
<kenaan> rlamy py3tests 47c8f77a9d6f /pypy/tool/pytest/: Move app-level AST rewriting to some unimportable location and remove more imports
asmeurer__ has joined #pypy
amaury__ has joined #pypy
mattip has quit [Ping timeout: 246 seconds]
mattip has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
mattip has quit [Ping timeout: 246 seconds]
asmeurer__ has joined #pypy
<kenaan> rlamy py3tests 86424558bdc9 /pypy/tool/pytest/ast-rewriter/ast_util.py: Remove costly collections import from ast_util
orion has joined #pypy
orion is now known as Guest34775
Guest34775 has quit [Read error: Connection reset by peer]
oberstet has joined #pypy
antocuni has quit [Ping timeout: 255 seconds]
asmeurer__ has quit [Quit: asmeurer__]
asmeurer__ has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]