These two days have been installed under Erlang, ready to have time to understand the next. installation under Mac1. Install PortVisit the following Web site:https://www.macports.org/install.phpSelect your own Mac version and download to install port2. Installing Erlangsudo port install Erlanginstallation of Ubuntu If you can connect to the net, blessed, a command to take care of:sudo apt-get install ErlangIf the source is installed:First http://www.e
, and a portion of the task is killed from the queue that uses the excess resources to free resourcesC, load Balancing:Fair Scheduler provides a task-based load balancing mechanism that distributes the tasks in the system to each node as much as possible. In addition, users can design a load balancing mechanism based on their needsD, Scheduling Policy Flexible configuration: Fiar Scheduler allows administrators to set the scheduling policy separately for each queue (currently supports FIFO, fair
Accidentally get a copy of the code on the Erlang Web page ServerI have to say it is very elegant, the document is very good, but I see his scene management in the broadcast algorithm, have to say that the writing is very beautiful, but very low efficiency.Each time the global traversal of all online players in a scene of the toy ID, such an algorithm, I do not know how much a service can prop up the number of people, optimization, scene services mana
For a running Erlang system, the process is absolutely an important component. Because processes are the basis of all running entities, you will want to know more about them. Fortunately, VMS provide a large amount of information available, some of which are safe to use, and some are unsafe to use in a production environment (because a very large collection of data is returned, and the amount of memory required to copy to the shell and print causes th
Erlang Cowboy Introduction Reference modern web HistoryOriginal:http://ninenines.eu/docs/en/cowboy/1.0/guide/modern_web/Let me review the history of Web technology and anticipate future developments. Cowboy is compatible with all of these technologies except http/2.0, a technology that has not yet been formally incorporated into the specification.The early webThe initial HTTP is used to return the HTML page to the GET request. The original version was
Reference Document: Http://erlang-china.org/study/the-right-tail-recursive.html
Compare the execution efficiency of the following two Erlang programs:
A) T1.erl
-module (t1).
-export ([FAC/1]).
FAC (1)-
1;
FAC (n),
n + FAC (N-1).
b) T2.erl
-module (T2).
-export ([FAC/1]).
fac_i (n, 1), FAC (n).
Fac_i (1, x),
x;
Fac_i (n, X),
fac_i (N-1, n + x).
The test found that T2 (tail rec
1. Erl-detached
This document describes the applicability of daemons and background programs. It also applies when node is dynamically pulled in the Code. Otherwise, the problem of terminate Erlang will be reported.
2 init stop
Can terminate the VM, combined with RPC: Call can end the specified Node
3. control common test in code
CT: Install specifies the config file, CT: start_interactive (). This is very important. It specifies the interaction mode.
As mentioned above, the smerl in erlyweb already has a ruby-like tuples for programming. This article will introduce the basic principle of implementing tuples for programming. In smerl, the abstract form of Erlang is mainly used for implementation. We will examine the composition of Erlang abstract form in detail. The method is very simple. Refer to the abstract form section in the eralng document and use
Reprinted: http://mryufeng.iteye.com/blog/113856
ETS is Erlang term strorage meaning document see erl5.5.5/lib/stdlib-1.14.5/doc/html/index.html. This is a core function in beam. ETS, dets, and mnesia constitute the Erlang database. Note that mnesia has no storage mechanism.Its storage is ETS and dets.You can use ETS: I ().11 code set 254 11393 code_server12 code_names set 48 5323 code_server13 shell_recor
Summary: The features of Erlang are almost different from those of Erlang...
Variable immutable:
Guarantees atomicity and prepares for parallelism.
Tuples:
Similar to the structure in C language.
Person = {person, {name,joe}, {height,1.82}. }.
List:
[H | T]. The list starts with H and ends with T. The vertical line symbol (|) can separate the header and tail of the list, while [] is an empty li
A simple Erlang process pool Analysis
This is a simple Erlang process pool analysis, which islearn you some erlang for Great GoodHere is an example. For details, go to the official website!Main Flowchart
Implementation Principle
The implementation principles of this example are described in detail on the official website.ppool_servMedium,ppool_servIsgen_server be
-Cause
In the last group of services recently, the CPU usage of some node servers is very low, with only 1/4 of other servers. Eliminate service imbalance and suspected it was a system top statistics error. We found it through Erlang: Statistics (scheduler_wall_time) from the Utilization Survey of Erlang scheduler) check that the actual CPU usage of the machine scheduler with low server CPU is close to 100%
I have previously reposted an article about common Emacs shortcut keys:
Http://blog.romebuilder.com/2011/11/534/
The following describes how to add the preceding shortcut keys and the Erlang shortcut keys:Common shortcut key supplement
C-x d directory management interface, which can be used to open files in different directories
C-x C-Q enables the Directory management interface to enter the Editable mode. In this mode, you can modify the file nam
Preface
Hope it is not a pitfall. We plan to adopt a structured latency strategy, which will be written before the dead line (July is the planned Erlang month.
Perfect plan
The advantages or interesting aspects of Erlang over Java are as follows: imperative language v. S. Functional language, thread abstraction and architecture, and distributed programming support.
Cruel and ugly practices
Example 1 fast
Reprinted: http://blog.csdn.net/cuiweican/archive/2010/07/14/5735476.aspx
The Erlang/OTP's global module can be used to name the processes in the Erlang distributed system in the form of atoms to ensure that each process in the distributed system has a unique name at the same time.
Now let's take a look at the performance of the global module in actual operations. register the same name in two
When talking about the SIP Protocol, many people first think of the VoIP service. So what else is there? Today we will introduce another embodiment of the SIP business-Erlang project called yxa official website http://www.stacken.kth.se/project/yxa/), can be said to be the Erlang on the SIP protocol stack and server implementation. In addition to the basic SIP service package release, transfer layer, and Tr
A record is actually another form of a tuple. By using records, you can associate a name for each element in a tuple.A mapping group is a collection of associations of key-value pairs. The key can be any of the Erlang data types.When to use a mapping group or recordRecords are another form of tuples, so they are stored in the same way as performance characteristics and tuples. The mapping group takes up more storage space than the tuple, and it looks
original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author SunfaceContact e-mail: [Email protected]1. Get all the atoms in the loaded module33> beam_lib:chunks (FAC, [atoms]). {OK,{FAC,[{ATOMS,[{1,FAC}, {2,state}, {3,erlang}, {4, '-'}, {5, ' * '}, {6,module_info}, {7,get_module_info}]}]}}2. A
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.