- February 28, 2014
- Posted by: Anjana V K
- Category: Technology
Lately, a lot of attention has been gathering over Elixir, one of the latest programming language.
So what is Elixir? Elixir, a functional, concurrent language built on the Erlang VM with syntax close to the Ruby programming language. Apart from Ruby, Elixir is a language that is inspired by the syntax and concepts of various other languages such as Clojure, Haskell, Python and even Lisp.
So what’s the game changer that makes Elixir smarter? Elixir’s flexible syntax and macro support for metaprogramming allows one to devise elegant and concise constructs that seems as if they’re integral part of the language. Metaprogramming helps one remove structural duplication, a situation where two pieces of code share the same abstract pattern, but differ in various details. Elixir works directly with the source code to do smart things. Tests rarely require more than the built-in assert, to display meaningful errors.
Single-line functions and multi-line blocks are made equivalent with Elixir. Which means one can write a macro that works just like a built-in in both cases. Elixir is implemented with the same tools that are for use, so one can write a macro that works like the language does. With the ready to go built-in commands of unit tests, the hassles of learning and writing unit tests are eliminated in Elixir. Currently, InApp is engaged in software development using Elixir for a B2B auction company based out of Japan. It will be a challenge to master this cutting edge technology, taking into consideration all the advantages it offers.
The Elixir programming language is authored by stealing useful features from other languages, thus making it easier to write complex applications. It is easier to write more performant code in Elixir simply because of the power available to the user at compile time.