A wish: Compile functions with shedskin
I have a wish. I wish to be able to compile a function in a module with Shed Skin at run time, much like it is done in weave and f2py2e. When I first though about it, it seemed a simple task:
- write a decorator that would allow the function to read its arguments from stdin and write what ever it returns to stdout.
- save the decorated function to a file, and compile it with shed skin
- call the resulting executable with os.popen, passing the arguments and receiving the output of the function.
I any case I am still sticking to my wish, hoping for suggestions of how to make it happen.
According to Mark Dufour, Shed Skin's developer, there is somebody working on using boost.python to wrap SS generated C++ code. That would be something very nice, but not as much as having a @skinner decorator.
