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
24
votes
4 answers

Are there any Serious Graph databases not written in Java?

I am looking for a serious graph database system which is not written in Java. I am not interested in RDF databases, since I expect to be able to store more complex graphs (actually hypergraphs) From within the Java camp, OrientDB is a good example…
fccoelho
  • 6,012
  • 10
  • 55
  • 67
24
votes
3 answers

Extraction of elements of tuples

Given one list with one tuple: [{4,1,144}] How to extract the first element of the tuple inside the list: element(1,lists:nth(1,L)) Do you have a simpler solution?
Bertaud
  • 2,888
  • 5
  • 35
  • 48
24
votes
11 answers

RabbitMQ failed to start, TCP connection succeeded but Erlang distribution failed

I'm a new one just start to learn and install RabbitMQ on Windows System. I install Erlang VM and RabbitMQ in custom folder, not default folder (Both of them). Then I have restarted my computer. By the way,My Computer name is "NULL" I cd to the…
nthack
  • 444
  • 1
  • 3
  • 9
24
votes
4 answers

Is Erlang really a functional language?

I hear all the time that Erlang is a functional language, yet it is easy to call databases or non side-effect free code from a function, and commands are easily ordered by using "," commas between them just like Ruby or another language, so where is…
yazz.com
  • 57,320
  • 66
  • 234
  • 385
24
votes
4 answers

Integrating Erlang with C++

What interfaces exist to tie Erlang with C++?
user855
  • 19,048
  • 38
  • 98
  • 162
23
votes
4 answers

How to make the equivalent of a C-style if-else statement in Erlang?

How do I make the equivalent of a C-style if-else in Erlang? if(a == b) { expression1 } else { expression2 }
Abhimanyu
  • 369
  • 1
  • 4
  • 8
23
votes
2 answers

Convert erlang terms to string, or decode erlang binary

I have an erlang program which generates data. This data needs to be transferred via udp to a non-erlang program for further processing. I already have this part working - sending the data via udp and receiving it on the other non-erlang…
X Z
  • 343
  • 1
  • 2
  • 5
23
votes
1 answer

Time travel and time freezing in Elixir

When writing integration tests that depend on the current date/time, it is very handy to be able to freeze or travel to specific moment (like e.g. timecop for ruby) Is there a way to achieve something similar in Elixir/Erlang? I tried mocking Erlang…
jesenko
  • 1,273
  • 12
  • 18
23
votes
4 answers

How to profile an Erlang program in terms of memory usage?

I would like to further enhance the efficiency of an existing Erlang program. First I would like to identify bottlenecks and then decide on where to further optimize. I have tryed fprof, but it only gives information on total and average runtime. I…
cdlf
  • 763
  • 6
  • 10
22
votes
3 answers

Design patterns for Agent / Actor based concurrent design

Recently i have been getting into alternative languages that support an actor/agent/shared nothing architecture - ie. scala, clojure etc (clojure also supports shared state). So far most of the documentation that I have read focus around the intro…
nso1
  • 595
  • 9
  • 18
22
votes
2 answers

Reference vs pid?

I'm not entirely sure the differences between the PID and Reference and when to use which. If I were to spawn a new process with spawn/1 pid. I can kill it with the PID no? Why would I need a reference? Likewise I see monitor/1 receiving a message…
mythicalprogrammer
  • 4,647
  • 6
  • 35
  • 42
22
votes
5 answers

Building multiple Erlang Beam files?

I am currently using c(module_name) to build my Erlang files one by one. How can the build process for Erlang be handle when they have multiple files?
yazz.com
  • 57,320
  • 66
  • 234
  • 385
22
votes
2 answers

How do I make an already written concurrent program run on a GPU array?

I have a neural network written in Erlang, and I just bought a GeForce GTX 260 card with a 240 core GPU on it. Is it trivial to use CUDA as glue to run this on the graphics card?
memius
  • 4,045
  • 5
  • 26
  • 25
22
votes
3 answers

How to send a push notification using Erlang?

I'm trying to send a push notification to APNs using Erlang. This is the code I came up with so far: -module(apnstest2). -export([connect/0]). connect() -> application:start(ssl), ssl:seed("someseedstring"), Address =…
user11617
22
votes
17 answers

Why are C, C++, and LISP so prevalent in embedded devices and robots?

It seems that the software language skills most sought for embedded devices and robots are C, C++, and LISP. Why haven't more recent languages made inroads into these applications? For example, Erlang would seem particularly well-suited to robotic…
David Koelle
  • 20,726
  • 23
  • 93
  • 130