Erlang Tinkering

ABOUT ERLANG

Erlang (/ˈɜːrlæŋ/ UR-lang) is a general-purpose, concurrent, functional programming language, as well as a garbage-collected runtime system.

The term Erlang is used interchangeably with Erlang/OTP, or OTP, which consists of the Erlang runtime system, a number of ready-to-use components mainly written in Erlang, and a set of design principles for Erlang programs.[3]

The Erlang runtime system is known for its designs that are well suited for systems with the following characteristics:

Distributed
Fault-tolerant
Soft real-time
Highly available, non-stop applications
Hot swapping, where code can be changed without stopping a system.[4]
The Erlang programming language is known for the following properties:[5]

Immutable data
Pattern matching
Functional programming

TYPICAL COMMANDLINE SESSION
[bash]
$erl
[/bash]
TYPICAL ERLANG SHELL RELATED
[erlang]
Eshell V5.10.1 (abort with ^G)
1> q().
ok
2> $erl
Erlang R16B (erts-5.10.1) [64-bit] [async-threads:10] [kernel-poll:false]

Eshell V5.10.1 (abort with ^G)
1> q()
1>
1> .
ok
2> $erl
Erlang R16B (erts-5.10.1) [64-bit] [async-threads:10] [kernel-poll:false]

Eshell V5.10.1 (abort with ^G)
1> 10
1> .
10
2> 23.
23
3> 2#000000
3> .
0
4> 2#111111.
63
5> 8#111111.
37449
6> 16#111111.
1118481
7> 16#jeffrin
* 1: illegal integer
7> 2#jeffrin
* 1: illegal integer
7> 2#jeffrin.
* 1: illegal integer
7> 2#j
* 1: illegal integer
7> 2#cafe
* 1: illegal integer
7>
[/erlang]
LINK
https://en.wikipedia.org/wiki/Erlang_(programming_language)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s