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
wleslie has joined #pypy
antocuni has quit [Ping timeout: 264 seconds]
wleslie has quit [Quit: ~~~ Crash in JIT!]
dstufft has quit [Excess Flood]
dstufft has joined #pypy
tbodt has quit [Quit: Textual IRC Client: www.textualapp.com]
<garming> arigato: in regards to the realloc question i asked a little while ago, i think there might be another alternative.
<garming> it seems like you could use mmap via rmmap.
jcea has quit [Remote host closed the connection]
<garming> which should make for quite efficient realloc -- and assuming you can still pull the structures out easily.
tbodt has joined #pypy
tbodt has quit [Quit: Textual IRC Client: www.textualapp.com]
tbodt has joined #pypy
tbodt has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpot33 has joined #pypy
tbodt has joined #pypy
lritter has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lritter has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 256 seconds]
jamesaxl has joined #pypy
jamesaxl has quit [Quit: WeeChat 2.1]
hotpot33 has quit [Read error: Connection reset by peer]
Garen has quit [Read error: Connection reset by peer]
jaffachief has joined #pypy
Garen has joined #pypy
jaffachief has quit [Client Quit]
trinityhex__ has joined #pypy
trinityhex__ has quit [Quit: Leaving]
wleslie has joined #pypy
<wleslie> after my recent post to the mailing list, I got a spam email directly sent, purportedly from "support-level1@contact4.westhost.com". I doubt there is much to be done, but if someone happens to be looking at the contents of that list and sees anything related, can you remove it please?
wleslie has quit [Quit: ~~~ Crash in JIT!]
wleslie has joined #pypy
wleslie has quit [Ping timeout: 264 seconds]
wleslie has joined #pypy
jamesaxl has joined #pypy
wleslie has quit [Quit: ~~~ Crash in JIT!]
jcea has joined #pypy
wleslie has joined #pypy
jamesaxl has quit [Ping timeout: 245 seconds]
jamesaxl has joined #pypy
wleslie has quit [Quit: ~~~ Crash in JIT!]
dddddd has joined #pypy
vstinner has joined #pypy
<vstinner> hello. i'm working on a crash in cffi. it seems like _cffi_carefully_make_gil() has a race condition: https://bugzilla.redhat.com/show_bug.cgi?id=1561170#c27
<vstinner> i see that the function uses _PyParser_TokenNames lock, but in practice, two threads seem to call the function "at the same time" and so call Py_InitializeEx() and PyGILState_Ensure() in parrallel which causes a crash
<vstinner> the bugzilla issue contains a testcase to reproduce easily the bug, but at the beginning, the bug is trigged just by running cffi test suite
<vstinner> "The python-cffi package 1.11.2 has a test which spawns 20 threads at once, doing a bunch of adds. Nothing too serious. The problem seems to be that, when spawning 20 threads at once, Python itself crashes: (...)
<vstinner> hum. i was testing cffi 1.11.2, it seems like the test no longer crash in tip
<vstinner> oh. it seems like the bug has been fixed in cffi 1.11.5 by the following commit: https://bitbucket.org/cffi/cffi/commits/7b46e415e208
<vstinner> arigato: cool, it seems like your change fixed the cffi 1.11.2 crash ;)
<vstinner> FYI cffi started to crash because Python has been modified to release the GIL more often: https://github.com/python/cpython/commit/830daae1c82ed33deef0086b7b6323e5be0b0cc8
inhahe__ has joined #pypy
jcea has quit [Ping timeout: 276 seconds]
DIRT has quit [Ping timeout: 240 seconds]
inhahe__ has quit [Ping timeout: 264 seconds]
jcea has joined #pypy
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 245 seconds]
adamholmberg has joined #pypy
adamholm_ has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
fryguybob has joined #pypy
adamholm_ has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 256 seconds]
the_rat has joined #pypy
<the_rat> Hi! Is there some place where I can track the progress on py3.6?
<cfbolz> but the progress is pretty slow atm
<the_rat> cfbolz: oh, thanks a lot! That already helps. IIUC variable annotations are already in
antocuni has joined #pypy
<cfbolz> yep
<cfbolz> the_rat: most of the big features are
<the_rat> That's perfect right now, probably means I can already do what I need (measure the JIT against some code that is mostly 3.5 + some 3.6 features)
<cfbolz> the_rat: just grab a nightly: http://buildbot.pypy.org/nightly/py3.6/
<cfbolz> (at least on linux64)
<the_rat> :) I'm building it for macOS, probably it would have taken less to port the code to 3.5!
marky1991_2 has joined #pypy
adamholmberg has joined #pypy
marky1991 has quit [Ping timeout: 268 seconds]
marky1991_3 has joined #pypy
marky1991_2 has quit [Ping timeout: 260 seconds]
<LarstiQ> https://github.com/tensorflow/swift/blob/master/docs/WhySwiftForTensorFlow.md seems to make some cpython-centric assumptions about python performance, meh. (They still seem to have other good reasons for switching away from python)
tbodt has joined #pypy
<cfbolz> LarstiQ: the whole machine learning in python community makes this assumption
Garen has quit [Read error: Connection reset by peer]
tbodt has quit [Ping timeout: 260 seconds]
Garen has joined #pypy
vstinner has left #pypy [#pypy]
<LarstiQ> cfbolz: to be fair pypy hasn't been dealing with scientific python stack horribly well historically
<cfbolz> LarstiQ: it's still not doing super well
<LarstiQ> but it still irks me that people with performance issues don't first try pypy before jumping to another language
* LarstiQ nods
<cfbolz> We're slowly getting there though
<simpson> I have zero nice words for this document. Nobody tell them that Haskellers are *right now* doing automatic differentiation on entire standard Haskell programs.
<LarstiQ> aye, and I'd really like to try using pypy at work too, but upgrading to latest numpy/pandas is a mountain of work by itself
inhahe__ has joined #pypy
<catern> is it possible to implement a Python object, in C, with cffi? is it possible in anyway to have a Python object in C that is usable from pypy?
antocuni has quit [Ping timeout: 240 seconds]
<simpson> catern: It's a question of how much Python you want to write. I'm not sure whether you can avoid writing the class itself in Python.
<catern> concretely, I *think* I want to implement the buffer protocol
<catern> since I have some memory and I want to wrap that memory in a nice Python interface for reading that memory
<catern> (and I expect probably making a C function that takes a pointer and reads n bytes at that pointer, is probably frowned upon :))
<simpson> The CPython buffer interface? You can do it with cpyext, since that implements the CPython C API. I don't think it's portably possible with cffi.
inhahe__ has quit [Ping timeout: 260 seconds]
marky1991_3 has quit [Read error: Connection reset by peer]
marky1991_3 has joined #pypy
<catern> well, here is the class I want to implement: http://ix.io/1dsz just not sure how to do that in a way compatible with Pypy
speeder39 has joined #pypy
marky1991_3 has quit [Remote host closed the connection]
marky1991_3 has joined #pypy
marky1991_3 has quit [Remote host closed the connection]
marky1991_3 has joined #pypy
tbodt has joined #pypy
jcea has quit [Quit: jcea]
speeder39 has quit [Quit: Connection closed for inactivity]
marky1991_3 is now known as marky1991
marky1991 has quit [Changing host]
marky1991 has joined #pypy
jcea has joined #pypy
fryguybob has quit [Ping timeout: 256 seconds]
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
DIRT has joined #pypy
DIRT has quit [Remote host closed the connection]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Taggnostr2 has quit [Remote host closed the connection]
Taggnostr has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Quit: WeeChat 2.1]
DIRT has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy