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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How many of you guys like erlang

12 点作者 yuashizuki超过 10 年前
How many of u like erlang compared to other programing languages, and what are your thoughts about it.

7 条评论

HashNuke超过 10 年前
I initially learnt Erlang to write websocket backends for browser-based games. Then found Elixir and moved on to it. I still work with the same stuff that OTP offers, along with a lot of sugary features that Elixir and it&#x27;s community provides.<p>The Erlang syntax might be weird at first. But you&#x27;ll get used to it.<p>Pattern matching for function arguments is a life-saver. Erlang also runs checks on your module when it gets compiled. It tells you if vars are being used or not, etc. Very handy IMHO.<p>The best side-effect of the concurrency model, is that your production environment, apart from config vars, will be almost same as your development environment. Unlike most languages today, you won&#x27;t need a separate server program (Unicorn, Thin, Passenger, etc). You don&#x27;t have to put your app behind nginx or apache. Use Cowboy (or alternatives), which is a server library for Erlang. I&#x27;ll take care of stuff for you.<p>I write some Elixir libraries in my spare time <a href="http://github.com/HashNuke" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;HashNuke</a>
jw2013超过 10 年前
For the language I love its concurrency model; creating thousands of &quot;processes&quot; at your PC&#x2F;laptop is no problem. Message passing over shared memory also makes your distributed program easy to reason about. When talking about Erlang, you can&#x27;t avoid OTP. It makes creating fault tolerant system at ease. Putting these two pieces together you have a very scalable fault tolerant distributed system.<p>I don&#x27;t like the syntax of erlang though. And the missing of macro makes me switch to Elixir.
bjourne超过 10 年前
Not so fond of it. The syntax is ok (after a while), but the way records work is annoying. You have to use a lot of syntax to reach into records containing other records, especially if you want to change a field in a record in a record. They are also compile-time only and &quot;disappears&quot; after compilation (they become tagged lists).<p>No builtin syntax for dicts.<p>Hot code-swapping is its killer feature though. A system mostly written in Erlang can run multiple versions of itself and gradually upgrade data to the new version or downgrade to the old one. E.g your webserver can go from 1.0 to 1.1 without having to suffer even a second of downtime. No other language that I know of has that feature.
rubiquity超过 10 年前
I love Erlang, though I mostly use Elixir. It&#x27;s changed how I think about programming in a very refreshing way. The Erlang community is also incredibly practical. I enjoy programming languages that are born out of research, such as Rust and others, but I really enjoy Erlang because it was born out of solving a problem. We&#x27;re very fortunate that the problem Erlang creators were trying to solve back in the 80s and 90s is a pretty common problem today.<p>It&#x27;s easy to get hung up at the aesthetics of Erlang. But the parts that really change you as a programmer are the ideals that Erlang embodies. I urge you to continue on, or learn Erlang by way of Elixir.
amitu超过 10 年前
I loved erlang. I still do. To me it is the most well designed language&#x2F;library set for distributed programming. I love their approach about error handling.<p>But I find golang much more accessible. Erlang does not scale down, for simpler tasks, erlang feels like an overkill.<p>Also while I love erlang syntax, and the functional style, my colleagues find golang lot more palatable than erlang.
lastofus超过 10 年前
I enjoyed learning and using it. The syntax is annoying though.<p>These days I&#x27;ve been happy with Python + gevent for the kinds of things I was using Erlang for (writing load test scripts w&#x2F; lots of concurrent connections). I never had much need for what OTP offers.
评论 #8476220 未加载
abips超过 10 年前
I love the way Erlang simplifies distributed and concurrent programming.<p>The syntax is a bit weird though and the library support is lacking a bit but a very fine language indeed.