Message passing from Python to Elixir

213 views
Skip to first unread message

Jordan Dimov

unread,
Apr 29, 2015, 12:10:46 PM4/29/15
to elixir-l...@googlegroups.com
Hi,

How would one go about passing a message from a Python app to an Elixir process? I tried using erlport (https://github.com/hdima/erlport) with no luck, but I'm not sure I'm setting it up correctly and the documentation is a bit lacking in this respect. Ideally, I would like to be able to do something like this from my Python app:

  cast(Atom("elixir_process"), "my message")

At this stage, I'm not overly concerned about getting the result back into the Python app, although that would be very nice too. 

If anyone has a working example of something like this, I would appreciate it. 

Jordan

P.S. I don't know much Ruby, but if you can give me a Ruby example of something similar, I'll take that too. 

Doug Goldie

unread,
Apr 29, 2015, 12:14:47 PM4/29/15
to elixir-l...@googlegroups.com
Look at bert-rpc

I used it last year with ruby and it was great.
I'm see there are python libraries.

-doug.

Ross Jones

unread,
Apr 29, 2015, 12:15:50 PM4/29/15
to elixir-l...@googlegroups.com
Hi Jordan,

Jordan Dimov wrote:
> Hi,
>
> How would one go about passing a message from a Python app to an Elixir
> process? I tried using erlport (https://github.com/hdima/erlport) with
> no luck, but I'm not sure I'm setting it up correctly and the
> documentation is a bit lacking in this respect. Ideally, I would like to
> be able to do something like this from my Python app:

I haven't tried it, but as I like the idea of other languages acting as
Erlang nodes, perhaps
http://www.lysator.liu.se/~tab/erlang/py_interface/ might be a workable
solution. It certainly claims to handle sending and receiving messages.

If you do try it and it works, it'd be great to hear more on the experience.

Ross

Frank Liu

unread,
Apr 29, 2015, 3:09:12 PM4/29/15
to elixir-l...@googlegroups.com
Don't we have ports in elixir? Does that work?
Reply all
Reply to author
Forward
0 new messages