Questions tagged [erlang]

Erlang is a general-purpose, garbage-collected programming language and runtime environment, with built-in support for concurrency, distribution and fault tolerance.

Erlang is a general-purpose functional programming language and runtime environment. It has built-in support for concurrency, distribution and fault tolerance. Erlang is used in several large telecommunication systems from Ericsson. Erlang is open source and available for download on GitHub.

Some Erlang features:

Online Resources:

Erlang Books:

9600 questions
27
votes
4 answers

What is your experience with Nitrogen on Erlang?

I've been checking out the Nitrogen Project which is supposed to be the most mature web development framework for Erlang. Erlang, as a language, is extremely impressive. However, with regards to Nitrogen, what I am not too keen about is using…
Yuval Adam
  • 161,610
  • 92
  • 305
  • 395
26
votes
2 answers

Best way to integrate Erlang and python

What's the best way to integrate Erlang and python? We need to call python functions in Erlang and call Erlang functions in python. At this moment we are trying to use SOAP as a intermediate layer between these two languages, but we have a lot of…
OJ287
  • 734
  • 1
  • 7
  • 15
26
votes
7 answers

What are some interesting projects to solve in Erlang for learning purposes?

I recently discovered Erlang and am now working my way through a couple of tutorials. By now I'm looking forward to actually implement something as a hobby project. I'm not really interested in yet another chat server. I would like to code something…
Stefan Schmidt
  • 1,152
  • 11
  • 18
26
votes
2 answers

How do you unbind variables in an interactive Erlang session?

In the Erlang interactive shell you can bind variables to values. If I would like to clear everything and start from scratch without exiting the session and starting a new one, how do I do that? And if I just wanted to re-use a single variable, is…
Torbjørn
  • 6,423
  • 5
  • 29
  • 42
26
votes
3 answers

What is an Erlang hrl file?

What is an .hrl file in Erlang/OTP? Is it some sort of library mechanism?
yazz.com
  • 57,320
  • 66
  • 234
  • 385
26
votes
2 answers

Erlang compilation - Erlang as stand alone executeable

is there a way to compile Erlang to be a stand-alone executable? this means, to run it as an exe without the Erlang runtime.
qwerty
  • 261
  • 3
  • 3
26
votes
7 answers

What tool do you use to build an Erlang program?

What tool do you use to build an Erlang program: Emake, makiefile or another?
Kirill Trofimov
  • 1,218
  • 1
  • 14
  • 26
25
votes
3 answers

Convert timestamp to datetime in erlang

How can I convert a timestamp (number of milliseconds since 1 Jan 1970..., aka epoch) to Date or DateTime format in Erlang? Something like {Year,Month,Day}.
user75569
  • 367
  • 1
  • 5
  • 12
25
votes
3 answers

Erlang style concurrency in the D programming language

I think Erlang-style concurrency is the answer to exponential growth of core count. You can kind of fake it with other main stream languages. But the solutions always leave me wanting. I am not willing to give up multi-paradigm programming…
deft_code
  • 57,255
  • 29
  • 141
  • 224
25
votes
3 answers

Erlang: What does question mark syntax mean?

What does the question mark in Erlang syntax mean? For example: Json = ?record_to_json(artist, Artist). The full context of the source can be found here.
Ted Karmel
  • 1,046
  • 1
  • 12
  • 20
25
votes
4 answers

How do I do an HTTPS request with Erlang?

I tried the inets library but it times out. I don't think it supports HTTPS. I am trying to use ibrowse, but it isn't working.
gersh
  • 2,227
  • 4
  • 23
  • 23
25
votes
6 answers

ejabberd online status when user loses connection

I have ejabberd setup to be the xmpp server between mobile apps, ie. custom iPhone and Android app. But I've seemingly run into a limitation of the way ejabberd handles online status's. Scenario: User A is messaging User B via their mobiles. User B…
Johan Vorster
  • 473
  • 6
  • 16
24
votes
2 answers

What is the difference between == and =:= in Erlang when used with terms in general?

Apart from the fact that =:= prevents unwanted integer casts: 1> 1=:=1.0. false What is the advantage of using =:= with terms in general? Better performance?
Ricardo
  • 1,778
  • 1
  • 19
  • 32
24
votes
1 answer

How to add a node to an mnesia cluster?

I'm an erlang and mnesia newbie.. How do I add a new disc_only_copies node to an mnesia database that already has a schema? Thanks
Luca Martinetti
  • 3,396
  • 6
  • 34
  • 49
24
votes
3 answers

Erlang and process_flag(trap_exit, true)

After watching the Pragmatic Studio screen casts on Erlang, the last video on Supervisors mentioned that in order for a supervisor to get a notification about one of its children so it can properly restart it, the child should register with…
randombits
  • 47,058
  • 76
  • 251
  • 433