You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have both python and c++ implementations of several classes, but it would be good for us to not duplicate functionality, especially when there is a risk of that functionality getting out of sync.
We use C++ implementations because it allows us to interact directly with C++ APIs, and because it can be significantly faster when running performance critical code.
We use Python implementations because it allows us to produce run and test code quickly without compiling, and because it allows us to call Python code directly and get better intellesense for that code.
We should discuss ways to combine the best of both worlds while synchronizing and eliminating duplicate functionality.
One way to do this is change are class hierarch from either python or c++ to instead use a c++ base class with python overrides. This can be accomplished using pybind trampolining.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently we have both python and c++ implementations of several classes, but it would be good for us to not duplicate functionality, especially when there is a risk of that functionality getting out of sync.
We use C++ implementations because it allows us to interact directly with C++ APIs, and because it can be significantly faster when running performance critical code.
We use Python implementations because it allows us to produce run and test code quickly without compiling, and because it allows us to call Python code directly and get better intellesense for that code.
We should discuss ways to combine the best of both worlds while synchronizing and eliminating duplicate functionality.
One way to do this is change are class hierarch from either python or c++ to instead use a c++ base class with python overrides. This can be accomplished using pybind trampolining.
Beta Was this translation helpful? Give feedback.
All reactions