What is the difference between multicore programming in Erlang and other language?

后端 未结 5 1534
悲哀的现实
悲哀的现实 2021-01-30 05:38

I read Joe Armstrong\'s \'Programming Erlang\', and the \'n times faster in n core machine\' theory. The efficient way to multicore programming in Erlang is to use lots of proce

5条回答
  •  Happy的楠姐
    2021-01-30 06:33

    Well, the nature of the language with variables that can only be set once and the fact that it's a functional language automatically makes programs with lots of parallelism be written and executed "the right way" for multicore.

    I don't know much about erlang besides those two facts, so there might be something else too. But that's not to say you can't make a C++ program as scalable, but you'll probably go through a lot to achieve the performance, scalability and stability which will come with no cost if you write in erlang.

提交回复
热议问题