News for hackers. Stuff that matters.
Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by ihnorton on Friday February 02, 2018 @03:40PM (#16294027)
I believe other languages could use this without Python, in principle. It is currently distributed as a Python package to provide functionality similar to the existing cffi package. The Python wheels are 18MB and statically linked -- so no external Clang or LLVM dependencies as far as I can tell. That is indeed quite large relative to libffi (or compared to LuaJIT, which is well under 1MB IIRC). But relative to 100s of MB for a full SciPy stack with Anaconda, it's not that much.

This could also be a foundation for more than "just" C FFI: it includes a full C++ compiler and JIT! Adding C++ FFI support would take a lot of work I’m sure, but I doubt it would noticeably increase the footprint because the bulk is already in LLVM+Clang. Another possibility would be to JIT Cython-generated code on-demand.

Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by chatmasta on Saturday February 03, 2018 @05:05AM (#16296990)
Reading the code, that 18mb is likely from statically linking LLVM into python
Re:DragonFFI: C Foreign Function Interface and JIT Using Cla... by kazinator on Saturday February 03, 2018 @11:09AM (#16298131)
ihnorton's comment says this clearly: "... 18MB and statically linked -- so no external Clang or LLVM dependencies".