cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "nothing compares to the timeshifter, my personal polar expedition in software" - pedronis
cloudyplain has quit [Remote host closed the connection]
drolando has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kenaan> mjacob py3.5 8966e708ff7c /pypy/doc/test/test_whatsnew.py: Update test_whatsnew for renamed py3k -> py3.5.
<kenaan> mjacob py3.5 d21f1c2cb4f9 /pypy/doc/whatsnew-pypy3-head.rst: Seems like I forgot to remove this when merging default.
oberstet has quit [Ping timeout: 248 seconds]
cloudyplain has joined #pypy
<nedbat> Alex_Gaynor: thanks for the implicit support in the commit message :)
<Alex_Gaynor> nedbat: previous iterations of that commit message exhibited more frustration
<nedbat> Alex_Gaynor: i remain baffled that people argued against disabling the optimizer
<Alex_Gaynor> nedbat: Our situation is particularly exhausting because it's flaky, because pypy's optimizer does _not_ affect coverage, but our coverage merger apparently sometimes loses's pypy's coverage
<nedbat> coverage merger?
<Alex_Gaynor> codecov.io, it receives all of our test job coverage reports nad merges them, but it has bugs
<nedbat> i see
<Alex_Gaynor> Anyways, yes, very frustrating and I can't believe folks have argued against it for 9 years
kawing-chiu has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
pilne has quit [Quit: Quitting!]
marky1991 has joined #pypy
<kawing-chiu> Hi. It seems that there is some new progress on cppyy recently (switching to use cling instead of Reflex etc.).
<kawing-chiu> What is the status of this project? Is there any plans for it?
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
ArneBab has joined #pypy
ArneBab_ has quit [Ping timeout: 240 seconds]
cloudyplain has joined #pypy
ronan has joined #pypy
ronan has quit [Quit: Ex-Chat]
ronan__ has joined #pypy
ronan__ has quit [Ping timeout: 240 seconds]
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
jcea has quit [Quit: jcea]
marky1991 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #pypy
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
cloudyplain has joined #pypy
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Remote host closed the connection]
tnorth has joined #pypy
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
amaury has quit [Ping timeout: 240 seconds]
tnorth has quit [Ping timeout: 255 seconds]
<LarstiQ> kawing-chiu: best asked on the mailing list, Wim isn't on irc much afaik
forgottenone has joined #pypy
TheAdversary has quit [Ping timeout: 255 seconds]
kirma has quit [Ping timeout: 246 seconds]
forgottenone has quit [Ping timeout: 248 seconds]
raynold has quit [Quit: Connection closed for inactivity]
kawing-chiu has quit [Remote host closed the connection]
kawing-chiu has joined #pypy
drolando has quit [Remote host closed the connection]
amaury has joined #pypy
drolando has joined #pypy
cloudyplain has joined #pypy
cloudyplain has quit [Ping timeout: 240 seconds]
cloudyplain has joined #pypy
cloudyplain has quit []
amaury has quit [Ping timeout: 255 seconds]
kenaan has quit [Read error: Connection reset by peer]
<lesshaste> hi all
arigato has joined #pypy
arigato has quit [Quit: Leaving]
marr has joined #pypy
cstratak has joined #pypy
kirma has joined #pypy
cstratak has quit [Quit: Leaving]
cstratak has joined #pypy
oberstet has joined #pypy
ronan has joined #pypy
antocuni has joined #pypy
kenaan has joined #pypy
<kenaan> antocuni cpyext-avoid-roundtrip ccf12107e805 /pypy/module/cpyext/: WIP: copy the tupleobject freelist logic from CPython, and whack around until we can use it from ...
<kenaan> antocuni cpyext-avoid-roundtrip a79aad3bfd78 /pypy/module/cpyext/test/test_api.py: add a proper repr for this class, else its repr() is StdObjSpace, which is veeeery confusing. Hoo...
<kenaan> antocuni cpyext-avoid-roundtrip aab2478d4f85 /pypy/module/cpyext/test/test_tupleobject.py: call PyTuple_New from here
<kenaan> antocuni cpyext-avoid-roundtrip 226ccce93e52 /pypy/module/cpyext/test/test_api.py: merge heads"
<kenaan> antocuni extradoc af8c66a99b6f /blog/draft/2017-10-cape-town-report.rst: don't forget this
ronan has quit [Read error: Connection reset by peer]
ronan has joined #pypy
jamesaxl has quit [Ping timeout: 255 seconds]
kawing-chiu has quit [Quit: Leaving]
ronan has quit [Read error: Connection reset by peer]
cstratak has quit [Quit: Leaving]
cstratak has joined #pypy
antocuni has quit [Ping timeout: 255 seconds]
jamesaxl has joined #pypy
danieljabailey has quit [Quit: ZNC 1.6.4+deb1 - http://znc.in]
danieljabailey has joined #pypy
arigato has joined #pypy
<kenaan> arigo extradoc d93bb9e6a71f /planning/cpyext.txt: more to-do items
<kenaan> arigo unicode-utf8 e3cdc0f10924 /pypy/objspace/std/dictmultiobject.py: Re-enable this, seems to work fine
<arigato> fijal: why DecodeWrapper and EncodeWrapper? the checkin message is particularly unhelpful
<tos9> arigato: hey -- you are still around right?
<arigato> hi! yes
<tos9> arigato: do you have cell service / plans for dinner rest of the week?
<arigato> cell service: yes. dinner plans for tonight: no
<tos9> 2 good answers
<tos9> arigato: send me your #, we're in kommetjie so a bit far from town but maybe we can figure somethin out
<tos9> and jeroud, unless froztbyte already is loopin' you in
<tos9> sounds like yeah from #techcrap messages :D
<jerith> Let me know when and where.
<tos9> jerith: send me # too?
<jerith> See PM. :-)
<kenaan> arigo unicode-utf8 13a4b012e64e /pypy/: Random in-progress clean-up
Guest28073 has quit [Ping timeout: 248 seconds]
arigato has quit [Quit: Leaving]
marvin has joined #pypy
marvin is now known as Guest82844
ArneBab has quit [Read error: Connection reset by peer]
ArneBab has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-macosx-x86-32/builds/1282 [Mostafa Shahdadi: force build]
<bbot2> Exception: http://buildbot.pypy.org/builders/own-macosx-x86-32/builds/1282 [Mostafa Shahdadi: force build]
<bbot2> Started: http://buildbot.pypy.org/builders/own-macosx-x86-32/builds/1283 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Exception: http://buildbot.pypy.org/builders/own-macosx-x86-32/builds/1283 [mihaid: force build, py3.5-sendmsg-recvmsg]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
arigato has joined #pypy
arigato has quit [Ping timeout: 255 seconds]
arigato has joined #pypy
TheAdversary has joined #pypy
yuyichao has quit [Ping timeout: 255 seconds]
<kenaan> arigo unicode-utf8 cb0586abb276 /pypy/interpreter/: Implement and test these
arigato has quit [Quit: Leaving]
yuyichao has joined #pypy
cstratak has quit [Quit: Leaving]
<nedbat> When i run my test suite under pypy3, I get random ResourceWarnings about unclosed files. They appear in different places on different runs. Once it was on this line: https://github.com/nedbat/coveragepy/blob/master/coverage/python.py#L28 . Is there a way to make these warnings reliable? Should I just disable them?
lritter has joined #pypy
cstratak has joined #pypy
raynold has joined #pypy
kolko has quit [Ping timeout: 260 seconds]
arigato has joined #pypy
<kenaan> arigo unicode-utf8 f7ce6bd07d6a /pypy/objspace/std/listobject.py: Re-enable this
oberstet has quit [Ping timeout: 264 seconds]
mvantellingen has quit [Read error: Connection reset by peer]
mvantellingen has joined #pypy
arigato has quit [Ping timeout: 258 seconds]
tnorth has joined #pypy
arigato has joined #pypy
arigato has quit [Client Quit]
<gsnedders> nedbat: I presume not, given they happen when GC is run and the GC is AFAIK non-determinsitic?
<kenaan> arigo unicode-utf8 28266792f75a /pypy/module/_codecs/interp_codecs.py: Re-enable this
<kenaan> arigo unicode-utf8 4ab3528a9b0c /rpython/rlib/runicode.py: Revert runicode to be exactly like in default
<kenaan> arigo unicode-utf8 6c1d3144913e /pypy/module/_codecs/interp_codecs.py: Another fix by reverting this piece of code to default
<nedbat> gsnedders: how did you determine that they happen when the gc is run? Seems like the message would be about an object being reclaimed while open, but these can't be being reclaimed yet, right?
oberstet has joined #pypy
<gsnedders> nedbat: my memory is the warnings happen when the object's destructor is called and the underlying resource isn't closed
<gsnedders> nedbat: and you can definitely reclaim objects where the underlying resource is still open; consider def f(): x = open("foo"). after calling f, the file object can be reclaimed as its unreachable despite the resource still being open, and you'd get a wraning then
<gsnedders> nedbat: (note CPython also uses the object's destructor for this, but because of refcounting it's mostly pretty predictable when the warning is triggered)
<exarkun> gsnedders read the linked code
<kenaan> arigo default 926092bd058d /pypy/module/_codecs/interp_codecs.py: Simplification (and speed-up)
<gsnedders> exarkun: khjdfgkjhdfgkjh I failed to notice the link
* gsnedders facepalms
<gsnedders> nedbat: soz!
<LarstiQ> nedbat: how reproducible is to get a warning?
<nedbat> LarstiQ: seems like every run gets me a warning, but in a different place each time.
<LarstiQ> as a layperson that looks like a somewhat scary bug to me
* LarstiQ tries to see which code raises these ResourceWarnings
<nedbat> LarstiQ: these runs don't include the one that pointed to the line i linked earlier: https://github.com/nedbat/coveragepy/blob/master/coverage/python.py#L28
<gsnedders> nedbat: is the case of it within the with block the same fd as f wraps in that line?
<LarstiQ> nedbat: right, but that makes suspect the (file, line) pairs are a bit random
<kenaan> arigo unicode-utf8 194830b5fc5a /: hg merge default
<nedbat> gsnedders: I don't know how to know if it's the same fd: ResourceWarning: unclosed file <_io.FileIO fd=11 mode='rb' closefd=True>
<nedbat> gsnedders: it's not 0, 1, or 2, so it's something that the program opened i guess.
<gsnedders> LarstiQ: that's all consistent with it being triggered by the GC, at least
<LarstiQ> gsnedders: hmm, could be.
<nedbat> gsnedders, LarstiQ: what can I do to help track this down?
<nedbat> btw, this is PyPy 3.5.3 (pypy 5.9.0.beta.0).
<gsnedders> nedbat: do you get a similar warning on CPython BTW?
<nedbat> gsnedders: no
<LarstiQ> and I don't suppose pypy2 is helpful here? (Does it even have ResourceWarnings?)
<gsnedders> (Not for unclosed files)
<nedbat> today, it looks like every pypy3 run produces a warning, but in different places each time.
<exarkun> Running with strace would probably tell you which file the warning relates to
<exarkun> (unless running with strace changes the behavior so as to eliminate the warnings)
<nedbat> gsnedders: seems like it's always fd 10 or 11
<LarstiQ> pypy/module/_io/interp_fileio.py has an 'unclosed file', the other two possibly relevant ones are in lib-python/3/asyncore.py and lib-python/3/_pyio.py
<LarstiQ> actually, pypy2.7 has -X track-resources it seems
<nedbat> LarstiQ: looks like pypy2 doesn't have ResourceWarning, just like CPython 2 doesn't.
<LarstiQ> nedbat: could you try with -X track-resources?
* LarstiQ thinks it's W_FileIO._dealloc_warn_w
<nedbat> LarstiQ: is there a way to do that with an envvar?
jacob22 has joined #pypy
<LarstiQ> nedbat: does not look like it. It calls `sys.pypy_set_track_resources(True)` so you could try that by hand. But if you're asking for an env var, not sure that is easier
* nedbat tries it
jacob22_ has quit [Ping timeout: 248 seconds]
* LarstiQ confirms that generates resource warnings in pypy2 console
<nedbat> LarstiQ: setting that seems to generate no warnings for me in pypy2
<LarstiQ> nedbat: run a gc.collect()
<nedbat> LarstiQ: where/when?
<LarstiQ> nedbat: don't know if there is a particular good spot, but at least once to force the reaping of unreferenced open files
<nedbat> LarstiQ: i added a .collect() after each test, still no warnings on pypy2
<LarstiQ> nedbat: ok, starting to sound like a pypy3 specific issue
<nedbat> LarstiQ: fun: pypy3 doesn't have that sys. entry
adamholmberg has joined #pypy
<nedbat> LarstiQ: adding the gc.collect() on pypy3 doesn't change the behavior (one warning each time, random)
<LarstiQ> nedbat: on pypy2 I got a traceback, do you have fuller ones than you pasted?
<nedbat> LarstiQ: that pastebin has the full output
<nedbat> LarstiQ: this is pytest under tox, with xdist, so there's plenty that could be interfering
cstratak has quit [Ping timeout: 240 seconds]
<LarstiQ> nedbat: http://pypy.readthedocs.io/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies says "The warning will contain the stack trace of the position where the file or socket was created, to make it easier to see which parts of the program don’t close files explicitly."
<LarstiQ> nedbat: so at this point I feel comfortable labelling it a pypy3 bug, and my next step would be to try and get it reproducable enough for a bug report
<nedbat> LarstiQ: i tried using the warnings module to turn the warning into an error. No warning! :(
<nedbat> LarstiQ: is "run the coverage.py test suite" reproducible enough? Or do we need to make it smaller?
<LarstiQ> nedbat: no need to make smaller afaik, just 'git clone ..; <command to run test suite>'
<nedbat> LarstiQ: do you want me to write a bug? On bitbucket?
adamholmberg has quit [Remote host closed the connection]
<LarstiQ> nedbat: or I can do that if you give me the raw ingredients
<nedbat> LarstiQ: (http://coverage.readthedocs.io/en/coverage-4.4.1/contributing.html#getting-the-code) clone https://bitbucket.org/ned/coveragepy (there's github too if you prefer); pip install -r requirements/dev.pip; tox -e pypy3
<LarstiQ> ah, hg is better even :)
<nedbat> we try to please
tbodt has joined #pypy
syntaxman has joined #pypy
<syntaxman> I've been trying to run the translation on a linode, but it has been killed twice, I think by a linode admin.
<syntaxman> Is it possible to restart it from where it left off?
<LarstiQ> syntaxman: no/maybe
<LarstiQ> syntaxman: if it gets killed in the C compilation phase, then yes (if you still have the C code)
<LarstiQ> syntaxman: but in the sages before then, no
<nedbat> LarstiQ: I'll write the bitbucket ticket, unless you've started.
<LarstiQ> nedbat: I'm running tox -e pypy3
* LarstiQ is fine either way
* nedbat is writing
<LarstiQ> collections.abc:773: ResourceWarning: unclosed file <_io.FileIO fd=10 mode='rb' closefd=True>
<LarstiQ> indeed
<nedbat> LarstiQ: yay!
<nedbat> LarstiQ: it's mostly fd 10, but i've seen 11 also
marky1991 has joined #pypy
<pjenvey> are you guys aware of -X track-resources
marky1991 has quit [Remote host closed the connection]
<LarstiQ> pjenvey: yeah
<pjenvey> (i haven't really read this conversation, just throwing it out there)
<nedbat> pjenvey: we played with sys.track_resources_whatever(True)
marky1991 has joined #pypy
<LarstiQ> nedbat: did we (you) try -X track-resources only on pypy2 or pypy3 too?
<LarstiQ> in case it does more than what cpython defines
<nedbat> LarstiQ: i wasn't sure how to use -X through tox/etc, so i used the sys function, which isn't on pypy3
<LarstiQ> ah right
* LarstiQ looks at the pypy3 code
<LarstiQ> hmm, no code hits
<syntaxman> As it turns out the OOM killer killed it. Is this even avoidable? (4GB of RAM)
<LarstiQ> syntaxman: maybe with enough swap, though you're trading that for time
pilne has joined #pypy
marr has quit [Ping timeout: 248 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cstratak has joined #pypy
cstratak has quit [Remote host closed the connection]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
antocuni has joined #pypy
mattip has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
forgottenone has joined #pypy
antocuni_ has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
mattip has quit [Ping timeout: 255 seconds]
marky1991 has quit [Ping timeout: 240 seconds]
marky1991 has joined #pypy
tnorth has quit [Ping timeout: 246 seconds]
<syntaxman> I'm confused... terminal output stopped (assertion error) right after the c compile began. Pdb+ was killed. But top shows that the c compile is still going on.
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
<kenaan> wlav cppyy-packaging eb3d59d5546b /pypy/module/_cppyy/: improve consistency PyPy <-> CPython
marr has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amaury has joined #pypy
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
syntaxman has quit [Quit: leaving]
antocuni_ has quit [Ping timeout: 240 seconds]
mattip has joined #pypy
amaury has quit [Ping timeout: 255 seconds]
erob has joined #pypy
<erob> hi
<erob> AttributeError: 'builtin-code' object has no attribute 'co_code' : is this a cython or pypy error ?
<erob> seems like pypy has problems with @contextmanager decorators..
marky1991 has quit [Ping timeout: 240 seconds]
marky1991 has joined #pypy
<mattip> erob: hi. cython and pypy is a work in progress, you definitely want to upgrade both to latest versions
<mattip> cython 0.27.1 and pypy 5.9
<erob> cool :)
<mattip> not saying that will solve all the problems, but maybe
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
<erob> trying to build pypy 5.9.0 with python 2.7.13, got ImportError: no module name pycparser
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
redj_ has joined #pypy
redj has quit [Ping timeout: 246 seconds]
marky1991 has quit [Ping timeout: 240 seconds]
marky1991 has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
marky1991 has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
yuyichao has quit [Ping timeout: 255 seconds]
<mattip> erob: that is a required pip install, but do you really want to build pypy?
<mattip> if the official builds do not work, you could use https://github.com/squeaky-pl/portable-pypy
mattip has quit [Quit: Leaving]
adamholmberg has joined #pypy
yuyichao has joined #pypy
adamholm_ has joined #pypy
adamholmberg has quit [Read error: Connection reset by peer]
adamholm_ has quit [Remote host closed the connection]