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:
- PHP: Basic FFI usage - Manual
- PHP 7.4 FFI: What you need to know - JoliCode
- GitHub - ircmaxell/FFIMe: A FFI Wrapper library and header parser!
- GitHub - gabrielrcouto/awesome-php-ffi: PHP FFI examples and use cases
For educational purposes only. I wouldn’t expect this to be supported. Would be cool to hack.