cfbolz 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 | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
jcea has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
CrazyPython has quit [Ping timeout: 258 seconds]
jcea has joined #pypy
CrazyPython has joined #pypy
<kenaan> antocuni dummy-importlib c37f7da0a5ee /pypy/module/_dummy_importlib/: make it possible to use __import__ directly, and use a dummy package to run tests instead of trying to i...
<kenaan> antocuni dummy-importlib 0deaee5041b4 /pypy/module/_dummy_importlib/: tweaks
<kenaan> antocuni dummy-importlib 98132b9252a9 /pypy/module/_dummy_importlib/: add enough logic to import packages and modules inside packages
<kenaan> antocuni dummy-importlib bc01efbafe27 /pypy/module/_dummy_importlib/: import submodules with from ... import
<kenaan> antocuni dummy-importlib2 8535b9830858 /: try again with another approach
<kenaan> antocuni dummy-importlib2 ad9feca07a5b /pypy/: start a branch in which to introduce a _dummy_importlib module: currently, all applevel tests use _froz...
<kenaan> antocuni dummy-importlib2 5e84006ee933 /pypy/config/pypyoption.py: fix comment
<kenaan> antocuni dummy-importlib2 fdb244352422 /pypy/module/_dummy_importlib/interp_import.py: WIP: remove this file
<kenaan> antocuni dummy-importlib2 e566fbc85941 /pypy/module/_dummy_importlib/interp_import.py: copy the content of pypy/module/imp/importing.py from default (rev 2e8c4536e416)
<kenaan> antocuni dummy-importlib2 37239125314a /pypy/module/_dummy_importlib/: tweak the code until it works: remove the references to lonepycfiles and make MODULES_THAT_ALWAYS_SHADO...
<kenaan> antocuni dummy-importlib2 3c435619e333 /pypy/module/_dummy_importlib/: add a nice error message in case something goes wrong. Add tests to check that we are actually using th...
<kenaan> antocuni dummy-importlib 348abe425ff2 /: close dead branch
CrazyPython has quit []
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5033 [mattip: force build, release-pypy3.6-v7.x]
jcea has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
jcea has joined #pypy
dansan has quit [Quit: The C preprocessor is a pathway to many abilities some consider to be unnatural.]
jcea has quit [Read error: Connection reset by peer]
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
_whitelogger has joined #pypy
<kenaan> mattip default bc3c916d5dd1 /.hgtags: Added tag release-pypy2.7-v7.3.0rc3 for changeset c124c11a5921
<kenaan> mattip default f56dfbc9ded2 /.hgtags: Removed tag release-pypy3.6-v7.2.0rc3
adamholmberg has joined #pypy
<mattip> sorry to anyone who automatically triggers builds based on tags, release-pypy3.6-v7.2.0rc3 was simply wrong
adamholmberg has quit [Ping timeout: 265 seconds]
<mattip> grr, aarch64 failed to translate at the same point as always
<mattip> Exception: 'no_collect' function can trigger collection: <function _siphash24
<mattip> analyze_direct_call((rpython.rlib.rsiphash:216)_half_round) is getting a malloc in the return value
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6679 [mattip: force build, release-pypy3.6-v7.x]
_whitelogger has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/6679 [mattip: force build, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/251 [mattip: force build, release-pypy3.6-v7.x]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 258 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Read error: Connection reset by peer]
dddddd has quit [Ping timeout: 268 seconds]
xcm has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
wleslie has quit [Quit: ~~~ Crash in JIT!]
jvesely has quit [Ping timeout: 258 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
jvesely has joined #pypy
senyai has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
<antocuni> ok, so I spent the last couple of days trying to get rid of importlib/_frozen_importlib during tests because the profiles showed that we spent too much time there (in particular in cpyext tests)
<antocuni> ... and now, the cpyext tests are as slow as before :(
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1213 [mattip: force build, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7898 [antocuni: force build, dummy-importlib2]
adamholmberg has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
marky1991_2 has quit [Remote host closed the connection]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/251 [mattip: force build, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/7898 [antocuni: force build, dummy-importlib2]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
jcea has joined #pypy
<antocuni> ah, it seems that my branch helps a little with test performance: on default, the 'pytest' step takes ~48 minutes on the own-linux-x86-64 builder
<antocuni> on py3.6, 1h7min
<antocuni> on dummy-importlib2, 55 minutes
<antocuni> although there are failures here and there, so the final timing might be different
<__pv> the latest pypy3 nightly tbz does no longer contains support libs (*/lib/libncursesw* etc), compare contents of http://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-98329-574325fb0c26-linux64.tar.bz2 and http://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-98316-010bdf9668e6-linux64.tar.bz2
<__pv> just noting it here in case it was not intentional
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
inhahe has quit []
marky1991 has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
adamholmberg has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
dddddd has joined #pypy
dmalcolm has quit [Ping timeout: 268 seconds]
dmalcolm has joined #pypy
jcea has quit [Quit: jcea]
dmalcolm has quit [Remote host closed the connection]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
<antocuni> one update on my quest to understand why cpyext tests are so slow on py3.6: it seems a huge factor is "from pickle import Picker" inside cpyext.moduledef.startup: it takes ~2s on default and ~30s on 3.6 😱
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
Ai9zO5AP has joined #pypy
<michelp> is this an appropriate channel to ask cffi questions?
<simpson> Yes.
<kenaan> rlamy py3.6 67ecbe59924d /pypy/module/pypyjit/test_pypy_c/: Fix some pypyjit tests
<michelp> ok great, I'm working on a library called pygraphblas https://github.com/michelp/pygraphblas/
<michelp> it uses cffi extensively, I'm working on supporting a feature in GraphBLAS called "User Defined Types", which allows users to define a new matrix element type, and new semiring operations for that type. I'm using numba to jit compile the functions that become the semiring operations, that works well but is pretty low level for my users, I'm hoping to come up with a higher level approach
<michelp> sec i'll post a gist
<michelp> there's two definitions at the top, one is the "Record" style from the numba docs, and the other is a C string literal that is cdef'ed. What I'd like is to be able to call ffi.new() and construct from the Record object, but I can't seem to do that, I have to cdef the string and then call ffi.new with the type as a string. is there a way to use BF_tuple instead of the string to define the struct that ffi.new creates?
<michelp> this might cross over more as a numba question, so I'm fine going off asking somewhere else :)
<ronan> antocuni: maybe the main issue isn't importlib itself, but the fact that there's a big import cycle that makes up half the stdlib
<michelp> my long goal is for my users to be able to define a new type and semiring operations as a single class, that programmatically constructs the underlying type Record and jit compiled functions
Rhy0lite has quit [Quit: Leaving]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
mattip_ has joined #pypy
<mattip_> __pv: it was a problem with the new buildbot, should be fixed in the next nightly
mattip_ has quit [Remote host closed the connection]
Dejan has quit [Quit: Leaving]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jvesely has quit [Quit: jvesely]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
rubdos has quit [Ping timeout: 245 seconds]
marky1991 has quit [Remote host closed the connection]
adamholmberg has quit [Remote host closed the connection]
<antocuni> ronan: yes, that's what I am concluding
<antocuni> importlib seems to be a bit slower than the default's importing.py, but the actual problem is that in py3 we import many more modules
<antocuni> I am thinking of just adding a --cpyext-fast pytest option which disables a bunch of things (like support for pickling and LeakChecker, which also force the importing of many modules)
<antocuni> it would not make the nightly tests any faster, but it would probably be very useful for local developmen