TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Flirting with Elixir

81 点作者 ptothek2超过 9 年前

6 条评论

1_player超过 9 年前
I&#x27;ve been &quot;obsessed&quot; with Elixir lately, and it truly is a breath of fresh air in the current programming language landscape.<p>I&#x27;ve started with C, built a career with backend Python services&#x2F;dashboards, and spent some time on the &quot;fringe&quot; 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 large libraries feels too much like magic (if you ever used Django, raise your hands if you&#x27;ve ever had to delve into the source code to understand what is going on).<p>I&#x27;ve had a fling with Go, I really like some of its ideas, namely static linking, native compilation, no exceptions, easy deploy (I wrote a huge Django 1.6 app shipped as RPM for RHEL 5 enterprise servers, and that was truly the definition of pain). I disliked the lack of functional constructs such as map, reduce, filter, and it felt a step back from the &quot;fringe&quot; languages I&#x27;ve been studying.<p>Then I discovered Elixir.<p>It&#x27;s a mix between Haskell without purity and types and Clojure without parens, with a Ruby-style syntax and a battle-tested framework for concurrency and distributed computing.<p>It&#x27;s like an immutable Python. With built-in virtualenv + pip tooling. And first-class macros. And pattern matching.<p>Pair that with a sane standard library (unit testing? logging? documentation? We&#x27;ve got you covered), a REPL, a LINQ-style lightweight ORM, and a very interesting web framework built around modern tech (websockets, JSON APIs, ES6).<p>And binary compatible with the most robust concurrency and supervision system, Erlang&#x2F;OTP.<p>I know I talk like a fanboy, but, man, programming feels like joy again.
评论 #10395057 未加载
评论 #10395000 未加载
评论 #10403335 未加载
评论 #10395030 未加载
评论 #10395255 未加载
davidw超过 9 年前
I&#x27;ve been using Erlang on and off since 2003, and used it heavily at the last place I worked to build a pretty cool product, so I&#x27;m a fan. That said, this article is a little bit hypey, although it&#x27;s all correct as far as I can see.<p>* I&#x27;d still build most products in Rails, because there is <i>so</i> much ecosystem that lets you get something up and running quickly. The exception being if I absolutely knew that the system had to aim for really big numbers from the get-go (which is not the kind of market I&#x27;m particularly even interested in these days), or had to be super-reliable, or some kind of semi-embedded system like what I did in the last place I worked. I loved Joe Armstrong&#x27;s answer here: <a href="http:&#x2F;&#x2F;erlang.org&#x2F;pipermail&#x2F;erlang-questions&#x2F;2015-October&#x2F;086379.html" rel="nofollow">http:&#x2F;&#x2F;erlang.org&#x2F;pipermail&#x2F;erlang-questions&#x2F;2015-October&#x2F;08...</a> - &quot;My goal would be to get something up and running as soon as possible and get users - and not worry about implementation details.&quot;<p>* By the same token, if you <i>know</i> you need something with raw computing speed, Erlang isn&#x27;t it either, as the article mentions. Although it&#x27;d certainly be possible for Erlang to farm out work to something faster, if the additional architectural complexity isn&#x27;t a problem.
评论 #10395017 未加载
jrnkntl超过 9 年前
I can highly recommend David Thomas&#x27; book Programming Elixir, I found it complete to get a good grip and also a great introduction into functional programming overall<p><a href="https:&#x2F;&#x2F;pragprog.com&#x2F;book&#x2F;elixir&#x2F;programming-elixir" rel="nofollow">https:&#x2F;&#x2F;pragprog.com&#x2F;book&#x2F;elixir&#x2F;programming-elixir</a>
评论 #10395129 未加载
capnhaddock超过 9 年前
I love Elixir. I come from a Ruby background, and while I prefer Elixir now, learning it has made all my code better.<p>LearnElixir.tv is another great place to learn it, if video screencasts are your thing.<p><a href="https:&#x2F;&#x2F;www.learnelixir.tv&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.learnelixir.tv&#x2F;</a>
scragg超过 9 年前
My good friend&#x27;s company is hiring engineer(s) with Elixir knowledge if anyone is interested. <a href="https:&#x2F;&#x2F;discordapp.com&#x2F;company#join" rel="nofollow">https:&#x2F;&#x2F;discordapp.com&#x2F;company#join</a>
评论 #10397682 未加载
resc1440超过 9 年前
Are macros useful in a web development context? I don&#x27;t feel like I&#x27;ve been missing them in Django, but maybe I&#x27;ve just forgotten because it&#x27;s been a long time since I wrote anything substantial in Scheme. (Are Elixir macros similar to Scheme macros?)
评论 #10395553 未加载