Erlang: Difference between revisions

From ArchWiki
(Update Interlanguage link)
(Add links to other languages)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Programming languages]]
[[Category:Programming languages]]
[[es:Erlang]]
[[es:Erlang]]
[[ja:Erlang]]
[[zh-hans:Erlang]]
[[zh-hans:Erlang]]
{{Expansion|This article is a stub. Can it be extended without duplicating the upstream docs?}}
{{Merge|List of applications|Content does not justify dedicated article}}
[https://www.erlang.org/ Erlang] is a programming language with the specific qualities of immutable data and distributed computing.
[https://www.erlang.org/ Erlang] is a programming language with the specific qualities of immutable data and distributed computing.


Line 11: Line 12:
== Usage ==
== Usage ==


For further documentation you can read [http://erlang.org/doc/getting_started/intro.html Erlang's docs].
For further documentation you can read [https://erlang.org/doc/getting_started/intro.html Erlang's docs].


To activate the console, type in the command {{ic|erl}}
To activate the console, run:


Where you can enter commands like so:
$ erl


    Erlang/OTP 22 [erts-10.7.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Commands can be entered like this:
    Eshell V10.7.2  (abort with ^G)
 
    1> 1 + 2 .
Erlang/OTP 22 [erts-10.7.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
    3
Eshell V10.7.2  (abort with ^G)
    2> (2 + 3) * 4 / 5 .
1> 1 + 2 .
    4.0
3
    3>
2> (2 + 3) * 4 / 5 .
4.0
3>


== Tips and tricks ==
== Tips and tricks ==
Line 29: Line 32:
=== Emacs mode ===
=== Emacs mode ===


To set up the included [[Emacs]] mode, {{ic|erlang-mode}}, follow the [http://erlang.org/doc/apps/tools/erlang_mode_chapter.html#setup-on-unix documentation]  (the OTP path is {{ic|/usr/lib/erlang}}).
To set up the included [[Emacs]] mode, {{ic|erlang-mode}}, follow the [https://erlang.org/doc/apps/tools/erlang_mode_chapter.html#setup-on-unix documentation]  (the OTP path is {{ic|/usr/lib/erlang}}).

Latest revision as of 19:31, 7 February 2024

This article or section is a candidate for merging with List of applications.

Notes: Content does not justify dedicated article (Discuss in Talk:Erlang)

Erlang is a programming language with the specific qualities of immutable data and distributed computing.

Installation

Install the erlang package.

Usage

For further documentation you can read Erlang's docs.

To activate the console, run:

$ erl

Commands can be entered like this:

Erlang/OTP 22 [erts-10.7.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
Eshell V10.7.2  (abort with ^G)
1> 1 + 2 .
3
2> (2 + 3) * 4 / 5 .
4.0
3>

Tips and tricks

Emacs mode

To set up the included Emacs mode, erlang-mode, follow the documentation (the OTP path is /usr/lib/erlang).