cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "the modern world where network packets and compiler optimizations are effectively hostile"
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
yuyichao has quit [Ping timeout: 240 seconds]
adamholmberg has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
harold has joined #pypy
<harold> hi
<harold> I have a relatively simple python program (about 500 lines), it uses tkinter and pil. I want to run it on my windows computer
<harold> I just installed pypy -- pypy2-v5.8.0-win32.zip
<harold> unzipped it and tried to run my prog and obviously it's missing PIL and stuff. How would I install PIL? I was thinking that pip by default would be installed in this pypy, but it isn't
<harold> Any hints?
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
yuyichao has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 248 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholm_ has joined #pypy
adamhol__ has joined #pypy
adamhol__ has quit [Remote host closed the connection]
adamhol__ has joined #pypy
adamholmberg has quit [Ping timeout: 252 seconds]
adamholm_ has quit [Ping timeout: 240 seconds]
adamhol__ has quit [Ping timeout: 252 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
tbodt has joined #pypy
adamholmberg has joined #pypy
tbodt has quit [Client Quit]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
marr has quit [Ping timeout: 248 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
tbodt has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 248 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
oberstet has quit [Ping timeout: 240 seconds]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
exarkun has quit [Read error: Connection reset by peer]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
exarkun has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
cloudyplain has joined #pypy
adamholmberg has quit [Remote host closed the connection]
kawing-chiu has joined #pypy
adamholm_ has joined #pypy
adamholm_ has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
<kawing-chiu> harold: pypy -m ensurepip
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 260 seconds]
nimaje has quit [Ping timeout: 248 seconds]
nimaje has joined #pypy
__main__ has quit [Read error: Connection reset by peer]
_main_ has joined #pypy
_main_ is now known as __main__
tbodt has joined #pypy
jcea has quit [Quit: jcea]
ronan has quit [Ping timeout: 252 seconds]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adamholmberg has joined #pypy
lritter_ has joined #pypy
ArneBab has joined #pypy
lritter has quit [Ping timeout: 252 seconds]
ArneBab_ has quit [Ping timeout: 248 seconds]
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
lritter_ has quit [Ping timeout: 248 seconds]
kawing-chiu has quit [Quit: Leaving]
adamholmberg has quit [Ping timeout: 248 seconds]
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
lazybear has quit [Excess Flood]
lazybear has joined #pypy
inhahe_ has quit []
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
inhahe_ has joined #pypy
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
pilne has quit [Quit: Quitting!]
marky1991 has quit [Ping timeout: 240 seconds]
cloudyplain has joined #pypy
forgottenone has joined #pypy
rokujyouhitoma has joined #pypy
yuyichao has quit [Ping timeout: 240 seconds]
yuyichao_ has joined #pypy
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
realitix has joined #pypy
rokujyouhitoma has joined #pypy
<kenaan> arigo cffi/cffi 4a39df6e9df5 /doc/source/: Expand the docs about wchar_t/char16_t/char32_t
oberstet has joined #pypy
<arigato> we should release cffi 1.11 finally
marr has joined #pypy
exarkun has quit [Ping timeout: 246 seconds]
exarkun has joined #pypy
[0__0] has quit [Remote host closed the connection]
[0__0] has joined #pypy
antocuni has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
cloudyplain has joined #pypy
<realitix> Hi arigato ! A developer reported a strange error in my wrapper. When you have a nested struct, if you keep a reference only on the child struct, when the parent struct gets garbage collected, the child struct is filled with bad data. Do you ever heard about that problem ?
<fijal> realitix: the parent struct does not keep the child struct alive in any way
<fijal> so you need to keep it alive on your own
<fijal> if the child struct has no python reference, it'll be garbage collected
<fijal> (maybe even before parent)
<realitix> of course but in that case, there is a reference only on the child
<realitix> if the parent struct is freed, did it free the child struct too ?
<fijal> no, the C references has no connection to GC at all
<fijal> just because you store one into the other does not mean there is any link as far as GC is concerned
<realitix> ok so the developer maybe does something else wrong. Indeed his error was too strange
<realitix> thanks fijal
<realitix> fijal: I met a south african guy in the plane, very cool guy! like you ;-)
raynold has quit [Quit: Connection closed for inactivity]
<kenaan> stevie_92 cpyext-gc-trialdeletion a478bda34d52 /: Added tests Fixed bug in generic_cpy_call if called recursively Fixed bug in cycle detection if...
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
antocuni has quit [Ping timeout: 255 seconds]
ronan has joined #pypy
ssbr has quit [Quit: restarting computer or whatever]
forgottenone has quit [Quit: Konversation terminated!]
<fijal> realitix: I'm on a phone so limited help
<fijal> Create a cffi issue linking all of it and we'll have a look later?
<realitix> yes of crouse, thanks !
rokujyouhitoma has joined #pypy
cloudyplain has quit [Remote host closed the connection]
cloudyplain has joined #pypy
cloudyplain has quit [Read error: Connection reset by peer]
Arfrever has joined #pypy
bgola has joined #pypy
jamesaxl has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
<kenaan> rlamy py3.5-sendmsg-recvmsg ffb1e878bd5f /: Close branch py3.5-sendmsg-recvmsg
<kenaan> rlamy py3.5 d12c25571050 /: Merged in py3.5-sendmsg-recvmsg (pull request #562) Implement socket.sendmsg()/.recvmsg()
Rhy0lite has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
jcea has joined #pypy
forgottenone has joined #pypy
Taggnostr has quit [Ping timeout: 240 seconds]
Taggnostr has joined #pypy
Taggnostr has quit [Remote host closed the connection]
Taggnostr has joined #pypy
antocuni has joined #pypy
jacob22_ has joined #pypy
Taggnostr2 has joined #pypy
Taggnostr has quit [Ping timeout: 240 seconds]
rokujyouhitoma has joined #pypy
<kenaan> stevie_92 cpyext-gc-trialdeletion 74fa1f758dc8 /rpython/memory/gc/test/test_rawrefcount.py: Added more tests
lritter_ has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
rokujyouhitoma has joined #pypy
adamholmberg has joined #pypy
<cfbolz> ronan: thanks for reviewing the pull request!
marky1991 has joined #pypy
yuyichao_ has quit [Ping timeout: 240 seconds]
Taggnostr has joined #pypy
Taggnostr has quit [Read error: Connection reset by peer]
Taggnostr2 has quit [Ping timeout: 246 seconds]
Taggnostr has joined #pypy
rokujyouhitoma has quit [Remote host closed the connection]
Taggnostr2 has joined #pypy
Taggnostr has quit [Ping timeout: 240 seconds]
yuyichao_ has joined #pypy
bgola has quit [Quit: Lost terminal]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 255 seconds]
vkirilichev has joined #pypy
<arigato> realitix: hi
<realitix> arigato, hi
<arigato> so, two problems
<arigato> one is that you say "1.9.2 = KO" in https://github.com/realitix/vulkan/issues/20, but I don't think there was ever a 1.9.2
<realitix> not in pypi but there is a bump 1.9.2
rokujyouhitoma has joined #pypy
<arigato> the other problem is that the commit you point out changes things about ffi.new(), which you almost don't use in the reproducer
<realitix> yes indeed, it's why I don't understand
<realitix> but you can notice that you add tp_free function too
<arigato> and, well, the 3rd problem is: I need to install Vulkan and SDL2 to reproduce, right?
<realitix> indeed :)
<arigato> can I do that on Linux?
<realitix> it depends on your graphic card
<realitix> is your computer recent ?
<realitix> (I do it on linux)
<arigato> I have an Intel HD Graphics 520, Skylate GT2
<arigato> Skylake
rokujyouhitoma has quit [Ping timeout: 246 seconds]
<realitix> yes it works
<arigato> (and, just saying, I bet from the general style of the reproducer that the problem is rather some misuse of the C API, like the .extent structure is freed by someone)
<realitix> yes it could be bu it sounds strange
<arigato> as it's not even *allocated* by cffi, it can't really be something else, except if there is general memory corruption messing things up
<realitix> it's allocated by cffi by the wrapper
<arigato> which wrapper?
<realitix> my vulkan wrapper
<arigato> which is some different file I guess?
<realitix> yes
* arigato away
<realitix> it's not an easy problem
<realitix> sorry :(
<realitix> can you explain me what is the consequence of this line : https://bitbucket.org/cffi/cffi/commits/b6adad5f4ea343f515563917826b4c66e2705ac8#Lc/_cffi_backend.cT2887
<realitix> before: no tp_free, after yes
vkirilichev has quit [Remote host closed the connection]
vkirilichev has joined #pypy
vkirilichev has quit [Ping timeout: 240 seconds]
<arigato> should have no effect, because it's the default
<realitix> ok arigato, don't pass more time on it. I will look deeper to give you more informations
<arigato> ideally, you should reduce the bug further
<arigato> e.g. what is self.extent? there are two paths in the get_swap_extent() function
forgottenone has quit [Ping timeout: 240 seconds]
<arigato> ret = ffi.new(_type.cname + '*', init)[0]
<arigato> ^^^ that's the problem
<arigato> realitix:
<arigato> this line is always wrong, because it allocates something with ffi.new(), then gets the [0] item, then forgets the allocated thing---which gets GCed
<realitix> ok!
<realitix> but why is it working pre-1.9.1
<realitix> ?
<arigato> no clue
<arigato> must be randomly
<realitix> i can assure you it's not random
<realitix> are you sure the default value of tp_free is the same
<arigato> I'm pretty sure the above line is pretty wrong
<realitix> of course it's wrong
<realitix> ;-)
<arigato> if you compile a debug version of cffi, it will fail systematically
<realitix> ha nice to know
<realitix> ok so I'm going to check it and I close the issue after
<realitix> au fait, comment se sont passé tes vacances ?
<arigato> the question of why it works anyway sometimes is not really relevant I think
marr has quit [Ping timeout: 240 seconds]
<kenaan> arigo cffi/cffi 3d609382a4b8 /doc/source/ref.rst: Write down an explicit example of what not to do
<arigato> ^^^ because you're not the first person making this mistake
<realitix> Shame on me!
<arigato> well, the problem is that it seems to work, even though it's accessing just-freed memory
<arigato> maybe cffi should have a configurable knob that writes 0xDD into freed memory
<realitix> you have explicitly write it in the doc now so it should be ok
forgottenone has joined #pypy
<realitix> arigato, is something like that working https://gist.github.com/realitix/a1cc2bb72500ffb2e05ba6d4980dbcd2 ?
<arigato> realitix: yes
raynold has joined #pypy
<arigato> maybe cffi should just support ffi.new("struct foo")
<realitix> without pointer you mean ?
<arigato> yes
<arigato> the point right now is that you should try to do ffi.new(cname + "*") and keep it
<arigato> i.e. chances are that you don't really need the cdata of type "cname"
<arigato> it's ok to have around the cdata of type "cname *"
<arigato> you can also use attribute access to read/write it
<arigato> and you can directly pass it to functions expecting a "cname *" argument
<realitix> yes ok
<arigato> maybe I'm wrong, but it's the reason for how cffi works
rokujyouhitoma has joined #pypy
forgottenone has quit [Ping timeout: 240 seconds]
tilgovi has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
tilgovi has quit [Remote host closed the connection]
<kenaan> rlamy multiphase 236f54a091d0 /: Add _testmultiphase module, for test_importlib
<kenaan> rlamy multiphase 8de4e0b09ce1 /: disable _testmultiphase.call_state_registration_func()
<kenaan> rlamy multiphase 9edde9447569 /lib_pypy/_testmultiphase.c: Disable not-yet-supported tp_finalize slot in _testmultiphase
gumblex has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/4876 [ronan: force build, multiphase]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6185 [ronan: force build, multiphase]
antocuni has quit [Ping timeout: 240 seconds]
realitix has quit [Quit: Leaving]
rokujyouhitoma has joined #pypy
marr has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/4876 [ronan: force build, multiphase]
tbodt has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
tbodt has quit [Client Quit]
lritter_ has quit [Quit: Leaving]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
lritter has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6185 [ronan: force build, multiphase]
oberstet has quit [Ping timeout: 248 seconds]
tbodt has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
nimaje1 has joined #pypy
nimaje is now known as Guest34664
nimaje1 is now known as nimaje
forgottenone has joined #pypy
zware has quit [Remote host closed the connection]
zware has joined #pypy
Rhy0lite has quit [Quit: Leaving]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
tormoz has quit [Read error: Connection reset by peer]
jamesaxl has quit [Quit: WeeChat 1.8]
tormoz has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 252 seconds]
jacob22_ has quit [Ping timeout: 240 seconds]
marky1991 has quit [Ping timeout: 248 seconds]
forgottenone has quit [Quit: Konversation terminated!]
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 248 seconds]
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…]
tbodt has joined #pypy
mvantellingen has quit [Ping timeout: 240 seconds]
tbodt has quit [Client Quit]
mvantellingen has joined #pypy
tbodt has joined #pypy
tbodt has quit [Read error: Connection reset by peer]
tbodt has joined #pypy
yuyichao_ has quit [Ping timeout: 240 seconds]
yuyichao_ has joined #pypy