News for hackers. Stuff that matters.
Re:Why I Program in Erlang by owyn on Tuesday November 01, 2022 @09:46PM (#33430499)
Elixir compiles to bytecode for the Erlang VM (BEAM). I would put it in the same relationship category as Clojure and Java or Kotlin and Java. Different language but there's a lot of synergy in the libraries/ecosystem/etc. If something goes wrong in your Elixir application it would be a really good idea to understand Erlang and BEAM.
Re:Why I Program in Erlang by macintux on Tuesday November 01, 2022 @10:15PM (#33430696)
I can't speak to Kotlin, but Clojure : Java :: Elixir : Erlang doesn't seem like a great analogy. Clojure and Java have very different philosophies, while Elixir has virtually identical semantics to Erlang.
Re:Why I Program in Erlang by transfire on Tuesday November 01, 2022 @10:39PM (#33430843)
Kotlin : Java :: Elixir :: Erlang

Clojure : Java :: LFE : Erlang

Re:Why I Program in Erlang by macintux on Tuesday November 01, 2022 @10:46PM (#33430880)
Mayyyybe. LFE is still much closer to Erlang than Clojure is to Java.
Re:Why I Program in Erlang by Jtsummers on Tuesday November 01, 2022 @11:09PM (#33431014)
Yeah, I learned LFE a few years back after years of (sadly only) hobby Erlang programming. I don't think anything in it surprised me. It felt very much like: What if Erlang's syntax were replaced with sexprs and we used Lisp-y style macros? Clojure's relationship to Java is nowhere near the same.

Knowing Erlang + Scheme and CL, LFE like exactly what I expected, with a strong Erlang vibe. Knowing Java + Scheme and CL, Clojure felt nothing like Java except that it could access Java classes and objects.

Re:Why I Program in Erlang by macintux on Wednesday November 02, 2022 @02:25AM (#33431983)
Fundamentally the BEAM is very opinionated with a limited range of possible language designs that would work with it. No mutability, e.g.

I love the opinionated, constrained nature of Erlang and the BEAM, vs the kitchen sink approach of Java and the JVM.

Re:Why I Program in Erlang by janosett on Wednesday November 02, 2022 @02:54AM (#33432130)
Maybe Scala : Java :: Elixir : Erlang
Re:Why I Program in Erlang by anko on Wednesday November 02, 2022 @04:33AM (#33432751)
I'm not too sure - scala really has a crazy number of language features, which makes the scope of it way bigger. I'd say kotlin : Java is closer :)
Re:Why I Program in Erlang by kaba0 on Thursday November 03, 2022 @07:53AM (#33449671)
Actually, scala ain’t that big of a language, especially not compared to kotlin. Scala just prefers a bit more complex, but full feature over adding many less complex features that cover the same deal, which is more similar to Kotlin.