Show HN: Mirror_bridge – C++ Reflection powered Python binding generation
7 days ago
- #C++26
- #Reflection
- #LanguageBindings
- Mirror Bridge is a header-only library using C++26 reflection (P2996) to automatically generate bindings for Python, JavaScript, and Lua.
- Features include automatic discovery of data members, methods, constructors, method overloading, smart pointers, nested classes, containers, exception handling, enums, object representation, and inheritance.
- Zero overhead as all binding code is generated at compile-time through template metaprogramming and reflection.
- Two workflows: auto-discovery for prototyping and declarative config for explicit control.
- Single-header amalgamated versions available for easier integration.
- Performance improvements over pybind11, with faster compilation and function calls.
- Precompiled headers (PCH) can be used for faster builds.
- Experimental status with contributions welcome, licensed under Apache License 2.0.