News for hackers. Stuff that matters.
Re:Clojerl – Clojure for the Erlang VM by ggregoire on Wednesday June 19, 2019 @12:09AM (#20220726)
Any initiative like this (language on top of the Erlang VM) with static typing out-of-the-box?

I really want to love Elixir but dynamic typing is a NO for me.

Re:Clojerl – Clojure for the Erlang VM by macintux on Wednesday June 19, 2019 @12:30AM (#20220806)
Re:Clojerl – Clojure for the Erlang VM by toastal on Wednesday June 19, 2019 @12:49AM (#20220876)
There's Purerl for PureScript that compiles to Erlang. There's a maintained package set for Spago for the Purerl community.
Re:Clojerl – Clojure for the Erlang VM by starman100 on Wednesday June 19, 2019 @01:04AM (#20220931)
Just use Erlang with Dialyzer. It's not quite as nice as a lanugage with types built-in, but if you're strict about using it, it does work. I won't code without it.
Re:Clojerl – Clojure for the Erlang VM by PopeDotNinja on Wednesday June 19, 2019 @01:09AM (#20220953)
I have burned more time than I care to admit trying to decipher dialyzer output shenanigans. I love dialyzer when my code doesn't generate any errors, and the rest of the time I kind of want to cry.
Re:Clojerl – Clojure for the Erlang VM by _asummers on Wednesday June 19, 2019 @07:59AM (#20222496)
Not sufficient, and not for Erlang, but Dialyxir has a `mix dialyzer.explain` command, which gives an example of code that might cause a certain error. Some errors I have been unable to reproduce and I welcome examples of code that would produce them, so PRs are welcome =). Here is what I say for no_return, for example [0].

I maintain a library for converting Erlang Dialyzer messages to Elixir (Erlex [1]) which I hope to one day be able to retire with a stronger Elixir/Erlang communication (AST instead of string communication, e.g., and direct diffs between types).

[0] https://github.com/jeremyjh/dialyxir/blob/master/lib/dialyxi... [1] https://github.com/asummers/erlex

Re:Clojerl – Clojure for the Erlang VM by PopeDotNinja on Wednesday June 19, 2019 @10:23AM (#20223608)
Ah, neat. I didn't know about dialyzer.explain. Will most def investigate.
Re:Clojerl – Clojure for the Erlang VM by zambal on Wednesday June 19, 2019 @02:28AM (#20221247)
Yeah, it would be really nice if the function has no local return errors could be more specific.
Re:Clojerl – Clojure for the Erlang VM by johnsimer on Wednesday June 19, 2019 @12:25AM (#20220785)
GLEAM - its Ocaml + elixir
Re:Clojerl – Clojure for the Erlang VM by macintux on Wednesday June 19, 2019 @12:38AM (#20220835)
Thanks, added that to my gist.