[IronPython] C Extensions

Slide slide.o.mix at gmail.com
Sun Jan 7 14:53:26 CET 2007


On 1/7/07, Sanghyeon Seo <sanxiyn at gmail.com> wrote:
> 2007/1/7, slide <slide.o.mix at gmail.com>:
> > As it has come up on the list several times, I was wondering if anyone
> > had given any thought to implementing an interface such that C
> > extensions could be used with FePy I know that FePy would have to
> > implement and export (and do some other magic) the C registration
> > functions, etc that the C extensions call. On Windows specifically, I
> > can envision that the import table of the C extension would need to be
> > modified to not rely on libpython, as well as redirecting the addresses
> > of the imported Python API functions to FePy functions which do the same
> > thing, seems somewhat complicated to me. Is it even feasible to do?
>
> If I understood correctly, Phalanger (PHP implementation for .NET) does
> something similar to support PHP's C extensions, so I think it's certainly
> possible. That doesn't mean it would be easy in any way.
>
> No, I don't have slightest idea how to implement it.
>
> --
> Seo Sanghyeon


It looks like Phalanger uses CLI/C++ to interact with C/C++
extensions. At this point that would restrict its usage to Windows,
but I guess it might be a good start.

slide



More information about the Ironpython-users mailing list