ipeterov / convenient-rpc

Convenient APIs for calling python functions remotely at many workers.
MIT License
0 stars 0 forks source link

Think of a new interface to map in wrapper #13

Closed ipeterov closed 8 years ago

ipeterov commented 8 years ago

The current one, especially the argskwargs part, is frustrating to use.

ipeterov commented 8 years ago

In original map the problem of passing args and kwargs (and not just one arg, which is trivial and easy to use) can be solved by using lambdas. But here we cant do this, we have to call a function that is present on all the worker machines.

One solution is to make map and map_unordered acccept lists of single args, and for more complicated calls, implement apply(funcion_description, args=[], kwargs={})/

ipeterov commented 8 years ago

If we will be able to use marshalling of fucntions to pass them to the workers, this issue will be solved automaically.