Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang Programming: Will Learning Prolog Help?

Tags:

erlang

prolog

Will learning Prolog help to learn Erlang in a way specific to Erlang? Erlang started as a concurrent Prolog, but is modern Erlang connected to Prolog (beyond syntax)? I understand that learning Prolog might be good in the way learning Lisp is good for programming in any language, but I want to know if learning Prolog will help me to learn Erlang specifically, given Prolog's role in Erlang's "origin story".

like image 409
Duke of Erl Avatar asked Aug 22 '10 19:08

Duke of Erl


People also ask

How long does it take to learn Erlang?

An Erlang Course This course usually takes four days to complete. It is divided into 5 modules and has a number of programming exercises.

Is Erlang easy to learn?

Although Erlang is certainly useful, it's less accessible for beginners. The steeper learning curve can be discouraging for developers looking for a side project or for beginners who might prefer an easier-to-learn language.

Why was Erlang developed?

Erlang was designed with the aim of improving the development of telephony applications. The initial version of Erlang was implemented in Prolog and was influenced by the programming language PLEX used in earlier Ericsson exchanges.

Why is Erlang good for concurrency?

One of the main reasons for using Erlang instead of other functional languages is Erlang's ability to handle concurrency and distributed programming. By concurrency is meant programs that can handle several threads of execution at the same time.


2 Answers

No, it won't.

is modern Erlang connected to Prolog (beyond syntax)

No, they pretty much have nothing in common.

like image 85
Alexey Romanov Avatar answered Oct 01 '22 02:10

Alexey Romanov


It might even make it harder. Major thing that Prolog has but Erlang lacks is backtracking. It means that the program can "go back". It takes some time to get used to backtracking and let the language do the work for you. For instance traversing a graph using backtracking. When you switch to Erlang you have to forget all this.

They both share very common pattern matching style of programming.

I do not recommend learning Prolog prior to Erlang.

like image 10
Towhans Avatar answered Oct 01 '22 02:10

Towhans