Re: [IronPython] C Extensions

2007-01-08 Thread Keith J. Farmer
This might be somewhat interesting: http://blogs.msdn.com/jmstall/archive/2007/01/06/Typesafe-GetProcAddress.aspx Of course, it might entail certain security permissions, so may not be useful in certain cases. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [IronPython] C Extensions

2007-01-08 Thread dwelden
SWIG can generate wrappers for C#. Perhaps that could form the foundation for C module wrapping for FePy. On Jan 6, 7:58 pm, slide <[EMAIL PROTECTED]> wrote: > 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 >

Re: [IronPython] C Extensions

2007-01-08 Thread Slide
I think the main issue with C extensions, is that they call back into the Python runtime library to register themselves, this would have to be intercepted by FePy in order for things to work correctly. slide On 1/8/07, dwelden <[EMAIL PROTECTED]> wrote: > SWIG can generate wrappers for C#. Perhap

Re: [IronPython] C Extensions

2007-01-08 Thread Dino Viehland
This part isn't so bad - you'd just need to have a library which has all the same exports as Python that the C extension would call into instead of calling into the real Python. The wrapper library would then translate the C Python extension interface into calls into the IronPython runtime. I

[IronPython] IronPython vs Cpython import speeds.

2007-01-08 Thread illium
Hi, I'm in the process of porting a project from CPython to IronPython. This is my first time using IronPython, so I'm not completely sure what to expect. After getting over the inital configuration hurdles, I got my program to execute normally within IronPython, and moved on to performance tes

Re: [IronPython] IronPython vs Cpython import speeds.

2007-01-08 Thread Dino Viehland
Unfortunately import speed is one of the areas where CPython is drastically faster than IronPython. The primary reason for this is that we will compile all the modules that get imported during importation which slows things down. One possible work around is to use the pyc tutorial although that

[IronPython] IronPython question on German newsgroup

2007-01-08 Thread Sanghyeon Seo
Someone who speaks German may want to reply to this: http://groups.google.com/group/de.comp.lang.python/browse_thread/thread/33ab9d8fd0c978e7 If machine translation is any help, OP wants to convert string to array of bytes. Okay, may I repeat my feature request to have clr.GetString and clr.GetBy