TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Elixir – The next big language for the web

155 pointsby lautabout 10 years ago

11 comments

losvedirabout 10 years ago
As a rails developer primarily, and someone dabbling with Elixir&#x2F;Phoenix on the side, I get this feeling, too. It&#x27;s taken the best of rails, dropped the annoying parts (e.g.: weird pluralization stuff, magic connection between instance variables in controllers and views, an explosion of path helpers (Phoenix&#x27;s approach is basically post_path(:index), post_path(:show, 5), etc.)), and then put it on the rock solid Erlang VM.<p>I remember hearing the &quot;genesis story&quot; of Elixir. IIRC, José was working on ensuring Rails was thread safe. He did so, but was dismayed with the difficulty and felt like he was fighting Ruby. So he stepped back, and thought that if concurrency is the future, he should find a better language for it. He looked into immutable, functional languages (Haskell, Clojure, Erlang), and realized that Erlang is built for an arguably harder problem: distributed computing, and made the connection that concurrency is sort of a smaller case of that. He worked with Erlang for awhile before deciding that it could be improved by building on it.<p>Going through the Elixir tutorial and seeing how you could &quot;simulate&quot; state, by spinning up an infinite loop in another process and sending messages to it was mind bending. And learning about Erlang&#x27;s OTP principles has made me really think about robustness differently. I really do hope Elixir&#x2F;Phoenix become the next big language and web framework.
tatterdemalionabout 10 years ago
I don&#x27;t know much about Elixir but it seems like a really interesting language. The space it&#x27;s trying to fit is definitely something needed: a good, flexible, high level language like Python&#x2F;Ruby but with strong concurrency support and a functional paradigm.<p>Can anyone give more information on the nature of Elixir&#x27;s type system? Without digging into the docs I see elixer-lang says that its dynamically typed, but how strongly typed, is it robust, does it have ADTs, inheritance, etc?<p>edit: looking an inch deeper, I see that it has &#x27;protocols,&#x27; which seem like typeclasses, and &#x27;typespecs,&#x27; which seem like gradual typing
评论 #9408953 未加载
vezzy-fnordabout 10 years ago
<i>I think part of it is that with Erlang it is not as easy to get up and running with a new website.</i><p>I&#x27;m doing this at present and there is no special difficulty.<p><i>And things like package management, build tools, meta-programming, unicode handling and web frameworks are not as straight forward as in languages such as Ruby.</i><p>Erlang&#x27;s module system means that a chunk of the raison d&#x27;etre behind language-specific package managers is already alleviated. The rest - dependency management and building, is handled quite well by tools like Rebar. One can also leave Rebar as a dependency tool strictly (which is its primary purpose anyway) and use whatever they like for a build system. Plain old Makefiles can work just fine, and it&#x27;s not like most language-targeted build systems aren&#x27;t some shiny variation of make, anyway.<p>Metaprogramming isn&#x27;t quite as easy as in many OO languages, but it&#x27;s hardly out of reach. The parser, the lexical scanner and other components are all exposed as Erlang modules, and there are projects such as the BossDB ORM that use parser transforms to provide features such as parameterized modules, which allow for using Rails-like ActiveRecord patterns, among other things.<p>Unicode handling? I think this might be a knock on Erlang&#x27;s string handling. Strings are represented as iolists of Unicode points (integers) which goes with much of Erlang&#x27;s philosophy in lists and tuples as being the prime data types. Space efficiency and real-world usage usually has strings passed as binaries, but most web frameworks and libs can handle them plainly nonetheless.<p>Web frameworks? Chicago Boss for a Rails-like, Nitrogen and N2O for real-time and extremely high load applications, or even just plugging in to web servers like Cowboy or Yaws can be enough for a RESTful backend.
评论 #9409786 未加载
评论 #9409798 未加载
评论 #9411878 未加载
pbowyerabout 10 years ago
Given some were touting Go as the next big language what - 12-18 months ago - can anyone enlighten me why Elixir would be different to Go. Or where Go didn&#x27;t live up to its promises?
评论 #9409803 未加载
评论 #9409792 未加载
评论 #9418587 未加载
评论 #9409741 未加载
评论 #9409773 未加载
amarsahinovicabout 10 years ago
<a href="http:&#x2F;&#x2F;elixir-web.github.io&#x2F;weber&#x2F;" rel="nofollow">http:&#x2F;&#x2F;elixir-web.github.io&#x2F;weber&#x2F;</a>
评论 #9409555 未加载
sergiotapiaabout 10 years ago
I think the next big thing is Meteor. Here&#x27;s why:<p>1. Real-time baked in.<p>2. Uses Javascript (tons and tons of developers know at least enough to use Meteor)<p>3. Sane templating engine.<p>4. Same wow effect I had when I first started Rails.<p>5. Fantastic build system.<p>Pheonix and Elixir may be the bees knees, but unfortunately because it uses a functional language, it drastically cuts down the mindshare of developers. I don&#x27;t even know any developers in real life that use functional languages. Looks interesting but that&#x27;s the reality.
评论 #9409453 未加载
评论 #9409670 未加载
评论 #9421219 未加载
评论 #9409061 未加载
评论 #9409102 未加载
cgagabout 10 years ago
Does dialyzer work with elixir?
评论 #9409893 未加载
评论 #9424084 未加载
评论 #9409119 未加载
ksecabout 10 years ago
I thought Erlang was abandon within Ericsson, and it was Open Sourced so people can continue to use it. Can anyone explain what is Erlang Public License? Why not something like Apache, GPL or MIT?
评论 #9417322 未加载
评论 #9424059 未加载
filereaperabout 10 years ago
I&#x27;ve been monitoring Elixir on HN for a while now, looks like an interesting direction to take.<p>I wanted to know which direction Elixir is going to take? Will Elixir be mostly compatible enough with Ruby so that Rails can run directly off on Elixir?<p>Is there a plan to change Rails enough to run on Elixir?<p>How does the community feel about Elixir? I&#x27;m certainly interested in the concurrency aspects of Elixir (ie. no GIL) and everything else that Erlang has to offer.<p>The developers of Elixir were core Rails developers so please forgive me if I&#x27;m getting the wrong impression here.
评论 #9409776 未加载
评论 #9411799 未加载
评论 #9409935 未加载
pronabout 10 years ago
Not about Elixir specifically, but don&#x27;t people get tired of switching languages? What, people will now have to port all Ruby libraries to Elixir (or, at the very least, relearn them), and then a few years down the line to the next thing? Isn&#x27;t this a huge waste of effort? Not to mention the poor CTO who gets a job at such an early-adopter company in 15 years, and finds out the codebase is made up of 7 different languages, four of them have been defunct for years? I mean, a language&#x27;s benefit must <i>at least</i> cover all the switching costs, the fractured codebase costs and then some to justify adoption. Are all the new languages such huge advances over older ones that they do that?
评论 #9409697 未加载
评论 #9409750 未加载
评论 #9409311 未加载
JustSomeNobodyabout 10 years ago
This isn&#x27;t a criticism of Elixir (I&#x27;ve never used it, so I can&#x27;t do that), but how can one just declare something &quot;The Next Big&quot; thing?
评论 #9409293 未加载
评论 #9408981 未加载