Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DragonFFI as backend #4

Open
aguinet opened this issue Feb 3, 2020 · 2 comments
Open

Use DragonFFI as backend #4

aguinet opened this issue Feb 3, 2020 · 2 comments

Comments

@aguinet
Copy link

aguinet commented Feb 3, 2020

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!

@ssize-t
Copy link
Owner

ssize-t commented Feb 3, 2020

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?

@aguinet
Copy link
Author

aguinet commented Feb 3, 2020

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants