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
2
u/FlyingRhenquest Apr 02 '26
Yeah, pybind and embind are my primary use cases too. So far I've just been writing the bindings by hand. That tends to be time consuming as you're no doubt aware, but automating generation of pybind and embind bindings with reflection looks pretty feasible.
API bindings, serialization and database access usually end up making up between 50 and 70% of the code I want to write on a new code base. If I could just automate that down to "include a header and call this function to generate the binding," I'm not entirely sure I'd know what to do with all the extra time I'd have spent doing all that stuff! Actually it'd be "write code that's more interesting than writing and debugging that boilerplate each time."