ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
Why some software moving to functional programming languages like "Erlang" ? Why we can't write a software in C++ like Erlang?
Can you show me some languages like "Erlang" ?
I understand that the reason functional languages are popular is because the language design makes it easier to write programs that do more than one thing at once.
When folks look at the functional-programming model, they're especially looking for "massive scaleability." In other words, to use hundreds or thousands of processors at the same time in the solution of some problem. (e.g. "map/reduce") A functional expression of that problem (and, a problem that can be expressed in a functional way ...) is much more friendly to that approach.
A traditional, procedural, program is all about time, because it is also all about internal state vs. side-effects. A procedure, despite its name, is a procedure, not a function in the mathematical sense. The name, "function," is ordinarily (but incorrectly ...) used because "it [can ...] return a value." But it can, and does, do many other things as well, and to many things other than itself. The "return code," if any, is usually just an indicator.
The functional-programming approach, well, is simply different. It is designed to be different. It is designed differently. As with all other programming tools, it is definitely something (like Prolog ... like R...) that you should make it your business to know something about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.