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
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3855 [ronan: force build, py3.6]
marr has quit [Ping timeout: 248 seconds]
pf_moore has quit [Quit: Connection closed for inactivity]
hotpot33 has quit [Remote host closed the connection]
forgottenone has joined #pypy
inhahe__ has joined #pypy
inhahe_ has quit [Ping timeout: 276 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
Hasimir has quit [Ping timeout: 240 seconds]
Hasimir has joined #pypy
jcea has quit [Quit: jcea]
inhahe_ has joined #pypy
<kenaan> rlamy py3.6 d3ea363d17b6 /lib-python/3/ssl.py: Skip import of SSLSession in ssl (to unbreak pip)
inhahe__ has quit [Ping timeout: 260 seconds]
TheAdversary has quit [Ping timeout: 240 seconds]
Hasimir has quit [Ping timeout: 240 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheAdversary has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
Hasimir has joined #pypy
dddddd has quit [Remote host closed the connection]
<_aegis_> njs: yeah I know... trying to minimize latency as this is used for realtime input. mostly trying to prevent a user from accidentally locking up on infinite loop
<_aegis_> might try pthread_kill
<_aegis_> for now I'd probably rather restart the whole app on lockup than run user code in a subprocess
solarjoe4 has joined #pypy
antocuni has joined #pypy
antocuni has quit [Client Quit]
pepesza has quit [Excess Flood]
pepesza- has joined #pypy
lazka has joined #pypy
illume has joined #pypy
<arigato> pthread_kill is probably a bad idea, because I think pypy won't clear the GC stack information for the dead thread and it will crash at the next GC. not completely sure though
<arigato> _aegis_: I don't see any solution that is portable between cpython and pypy
marr has joined #pypy
lesshaste has quit [Remote host closed the connection]
jaffachief has joined #pypy
energizer has quit [Ping timeout: 256 seconds]
lazka has quit [Quit: Leaving]
lazka has joined #pypy
fdb has joined #pypy
inhahe__ has joined #pypy
inhahe_ has quit [Ping timeout: 248 seconds]
<fdb> Hello, i would report that on the download page there are links to pypy2-v5.10.1 but files does not exist.
<arigato> fdb: thanks!
<arigato> there was no release 5.10.1 for pypy2
<kenaan> arigo pypy.org[extradoc] 11b8477b9161 /: Fix bogus source link to pypy2-v5.10.1
paniq has joined #pypy
paniq has left #pypy [#pypy]
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hasimir has quit [Ping timeout: 240 seconds]
TheAdversary has quit [Ping timeout: 260 seconds]
inhahe_ has joined #pypy
illume has joined #pypy
inhahe__ has quit [Ping timeout: 248 seconds]
<cfbolz> arigato: 'use a few small classes' is almost always the answer ;-)
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 256 seconds]
Hasimir has joined #pypy
TheAdversary has joined #pypy
fdb has quit [Ping timeout: 260 seconds]
jcea has joined #pypy
Hasimir has quit [Ping timeout: 240 seconds]
TheAdversary has quit [Ping timeout: 248 seconds]
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marky1991 has joined #pypy
<kenaan> mattip default 8941ee7fcd8f /pypy/doc/: restart whatsnew-head, release notice
<kenaan> mattip release-pypy2.7-6.x 0f99a0bed290 /: merge default into release
<kenaan> mattip py3.5 580e3e26cd32 /pypy/doc/: merge default into py3.5
<kenaan> mattip py3.5 95916fa94a60 /pypy/doc/whatsnew-pypy3-head.rst: restart whatsnew-pypy3-head
<kenaan> mattip release-pypy3.5-6.x aa0e948e1bc4 /: merge py3.5 into release
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/5818 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6704 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1757 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-s390x/builds/896 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/4584 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5428 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3723 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3858 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armhf-raspbian/builds/1991 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armel/builds/2232 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Started: http://buildbot.pypy.org/builders/rpython-linux-x86-32/builds/61 [mattip: force build, release-pypy2.7-6.x]
Hasimir has joined #pypy
TheAdversary has joined #pypy
<mattip> here we go
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6704 [mattip: force build, release-pypy2.7-6.x]
raynold has quit [Quit: Connection closed for inactivity]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-win-x86-32/builds/1757 [mattip: force build, release-pypy2.7-6.x]
illume has joined #pypy
jaffachief has joined #pypy
jaffachief has quit [Client Quit]
<ronan> mattip: I can't import pandas on py3.5, Cython complains that datetime.time has the wrong size, try recompiling. Expected 24, got 40. Any clue?
marky1991 has quit [Ping timeout: 260 seconds]
marky1991 has joined #pypy
<mattip> ronan: let me take a look
illume has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/5818 [mattip: force build, release-pypy2.7-6.x]
marky1991 has quit [Ping timeout: 256 seconds]
lazka has quit [Quit: Leaving]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-s390x/builds/896 [mattip: force build, release-pypy2.7-6.x]
<bbot2> Success: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5428 [mattip: force build, release-pypy2.7-6.x]
<mattip> ronan: that's strange, 24 is the size of a PyObject*, it should be a PyDateTime_DateTime which AFAICT should be 40
jaffachief has joined #pypy
<mattip> it replicates with 5a7eeaf512fc
<mattip> but I won't be able to look into it today
<bbot2> Success: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/4584 [mattip: force build, release-pypy2.7-6.x]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaffachief has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3723 [mattip: force build, release-pypy2.7-6.x]
idnar has quit []
idnar has joined #pypy
avakdh has quit []
avakdh has joined #pypy
solarjoe4 has quit [Quit: Leaving]
zmt01 has joined #pypy
zmt00 has quit [Ping timeout: 240 seconds]
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dddddd_ has joined #pypy
<ronan> mattip: I'll try to fix it
<ronan> also, there's a sprint tomorrow (ahl.com/hackathon) Is it OK to commit to default/py3.5?
jaffachief has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/841 [mattip: force build, release-pypy2.7-6.x]
marky1991 has quit [Ping timeout: 256 seconds]
<arigato> ...complains complains an API somewhere accepts colors as either a 3-tuple of integers (0..255), or a 3-tuple of floats (0.0-1.0)
<Alex_Gaynor> arigato: does it check which it is based on type or value, if you do `(1, 1, 1)` which does it think it is?
<arigato> I think it's based on the type
<arigato> and no, I have no clue what occurs if you pass a tuple with some floats and some ints
<arigato> (it's implemented in C, and it's actually Ruby not CPython, but it's the same)
<mattip> ronan: it is in cython Cython/Utility/ImportExport.c line around line 360
<mattip> but not clear why it started
<mattip> there is a flag to emit either a warning or an error, but I remember we passed this cleanly
<ronan> mattip: looks like we have a mismatch between tp_basicsize and sizeof(PyDateTime_Time)
<mattip> there is one as well with builtins.type, but that is a warning
marky1991 has joined #pypy
<mattip> anyhow, go ahead and commit to default/py3.5, we will work out how to cherry-pick for the release
pchiusano has quit []
pchiusano has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/rpython-linux-x86-32/builds/61 [mattip: force build, release-pypy2.7-6.x]
<mattip> ronan: it will of course be easier to cherry pick if you use branches
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mattip> ronan: I suspect _PyDateTime_Import is not doing the right thing with tp_basicsize, but am out of time
mattip has left #pypy ["bye"]
marky1991 has quit [Ping timeout: 264 seconds]
ronan has quit [Quit: Ex-Chat]
jaffachief has joined #pypy
marky1991 has joined #pypy
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
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]
dddddd_ is now known as dddddd
jaffachief has joined #pypy
lazka has joined #pypy
lazka has quit [Client Quit]
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaffachief has joined #pypy
jaffachief has quit [Client Quit]
marky1991 has quit [Remote host closed the connection]
jaffachief has joined #pypy
marky1991 has joined #pypy
energizer has joined #pypy
<bbot2> Success: http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armel/builds/2232 [mattip: force build, release-pypy2.7-6.x]
ronan has joined #pypy
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaffachief has joined #pypy
<kenaan> rlamy default 2a9fc2de357a /pypy/module/cpyext/test/test_datetime.py: Test that tp_basicsize is correctly set (fails on py3.5)
<kenaan> rlamy py3.5 b7da70a8fd2c /pypy/module/cpyext/test/test_datetime.py: hg merge default
<bbot2> Success: http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armhf-raspbian/builds/1991 [mattip: force build, release-pypy2.7-6.x]
tbodt has joined #pypy
jaffachief has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaffachief has joined #pypy
jcea has quit [Quit: jcea]
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]
jaffachief has joined #pypy
jaffachief has quit [Client Quit]
ronan has quit [Ping timeout: 248 seconds]
lazka has joined #pypy
<_aegis_> arigato: I am completely fine doing a pypy-only solution for now, even if it requires me to modify the interpreter
<_aegis_> as I'm shipping this in an app w/ its own libpypy
<_aegis_> also with pthread_kill I figured I'd send a SIGINT and hope it caused a KeyboardInterrupt in that thread
jcea has joined #pypy
<_aegis_> ah, I guess pthread_kill only supports two signals
<_aegis_> tgkill maybe
<arigato> no, a SIGINT is always handled by the main thread
<arigato> all signals are
<arigato> ah no, we ported something from pypy-stm back to the mainline pypy:
<arigato> you can say "with __pypy__.thread.signals_enabled:"
<arigato> then all the code inside the "with" is run with signals enabled, even if it's running in a non-main thread
<arigato> in this situation, I think that pressing Ctrl-C on the keyboard would send a KeyboardInterrupt in a random thread, either the main one or one with signals_enabled
<arigato> pthread_kill() should work, but you'll need cffi to call that
<nanonyme> arigato, is it good that it rolls up in a random thread? :/
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lazka has quit [Quit: Leaving]
zmt01 has quit [Quit: Leaving]
zmt00 has joined #pypy
jcea has quit [Quit: jcea]
ronan has joined #pypy
tbodt has joined #pypy
<arigato> nanonyme: no, that's just an example. If you use pthread_kill() it should be directed to a specific thread
<arigato> (in the Ctrl-C case, it has more chances to land in a thread that takes a lot of CPU, so it's a weighted randomness :-)
<nanonyme> I still think the entire concept is a bit scary. I had before always been under the impression that Python mandated main thread handles signals
jcea has joined #pypy
jcea has quit [Client Quit]
jcea has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/3858 [mattip: force build, release-pypy2.7-6.x]
kipras is now known as kipras`away
jcea has quit [Ping timeout: 265 seconds]
jcea has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ronan> mattip (logs): bisected it to 6742308b0f34, i.e. the cpyext-datetime2 branch
<_aegis_> just seems to kill the main thread though, even with __pypy__.thread.signals_enabled
tbodt has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
<kenaan> rlamy py3.5 7ac5e33a8260 /pypy/module/: Brute-force tp_basicsize to the correct value on the datetime types
marr has quit [Ping timeout: 248 seconds]
oberstet has quit [Ping timeout: 256 seconds]
<kenaan> rlamy py3.6 d1a46c216644 /pypy/: hg merge py3.5
irclogs_io_bot has quit [Remote host closed the connection]
norox has quit [Quit: I'm quitting]
norox has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6706 [ronan: force build, py3.6]
irclogs_io_bot has joined #pypy
<bbot2> Started: 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…]
<njs> _aegis_: note that there are lots of fun race conditions to worry about when trying to signal a thread, like if the thread has just exited the `with __pypy__.thread.signals_enabled` block when you send the signal, then it'll end up being handled in the main thread (and maybe killing it instead)