For writing efficient emacs functions, would it be worthwhile/not too difficult to write a C wrapper for calling Julia functions or for calling Python functions via Numba/pycc?
For reference: Julia is a higher-level language designed for scientific computing that contains cfunction, a routine for efficiently passing Julia functions to C functions that accept function pointers. From what I gather, these functions are called more or less as efficiently as a native C function is called. Julia also happens to be able to call functions in many other languages very efficiently. Numba is a just-in-time compiler for Python that can also create C libraries using the command pycc. Both Julia and Python/Numba approach C-level performance for many tasks.