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
4
u/FlyingRhenquest Apr 02 '26
Just in time for reflection! Heh heh. I started working on a little class parser just before Sutter did his talk about it in January, so I kinda know how that feels. I mostly did the project to learn a bit about boost::spirit::x3, though, and found it remarkably approachable. The problem was also surprisingly small, since I just wanted to gather the same information that reflection provides, so I didn't have to do comprehensive parsing for template signatures or inline code in the header.
Embind should be pretty easy to add to mrbind. Its interface is very similar to pybind/nanobind. Java native might be feasible too, which would make targeting android architectures a lot easier if you're into that sort of thing. I was going to look into doing a project like this with reflection but I seem to be over here generating JSON schema instead, at the moment.