Post AYCKlXYvbYoST4EM64 by jimfl@hachyderm.io
(DIR) More posts by jimfl@hachyderm.io
(DIR) Post #AYCJJ44VYai4wRrMSO by lamp@mastodon.cloud
2023-07-29T20:27:04Z
0 likes, 0 repeats
what the hell is the difference betwen #elixir and #erlang and which of these would I use to run #pleroma ??https://hub.docker.com/_/elixirhttps://hub.docker.com/_/erlang
(DIR) Post #AYCKlXYvbYoST4EM64 by jimfl@hachyderm.io
2023-07-29T20:43:22Z
0 likes, 0 repeats
@lamp Elixir and Erlang are both programming languages that compile to byte code that runs in the BEAM virtual machine. Erlang is older. For most Elixir projects of any size, you actually need both (because the Erlang core libraries are used a lot in Elixir projects, especially a collection of them called OTP), and I’m guessing that the Elixir container is the one likely to work for Pleroma install.
(DIR) Post #AYCKuuXxWEG2MJFHkW by nullobsi@akko.unix.dog
2023-07-29T20:30:26.406880Z
0 likes, 0 repeats
@lamp i’m pretty sure pleroma needs elixirbut i think erlang was first, uses the BEAM virtual machine, and then elixir comes and uses the BEAM vm as well. kind of like Java vs Kotlin i guess?
(DIR) Post #AYCKuviHBM6Xyb52TA by lamp@mastodon.cloud
2023-07-29T20:45:06Z
0 likes, 0 repeats
@nullobsi so it's like... two different languages that compile to the same bytecode for the same virtual machine?so kind like javascript vs typescript in deno, or maybe c vs c++...so well why does it need both elixir and erlang? the vm part that elixir uses is only in erlang?
(DIR) Post #AYCLA7vI4IEcBkPjXM by lamp@mastodon.cloud
2023-07-29T20:47:51Z
0 likes, 0 repeats
@jimfl oic, for the libaries. thx!@nullobsi
(DIR) Post #AYCLqDnkbR1IaAxZ8y by florin@techhub.social
2023-07-29T20:55:25Z
0 likes, 0 repeats
@lamp elixir requires Erlang to run. As such, the elixir docker image that you’re referring to, is built “from” the Erlang one. If you need Elixir then you’ll get Erlang too.
(DIR) Post #AYD7ap1FFxAhB3zhmC by orsinium@fosstodon.org
2023-07-30T05:50:27Z
0 likes, 0 repeats
@lamp BEAM is like JVM. Erlang is like Java. Elixir is like Kotlin or Clojure. BEAM is a VM created to run Erlang, and Elixir is a language written in Erlang that can compile into BEAM and interoperate with Erlang libraries.If something says it needs Elixir, it naturally also needs Erlang. If you're picking a Docker image and don't know which one something needs, pick Elixir one, it should have both Erlang and Elixir.