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
5
votes
2 answers

Adding foreign key to model using chicagoboss?

I am a newbie to erlang and chicago boss. I followed Chicago boss API documentation. I have been working with Python and Django earlier. Now in Chicago boss can we add foreign key in models. This is my model. model: anatomy.erl -module(anatomy,…
user3815680
5
votes
1 answer

Equivalent of Java JAR files in Erlang

This is a completely newbie question from a Java programmer trying to learn Erlang. What's the equivalent of a Java JAR file in Erlang by which 3'rd party libraries can be included in an Erlang application? The other day I made a copy of the…
Ranjit Iyer
  • 857
  • 1
  • 11
  • 20
5
votes
3 answers

Erlang: Mnesia or Mysql?

What DBMS do you use with Erlang ? and Why ?
xRobot
  • 25,579
  • 69
  • 184
  • 304
5
votes
4 answers

problems installing Erlang/OTP

I'm trying to install Erlang/OTP following the documentation at http://www.erlang.org/doc/installation_guide/INSTALL.html. I'm having problems building the Erlang/OTP release. When I run make, I get: Makefile:247:…
user3757002
  • 51
  • 1
  • 2
5
votes
3 answers

There is no mature yaml library for erlang

Is there a mature and stable YAML library for Erlang that someone has actually used? I can't seem to find one anywhere Update: I have searched and searched and still not found one
yazz.com
  • 57,320
  • 66
  • 234
  • 385
5
votes
2 answers

RabbitMQ: Sending messages from one pc to another

I am trying to get a rabbitMQ queue set up that sits on one pc, and recieves messagess from other computers giving it tasks. I have followed all the tutorials on the rabbit website but these only apply to local host. Can someone explain how I get…
user3043883
  • 127
  • 3
  • 5
5
votes
1 answer

Which TCP port does Erlang use for connecting to a remote node?

I need to open a firewall port so that I can connect from one Erlang node to another. Is there a standard port?
yazz.com
  • 57,320
  • 66
  • 234
  • 385
5
votes
3 answers

static analysis vs static typing

I'm learning Elixir, and the tool 'dialyzer' lets you do static analysis - annotate the function definition with the type specification of the parameters it expects and the output it returns. It's completely optional, but if it were to be used to…
tldr
  • 11,924
  • 15
  • 75
  • 120
5
votes
3 answers

Sending json with tsung POST request

I'm trying to create a POST request with Tsung How can I send a JSON document in the contents attribute? contents='{"name": "alex"}' is of course…
Alex
  • 37,502
  • 51
  • 204
  • 332
5
votes
1 answer

Code review of CYK algorithm implementation in Erlang

I am beginning Erlang and as an exercise I tried to implement the CYK algorithm. Main code(cyk.erl): %%% An attempt for a CYK parser in Erlang -module(cyk). -export([ init_storage/0, import_grammar_file/1, …
Eric
  • 2,784
  • 1
  • 20
  • 25
5
votes
0 answers

How To Get ANSI Escape Sequences Working in Erlang Werl?

Erlang R17.0 x64 on Windows 7 x64. When I type clear in a werl window, I see the ANSI escape sequence displayed. I also tried clear()--same result. From my digging around it looks like werl should be able to handle ANSI escape sequences. Is…
Onorio Catenacci
  • 14,928
  • 14
  • 81
  • 132
5
votes
1 answer

Allowing a gen_fsm to timeout if it receives no messages

Normally if I'd like to have an Erlang process timeout I would use the following construct: receive Msg -> ok; %% handle message after 60000 -> %% Handle timeout and exit end. Is there a similar mechanism in the OTP servers such as…
Jeff Thompson
  • 2,662
  • 2
  • 18
  • 17
5
votes
1 answer

Erlang neighbour search

I have couple of interconnected computers. On every machine there is running Erlang node and I'd like to communicate with each other passing Erlang terms (peer-to-peer style). However nodes on other computers are listed in nodes() only after I…
Jakub Kulhan
  • 1,572
  • 2
  • 16
  • 37
5
votes
1 answer

Simulating online user in eJabberd with Tsung

I'm testing eJabberd server with Tsung on local computer. This is my config file. Everything is working and running correctly.
max
  • 1,579
  • 1
  • 19
  • 34
5
votes
1 answer

CouchDB Erlang View

After posting yesterday about a fairly slow couchdb design-doc/view yesterday here: CouchDB delay building index (CouchDB 1.5.0 on Windows Server 2008 R2) , I am trying to investigate if I could gain significant performance if I was to rewrite slow…
Hans
  • 2,800
  • 3
  • 28
  • 40