inlinec icon indicating copy to clipboard operation
inlinec copied to clipboard

Use DragonFFI as backend

Open aguinet opened this issue 5 years ago • 2 comments

It's more an idea than an issue, but maybe using DragonFFI (github.com/aguinet/dragonffi) as a compiler and "python glue" (that is convert data back and forth from C and python) backend can solve some of the issues you have (like generating many .so's).

Let me know if you are interested!

aguinet avatar Feb 03 '20 12:02 aguinet

Looks great! How does the JIT work? Does pydffi.FFI().compile() write a module to the filesystem or does it keep everything in memory somehow?

ssize-t avatar Feb 03 '20 18:02 ssize-t

It's all kept in memory using one of the LLVM jitter mechanism (which also has its own runtime dynamic linker, to link dynamic objects together if necessary).

aguinet avatar Feb 03 '20 18:02 aguinet