News for hackers. Stuff that matters.
Re:Ruby and Elixir: Polyglottin' FTW by dozzie on Friday March 06, 2015 @05:48AM (#9156475)
Yeah, be polyglot by speaking American English and British English! I mean, Ruby and Elixir!

http://satwcomic.com/multi-language/moby-is-a-dick

Re:Ruby and Elixir: Polyglottin' FTW by pselbert on Friday March 06, 2015 @09:56AM (#9157240)
That's like claiming any two C syntax inspired languages are the same because they share curly braces, semicolons and naming conventions.
Re:Ruby and Elixir: Polyglottin' FTW by dagw on Friday March 06, 2015 @06:59AM (#9156627)
While Ruby and Elixir have quite similar syntax, their underlying run time models are fundamentally very different.
Re:Ruby and Elixir: Polyglottin' FTW by pmontra on Friday March 06, 2015 @11:06AM (#9157715)
Yes very different model, and you realize that the syntax is not so similar once you really start working with Elixir: you start using constructs that don't belong to procedural languages at all.

Similarities don't go much further than def do end (but there are too many do and too many different def in Elixir) and the sensible naming of some Library.functions() to match classes and methods in Ruby's standard library. But hey, making a good first impression is extremely important and Elixir has been engineered well in that regard. It's not one of those I'll-never-ever-be-able-to-read-it languages.

Re:Ruby and Elixir: Polyglottin' FTW by sanderjd on Friday March 06, 2015 @12:01PM (#9158061)
Yeah, I wonder if Elixir's superficial similarity to Ruby was actually a mistake. It makes some people think they can just write Ruby and have it run faster, only to become frustrated, and others scoff at it due to prejudice against Ruby. On the other hand, I think it has a really nice syntax that works very well for its semantics, so from a purely technical standpoint it was a good choice.
Re:Ruby and Elixir: Polyglottin' FTW by phamilton on Saturday March 07, 2015 @01:17PM (#9162526)
This is an open acknowledged issue on elixir-lang-core mailing lists. Many requests to make Elixir behave like Ruby are shot down. Often, what is requested already has a powerful analog in Elixir. If not, a lot of thought goes into how to add said feature according to Elixir idioms and style rather than blindly porting from Ruby.