Erlang - Overview
Erlang is a functional programming language which also has a runtime environment. It was built in such a way that it had integrated support for concurrency, distribution and fault tolerance. Erlang was originally developed to be used in several large telecommunication systems from Ericsson.The first version of Erlang was developed by Joe Armstrong, Robert Virding and Mike Williams in 1986. It was originally a proprietary language within Ericsson. It was later released as an open source language in year 1998. Erlang, along with OTP, a collection of middleware and libraries in Erlang, are now supported and maintained by the OTP product unit at Ericsson and widely referred to as Erlang/OTP.
Why Erlang?
Erlang should be used to develop your application, if you have the following requirements −- The application needs to handle a large number of concurrent activities.
- It should be easily distributable over a network of computers.
- There should be a facility to make the application fault-tolerant to both software and hardware errors.
- The application should be scalable. This means that it should have the ability to span across multiple servers with little or no change.
- It should be easily upgradable and reconfigurable without having to stop and restart the application itself.
- The application should be responsive to users within certain strict timeframes.
![Erlang Official Website](https://www.tutorialspoint.com/erlang/images/erlang_official_website.jpg)
Erlang - Environment
Now before you can start working on Erlang, you need to ensure that you have a fully functional version of Erlang running on your system. This section will look into the installation of Erlang and its subsequent configuration on a windows machine to get started with Erlang.Try it Option Online
You really do not need to set up your own environment to start learning Erlang programming language. Reason is very simple, we have already set up Erlang Programming environment online, so that you can compile and execute all the available examples online at the same time when you are doing your theory work. This gives you confidence in what you are reading and to check the result with different options. Feel free to modify any example and execute it online.
Try the following example using our online compiler option available at CodingGround
% hello world program -module(helloworld). -export([start/0]). start() -> io:fwrite("Hello, world!\n").For most of the examples given in this tutorial, you will find Try it option in our website code sections at the top right corner that will take you to the online compiler. So just make use of it and enjoy your learning.
Ensure that the following system requirements are met before proceeding with the installation.
System Requirements
Memory | 2 GB RAM (recommended) |
Disk Space | No minimum requirement. Preferably to have enough storage to store the applications which will be created using Erlang. |
Operating System Version | Erlang can be installed on Windows, Ubuntu/Debian, Mac OS X. |
Downloading Erlang
To download Erlang, one must go to the following url − http://www.erlang.org/downloadsThis page has a variety of downloads and also the steps required to download and install the language on Linux and Mac platforms.
![Erlang Download](https://www.tutorialspoint.com/erlang/images/erlang_download.jpg)
Erlang Installation
The following steps detail how Erlang can be installed on Windows −Step 1 − Launch the Installer downloaded in the earlier section. After the installer starts, click Run.
![Erlang Installation](https://www.tutorialspoint.com/erlang/images/erlang_installation.jpg)
![Select Components](https://www.tutorialspoint.com/erlang/images/select_components.jpg)
![Installation Path](https://www.tutorialspoint.com/erlang/images/installation_path.jpg)
![Start Menu Item](https://www.tutorialspoint.com/erlang/images/start_menu_item.jpg)
![Installation Completed](https://www.tutorialspoint.com/erlang/images/installation_completed.jpg)
Erlang Configuration
After the installation is complete the following configuration needs to be carried out to ensure that Erlang starts working on the system.OS | Output |
---|---|
Windows | Append the String; C:\Program Files(x86)\erl7.2.1\bin OR C:\Program Files\erl7.2.1\bin to the end of the system variable PATH. |
![Erlang Configuration](https://www.tutorialspoint.com/erlang/images/erlang_configuration.jpg)
Installation of Plugin-ins on Popular IDE’s
Erlang as a programming language is also available in popular IDE’s such as Eclipse and IntelliJ. Let’s look at how we can get the required plugin’s in these IDE’s so that you have more choices in working with Erlang.Installation in Eclipse
Step 1 − Open Eclipse and click the Menu item, Help → Install New Software.![Installation in Eclipse](https://www.tutorialspoint.com/erlang/images/installation_in_eclipse.jpg)
Then click Add.
![Enter Work](https://www.tutorialspoint.com/erlang/images/enter_work.jpg)
![Enter Plugin Name](https://www.tutorialspoint.com/erlang/images/enter_plugin_name.jpg)
![Get Required Plugin](https://www.tutorialspoint.com/erlang/images/get_required_plugin.jpg)
![Installed Components](https://www.tutorialspoint.com/erlang/images/installed_components.jpg)
![Review Installed Components](https://www.tutorialspoint.com/erlang/images/review_installed_components.jpg)
![Accept License Agreement](https://www.tutorialspoint.com/erlang/images/accept_license_agreement.jpg)
Once Eclipse is restarted, when you create a project, you will be able to see Erlang as an option as well.
No comments:
Post a Comment