Live data from Hacker News

Embedding Python in Elixir, it's fine

dashbit.co

1–10 of 66 posts

Re: Embedding Python in Elixir, it's fine

#4
Great and informative article. Also nice to get an explicit mention that this isn't just a subprocess call, but running in the same process.

The only thing I'd would have like to see in added would be calling a function defined in Python from Elixir, instead of only the `Pythonx.eval` example.

The `%{"binary" => binary}` is very telling, but a couple of more and different examples would have been nice.

Re: Embedding Python in Elixir, it's fine

#6
I love the initial decision to grow Elixir's ML foundations from scratch, but I also love that we now have a really ergonomic way to farm out to the fast-moving python libraries

> Also, it conveniently handles conversion between Elixir and Python data structures, bubbles Python exceptions and captures standard output

Sooo nice

Re: Embedding Python in Elixir, it's fine

#7
Elixir has some features I wish Python had:

- atoms

- everything (or most things) is a macro, even def, etc.

- pipes |>, and no, I don't want to write a "pipe" class in Python to use it like pipe(foo, bar, ...). 90% of the |> power comes from its 'flow' programming style.

- true immutability

- true parallelism and concurrency thanks to the supervision trees

- hot code reloading (you recompile the app WHILE it's running)

- fault tolerance (again, thanks for supervision trees)

Re: Embedding Python in Elixir, it's fine

#8
post #7

Elixir has some features I wish Python had: - atoms - everything (or most things) is a macro, even def, etc. - pipes |>, and no, I don't want to write a "pipe" class in Python to use it like pipe(foo, bar, ...). 90% of the |> power comes from its 'flow' programming style. - true immutability - true parallelism and concurrency thanks to the supervision trees - hot code reloading (you recompile the app WHILE it's runni…

Mix is also so much better than anything python has to offer in terms of build/dependency tooling.

Re: Embedding Python in Elixir, it's fine

#9
post #7

Elixir has some features I wish Python had: - atoms - everything (or most things) is a macro, even def, etc. - pipes |>, and no, I don't want to write a "pipe" class in Python to use it like pipe(foo, bar, ...). 90% of the |> power comes from its 'flow' programming style. - true immutability - true parallelism and concurrency thanks to the supervision trees - hot code reloading (you recompile the app WHILE it's runni…

Coming from Erlang, I think macros are one of the things I'm ambivalent about in Elixir. There are a bunch of actual improvements besides just the syntax itself in Elixir, like string handling, but things like macros in Ecto ... not yet a fan of that.
Post reply on HN