Erlang/OTP concurrent programming practices
Basic Information
Original Title: Erlang and OTP in action
Author: (US) Logan, M.) Merritt (E.) (Sweden) Carlsson (R.) [Translator's profile]
Translator: Lian Cheng
Press: People's post and telecommunications Press
ISBN: 9787115285591
Mounting time:
Published on: February 1, July 2012
Start: 16
Page number: 1
Version: 1-1
Category: computer more about
Have you seen the famous "Apache vs. Yaws" picture? Are you thinking that you should use the yaws too? The first impression of these figures is that Yaws has an incredibly big advantage in scalability, which can scale to 80,000 parallel connections, and Apache cannot continue to support it with only 4,000 connections. There is a clear divergence in the response to these graphs, a voice that says "These graphs are unlikely to be accurate" or "they must not be properly configured for Apache"; the
This is a creation in
Article, where the information may have evolved or changed.
Erlang is now being vigorously promoted within the system. However, it is regrettable that the implementation of Erlang before the language itself is not in-depth argumentation and research, but by the core staff wrote a simple can not be a simple demo, in the project with an open-source E
Reprinted: http://www.cnblogs.com/cobbliu/archive/2012/03/10/2388556.html
Erlang is definitely a niche language, but its future development prospects are incalculable because it can solve the difficult problem of parallel computing in traditional languages. Erlang is a function type (a variable can only be assigned once), a strong type, and a dynamic type (the variable type is determined at runtime and ca
Original article: Erlang process heap garbage collection mechanism
By http://blog.csdn.net/mycwq
Each Erlang process is created with its own PCB, stack, and private stack. Erlang does not know the scenario in which the process he created will be used, so the memory allocated at the beginning is relatively small. If the allocated space is insufficient,
Tuples are the composite data types used to store a group of data elements. The data elements must be Erlang data types, the tuples are defined using closed curly braces {}, and the elements in them are separated by commas.
Example: 1> {1, 2, 3 }.
2> {1, {2, 3}, 4 }.
3> {1, [2, 3], 4 }.
4> {1, "23", 4 }.
The BIFS function of tuple:
Erlang: tuple_size (tuple)-> length. Length of tuple
The communication between Erlang nodes is mainly used for communication between two Erlang nodes. However, Erlang also supports communication with nodes built in Java and even nodes built in C, the previous two methods have been mentioned in my previous articles, so here we will talk about the node communication between Erlan
[Erlang crisis] (1.3) OTP application, erlangotp1. OTP Applications
Figuring out OTP applications is usually rather simple. They usually all share a directory structure that looks like:
It is usually very simple for developers to figure out OTP applications. They are usually in the same directory and the target structure is as follows:
doc/;ebin/src/test/LICENSE.txtREADME.mdrebar.configThere might be slight differences, but the general structure wi
This is a creation in
Article, where the information may have evolved or changed.
From http://zhang.hu/go-vs-erlang/
Go vs Erlang
Because of the high concurrency and low latency requirements of the system, we have done a lot of research and comparison work on various languages and platforms. This naturally includes Go and Erlang, which are dedicated to developing
Http://blog.csdn.net/mycwq Each Erlang process will have its own PCB, stack, and private heap after it is created. Erlang does not know which situation the process he creates will be used, so the memory allocated at the beginning is relatively small. If there is not enough space allocated, Erlang GC dynamically adjusts the heap size to meet demand, and if the all
encrypted communication will jump up, so the programmer started to knock on his keyboard ......
The above passage was very simple and interesting, and brought out the features of Erlang, So that I started my Erlang journey like the programmer mentioned.2. Install Erlang
On the official website of Erlang http://www.er
I read a really, really interesting article on memory management for the Erlang VM. It is written as a thesis by Jesper Wilhelmsson I thought it might is nice to discuss the differences between Erlang ' s memory setup and Oracle ' Java VM.
As a real short introduction for those who have never heard of Erlang; It is a functional language this uses asynchronous m
processing speed of the process and shows a high CPU usage. In addition, large-capacity mailbox processes will also lag those processes that send messages to it (because Erlang runtime can be processed in a timely manner to enable large-capacity mailbox processes, it will take the initiative to slow down the processes that send messages to the process) But discarding these messages will make debugging difficult. Therefore, it is best to ensure that t
I don't know the technology, and my friends and I are talking about making a social app when he says so "no, I meant the guys who's ve already built out concurrent COM infrastructure
Like Google, Facebook, etc
And they ' re also hoarding all of the talent
So Erlang For example are probably the best language to build chat apps with right now
And there ' s only a handful of good/great Erlang engineers
An
The source text is not found. Please refer to the link below:
Http://www.cnblogs.com/hiside/archive/2010/12/01/1893878.html
Http://topic.csdn.net/u/20071023/11/3edb81fc-37b2-4506-906e-44dc0fc521f2.html1. undirected graph: Method 1:
If a loop exists, a subgraph is a loop. Degrees of all vertices in the loop> = 2.
N algorithm:Step 1: Delete all vertices with a degree Step 2: Enter the vertex whose degree is 1 into the queue and retrieve a vertex from th
This is a creation in
Article, where the information may have evolved or changed.
Saturday should be Hoterran invited, let me spit out the slot for Erlang and go, so while in Sunday, casually sprayed a few words, first do a Golang advertisement: Golang Online QQ Group: 259718627The first language I used was Java and Python, and I always had a crush on Python, and I liked the feeling of simplicity and efficiency, but I didn't use Python in the end, bec
Convert undirected graphs to point-to-double-connected graphsDefinition: Point-double connect refers to a path with at least two points that are not duplicated between any twoThere are two kinds of cases, one is connected graph, the other is non-connected graph① Connectivity DiagramFirst, find all the points in the graph-the two connected components, and then ind
As projects become increasingly reliant on Erlang, the problems that come up with it increase. The previous time line system encounters the memory high consumption problem, records the troubleshooting analysis process. The online system uses the Erlang R16B02 version.
Problem description
There are several online systems that run for some time and memory soars. The system model is very simple, there is net
Punctuation in Erlang
The Erlang syntax is full of conventions. A name starting with an upper-case letter (such as address) represents a variable, including parameters and local variables. A word starting with a lower-case letter (such as OK) represents a constant, it is called atom, including the constant name, function name, and module name.
Erlang Comments sta
Erlang access to remote shell console, erlangshell ConsoleErlang shell is the interface program for system interaction between users and erlang runtime. In fact, the running of erlang VM does not rely on any shell, as long as the parameter detached is added at startup, it can be detached from the terminal. -DetachedStarts the
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.