Re: Euphoria 4.1 status? Dev team, what's going on?

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
User90 said...
jimcbrown said...

The foreign function interface (dll.e et al) is designed to make it somewhat easy to interface with custom C libraries on your own. Compare with CPython where you have to write an extensive wrapper in C to create a new Python module.

So you don't know about e.g. http://eli.thegreenplace.net/2013/03/09/python-ffi-with-ctypes-and-cffi/. Can't say I'm surprised.

I look forward to seeing this when it makes it into Python's stdlib. But until then....

It's not perfect, either. From the article:

Eli Bendersky said...

While libffi is quite powerful, it also has some limitations, which by extension apply to ctypes. For example, passing unions by value to dynamically-loaded functions is not supported. But overall, the benefits outweigh the limitations, which are not hard to work around when needed.

More details at http://bugs.python.org/issue16575

Euphoria's FFI has similar limitations. Nothing's perfect, I guess.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu