Would be great to have a mechanism for a plugin to 'hot replace' certain functions of other plugins.
For example, let's say we have the 'numpy' plugin that would encapsulate basic numpy array operations, such as the operation 'add-two-arrays'. Now, imagine we we want to have another plugin that would provide an accelerated implementation using the GPU. We need a mechanism to 'overlay' a function with another one. If there is a problem with the overlaid function, for example there is no GPU, it would call the original function.
Alternatively, we can also have a different entry in the menu for that operation,
but I would like to avoid the menu mess that is seen in other tools. Also, the advantage
of functional 'overlays' is that any other plugin using that function would be accelerated too.
Would be great to have a mechanism for a plugin to 'hot replace' certain functions of other plugins.
For example, let's say we have the 'numpy' plugin that would encapsulate basic numpy array operations, such as the operation 'add-two-arrays'. Now, imagine we we want to have another plugin that would provide an accelerated implementation using the GPU. We need a mechanism to 'overlay' a function with another one. If there is a problem with the overlaid function, for example there is no GPU, it would call the original function.
Alternatively, we can also have a different entry in the menu for that operation, but I would like to avoid the menu mess that is seen in other tools. Also, the advantage of functional 'overlays' is that any other plugin using that function would be accelerated too.