Programming Lenguages: ERLANG: José Armando Balche Tuk

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Programming Lenguages: ERLANG

José Armando Balche Tuk


UADY
Mérida, México
armando_balche@outlook.com

Abstract— Erlang was developed by Ericsson to aid in the and you’re set. If you are a brave beginner tackling your
development of software for managing a number of different first programming language, this is easily your best bet.
telecom projects, with the first version being released in 1986,
and the first open source release of the language in 1998. We can On Linux or Mac OS X, you may be able to download the
see this in the extended Erlang release information where the source file and compile it. If the compilation approach doesn’t
Open Telecom Platform (OTP), the application development work or isn’t for you, Erlang Solutions offers a number of
platform for Erlang, exists as the primary method of delivering installs at
the Erlang development environment. This article will show an http://www.erlangsolutions.com/section/132/download-
overview of this programming language. erlangotp .

I. INTRODUCTION
Developed at Ericsson to serve on telephone switching
equipment, it seemed like a strangely special-purpose
language until recently, when our computer and network
architectures came to look a lot more like massively parallel
telephone-switching equipment.
Erlang provides a number of standard features not found in or
difficult to manage in other languages. Much of this Figure 1. Download page
functionality exists in Erlang because of it's telecom roots.
What is OTP?
For example, Erlang includes a very simple concurrency OTP is set of Erlang libraries and design principles providing
model, allowing individual blocks of code to be executed middle-ware to develop these systems. It includes its own
multiple times on the same host with relative ease. In addition distributed database, applications.
to this concurrency Erlang uses an error model that allows
failures within these processes to be identified and handled,
When installation finished, you have to add the path to the
even by a new process, which makes building highly fault
tolerant applications very easy. Finally, Erlang includes built- Command Prompt (Windows). Copy the addres of the bin
in distributed processing, allowing components to be run on file. The next figure shows it.
one machine while being requested from another.
Erlang currently occupies the 51st position of the top
programming languages IEEE’s. Figure 2. Address to copy

Next step, in the pc properties > advance settings>


Environment Variables > Edit > New .You have paste the
address.
II. INSTALATION. When finished this process, in the CM (Command Prompt)
type werl. In this moment, open the window of the editor
Erlang is officially available from
program Erlang.
http://www.erlang.org/download.html. On Windows, it’s easy.
Download the Windows binary file, run the installer,
The functional programming approach is easy to
understand, but can be difficult to apply if you are used to the
more procedural and state-focused imperative languages..
V. CONCLUSION

The structure and format of Erlang programs is very


different to most other languages. Although many of the data
types and fundamental expressions are the same, their use and
application is slightly different. Single use variables, and the
significance of the evaluation of different expressions as
demonstrated through the pattern matching system provide
some powerful extensions to the typical language
Figure 3. Add to the path the address
environment. For example, the ability to define multiple
approaches to the same functions and employ pattern
III. COMPILER CHARACTERISTICS
matching for recursive calls simplifies some functions.
A main difference between Erlang and more popular
languages is that Erlang is primarily a functional programming
language. This has nothing to do with whether it supports Next time we will look at the processes, message parsing,
functions, but is related to how the operation of programs and and network facilities of Erlang, and take a look at the
components works. MochiWeb HTTP server as a way of understanding the power
With functional programming, the functions and and flexibility of the language
operations of the language are designed in a similar way to
mathematical calculations, in that the language operates on
functions taking input and generating a result. The functional .
programming paradigm means that the individual blocks of
code can produce consistent output values for the same input REFERENCES
values. This makes predicting the output of the function or [1] Laurent, S. S. (2017). Introducing Erlang: Getting Started in Functional
program much easier and, therefore easier to debug and Programming. " O'Reilly Media, Inc."
analyze. [2] EEE Spectrum. “Interactive: The Top Programming Languages 2018,
https://spectrum.ieee.org/static/interactive-the-top-programming-
The contrasting programming paradigm is the imperative languages-2020.
programming language, such as Perl, or Java, which rely on [3] Introduction to programming in Erlang, Part 1, Martin brown,
changing the state of the application during execution. The https://www.ibm.com/developerworks/library/os-erlang1/index.html
change of state in imperative programming languages means [4] Erlang org, “Getting Started with Erlang,”, online.
that the individual components of a program can produce [5] R. Nicole, “Title of paper with only first word capitalized,” J. Name
Stand. Abbrev., in press.
different results with the same input values, based on the state
of the program at the time. Y.

IV. EXAMPLES

You might also like