First impressions of Erlang programming languages _erlang

Source: Internet
Author: User

And friends of the high concurrency, and once again involved in the Erlang,erlang from the family of Ericsson, has a very high stability of the virtual machine and Platform library, Facebook used it to implement the chat system, Amazon developed SimpleDB, The most amazing is the What ' sapp, the high concurrency of the processing mechanism is eye-catching, it is time to understand Erlang.

The world is parallel, Erlang programs reflect the way we think and communicate, as individuals communicate by sending messages, and if someone dies, others will notice them.
The module class in Erlang is equivalent to the class in OOPL, and the process is equivalent to an object or class instance in OOPL.
Concurrent programming can be used to improve performance, create scalable and fault-tolerant systems, and write clear and understandable procedures to control applications in the real world.

Concurrent programs are programs written in a concurrent programming language, and the concurrent programming language has a language structure for writing concurrent programs. Erlang's concurrent programs are composed of multiple sequential processes that communicate with each other, a process that is a lightweight virtual machine that can execute a single Erlang function and communicate with other processes only by sending and receiving messages. In other words, concurrency is provided by Erlang virtual machines, and the operating system has a much smaller concurrency control granularity.
In Erlang:
1 The process of creating and destroying is very fast
2 sending messages between processes is very fast
3 The process behaves the same way on all operating systems
4 can have a large number of processes
5 No shared memory between processes, is completely independent
6 The only way to communicate is by message delivery, and each process has a mailbox that is created synchronously with the process.

Dynamic code loading is one of the Erlang features, and function calls are always the latest in the latest module, even if the current code compiles the module while it is running in the module.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.