tag:blogger.com,1999:blog-3971202189709462152.post4951018896657992031..comments2024-03-11T12:50:02.036+01:00Comments on PyPy Status Blog: Using CPython extension modules with PyPy, or: PyQt on PyPyCarl Friedrich Bolz-Tereickhttp://www.blogger.com/profile/00518922641059511014noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-3971202189709462152.post-54318291798381104172015-04-28T16:16:04.234+02:002015-04-28T16:16:04.234+02:00Any news on this PyQt on PyPy topic? With the late...Any news on this PyQt on PyPy topic? With the latest PyPy 2.5.1? Thanks.handsomeguihttps://www.blogger.com/profile/12163463460966117404noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-61992129253616283662009-12-04T11:32:55.505+01:002009-12-04T11:32:55.505+01:00I'm trying to think of ways around that, but a...I'm trying to think of ways around that, but any API change to make objects held only in extensions trackable by the GC would probably be much worse than adding refcounted objects, wouldn't it, unless the extension were written in rpython...Unhelpfulhttps://www.blogger.com/profile/12227174048122478111noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-92116536482254160752009-12-04T11:10:22.176+01:002009-12-04T11:10:22.176+01:00Isn't the exposure of refcounts in the CPython...<i>Isn't the exposure of refcounts in the CPython C API going to be a bit of a problem for implementing the API on pypy?</i><br /><br />Indeed, it would be part of the task to introduce support in the GCs for such refcounted objects. Note that real refcounting is necessary because the object could be stored in an C array, invisible to the GC.Alexander Schremmerhttps://www.blogger.com/profile/08851437269223332169noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-65996083277119196782009-12-04T08:08:19.067+01:002009-12-04T08:08:19.067+01:00Isn't the exposure of refcounts in the CPython...Isn't the exposure of refcounts in the CPython C API going to be a bit of a problem for implementing the API on pypy? perhaps a "fake" refcount could be associated with an object when it is first passed to an extension? This could still be problematic if the extension code expects to usefully manipulate the refcount, or to learn anything by examining it...Unhelpfulhttps://www.blogger.com/profile/12227174048122478111noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-90300144408016758812009-12-03T09:51:22.316+01:002009-12-03T09:51:22.316+01:00Any chances of that happening?
In theory, this is...<i>Any chances of that happening?</i><br /><br />In theory, this is possible, but a lot of work. Nobody has stepped up to implement it, yet.Alexander Schremmerhttps://www.blogger.com/profile/08851437269223332169noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-62201566399118695302009-12-03T07:33:06.283+01:002009-12-03T07:33:06.283+01:00This is an important step forward!
There are prob...This is an important step forward!<br /><br />There are probably two reasons why people use extensions: bindings to libraries and performance.<br /><br />Unfortunately this specific approach does not address performance. Is there anything on horizon that would allow near-CPython API for extensions. So modules would just need to be recompiled against PyPy bindings for CPython API? Probably not 100% compatible, but close? <br /><br />Any chances of that happening?<br /><br />Andraz Tori, ZemantaZemantic dreamshttps://www.blogger.com/profile/17346639363388456729noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-26648241030215925792009-12-01T11:28:36.452+01:002009-12-01T11:28:36.452+01:00Dear anonymous,
the StandardButtons bug was alrea...Dear anonymous,<br /><br />the StandardButtons bug was already communicated to a Nokia employee.<br />If you are interested in the segfaults, contact me and I give you the source code that I used for testing.Alexander Schremmerhttps://www.blogger.com/profile/08851437269223332169noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-1907093163139102362009-12-01T10:17:44.047+01:002009-12-01T10:17:44.047+01:00cool stuff, alexander! Generic access to all CPyt...cool stuff, alexander! Generic access to all CPython-provided extension could remove an importing blocker for PyPy usage, allows incremental migrations.<br /><br />Besides, I wonder if having two processes, one for application and one for bindings can have benefits to stability.holger krekelhttps://www.blogger.com/profile/00985924698593515074noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-10609861433416843172009-11-30T20:38:16.930+01:002009-11-30T20:38:16.930+01:00"regular segfaults of CPython because of PyQt...<i>"regular segfaults of CPython because of PyQt-induced memory corruption and bugs because classes like StandardButtons behave incorrectly when it comes to arithmetical operations."</i><br /><br />These sound interesting. Could you please elaborate? A link would suffice, if these are already documented by non-pypy people. Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-42358886167223791082009-11-30T14:08:16.738+01:002009-11-30T14:08:16.738+01:00intgr: Thanks, done.intgr: Thanks, done.Carl Friedrich Bolz-Tereickhttps://www.blogger.com/profile/00518922641059511014noreply@blogger.comtag:blogger.com,1999:blog-3971202189709462152.post-85683656844513963702009-11-30T14:03:08.233+01:002009-11-30T14:03:08.233+01:00OT: you should separate labels by commas, so that ...OT: you should separate labels by commas, so that Blogspot recognizes them as distinct labels.intgrhttps://www.blogger.com/profile/02974314893080470877noreply@blogger.com