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
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6706 [ronan: force build, py3.6]
<kenaan> wlav cppyy-packaging 0df7710aad8b /pypy/module/_cppyy/: naming consistency w/ CPython/cppyy
<kenaan> wlav cppyy-packaging edb9132eda33 /pypy/module/_cppyy/test/: fix C++ warnings
<kenaan> wlav cppyy-packaging b74ad9bd1274 /: merge default into branch
<kenaan> wlav cppyy-packaging 60b72b97202f /: merge default into branch
<kenaan> wlav cppyy-packaging e98cf77f5b72 /pypy/module/_cppyy/: upgrade to backend 0.6.0
<kenaan> wlav cppyy-packaging 55cdebafb2de /pypy/module/_cppyy/interp_cppyy.py: translator fix
nimaje has quit [Remote host closed the connection]
nimaje has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jcea has quit [Quit: jcea]
tbodt has joined #pypy
ronan has quit [Ping timeout: 248 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
_habnabit has quit [Quit: ZNC - http://znc.sourceforge.net]
_habnabit has joined #pypy
fryguybo1 has joined #pypy
fryguybob has quit [Ping timeout: 268 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/5820 [ronan: force build, py3.6]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Ping timeout: 248 seconds]
dddddd has quit [Read error: Connection reset by peer]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/841 [mattip: force build, release-pypy2.7-6.x]
lazka has joined #pypy
_whitelogger has joined #pypy
fujisan3KFI0M has joined #pypy
<fujisan3KFI0M> https://www.youtube.com/user/l0de/live IS POPPIN HOT RIGHT NOW STILL GOING!! CALL 315-505-4666. IRC.EFNET.ORG #lrh
<fujisan3KFI0M> https://www.youtube.com/user/l0de/live IS POPPIN HOT RIGHT NOW STILL GOING!! CALL 315-505-4666. IRC.EFNET.ORG #lrh
<fujisan3KFI0M> _whitelogger lazka fryguybo1 _habnabit nimaje irclogs_io_bot norox zmt00 energizer pchiusano avakdh idnar TheAdversary Hasimir inhahe_ pepesza- demonimin mwhudson commandoline gclawes dustinm cjwelborn jacob22_ ulope tazle nanonyme Ganwell SunDwarf lapinot michaelgreene [Arfrever] redj ctismer Graypup_ abvi[m] yuvipanda bendlas dash agates pulkitg Civil [0__0] alcarithemad ronny mjacob_ infinite cadr_ danieljabailey mvantellingen bbot2 dan- glyph cerid
fujisan3KFI0M has quit [Client Quit]
oberstet has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3860 [ronan: force build, py3.6]
lazka has quit [Quit: Leaving]
marr has joined #pypy
inhahe_ has quit [Ping timeout: 264 seconds]
asmeurer_ has joined #pypy
kenaan has quit [Read error: No route to host]
ronan has joined #pypy
energizer has quit [Quit: Leaving]
lazka has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
ronan has quit [Ping timeout: 248 seconds]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1759 [ronan: force build, py3.6]
inhahe_ has joined #pypy
inhahe has quit [Ping timeout: 263 seconds]
lazka has quit [Quit: Leaving]
ronan has joined #pypy
jacob22__ has joined #pypy
jacob22_ has quit [Ping timeout: 256 seconds]
norox has quit [Quit: I'm quitting]
norox has joined #pypy
norox has quit [Remote host closed the connection]
norox has joined #pypy
dddddd_ has joined #pypy
dddddd_ is now known as dddddd
mcyprian has joined #pypy
inhahe_ has quit [Ping timeout: 260 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3860 [ronan: force build, py3.6]
fryguybob has joined #pypy
fryguybo1 has quit [Ping timeout: 248 seconds]
lesshaste has joined #pypy
kenaan has joined #pypy
<kenaan> mwjackson py3.6 5781b52fc50f /: (ronan, mwjackson) added kwargs-only for sorted()
jcea has joined #pypy
lazka has joined #pypy
BotoX has joined #pypy
<BotoX> Hi, I want to switch from CPython + uWSGI + gevent to PyPy3
<BotoX> Installed uwsgi and gevent with pip, however on pypy uwsgi doesn't detect gevent
<simpson> BotoX: uwsgi can be a little hateful and picky, or at least that was the case a few years ago. Since you're just prototyping for now, maybe try PyPy with a simpler WSGI server first? But TBH I don't know which simple WSGI servers work on Python 3, so I'm really just assigning you more research, sorry. :T
<BotoX> This is on a production website with thousands of requests per second, I was hoping to lower the server load with PyPy
<BotoX> It works with gunicorn and gevent
<BotoX> I should probably try building uwsgi myself
<simpson> Sure. You might find that PyPy and a pure-Python WSGI server can perform as well as your production uwsgi. I dunno, just a possible way to move forward.
<kenaan> mwjackson py3.6 86478b4c1d71 /lib-python/3/test/test_platform.py: (ronan mwjackson) fixed platform tests that utilise sys._git we are not reverting the entire migration to _git i...
<BotoX> so the issue is that when installing gevent with pypy it only builds the pypy plugin
<BotoX> so I don't have the gevent plugin available at all
<BotoX> if I try to build uwsgi with pypy and gevent I get loads of undefined references like: _PyPy_Dealloc
<BotoX> I am using "Squeaky's portable Linux binaries.", do those come with the required libs for linking?
<BotoX> managed to build it, but the uwsgi plugin crashes haha
<BotoX> screw uwsgi I guess
<BotoX> *the gevent plugin crashes
<tos9> BotoX: there's no real advantage to using uWSGI, yeah.
<tos9> If you do use it though, make sure you're using the PyPy driver, though that's now somewhat old.
<BotoX> uWSGI seems to perform better under load than gunicorn according to benchmarks
<tos9> BotoX: I've run gigantic prod deployments on PyPy+gunicorn for quite a few years.
<tos9> BotoX: Those benchmarks never use PyPy
<BotoX> alright
<BotoX> yeah yeah that's a given
<BotoX> uwsgi + pypy3 works fine
<BotoX> but not with gevent
<BotoX> it doesn't even build gevent by default
<BotoX> I successfully built it with gevent now and the gevent plugin segfaults
<BotoX> not going to sink more time into it, there are 400 issues open on uwsgi's github
<BotoX> and 65 pull requests too...
lazka has quit [Quit: Leaving]
mcyprian has quit [Quit: Leaving.]
asmeurer has joined #pypy
energizer has joined #pypy
asmeurer has quit [Ping timeout: 256 seconds]
illume has joined #pypy
lritter has joined #pypy
tbodt has joined #pypy
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1759 [ronan: force build, py3.6]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
asmeurer has joined #pypy
tbodt has joined #pypy
lritter has quit [Remote host closed the connection]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
illume has joined #pypy
kipras`away is now known as kipras
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lazka has joined #pypy
<lazka> who is right, pypy or cpython? [][::-1] = [42]
<lazka> I'd say pypy
<lazka> :)
mattip has joined #pypy
lazka has quit [Quit: Leaving]
<mattip> NumPy merged PR #9998, so there should not be any more refcounting issues with nditer or anywhere else inside NumPy
<ronan> yay! congrats!
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
<mattip> ronan: still sprinting?
<ronan> mattip: yes, though I'm alone now
<ronan> (and waiiiitiiing for pandas to compile)
<mattip> thanks for the fix btw
<ronan> it's feels like just a hack though
<mattip> yes, not clear why the attach is not working correctly
<ronan> it's because the classes are pure-Python
<ronan> I'm not sure hanging a typedescr off a user class makes sense at all
<mattip> also, there is a warning about "builtins.type size changed", during importlib/_bootstrap.py
<ronan> I I thought that was the thing you fixed in Cython
jaffachief has joined #pypy
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaffachief has joined #pypy
jaffachief has quit [Client Quit]
jaffachief has joined #pypy
jaffachief has quit [Client Quit]
<ronan> looks like there's an issue with gc-hooks - the assert added in df2490d5d814 fires, causing a segfault in pandas
<mattip> it looks like the same thing, but is different. Trying to figure it out now
pf_moore has joined #pypy
<ronan> hmm, since a88536ae8554, it's no longer OK to fire the same action more than once
<ronan> which is quite inconvenient, given that actions must be prebuilt constants
AndrewBC has joined #pypy
<ronan> mattip: just opened #2805. I think it's a blocker for the release :(
<mattip> ronan: ok
<mattip> ronan: in the test you added to test_datetime, there is no cts imported. How does the test find it
<mattip> ?
<ronan> mattip: it comes from cdatetime
<mattip> thanks
oberstet has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 276 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
<ronan> pff, cython does something weird with array.array
<ronan> they define their own arrayobject in a way that's compatible with CPython's private definition
WhatisRT_ has joined #pypy
<ronan> it's already been reported, but the issue was closed https://github.com/cython/cython/issues/1818
inhahe__ has joined #pypy
<WhatisRT_> hi! I have a <cdata 'void *' ...>. How can I extract the address it is pointing to?
<WhatisRT_> I have been trying for over and hour now and the only thing that works is converting it to a string, parsing the hex digits and converting that to an int
<Alex_Gaynor> WhatisRT_: `ffi.cast("uintptr_t", c_data)` should work I think
<WhatisRT_> Alex_Gaynor: but the result of that is still a cdata
<Alex_Gaynor> WhatisRT_: err, then call `int()` on it
<WhatisRT_> Alex_Gaynor: hm, that still didn't work: it doesn't give me the same number
<Alex_Gaynor> not sure what to say, what I'm describing is as-documented in https://cffi.readthedocs.io/en/release-1.3/using.html
<WhatisRT_> when I print my cdata, I get <cdata 'void *' handle to <cdata 'void(*)(void *, uint8_t *, size_t, uint8_t * *, size_t *)' 0x101feb080>>
<WhatisRT_> but the result of casting and converting to an int is 0x10397f818
<WhatisRT_> I'm also really confused why these numbers have 9 digits
<idnar> leading zeroes probably aren't printed
<idnar> not sure about the rest though
<WhatisRT_> yeah, I confused myself, for some reason I thought longs had 8 digits