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
735
votes
17 answers

Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell

I have taken Problem #12 from Project Euler as a programming exercise and to compare my (surely not optimal) implementations in C, Python, Erlang and Haskell. In order to get some higher execution times, I search for the first triangle number with…
Hyperboreus
  • 31,997
  • 9
  • 47
  • 87
315
votes
9 answers

Why are there two kinds of functions in Elixir?

I'm learning Elixir and wonder why it has two types of function definitions: functions defined in a module with def, called using myfunction(param1, param2) anonymous functions defined with fn, called using myfn.(param1, param2) Only the second…
Alex Marandon
  • 4,034
  • 2
  • 17
  • 21
278
votes
11 answers

Where is Erlang used and why?

I would like to know a list of the most common application/websites/solutions where Erlang is used, successfully or not. Explaining why it is used into a specific solution instead of others programming languages would be very much appreciated,…
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
192
votes
7 answers

Technically, why are processes in Erlang more efficient than OS threads?

Erlang's Characteristics From Erlang Programming (2009): Erlang concurrency is fast and scalable. Its processes are lightweight in that the Erlang virtual machine does not create an OS thread for every created process. They are created, scheduled,…
Jonas
  • 121,568
  • 97
  • 310
  • 388
132
votes
12 answers

How to get Erlang's release version number from a shell?

Many programs return their version number with a command like: $ program --version program (platform info) v1.2.3 This is useful for scripting the installation or maintenance of the program, and some other controlled automation magic from System…
Eric Platon
  • 9,819
  • 6
  • 41
  • 48
130
votes
3 answers

What kind of virtual machine is BEAM (the Erlang VM)?

From what I understand a virtual machine falls into two categories either "system virtual machine" or a "process virtual machine". It's kind of fuzzy to me where BEAM lies. Is there another kind of virtual machine I am not aware of?
Eric des Courtis
  • 5,135
  • 6
  • 24
  • 37
123
votes
4 answers

Are there things Elixir can do that Erlang cannot, or vice versa?

This question is in the context of the Beam VM and the capabilities that it provides, not in the general context of what a Turing complete language can do. I want to invest some time to learn either pure Erlang or Elixir. I get the basic differences…
Saša Šijak
  • 8,717
  • 5
  • 47
  • 82
119
votes
1 answer

Where does Elixir/erlang fit into the microservices approach?

Lately I've been doing some experiments with docker compose in order to deploy multiple collaborating microservices. I can see the many benefits that microservices provide, and now that there is a good toolset for managing them, I think that it's…
Papipo
  • 2,799
  • 2
  • 23
  • 28
116
votes
4 answers

What is Erlang written in?

What is Ericsson's implementation of Erlang and Erlang/OTP written and compiled in? Is is assembly, C or Erlang itself? Update 1: Thanks to DrJokepu. If I understand correctly, Erlang source-to-VM compiler is written in Erlang itself. But the VM is…
CDR
  • 8,198
  • 11
  • 47
  • 46
111
votes
4 answers

Erlang's 99.9999999% (nine nines) reliability

Erlang was reported to have been used in production systems for over 20 years with an uptime percentage of 99.9999999%. I did the math as the following: 20*365.25*24*60*60*(1 - 0.999999999) == 0.631 s That means the system only has less than one…
Ning
  • 2,850
  • 2
  • 16
  • 23
102
votes
5 answers

How does akka compare to Erlang?

I've been looking at akka recently and it's pretty impressive. It looks like it has most of the killer features of erlang - location transparency, supervision hierarchies, and more. Are there any features erlang has that akka doesn't?
ryeguy
  • 65,519
  • 58
  • 198
  • 260
92
votes
8 answers

How/why do functional languages (specifically Erlang) scale well?

I have been watching the growing visibility of functional programming languages and features for a while. I looked into them and didn't see the reason for the appeal. Then, recently I attended Kevin Smith's "Basics of Erlang" presentation at…
Jim Anderson
  • 3,602
  • 2
  • 24
  • 21
89
votes
3 answers

What's the status of current Functional Reactive Programming implementations?

I'm trying to visualize some simple automatic physical systems (such things as pendulum, robot arms,etc.) in Haskell. Often those systems can be described by equations like df/dt = c*f(t) + u(t) where u(t) represents some kind of 'intelligent…
mnish
  • 1,869
  • 1
  • 13
  • 15
88
votes
9 answers

Node.js or Erlang

I really like these tools when it comes to the concurrency level it can handle. Erlang/OTP looks like much more stable solution but requires much more learning and a lot of diving into functional language paradigm. And it looks like Erlang/OTP makes…
user80805
  • 6,088
  • 5
  • 28
  • 31
82
votes
14 answers

What's a good IDE for Erlang programming?

As far as I know there's Erlang plugin for NetBeans and Eclipse. Which one has the upper hand at the moment? Are there any other IDE for Erlang which I didnt mention, and how good are they when compare with NetBeans and Eclipse?
Blake
  • 1,123
  • 2
  • 10
  • 14
1
2 3
99 100