TNS
VOXPOP
Will JavaScript type annotations kill TypeScript?
The creators of Svelte and Turbo 8 both dropped TS recently saying that "it's not worth it".
Yes: If JavaScript gets type annotations then there's no reason for TypeScript to exist.
0%
No: TypeScript remains the best language for structuring large enterprise applications.
0%
TBD: The existing user base and its corpensource owner means that TypeScript isn’t likely to reach EOL without a putting up a fight.
0%
I hope they both die. I mean, if you really need strong types in the browser then you could leverage WASM and use a real programming language.
0%
I don’t know and I don’t care.
0%
Edge Computing / Software Development / Tech Life

Erlang, a Language for the Internet of Things

Aug 5th, 2016 10:01am by
Featued image for: Erlang, a Language for the Internet of Things
Feature Image via Pixabay.

As telecommunications has grown over the years, the internet has brought with it the ability for developers working with established programming languages such as Erlang to move into the spotlight. While not a new language, Erlang’s maturity has meant that companies such as Basho are utilizing it in their platform to help build scalable databases, and break into the opportunities that the Internet of Things offers.

In this episode of The New Stack Makers embedded below, we explore Erlang’s beginnings, how the language has evolved in the present IoT-driven landscape, its unique differences when working at scale, and what the future of Erlang may look like. The New Stack founder Alex Williams spoke with Basho chief technology officer Dave McCrory and Erlang Solutions founder and technical director Francesco Cesarini to hear their thoughts.


Erlang, a Language for the Internet of Things

Back in the mid-1980s, it was necessary for Ericsson Computer Science Lab (CSLab), researchers to invent Erlang, a concurrent functional general purpose programming language.

“They spent three or four years researching different technologies and programming languages and came to the conclusion that there was no one language that fit the purpose. They decided to go ahead and invent a programming language, and Erlang was the result. Unlike a lot of programming languages out there, comp sci set out to solve a problem and the solution happened to be Erlang. They did not set out to develop a programming language and then figure out what to do with it,” said Cesarini.

Beyond telcos, another big user of Erlang is the Basho Riak key-value database. “Erlang is the core that Riak is built on. It was chosen very early on for its ability to operate in a highly distributed fashion,” noted McCrory.

McCrory later highlighted the potential which Erlang brings to the table, particularly in smart homes. He then went on to explain that while smart in-home devices are becoming commonplace, many buildings were also beginning to interconnect their lighting systems using a combination of sensors and Internet.

Erlang stands apart from its alternatives for how the language handles issues, which Cesarini noted is built on the premise of a supervision tree with an escalating model. “We avoid defensive programming in Erlang. If a state becomes corrupt, don’t try to correct it within your program. We have another process within the supervisor, which will in a standardized way try to address the issue,” Cesarini explained.

As for the future of Erlang, it appears to be bright. New languages such as Elixir have been created, based off of Erlang and that are gaining traction not only in the developer community as a whole but are on the roadmap at Basho.

Simplicity is what sets Elixir apart, which McCrory hopes will interest developers into trying out the language for themselves. “I like the idea of Elixir, because it will also lead some people to want to do things that hit the edge cases of Elixir, and may end up driving them to learn Erlang. So, I think that it benefits the community in multiple ways, and it also shows just how powerful the Beam VM [an Erlang virtual machine] and Erlang as a combination are, and what you can do if you set your mind to it.”

2016.08.10_openstack_pancakepodcast_socialmedia__1_

Group Created with Sketch.
TNS owner Insight Partners is an investor in: The New Stack.
THE NEW STACK UPDATE A newsletter digest of the week’s most important stories & analyses.