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
ssbr has joined #pypy
<kenaan> wlav cppyy-packaging 6e179cce7824 /pypy/module/_cppyy/: further template function use cases
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ssbr has quit [Ping timeout: 276 seconds]
exarkun has quit [Read error: Connection reset by peer]
exarkun has joined #pypy
ssbr has joined #pypy
speeder39 has quit [Quit: Connection closed for inactivity]
jcea has quit [Remote host closed the connection]
adamholmberg has joined #pypy
lritter_ has joined #pypy
lritter has quit [Ping timeout: 260 seconds]
lritter_ has quit [Ping timeout: 248 seconds]
mattip_ has quit [Ping timeout: 256 seconds]
mattip has joined #pypy
jamesaxl has quit [Quit: WeeChat 2.1]
energizer is now known as energizer_
energizer_ is now known as energizer
<kenaan> wlav cppyy-packaging c1d70477c996 /pypy/module/_cppyy/test/test_templates.py: more template tesst
<kenaan> wlav cppyy-packaging fc284f4dd3f0 /pypy/module/_cppyy/interp_cppyy.py: translator fixes
hotpot34 has quit [Ping timeout: 245 seconds]
hotpot34 has joined #pypy
abvi[m] has joined #pypy
<kenaan> wlav cppyy-packaging d72f3ca3c3fd /: merge default into branch
hotpot34 has quit [Read error: Connection reset by peer]
<arigato> tsutsumi: if the program is mostly Python code calling C functions from zmq, compiled used the C extension compatibility layer cpyext, then it is expected to be a bit slower than CPython
<arigato> particularly if you do many, many such calls
<tsutsumi> arigato: got it. so I guess optimizing often-executed areas using c extensions as with CPython isn't a good option with pypy?
<tsutsumi> I guess I head an idea in my head where we can achieve some pretty big performance boosts using pypy + cython / c extensions combined, but one or the other is probably what it comes down to?
<arigato> it all depends on how often execution crosses the barrier
<arigato> if it's rare, then it's going to be a net speed-up
<arigato> the extreme example would be to define a Vector3 class in C, and use that all the time for computations done in Python
<arigato> you'd get two crosses of the barrier for each operation
<arigato> whereas just writing the Vector3 class in Python, PyPy would inline its operations completely and the net result would be fast (relatively, much much much faster)
<arigato> so no, the good approach if you start with PyPy is to write everything in Python, and then profile to know if it makes any sense to rewrite some well-separated parts in Cython
<arigato> (to call external C libraries, use cffi, not cython)
<tsutsumi> right. but better than cython would be writing the python code in a way where pypy's JIT could compile it down to native functions, correct?
<arigato> that's automatic
<tsutsumi> hmm.. is there ever a situation where using Cython or cpyext is a good choice for pypy, aside from compatibility with existing packages using c extensions?
<arigato> it's unclear, but I can think about some cases where the Cython or cpyext version contains medium- or long-running algorithms that are written or compiled to C code, without using the slower "PyObject *"
<arigato> i.e. if you could, in theory, take the Cython or cpyext project and extract some general-purpose cpu-heavy C library out of it
<tsutsumi> ah right, yeah. If there's some really extensive operations that need to be performed, and the number of times one has to cross the barrier is low
<arigato> yes
<arigato> in cases where you really need C code but need to cross the barrier often, then the way to go is using CFFI to directly call a C library
<tsutsumi> Ah ok, so CFFI is a more performant option than the cpython extension way
<tsutsumi> that sounds like a good route. Looking at pyzmq, it looks like there is a CFFI backend, but it's only available for newer versions of zeromq
<tsutsumi> I'll have to see if we're using the CFFI interface. It could be we're using the CPython one, and that could be contributing to the speed
<tsutsumi> I'm curious if there's been other cases where pypy consumes more and more CPU? or maybe it's just some weird tweak about my application
<tsutsumi> this is referring to my original questions
sbauman has quit [Quit: Connection closed for inactivity]
inhahe__ has quit [Ping timeout: 276 seconds]
inhahe__ has joined #pypy
hexa has quit [Ping timeout: 276 seconds]
the_drow has joined #pypy
<the_drow> Hi, do we use UTF-8 to represent strings internally or UTF-32?
<the_drow> cfbolz, arigato, ping?
hexa has joined #pypy
<cfbolz> the_drow: currently the latter, but we want to switch to utf-8 soon
<the_drow> So the effort should go to utf-8?
oberstet has joined #pypy
lesshaste has joined #pypy
dddddd has joined #pypy
the_drow_ has joined #pypy
antocuni has joined #pypy
the_drow has quit [Ping timeout: 265 seconds]
<the_drow_> cfbolz, So the efforts to speed up string processing using SIMD should be focused on UTF-8?
<cfbolz> Yes
<the_drow_> Thanks
devwatchdog has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
_whitelogger has joined #pypy
oberstet has quit [Ping timeout: 260 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
oberstet has joined #pypy
adamholmberg has joined #pypy
jamesaxl has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
oberstet has quit [Ping timeout: 256 seconds]
oberstet has joined #pypy
adamholmberg has joined #pypy
antocuni has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
necaris has joined #pypy
necaris has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antocuni has quit [Ping timeout: 248 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 265 seconds]
jamesaxl has quit [Ping timeout: 256 seconds]
jamesaxl has joined #pypy
the_drow__ has joined #pypy
the_drow_ has quit [Ping timeout: 245 seconds]
the_drow__ has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
lritter_ has joined #pypy
hotpot33 has joined #pypy
marself has quit [Ping timeout: 260 seconds]
the_drow__ has joined #pypy
the_drow__ has quit [Ping timeout: 248 seconds]
hotpot33 has quit [Read error: Connection reset by peer]
ssbr has quit [Ping timeout: 276 seconds]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #pypy
tbodt has joined #pypy
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…]
devwatchdog has quit [Remote host closed the connection]
ctismer has quit [Excess Flood]
ctismer has joined #pypy
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sbauman has joined #pypy
the_drow has quit [Remote host closed the connection]
hotpot33 has joined #pypy
hotpot33 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
marky1991 has quit [Ping timeout: 245 seconds]
dddddd has quit [Ping timeout: 268 seconds]
dddddd has joined #pypy
marky1991 has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
raynold has joined #pypy
exarkun has quit [Read error: Connection reset by peer]
exarkun has joined #pypy
sbauman has quit [Quit: Connection closed for inactivity]
danieljabailey has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
danieljabailey has joined #pypy
oberstet has quit [Ping timeout: 256 seconds]
tbodt has joined #pypy
<kenaan> wlav cppyy-packaging 749cd13269b0 /pypy/module/_cppyy/: py3 fixes
jcea has quit [Ping timeout: 265 seconds]
jcea has joined #pypy
Hasimir has quit [Ping timeout: 240 seconds]
antocuni has joined #pypy
Hasimir has joined #pypy
Hasimir has quit [Changing host]
Hasimir has joined #pypy