<p dir="ltr"><br>
On 18 Dec 2013 06:21, "Maciej Fijalkowski" <<a href="mailto:fijall@gmail.com">fijall@gmail.com</a>> wrote:<br>
><br>
> On Tue, Dec 17, 2013 at 7:21 PM, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
> > Maybe someone from PyPy should bring this up as an official topic at the<br>
> > language summit to figure out the blockers (again). Or it can join regex on<br>
> > the list of "module discussed for addition at the language summit but never<br>
> > quite pushed to commitment". =)<br>
><br>
> we're still working on resolving discussed issues before officially<br>
> proposing it for inclusion.</p>
<p dir="ltr">Note that there's also now a link chain from the CPython extension creation docs to cffi (and Cython) - the cross version Python Packaging User Guide now has a section on binary extensions that covers several of the alternatives to writing them by hand, while the stdlib extension writing guide has a note at the beginning pointing to that resource.</p>

<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> ><br>
> ><br>
> > On Tue, Dec 17, 2013 at 11:43 AM, Stefan Krah <<a href="mailto:stefan@bytereef.org">stefan@bytereef.org</a>> wrote:<br>
> >><br>
> >> Maciej Fijalkowski <<a href="mailto:fijall@gmail.com">fijall@gmail.com</a>> wrote:<br>
> >> > I would like to discuss on the language summit a potential inclusion<br>
> >> > of cffi[1] into stdlib. This is a project Armin Rigo has been working<br>
> >> > for a while, with some input from other developers.<br>
> >><br>
> >> I've tried cffi (admittedly only in a toy script) and find it very nice<br>
> >> to use.<br>
> >><br>
> >> Here's a comparison (pi benchmark) between wrapping libmpdec using a<br>
> >> C-extension (_decimal), cffi and ctypes:<br>
> >><br>
> >><br>
> >> +-------------------------------+----------+----------+---------+<br>
> >> |                               | _decimal |  ctypes  |   cffi  |<br>
> >> +===============================+==========+==========+=========+<br>
> >> | cpython-tip (with-system-ffi) |   0.19s  |   5.40s  |  5.14s  |<br>
> >> +-------------------------------+----------+----------+---------+<br>
> >> | cpython-2.7 (with-system-ffi) |    n/a   |   4.46s  |  5.18s  |<br>
> >> +-------------------------------+----------+----------+---------+<br>
> >> |      Ubuntu-cpython-2.7       |    n/a   |   3.63s  |    -    |<br>
> >> +-------------------------------+----------+----------+---------+<br>
> >> |      pypy-2.2.1-linux64       |    n/a   |  125.9s  |  0.94s  |<br>
> >> +-------------------------------+----------+----------+---------+<br>
> >> |     pypy3-2.1-beta1-linux64   |    n/a   |  264.9s  |  2.93s  |<br>
> >> +-------------------------------+----------+----------+---------+<br>
> >><br>
> >><br>
> >> I guess the key points are that C-extensions are hard to beat and that<br>
> >> cffi performance on pypy-2 is outstanding. Additionally it's worth noting<br>
> >> that Ubuntu does something in their Python build that we should do, too.<br>
> >><br>
> >><br>
> >> +1 for cffi in the stdlib.<br>
> >><br>
> >><br>
> >><br>
> >> Stefan Krah<br>
> >><br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> Python-Dev mailing list<br>
> >> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> >> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> >> Unsubscribe:<br>
> >> <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Python-Dev mailing list<br>
> > <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> > <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> > Unsubscribe:<br>
> > <a href="https://mail.python.org/mailman/options/python-dev/fijall%40gmail.com">https://mail.python.org/mailman/options/python-dev/fijall%40gmail.com</a><br>
> ><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>