Questions tagged [erl]

The erl program is Erlang Emulator, starting an Erlang runtime system.

The executable script erl is a front-end to the Erlang runtime system. Windows users probably wants to use the werl program instead, which runs in its own window with scrollbars and supports command-line editing.

160 questions
32
votes
2 answers

What do the Erlang emulator info statements mean?

When I start up my Erlang emulator, there the first bit has a bunch of informational things. (Slightly reformatted for effect.) manoa:~ stu$ erl Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [hipe]…
Stu Thompson
  • 38,370
  • 19
  • 110
  • 156
16
votes
1 answer

RabbitMQ: erl.exe taking high CPU usages

I have implemented rabbitmq in my application and it's running on windows server 2008 server, the problem is that erl.exe taking high CPU usages like sometime it reaches 40-45% CPU usages, even in the ideal case (when not processing any queue) it…
jkyadav
  • 1,214
  • 5
  • 18
  • 32
13
votes
7 answers

How to use Stacktrace to return Error Line Number in vb.net

I am trying to create some sort of error catching method that will return the error line number. We have an abort email that is sent out when a process aborts that gives us the err.number and err.description but I would like to know where is…
user1836775
  • 133
  • 1
  • 1
  • 4
12
votes
3 answers

Installing erlang from tar resulting in errors, wondering how to specify folders

I had the inspiration to start messing around with Erlang and I am having problems installing it... I am using Linux Mint 16 (petra). I installed the dependencies, and then downloaded otp_src_17.1.tar.gz and ran 'tar -zxf otp_src_17.1.tar.gz' I then…
Arthur Collé
  • 2,541
  • 5
  • 27
  • 39
11
votes
3 answers

Erlang: Who supervises the supervisor?

In all Erlang supervisor examples I have seen yet, there usually is a "master" supervisor who supervises the whole tree (or at least is the root node in the supervisor tree). What if the "master"-supervisor breaks? How should the "master"-supervisor…
Daniel
  • 20,420
  • 10
  • 92
  • 149
11
votes
3 answers

Selective receiving in Erlang

So I've started learning Erlang and I'm a little confused with this chunk of code. -module(prior). -compile(export_all). important() -> receive { Priority, Msg } when Priority > 10 -> [Msg | important()] after 0 -> …
tkblackbelt
  • 391
  • 2
  • 10
10
votes
4 answers

Speeding up the Erlang Edit, Compile, Run/Debug cycle

What is the fastest way to edit an Erlang application, compile the code and see the running result? Preferably jumping in the Erlang shell on the last step. My current newbie setup: A script that compiles the app and starts up the erl shell. Then…
Ward Bekker
  • 6,316
  • 9
  • 38
  • 61
9
votes
2 answers

Why use OTP with Erlang?

As the question said: What benefits brings using the OTP design principles when developing with Erlang? I am developing a server which will just receive commands and send responses.
Daniel
  • 20,420
  • 10
  • 92
  • 149
9
votes
3 answers

Unable to start RabbitMQ

I have Googled so much, and not got any proper answer.So , I am posting this question for better result. I have already killed the RabbitMQ server process . Now when I am trying to start it again, it shows Command rabbitmqctl…
JDGuide
  • 6,239
  • 12
  • 46
  • 64
6
votes
1 answer

How to share a record between multiple erl in Erlang?

I would like to use a -record in every single erl files I have. I know I can repeat the record individually in every files, but that's really ugly. Any suggestion ? P.S. : Be gentle ;-) I'm an Erlang newbie.
TheSquad
  • 7,385
  • 8
  • 40
  • 79
6
votes
2 answers

How to load all Erlang modules in a directory automatically?

Using the answer from Easy way of loading projects with rebar dependencies, dependencies are now automatically resolved, but they are not automatically loaded. So, how can I load all the modules in my ebin and /deps/*/bin path automatically? That…
Ward Bekker
  • 6,316
  • 9
  • 38
  • 61
6
votes
1 answer

Erlang exception error for no match of right hand side value

I have this code that is supposed to print the numbers 1 to N-1 in a list, but I in here won't append to the list. enum(N,[],N) -> []; enum(N,L,I) -> io:format("current number: ~w~n", [I]), L = L ++ I, enum(N,[],I+1). enumFunc(N) ->…
Jsandesu
  • 105
  • 12
6
votes
2 answers

Compile Erlang in Intellij

I try compile erl files in Intellij with Erlang plugin. Everything is good with compilation but in out/production the folder does not create any files .beam and when I run console I get message: exception error: undefined function. When I use…
sebax
  • 59
  • 5
6
votes
3 answers

Getting two erl shells to talk on OS X

I want to be able to have two Erlang shells to talk. I'm running on OS X. I tried the tut17 example here. I've also tried: $ erl -sname foo and then in a new Terminal: $ erl -sname bar (bar@elife)1> net_adm:ping(foo@elife). pang Any ideas?
Eli
  • 1,269
  • 8
  • 17
6
votes
2 answers

Records in Erl (Erlang question)

Is there a way to use records directly in erl? No matter what I try, it always says it canno find the record. I am trying to do mnesia transactions and I cannot go too far without my records. Any help is greatly appreciated - thank you!
ewindsor
  • 885
  • 10
  • 24
1
2 3
10 11