r/cpp • u/holyblackcat • Apr 02 '26
Announcing mrbind, an automatic C/C#/Python binding generator for C++
https://holyblackcat.github.io/blog/2026/04/02/announcing-mrbind.html
30
Upvotes
r/cpp • u/holyblackcat • Apr 02 '26
View all comments
Show parent comment
1
u/holyblackcat Apr 03 '26
But do the languages that call it "FFI" have anything in common, compared to those that don't, such as Python/C#?
Currently the support for each target language needs to be added separately, only the parser is shared. I don't think I can reuse anything else between the languages; at best you can generate the C bindings first and generate yours on top of those (which is helpful if your language is calling functions from shared libraries by their names, for example, like C#'s
DllImportdoes).