r/cpp • • 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

26 comments sorted by

View all comments

Show parent comment

1

u/c-cul Apr 03 '26 edited Apr 03 '26

ok, thank you

ps: many langs have FFI - for example julia

1

u/holyblackcat Apr 03 '26

ps: many langs have FFI - for example julia

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 DllImport does).