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
antocuni has quit [Ping timeout: 244 seconds]
oberstet has joined #pypy
bbot2 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
BenLand100 has joined #pypy
BenLand100 has quit [Remote host closed the connection]
alexband has joined #pypy
alexband_ has joined #pypy
alexband_ has quit [Read error: Connection reset by peer]
alexband_ has joined #pypy
alexband has quit [Ping timeout: 240 seconds]
jcea has quit [Quit: jcea]
lritter has quit [Quit: Leaving]
mundus2018 has joined #pypy
mundus2018 has quit [Remote host closed the connection]
Nietzsche28 has joined #pypy
speeder39 has joined #pypy
Nietzsche28 has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #pypy
forgottenone has joined #pypy
_whitelogger has joined #pypy
steveeJ12 has joined #pypy
steveeJ12 has quit [Ping timeout: 245 seconds]
Ulfalizer has quit [Ping timeout: 250 seconds]
Ulfalizer has joined #pypy
cfbolz has quit [Ping timeout: 260 seconds]
cfbolz has joined #pypy
untitaker has quit [Ping timeout: 260 seconds]
nedbat has quit [Ping timeout: 260 seconds]
phlebas_ has joined #pypy
phlebas has quit [Ping timeout: 260 seconds]
kirma has quit [Ping timeout: 260 seconds]
mjacob has quit [Ping timeout: 260 seconds]
phlebas_ is now known as phlebas
kirma has joined #pypy
mwhudson has quit [Remote host closed the connection]
untitaker has joined #pypy
mjacob has joined #pypy
mwhudson has joined #pypy
mwhudson has joined #pypy
mwhudson has quit [Changing host]
nedbat has joined #pypy
nedbat has quit [Changing host]
nedbat has joined #pypy
Hasimir has joined #pypy
TheAdversary has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
speeder39 has quit [Quit: Connection closed for inactivity]
DIRT has quit [Ping timeout: 245 seconds]
mattip_ is now known as mattip
<mattip> mwhudson: you could ask on the mailing list or file an issue if you don't get an answer here
<mattip> anyone else see this post on r/python - https://developers.redhat.com/blog/2017/11/16/speed-python-using-rust ?
<mattip> a quick "pip install pytest-benchmark; pypy2 test.py" shows we are slower than cpython on my machine
<mattip> ahh, maybe pytest-benchmark is not really warming up the function
marvin_ has quit [Remote host closed the connection]
marvin_ has joined #pypy
<mattip> not clear to me whether the problem is pytest benchmarking, or whether we really are slower
Geeky_Bear has joined #pypy
Geeky_Bear has quit [Ping timeout: 260 seconds]
Hodgestar has quit [Remote host closed the connection]
antocuni has joined #pypy
kipras has quit [Read error: Connection reset by peer]
Hodgestar has joined #pypy
<cfbolz> mattip: I blame benchmarking, at least one of the python implementations should be reasonably fast in pypy
<cfbolz> mwhudson: Yay, Michael on #pypy :-)
<mwhudson> cfbolz: i'm only here to gripe about compilers and abis :(
<cfbolz> mwhudson: fair, fair
<cfbolz> But yes, people ask about cffi in here, mostly
kipras`away has quit [Ping timeout: 276 seconds]
<antocuni> uh, is botbot.me broken? I cannot see recent messages
<cfbolz> mwhudson: ouch that sounds super annoying
kipras has joined #pypy
<mwhudson> cfbolz: i'm sure the things i learnt about x87 today will serve me in good stead later in life!
<cfbolz> mwhudson: I hope not
<mwhudson> yes me too
kipras`away has joined #pypy
<LarstiQ> mwhudson: botbot.me not updating is probably fallout from barring the spammres
<cfbolz> antocuni: ^^
<antocuni> oh, thanks
dddddd has joined #pypy
alexband_ has quit [Ping timeout: 246 seconds]
<mattip> cfbolz: maybe because the original function is 100ms, so the benchmarking is timing out before the jit kicks in
<cfbolz> mattip: if I have some time I'll take a look this afternoon
<mattip> if len(value) == 10,000 instead of len(value) == 1,000,000, we are 4-5 times faster in pure python, 2 times faster in regex
<mattip> so it seems my theory may be correct
<cfbolz> Right
jamesaxl has quit [Ping timeout: 245 seconds]
jamesaxl has joined #pypy
<kenaan> antocuni extradoc cd51a2e3fc4d /blog/draft/2018-09-cpyext/cpyext.rst: write this section; I am not very satisfied about it, but better to write down some words that stare at the bla...
antocuni has quit [Ping timeout: 240 seconds]
forgottenone has quit [Quit: Konversation terminated!]
arigato has joined #pypy
Rhy0lite has joined #pypy
<cfbolz> arigato: ouch
<cfbolz> Not much to be done, is there?
<arigato> we can hack at switch_to_object to share objects, with a dict or something, but that's probably slow and memory-consuming too
<arigato> we can instead hack at the GC's minor collections... maybe? I'm not so sure it's sane
<arigato> to reshare immutable objects that are the same
<cfbolz> arigato: hm, a dict sounds expensive, but maybe a small lru cache in switch_to_object?
<arigato> or maybe re-enable withprebuiltint if we're not jitted?
<cfbolz> Possible, yes
<arigato> (it would work for integers in the range -5 to 100, but not e.g. for [0.0]*BIG)
<cfbolz> Or a ListMultiplicationStrategy
<cfbolz> ;-)
<arigato> no, because in this example, the code is L = [0]*BIG; L[0] = 1 and only later it's switched to object
<cfbolz> arigato: fair enough
<cfbolz> arigato: it's real code, I assume?
<arigato> note that the same problem exists for all kinds of list strategies (strings, etc.)
marky1991 has joined #pypy
Hodgestar has quit [Ping timeout: 240 seconds]
jcea has joined #pypy
Hodgestar has joined #pypy
hurify1 has joined #pypy
hurify1 has quit [Remote host closed the connection]
antocuni has joined #pypy
eduardas_m has joined #pypy
lritter has joined #pypy
Hodgestar has quit [Ping timeout: 264 seconds]
<kenaan> arigo cffi/cffi ef09637b2314 /testing/cffi0/test_function.py: Issue #382 Change the test to a non-floating-point example, where ignoring the return value should work even on ...
marky1991 has quit [Read error: Connection reset by peer]
tayfun26 has joined #pypy
Hodgestar has joined #pypy
LEI has joined #pypy
LEI is now known as Guest58024
Gonsor has joined #pypy
Guest58024 has quit [Remote host closed the connection]
marky1991 has joined #pypy
TheSilentLink22 has joined #pypy
TheSilentLink22 has quit [Killed (Unit193 (Spam is not permitted on freenode.))]
<cfbolz> arigato: why is this the case?: "Note that PyPy3 still uses more memory than CPython3."
marky1991 has quit [Ping timeout: 252 seconds]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
theaetetus has joined #pypy
theaetetus has quit [Remote host closed the connection]
<arigato> cfbolz: I don't know
arigato has quit [Quit: Leaving]
marky1991 has quit [Ping timeout: 240 seconds]
antocuni has quit [Ping timeout: 260 seconds]
dmalcolm has quit [Remote host closed the connection]
eduardas_m has quit [Quit: Konversation terminated!]
dmalcolm has joined #pypy
tayfun26 has quit [Quit: tayfun26]
<danchr> Perhaps because of Flexible String Representation added in Python 3.3?
marky1991 has joined #pypy
rubdos has joined #pypy
<simpson> Isn
<simpson> Ugh. This keyboard. But isn't this because of PyPy's overall tendency to use more RAM per (sub)interp than CPython?
marky1991 has quit [Ping timeout: 245 seconds]
jamesaxl has quit [Ping timeout: 244 seconds]
[Arfrever] has quit [Ping timeout: 240 seconds]
oberstet has quit [Ping timeout: 244 seconds]
jamesaxl has joined #pypy
Theking^8 has joined #pypy
Theking^8 has quit [Remote host closed the connection]
marky1991 has joined #pypy
nunatak has joined #pypy
unknown has joined #pypy
unknown has quit [Remote host closed the connection]
ceridwen has quit [Ping timeout: 250 seconds]
jamesaxl has quit [Ping timeout: 244 seconds]
Torgeir has joined #pypy
Torgeir has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
<kenaan> arigo cffi/cffi 7a76a3815340 /testing/cffi0/test_function.py: Issue #382 Second fix attempt, thanks Adam
Rhy0lite has quit [Quit: Leaving]
jamesaxl has quit [Quit: WeeChat 2.2]
marky1991 has quit [Ping timeout: 252 seconds]
dpn` has quit [Quit: ZNC - http://znc.in]
dpn` has joined #pypy
marky1991 has joined #pypy
anzuof16 has joined #pypy
anzuof16 has quit [Remote host closed the connection]
[0__0] has quit [Remote host closed the connection]
[0__0] has joined #pypy
[Arfrever] has joined #pypy
demonimin has quit [Ping timeout: 246 seconds]
nunatak has quit [Quit: Leaving]
ELFrederich has joined #pypy
ELFrederich has quit [Quit: Leaving]
marky1991 has quit [Ping timeout: 246 seconds]
speeder39 has joined #pypy
moei has quit [Quit: Leaving...]
Garen has quit [Read error: Connection reset by peer]
antocuni has joined #pypy
Garen has joined #pypy
demonimin has joined #pypy
lritter has quit [Ping timeout: 272 seconds]
Gonsor has quit [Read error: Connection reset by peer]
antocuni has quit [Ping timeout: 252 seconds]