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

iex and erl starts very slow if not assign a node name

The environment is archlinux running in virtual machine. Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false] Interactive Elixir (1.0.2) - press Ctrl+C to exit (type h() ENTER for help) If I run…
Kabie
  • 10,489
  • 1
  • 38
  • 45
5
votes
1 answer

Why erlang needs a Virtual Machine?

Message passing is at the core of Erlang - "Message passing through Processes". But the concept of Virtual Machine when it comes to erlang is still vague. Any Help?
HIRA THAKUR
  • 17,189
  • 14
  • 56
  • 87
5
votes
4 answers

How to return the number of elements?

I have to write a function that takes a list of integers as a parameter & returns the number of integers from the list that are less than 1. What I have so far is a function that just returns how many integers in the list. I am not sure where/if I'm…
AaronGarcia
  • 93
  • 1
  • 1
  • 4
5
votes
1 answer

couchbase: epmd: node name already occupied couchbase babysitter_of_ns_1

Sep 15 12:45:36 build64 epmd: epmd: node name already occupied babysitter_of_ns_1 Sep 15 12:46:29 build64 epmd: epmd: Disallowed KILL_REQ, live nodes Sep 15 12:50:58 build64 epmd: epmd: got KILL_REQ - terminates normal Sep 15 13:03:29 build64 epmd:…
dragonfly
  • 168
  • 1
  • 13
5
votes
3 answers

Is it possible to build work queues in Erlang?

I have seen lots of chat examples in Erlang but what about lists, like a work queue? If I want to build a work queue system, like a project management system, is it possible to re-order messages in a process mailbox or do I have to use message…
John Wright
  • 2,418
  • 4
  • 29
  • 34
5
votes
1 answer

Stuck at {"init terminating in do_boot",{undef,[{rmbrDb,start,[],[]},

My project has a number of dependencies in .../deps, and two contained Erlang apps in .../apps. rebar.config: {sub_dirs, ["apps/rmbrDb","apps/rmbrRest","rel"]}. {lib_dirs, ["deps","apps"]}. {deps, [ {webmachine, "1.10.*", {git,…
Pum Walters
  • 339
  • 1
  • 3
  • 11
5
votes
1 answer

Can goroutine like erlang spawn process across multiple hosts transparently?

It is said that if configured erlang with cookie setting, the erlang's process could be run across different machines, and this is transparent to the caller. Is that possible for goroutine run like this?
python
  • 1,870
  • 4
  • 24
  • 35
5
votes
1 answer

Is there a tracing debugger like `dbg` available for Haskell or OCaml?

Is there a tracing debugger like dbg available for Haskell or OCaml? Very informally, it's printf-style debugging only better, completely configurable at runtime. In essence, the user can register a trace handler when a system is running, which will…
erszcz
  • 1,630
  • 10
  • 16
5
votes
2 answers

why the memory for atom is zero using erts_debug:size/1?

I use erts_debug:size/1 to calculate the memory for atom in erlang VM, but i find that the output is zero. Who can explain the reason? 7> erts_debug:size(true). 0
BlackMamba
  • 10,054
  • 7
  • 44
  • 67
5
votes
1 answer

How to receive stdio and error_logger messages on a remote shell

After spending a good while getting rb to work on a remote shell, I would like to get stdio / error logger messages on a remote shell, I have dug around changing group_leaders but it would seem to require changing the group_leader of all the running…
Dale Harvey
  • 1,203
  • 7
  • 14
5
votes
1 answer

Port Erlang permutation function to Java 8 with lambda expressions and Streams

Is it possible to write the following Erlang code only with Java 8 lambda expressions and Java 8 streams? This is from List Comprehensions 3.3 Permutations perms([]) -> [[]]; perms(L) -> [[H|T] || H <- L, T <- perms(L--[H])].
Thomas Darimont
  • 1,356
  • 11
  • 14
5
votes
2 answers

How does Erlang sleep (at night?)

I want to run a small clean up process every few hours on an Erlang server. I know of the timer module. I saw an example in a tutorial used chained timer:sleep commands to wait for an event that would occur multiple days later, which I found…
Selali Adobor
  • 2,060
  • 18
  • 30
5
votes
5 answers

Elixir - sum of list values with recursion

Just trying to do simple sum of list values. defmodule Mth do def sum_list([]) do 0 end def sum_list([H|T]) do H + sum_list(T) end end IO.puts Mth.sum_list([1, 2, 300]) But I get this…
Krab
  • 6,526
  • 6
  • 41
  • 78
5
votes
3 answers

Time order of messages

Read (skimmed enough to get coding) through Erlang Programming and Programming Erlang. One question, which is as simple as it sounds: If you have a process Pid1 on machine m1 and a billion million messages are sent to Pid1, are messages handled in…
Aiden Bell
  • 28,212
  • 4
  • 75
  • 119
5
votes
1 answer

Erlang AMQP client library

Is there an Erlang AMQP client library that is not tied to the hip with RabbitMQ? I know about rabbitmq-erlang-client but I would like something more decoupled... pain when it comes to packaging this stuff for a Debian repository, installation…
jldupont
  • 93,734
  • 56
  • 203
  • 318