In Python, there's something called ctypes. With ctypes, one can call any shared library function and get the results back to your script. It supports all kinds of C-language types, such as int, double, long, struct, etc...
Is this possible with Mathematica too? Is there a full example on how to do this?
ctypesis that you can write a native interface without requiring to import any non-native header from Python. This would be great if available for Mathematica! – The Quantum Physicist Jul 15 '16 at 10:52DefineDLLFuntcionon non-Windows platforms. Please try it out and if it works, do still post your own answer. – Szabolcs Jul 15 '16 at 10:53DefineDLLFuntcion? – Szabolcs Jul 15 '16 at 10:56sofile, likelibc.so.6, as you see in the examples ofctypes. That's the simplest and minimal working example. Right? – The Quantum Physicist Jul 15 '16 at 10:59