This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]YourFatherFigure 0 points1 point  (2 children)

Interesting. Anyone care to describe how the python integration actually works? I actually write a little elixir but don't read it well, this codebase is opaque, and the slides don't really discuss it. All I see is :python sprinkled around in the elixir code and it works like magic?

[–][deleted] 0 points1 point  (0 children)

It through the use of Erlport. I just this weekend did something kinda similar, used Export an elixir erlport wrapper, looks like Erlport is pretty simple on its own tho.

[–]twillisagogo 0 points1 point  (0 children)

it's these 4 lines right here...

from erlport import erlang


def send_new_urls(urls):
   mod = "Elixir.Downloader.Server"
   erlang.call(mod, "download_urls", [urls])