Erlang is an actively used programming language created in 1986.

33Years Old 133,268Users 341Jobs

Example code from the Hello World Collection:

%% Hello World in Erlang

-module(hello).

-export([hello/0]).

hello() ->
   io:format("Hello World!~n", []).

Example code from Linguist:

#!/usr/bin/env escript
-export([main/1]).

main([]) -> io:format("Hello, World!~n").

Example code from Wikipedia:

%% Second version
  -module(counter).
  -export([start/0, codeswitch/1]).

  start() -> loop(0).

  loop(Sum) ->
    receive
       {increment, Count} ->
          loop(Sum+Count);
       reset ->
          loop(0);
       {counter, Pid} ->
          Pid ! {counter, Sum},
          loop(Sum);
       code_switch ->
          ?MODULE:codeswitch(Sum)
    end.

  codeswitch(Sum) -> loop(Sum).
Edit

Last updated February 11th, 2019