Show HN: Mirror_bridge – C++ Reflection powered Python binding generation github.com 27 points by fthiesen a day ago
sheepscreek a day ago This is very cool. If it can reliably work even for the examples provided, one can wrap a lot of C++ methods comfortably and reduce a ton of friction.Is the 2026 spec still at the draft stage?Update: Nevermind - just read that it only works with Bloomberg’s clang fork. Hopefully it’ll land in upstream clang soon. fthiesen a day ago It is making it's way to GCC as well: https://www.reddit.com/r/cpp/comments/1ojbv1a/gcc_implementa...It is officially part of C++26, so only a matter of time before being part of the major compilers (:I've added a pre-built image in the github repo, feel free to try it out if you are curious and let me know if you face any issues/bugs! sheepscreek 13 hours ago Thanks again for creating this and sharing it here. Honestly makes me want to pick up C++ for a project just to try it out (along with reflection and other new features).
fthiesen a day ago It is making it's way to GCC as well: https://www.reddit.com/r/cpp/comments/1ojbv1a/gcc_implementa...It is officially part of C++26, so only a matter of time before being part of the major compilers (:I've added a pre-built image in the github repo, feel free to try it out if you are curious and let me know if you face any issues/bugs! sheepscreek 13 hours ago Thanks again for creating this and sharing it here. Honestly makes me want to pick up C++ for a project just to try it out (along with reflection and other new features).
sheepscreek 13 hours ago Thanks again for creating this and sharing it here. Honestly makes me want to pick up C++ for a project just to try it out (along with reflection and other new features).
psyclobe a day ago But why isn't it in Rust? I thought all new code had to be written in Rust? sheepscreek 13 hours ago Bruh...reflection. No can do in Rust. fthiesen a day ago lol
feb a day ago There's another HN thread about this project: https://news.ycombinator.com/item?id=46144199
This is very cool. If it can reliably work even for the examples provided, one can wrap a lot of C++ methods comfortably and reduce a ton of friction.
Is the 2026 spec still at the draft stage?
Update: Nevermind - just read that it only works with Bloomberg’s clang fork. Hopefully it’ll land in upstream clang soon.
It is making it's way to GCC as well: https://www.reddit.com/r/cpp/comments/1ojbv1a/gcc_implementa...
It is officially part of C++26, so only a matter of time before being part of the major compilers (:
I've added a pre-built image in the github repo, feel free to try it out if you are curious and let me know if you face any issues/bugs!
Thanks again for creating this and sharing it here. Honestly makes me want to pick up C++ for a project just to try it out (along with reflection and other new features).
But why isn't it in Rust? I thought all new code had to be written in Rust?
Bruh...reflection. No can do in Rust.
lol
There's another HN thread about this project: https://news.ycombinator.com/item?id=46144199