As we all know, Rust is a great language for writing real-time audio software because it does not rely on a garbage collector for memory safety, because of its zero-cost abstractions and its excellent tooling.
But when it comes to prototyping, you want an interactive language with lots of support for linear algebra and numerical mathematics and with the ability to plot your data. Something like GNU Octave (or Python, or …).
But what if you want to call your Rust code from GNU Octave? Octave supports extending with “
.oct” files, which you can write in C++ … from which you can call your Rust code.
I have written an example that illustrates how you can do this. It’s permissively “licensed” under the unlicense, so that you can easily copy-paste into your own projects without worrying.