FFI (Foreign Function Interface)

Does Renoise have shared libs (and corresponding .h files) we could tap into?

New in PHP 7.4: “FFI (Foreign Function Interface) opens a way to write PHP extensions and bindings to C libraries in pure PHP.”

allows the loading of shared libraries (.DLL or .so), calling of C functions and accessing of C data structures in pure PHP,

“Works” with Java, Rust, C++. among other languages, too. Concept exists in in other languages like Python, Go.

Some PHP specific stuff:

For educational purposes only. I wouldn’t expect this to be supported. Would be cool to hack.

1 Like