Erlang Central

Difference between revisions of "Main Page"

From ErlangCentral Wiki

Line 109:Line 109:
 
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=2</irss><br/>
 
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=2</irss><br/>
 
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=11</irss><br/>
 
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=11</irss><br/>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=24</irss><br/>
+
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=27</irss><br/>
 +
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=12</irss><br/>
 
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=25</irss>
 
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=25</irss>
 
|}
 
|}

Revision as of 09:21, 21 August 2009

Your Erlang Community Site

Welcome to trapexit.org, the Erlang community site where you can read news and weblogs related to Erlang/OTP, discuss projects, issues and ideas with other Erlang developers, and read and publish articles and HowTos related to Erlang/OTP.

Trapexit News

<irss max=1 news=true>http://forum.trapexit.org/rss_mod.php?f=19&t=1</irss>

What is Erlang and OTP?

Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. Originally developed at Ericsson, it was released as open source in 1998.

OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems. It includes its own distributed database, applications to interface towards other languages, debugging and release handling tools. These tools and applications distributed by Ericsson are complemented by numerous other open source projects.

Here is an example of Erlang code:

-module(beersong).
-author('BillClementson').
-export([sing/0]).
-define(TEMPLATE_0, "~s of beer on the wall, ~s of beer.~n"
                    "Go to the store and buy some more," 
                    "99 bottles of beer on the wall.~n").
-define(TEMPLATE_N, "~s of beer on the wall, ~s of beer.~n"
                    "Take one down and pass it around, ~s"
                    " of beer on the wall.~n~n").

create_verse(0)      -> 
    {0, io_lib:format(?TEMPLATE_0, phrase(0))};
create_verse(Bottle) -> 
    {Bottle, io_lib:format(?TEMPLATE_N, phrase(Bottle))}.

phrase(0)      -> ["No more bottles", "no more bottles"];
phrase(1)      -> ["1 bottle", "1 bottle", "no more bottles"];
phrase(2)      -> ["2 bottles", "2 bottles", "1 bottle"];
phrase(Bottle) -> 
     lists:duplicate(2,integer_to_list(Bottle) ++ " bottles") ++ 
                     [integer_to_list(Bottle-1) ++ " bottles"].
bottles() -> lists:reverse(lists:seq(0,99)).
sing() ->
    lists:foreach(fun spawn_singer/1, bottles()),
    sing_verse(99).
spawn_singer(Bottle) ->
    Pid = self(), 
    spawn(fun() -> Pid ! create_verse(Bottle) end).
sing_verse(Bottle) ->
    receive
	{_, Verse} when Bottle == 0 ->
	    io:format(Verse);
	{N, Verse} when Bottle == N ->
	    io:format(Verse),
	    sing_verse(Bottle-1)
    after 
	3000 ->
	    io:format("Verse not received after 3 seconds"
                      " - re-starting singer~n"),
	    spawn_singer(Bottle),
	    sing_verse(Bottle)
    end.


Starter

Good places to start on trapexit.org

HowTo documents - Tutorials and Guides for Erlang developers
Erlang Cookbook - A collection of Erlang solutions to specific problems
Erlang Concepts - Articles dealing with specific Erlang aspects
Erlang Best Practices - Articles dealing with best practices in Erlang
Erlang Articles - Articles of interest to Erlang developers and testers
ErlangJobs - Erlang and Erlang related Jobs
Links to Erlang related sites outside Trapexit
RSS Feeds related to Erlang, including blogs and software development

Latest Forum Posts

<irss max=2>http://forum.trapexit.org/rss_mod.php?f=23</irss>
<irss max=2>http://forum.trapexit.org/rss_mod.php?f=7</irss>
<irss max=2>http://forum.trapexit.org/rss_mod.php?f=14</irss>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=20</irss>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=5</irss>

Latest Planet Entries

<rss_planet max=5>http://planet.trapexit.org/rss20.xml</rss_planet>

Latest Wiki Changes

<rss_recent max=3>http://www.trapexit.org/index.php?title=Special:Recentchanges&hideminor=0&days=30&feed=rss</rss_recent>

Mailing Lists Posts

<irss max=1>http://forum.trapexit.org/rss_mod.php?f=2</irss>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=11</irss>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=27</irss>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=12</irss>
<irss max=1>http://forum.trapexit.org/rss_mod.php?f=25</irss>