Earlier quoted context omitted.
Fallacy of composition. You're saying that any language with HOFs, immutability and "idiomatic way to contain state" is ergo Haskell-like, which is insane. None of these are even properties of Elixir, but of Erlang, which Elixir inherits. Erlang is self-evidently not Haskell-like. At best such a language would be merely functional. The actor model isn't even about anything analogous to monads, it's a concurrency mode…
> insane Rather than sling around heavy duty words like "insanity", you might try putting yourself in their shoes: perhaps their only exposure to a functional language is Haskell. Elixir is going to look a lot more like that, than, say, C++.
Flirting with Elixir
21–29 of 29 posts
Re: Flirting with Elixir
#22I've been "obsessed" with Elixir lately, and it truly is a breath of fresh air in the current programming language landscape. I've started with C, built a career with backend Python services/dashboards, and spent some time on the "fringe" learning about Lisp, Scheme, Haskell, Clojure. And once you rewire your brain with functional programming constructs or immutability, it is really hard to go back to Python, using l…
Haskell without purity and types I'm getting quite tired of this "Every functional language I can't precisely describe is like Haskell" sentiment. It's the "tastes like chicken" of programming languages. Then again, the original article is remarkably devoid of content, so I suppose it's only fitting. Interestingly, avoidance of excessive magic is a large reason why I stick to vanilla Erlang.
Erlang + optional type annotations + optional dialyzer verification is perfection.
Re: Flirting with Elixir
#23Earlier quoted context omitted.
> insane Rather than sling around heavy duty words like "insanity", you might try putting yourself in their shoes: perhaps their only exposure to a functional language is Haskell. Elixir is going to look a lot more like that, than, say, C++.
Irrelevant. Ignorance does not make inapt comparisons retroactively correct.
Re: Flirting with Elixir
#24My good friend's company is hiring engineer(s) with Elixir knowledge if anyone is interested. https://discordapp.com/company#join
Re: Flirting with Elixir
#25Earlier quoted context omitted.
Haskell without purity and types I'm getting quite tired of this "Every functional language I can't precisely describe is like Haskell" sentiment. It's the "tastes like chicken" of programming languages. Then again, the original article is remarkably devoid of content, so I suppose it's only fitting. Interestingly, avoidance of excessive magic is a large reason why I stick to vanilla Erlang.
I agree that the comparison with Haskell is ill fitting. The sentiment I wanted to express is that Elixir, like Haskell, is built around function (or module) composition, is immutable, and state is idiomatically handled separately (with separate processes and message passing, instead of monads).
Re: Flirting with Elixir
#26Are macros useful in a web development context? I don't feel like I've been missing them in Django, but maybe I've just forgotten because it's been a long time since I wrote anything substantial in Scheme. (Are Elixir macros similar to Scheme macros?)
Macros are the most powerful tool for making DSLs, which means they pop up in a lot of "specialized" niches, like web dev. You can make DSLs in other ways, but without the ability to inspect and decompose code at the per-token level, there are limitations to what can be done. Elixir macros are like Scheme macros; they're fully hygienic (no variable namespace issues), and they evaluate at compile time. The main differ…
Re: Flirting with Elixir
#27I've been "obsessed" with Elixir lately, and it truly is a breath of fresh air in the current programming language landscape. I've started with C, built a career with backend Python services/dashboards, and spent some time on the "fringe" learning about Lisp, Scheme, Haskell, Clojure. And once you rewire your brain with functional programming constructs or immutability, it is really hard to go back to Python, using l…
[1] - https://groups.google.com/forum/#!topic/lisp-flavoured-erlan...
Re: Flirting with Elixir
#28Are macros useful in a web development context? I don't feel like I've been missing them in Django, but maybe I've just forgotten because it's been a long time since I wrote anything substantial in Scheme. (Are Elixir macros similar to Scheme macros?)
Macros are the most powerful tool for making DSLs, which means they pop up in a lot of "specialized" niches, like web dev. You can make DSLs in other ways, but without the ability to inspect and decompose code at the per-token level, there are limitations to what can be done. Elixir macros are like Scheme macros; they're fully hygienic (no variable namespace issues), and they evaluate at compile time. The main differ…
[1] https://groups.google.com/forum/#!topic/lisp-flavoured-erlan...
[2] http://devintorr.es/blog/2013/06/11/elixir-its-not-about-syn...
Re: Flirting with Elixir
#29Earlier quoted context omitted.
Macros are the most powerful tool for making DSLs, which means they pop up in a lot of "specialized" niches, like web dev. You can make DSLs in other ways, but without the ability to inspect and decompose code at the per-token level, there are limitations to what can be done. Elixir macros are like Scheme macros; they're fully hygienic (no variable namespace issues), and they evaluate at compile time. The main differ…
Elixir is great, and I would loosely say it not homoiconic as Robert Virding, one of the original Erlang team and creator of LFE (Lisp Flavored Erlang), posits in an exchange with Jose Valim, creator of Elixir here[1]. In terms of qualifying a JSON-equivalent data structure as richer, compared to lists in Scheme or Lisp, I would disagree. I think you lose the code-as-data (down to the languages fundamentals) win in S…