antocuni changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "PyPy: the Gradual Reduction of Magic (tm)"
asmeurer__ has joined #pypy
slacky has joined #pypy
inad922 has quit [Ping timeout: 255 seconds]
pulkitg has joined #pypy
slacky has quit [Ping timeout: 264 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/5132 [pjenvey: force build, memory-accounting]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
huonw has quit [Ping timeout: 276 seconds]
huonw has joined #pypy
asmeurer__ has quit [Read error: Connection reset by peer]
bendlas has joined #pypy
abvi[m]1 has joined #pypy
yuvipanda has joined #pypy
tito has quit [Remote host closed the connection]
danieljabailey has quit [Ping timeout: 248 seconds]
pilne has joined #pypy
tito has joined #pypy
tito has quit [Changing host]
tito has joined #pypy
danieljabailey has joined #pypy
asmeurer__ has joined #pypy
slacky has joined #pypy
slacky has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
Nizumzen has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
marr has quit [Ping timeout: 240 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
slacky has joined #pypy
inhahe_ has quit []
songww has joined #pypy
slacky has quit [Ping timeout: 255 seconds]
songww has quit [Client Quit]
songww has joined #pypy
songww has quit [Client Quit]
songww has joined #pypy
inhahe_ has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
songww has quit [Quit: songww]
songww_ has joined #pypy
songww_ is now known as songww
tbodt has joined #pypy
slacky has joined #pypy
songww has quit [Quit: songww]
songww has joined #pypy
songww has quit [Client Quit]
songww has joined #pypy
jcea has quit [Quit: jcea]
pilne has quit [Quit: Quitting!]
songww has quit [Quit: songww]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ArneBab has joined #pypy
ArneBab_ has quit [Ping timeout: 260 seconds]
dddddd has quit [Remote host closed the connection]
jamesaxl has joined #pypy
lritter has joined #pypy
oberstet has quit [Ping timeout: 250 seconds]
<raynold> ahh it's a wonderful day
zmt00 has quit [Quit: Leaving]
antocuni has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
asmeurer_ has joined #pypy
tayfun has quit [Remote host closed the connection]
tayfun has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
asmeurer_ has joined #pypy
<kenaan> arigo unicode-utf8-re fc5e50bec2b2 /rpython/rlib/rsre/: Refix and test the standard StrMatchContext
<kenaan> arigo unicode-utf8-re 4ab5b6fa7557 /rpython/rlib/rsre/rsre_core.py: Translation fix (nonneg issues)
asmeurer_ has quit [Quit: asmeurer_]
asmeurer__ has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
asmeurer_ has joined #pypy
marr has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
asmeurer__ has joined #pypy
lritter has quit [Ping timeout: 240 seconds]
tayfun has quit [Remote host closed the connection]
tayfun has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
asmeurer__ has joined #pypy
asmeurer__ has quit [Client Quit]
dddddd has joined #pypy
asmeurer_ has joined #pypy
kushal has quit [Ping timeout: 248 seconds]
SunDwarf has quit [Ping timeout: 248 seconds]
Guest32990 has quit [Ping timeout: 248 seconds]
marvin has joined #pypy
marvin is now known as Guest29891
kushal has joined #pypy
kushal is now known as Guest62015
SunDwarf has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
Nizumzen has joined #pypy
<fijal> hi
<arigato> hi
bogner has quit [Read error: Connection reset by peer]
jcea has joined #pypy
dddddd has quit [Quit: Hasta otra..]
iko has quit [Ping timeout: 276 seconds]
iko has joined #pypy
<kenaan> fijal unicode-utf8 8c2d7104d91e /rpython/: use iterator and add some more obscure iterface for it
antocuni has quit [Ping timeout: 260 seconds]
jcea has quit [Quit: jcea]
ssbr has quit [Ping timeout: 255 seconds]
Jellyg00se has joined #pypy
<Jellyg00se> Hi, I keep reading mixed (old) articles, and can't really find a straight answer to: Are most modules supported in pypy? Is there a listing of which ones are and aren't? and are there any scenarios where I shouldn't use pypy in particular?
<simpson> Jellyg00se: I would say that a lot of existing Python code is PyPy-compatible, although usually by accident. Most of the CPython stdlib is available. PyPy should only be avoided if its footprint is too large for your platform; when that happens, you may need microPython.
<simpson> There is a page with a straight answer, but the problem is that the question you probably want to ask is "Does my codebase work with PyPy?" and the answer is "Set up a PyPy virtualenv and run your codebase's tests."
<simpson> That said, you should have this page: http://pypy.readthedocs.io/en/latest/cpython_differences.html
<simpson> And the *goal* is that if you write pure CPython-compatible Python then you usually will be fine on PyPy.
<Jellyg00se> simpson, thanks for your reply that's really good news, also quite confusing why it isn't the standard :P
<arigato> also, simpson's answer seems to imply that CPython C extension modules don't work, but a lot of them do nowadays
realitix has joined #pypy
<Jellyg00se> simpson, I'm still new to python, but we're developing a Django application which uses a lot of loops etc.. and so it might be reasonable to give pypy a chance for sped
<simpson> Oh, sorry, yes, I didn't mean to imply any such thing. Many chunks of CPython-compatible C do work on PyPy, including the ones that you'd expect in the stdlib.
<arigato> and yes, django is known to work
<simpson> Jellyg00se: PyPy is not standard (IMO, arigato probably has other thoughts) mostly because of feelings, politics, and factually-incorrect memes within the larger Python galaxy. I would not worry too much about it; you already did the hard part of discovering that PyPy exists and trying it out. That's more than most folks do!
<Jellyg00se> simpson, Always politics! Be open minded ;) Thanks a lot for the info guys, appreciated
<Jellyg00se> simpson, regarding the footprint, do you mean the size of the compiled python script (as I said I'm new to python) is quite large?
<fijal> Jellyg00se: memory consumption of pypy binary
<fijal> Jellyg00se: anyway, seriously, try and see
<fijal> asking questions usually gets you scary answers that might or might not be related, it's much better to check
<Jellyg00se> fijal, just wanted to know what to look for :)
<fijal> yes, so a) check if it works
<fijal> b) make sure there is enough requests for pypy to warm up
<fijal> and c) look if the memory consumption is ok
<fijal> a) is almost always true
<fijal> these days
<realitix> Hi arigato ! I'm trying to do esoteric stuff with cffi ^^. I have a CompiledFFI (abi mode) and I try to inject it in a dependant module with ffi.include but I got an error because I should use a FFI, not a CompiledFFI. Is it possible to inject a CompiledFFI (ABI mode) into a FFI (API mode) ?
oberstet has joined #pypy
<kenaan> fijal unicode-utf8 2d147c5dd32c /TODO: add one item
<Jellyg00se> fijal, cheers mate :)
lritter has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
ssbr has joined #pypy
<arigato> realitix: sorry, no
<arigato> can't you use the original builder for this CompiledFFI?
dddddd has joined #pypy
<realitix> arigato: I'm trying to create a separate module. It works like a plugin, and if I can use pip for that, it's very convenient
_whitelogger_ has joined #pypy
SunDwarf has quit [*.net *.split]
Guest29891 has quit [*.net *.split]
Jellyg00se has quit [*.net *.split]
holdsworth has quit [*.net *.split]
froztbyte has quit [*.net *.split]
iblis17 has quit [*.net *.split]
huonw has quit [*.net *.split]
dw has quit [*.net *.split]
jimbaker_ has quit [*.net *.split]
commandoline has quit [*.net *.split]
_habnabit has quit [*.net *.split]
tmarkovich has quit [*.net *.split]
cfbolz has quit [*.net *.split]
bendlas has quit [*.net *.split]
yuvipanda has quit [*.net *.split]
drolando has quit [*.net *.split]
altendky has quit [*.net *.split]
dpn` has quit [*.net *.split]
agronholm has quit [*.net *.split]
bremner has quit [*.net *.split]
ColdHeat has quit [*.net *.split]
arigato has quit [*.net *.split]
__peke__ has quit [*.net *.split]
pdox has quit [*.net *.split]
panni_ has quit [*.net *.split]
wallet42 has quit [*.net *.split]
adamholmberg has quit [*.net *.split]
Hexxeh___ has quit [*.net *.split]
gutworth has quit [*.net *.split]
igitoor_ has quit [*.net *.split]
pepesza has quit [*.net *.split]
chris| has quit [*.net *.split]
sbauman has quit [*.net *.split]
samth has quit [*.net *.split]
Hotpot33 has quit [*.net *.split]
Rotonen has quit [*.net *.split]
danieljabailey has quit [*.net *.split]
ronan has quit [*.net *.split]
nopf has quit [*.net *.split]
blachance has quit [*.net *.split]
mitsuhiko has quit [*.net *.split]
pulkitg has quit [Ping timeout: 248 seconds]
abvi[m]1 has quit [Ping timeout: 246 seconds]
holdsworth has joined #pypy
Guest29891 has joined #pypy
SunDwarf has joined #pypy
froztbyte has joined #pypy
Jellyg00se has joined #pypy
iblis17 has joined #pypy
<kenaan> fijal unicode-utf8 1be16a6d5f37 /pypy/module/array/interp_array.py: changes to array module before changing the world
_whitelogger has joined #pypy
<realitix> yes ok. I'll let you know when I will make it work
Rhy0lite has joined #pypy
jacob22__ has joined #pypy
graingert is now known as Guest44097
Guest44097 has quit []
lritter has quit [Ping timeout: 255 seconds]
graingert has joined #pypy
pulkitg has joined #pypy
jacob22__ has quit [Ping timeout: 264 seconds]
<kenaan> fijal unicode-utf8 1a4e2f08f746 /rpython/rlib/: remove flag handling from rutf8
<kenaan> fijal unicode-utf8 db2a8c9fccf1 /pypy/: remove the flag
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6426 [fijal: force build, unicode-utf8]
<fijal> arigato: maybe done
<arigato> cool
<arigato> you're definitely faster than me today
tayfun has quit [Remote host closed the connection]
<Jellyg00se> This is a bit of a weird question apologies in advance. I'm not used to defining self within the method parameters for every method, but does this mean that you could replace self with super().__init__() and force it to call the base class if you wanted?
<Jellyg00se> Sorry guy wrong channel :)
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6426 [fijal: force build, unicode-utf8]
<fijal> Jellyg00se: yes you can, but yes wrong channel :)
<fijal> arigato: I'm good at whacking?
<fijal> (nothing more you can do at 40degrees)
<kenaan> fijal unicode-utf8 8d468e08f3fe /: whack a few more places, handle surrogates correctly
<fijal> arigato: maaaybe we should review all the places that call check_utf8 to see if we can call the faster version
Jellyg00se has quit [Quit: Leaving]
<fijal> arigato: feel like trying to do splitlines?
<fijal> I've been trying for half an hour and failing
dcrosta has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcrosta has joined #pypy
pulkitg has quit [Ping timeout: 276 seconds]
zmt00 has joined #pypy
dcrosta has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<realitix> arigato, fijal: I got this message: cffi.error.VerificationError: not implemented yet: ffi.include() of a Python-based ffi inside a C-based ffi
<realitix> Is it a lot of work?
<realitix> to know if I can do it ?
<arigato> right, I didn't exactly remember the rules
<arigato> sorry about that
<arigato> I don't remember right now, but it's probably that some rules about some things (struct definitions?) are not exactly the same
<realitix> ok arigato, I will have a look tomorrow because I have to go now. Bonne soirée!
<arigato> it must be something like: after ffi.include() inside a C-based ffibuilder, it might emit C code that uses the 'struct'
<arigato> even if they come from the included ffibuilder
<arigato> but doing so doesn't really make sense if the included ffibuilder is ABI-based (i.e. Python-based)
<realitix> that's my case
dcrosta has joined #pypy
<arigato> you can't have C code that uses 'struct foo' if 'struct foo' was originally supposed to not come from C at all
<arigato> so the whole thing is again a bit of a mess to implement: maybe we have to require that in this C file the original ABI-based declarations are really available to C (and should match exactly)
realitix has quit [Ping timeout: 240 seconds]
realitix has joined #pypy
bogner has joined #pypy
realitix has quit [Quit: realitix]
<bbot2> Started: http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armel/builds/1993 [mattip: maybe endable this?, py3.5]
dddddd has quit [Ping timeout: 248 seconds]
pulkitg has joined #pypy
nunatak has joined #pypy
asmeurer_ has joined #pypy
dddddd has joined #pypy
<kenaan> rlamy py3.5 0451e5fe8470 /pypy/module/cpyext/test/test_unicodeobject.py: fix test
<kenaan> rlamy py3.5 2cc79ebab1f2 /pypy/tool/pytest/apptest.py: Allow -A imp tests to run on pypy
<kenaan> rlamy py3.5 e30b20325b57 /pypy/module/cpyext/api.py: Get the expected error when passing a bogus spec to _imp.create_dynamic()
asmeurer_ has quit [Ping timeout: 255 seconds]
pulkitg has quit [Read error: Connection reset by peer]
Nizumzen has quit [Ping timeout: 252 seconds]
asmeurer has joined #pypy
dcrosta has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nizumzen has joined #pypy
drolando_ has joined #pypy
drolando has quit [Read error: Connection reset by peer]
dcrosta has joined #pypy
pulkitg has joined #pypy
asmeurer has quit [Quit: asmeurer]
oberstet has quit [Ping timeout: 248 seconds]
asmeurer_ has joined #pypy
oberstet has joined #pypy
abvi[m]1 has joined #pypy
yuvipanda has joined #pypy
bendlas has joined #pypy
bendlas has quit [Ping timeout: 240 seconds]
yuvipanda has quit [Ping timeout: 250 seconds]
pulkitg has quit [Ping timeout: 250 seconds]
abvi[m]1 has quit [Ping timeout: 276 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/build-pypy-c-jit-linux-armel/builds/1993 [mattip: maybe endable this?, py3.5]
drolando_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drolando has joined #pypy
nunatak has quit [Remote host closed the connection]
antocuni has joined #pypy
Graypup_ has quit [Ping timeout: 240 seconds]
Graypup_ has joined #pypy
dstufft has quit [Excess Flood]
dstufft has joined #pypy
Rhy0lite has quit [Quit: Leaving]
drolando has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
Guest62015 is now known as kushal
kushal has quit [Changing host]
kushal has joined #pypy
jamesaxl has joined #pypy
dstufft has quit [Excess Flood]
dstufft has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
slacky has quit [Ping timeout: 240 seconds]
ssbr has quit [Ping timeout: 252 seconds]
asmeurer__ has joined #pypy
drolando has joined #pypy
drolando has quit [*.net *.split]
dcrosta has quit [*.net *.split]
marr has quit [*.net *.split]
danieljabailey has quit [*.net *.split]
ronan has quit [*.net *.split]
akash47 has quit [*.net *.split]
rubdos has quit [*.net *.split]
untitaker has quit [*.net *.split]
nopf has quit [*.net *.split]
pjenvey has quit [*.net *.split]
nedbat has quit [*.net *.split]
blachance has quit [*.net *.split]
mitsuhiko has quit [*.net *.split]
phlebas has quit [*.net *.split]
danchr has quit [*.net *.split]
norox has quit [*.net *.split]
tazle has quit [*.net *.split]
DRMacIver has quit [*.net *.split]
rubdos has joined #pypy
dcrosta has joined #pypy
danieljabailey has joined #pypy
untitaker has joined #pypy
marr has joined #pypy
phlebas has joined #pypy
mitsuhiko has joined #pypy
DRMacIver has joined #pypy
nopf has joined #pypy
ronan has joined #pypy
blachance has joined #pypy
drolando has joined #pypy
nedbat has joined #pypy
akash47 has joined #pypy
pjenvey has joined #pypy
tazle has joined #pypy
danchr has joined #pypy
norox has joined #pypy
nopf has quit [Max SendQ exceeded]
nopf has joined #pypy
ssbr has joined #pypy
jacob22__ has joined #pypy
Nizumzen has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
adamholm_ has joined #pypy
adamholmberg has quit [Ping timeout: 268 seconds]
drolando has quit [*.net *.split]
jacob22__ has quit [*.net *.split]
dcrosta has quit [*.net *.split]
danieljabailey has quit [*.net *.split]
marr has quit [*.net *.split]
ronan has quit [*.net *.split]
akash47 has quit [*.net *.split]
untitaker has quit [*.net *.split]
pjenvey has quit [*.net *.split]
nedbat has quit [*.net *.split]
blachance has quit [*.net *.split]
mitsuhiko has quit [*.net *.split]
phlebas has quit [*.net *.split]
danchr has quit [*.net *.split]
norox has quit [*.net *.split]
tazle has quit [*.net *.split]
DRMacIver has quit [*.net *.split]
jacob22__ has joined #pypy
drolando has joined #pypy
dcrosta has joined #pypy
ronan has joined #pypy
akash47 has joined #pypy
untitaker has joined #pypy
mitsuhiko has joined #pypy
DRMacIver has joined #pypy
tazle has joined #pypy
norox has joined #pypy
danchr has joined #pypy
blachance has joined #pypy
marr has joined #pypy
danieljabailey has joined #pypy
pjenvey has joined #pypy
phlebas has joined #pypy
nedbat has joined #pypy
adamholm_ has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
jacob22__ has quit [Read error: Connection reset by peer]
dcrosta has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asmeurer__ has quit [Quit: asmeurer__]
asmeurer__ has joined #pypy
adamholmberg has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 1.9.1]
adamholmberg has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
pilne has joined #pypy