Re:Mirror_bridge – C++ reflection for generating Python/JS/L...
by fthiesen on Thursday December 04, 2025 @01:09PM
(#46150775)
Thanks for the suggestion, let me take a good look at callbacks.
Another thing that I can't make work elegantly is compiling template functions from C++, since we have no clue to guess which types will be instantiated in the Python code (and they can even depend on user input, so only determined at runtime)
I'm missing nanobind here.
> Method lookup. Python sees a.dot and searches for the dot attribute. It checks a.__dict__,
> Each attribute access (self.x) involves:
Since C++ classes are fixed, I'd expect attributes to be declared once in python (slots).One thing yet important for cross-language projects: callbacks (events). Would be nice if the sample could be extended.