Skip to content Skip to sidebar Skip to footer

Feasibility Of Using Pipe For Ruby-python Communication

Currently, I have two programs, one running on Ruby and the other in Python. I need to read a file in Ruby but I need first a library written in Python to parse the file. Currently

Solution 1:

Yes. No. If you implement it, yes. Depends on what your application needs.

Basically if all you need is simple data passing pipes are fine, if you need to be constantly calling functions on objects in your remote process then you'll probably be better of using some form of existing RPC instead of reinventing the wheel. Whether that should be XMLRPC or something else is another matter.

Note that RPC will have to use some underlying IPC mechanism, which could well be pipes. but might also be sockets, message queues, shared memory, whatever.

Post a Comment for "Feasibility Of Using Pipe For Ruby-python Communication"