ingomueller-net wrote: I have just stumbled upon [DLPack](https://github.com/dmlc/dlpack). That's probably a good way to replace the `bf_getbuffer` protocol with support for more data types. It's what nanobind uses for `nb::ndarray`. https://github.com/llvm/llvm-project/pull/163564