Re: Euphoria 4.1 status? Dev team, what's going on?
- Posted by jimcbrown (admin) Dec 24, 2014
- 2543 views
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:
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.