Data Structureis a collection of data elements that are organized in a way that can be numbers, characters, and even other data structures. Python's most basic data structure is sequence (sequence): 6 built-in sequences:lists, tuples, strings, Unicode strings, buffer objects, and Xrange objects. Comparison: List of the differences between the tuples in Erlang and Python:1. General Operation:The Python list is more like an array in C, but more flexible
Recently, I started to access Erlang, which is deeply attracted by it. Of course, I have to have an environment for learning. I have installed the Erlang development environment without hesitation.
The installation is very simple. Download The Source Code directly. The traditional three-step installation:
./configure./makesudo make install
The installation is successful. The installation directory is/usr/l
A brief description of OTP in Erlang and a brief description of ErlangOTP
OTP contains a set of libraries and implementation methods to build large-scale, fault-tolerant, and distributed applications. It contains many powerful tools to implement H248, SNMP, and other protocols, the core concept is OTP behavior. It can be seen as an application framework that uses callback functions as parameters, similar to a J2EE container. The callback function is r
Original blog address, Http://www.linkedin.com/pulse/garbage-collection-erlang-tianpo-gao?trk=prof-post.This article will simply describe the garbage collection of Erlang, which is not an in-depth discussion.When performing a partial garbage collection, the garbage collector only recycles the younger generation and moves the old generation to the old-time dedicated heap. When an
WhatsApp has used Erlang in the production environment to run to 96GB memory stand-alone 3M long connection, participate in: WhatsApp Erlang world. After all, the business level can reach WhatsApp that very little, now only tens, single too many hanging one too much impact, and there is no multi-line access, each room has to throw so several machines, so 1M can meet the requirements.Erlang has a natural adv
Recently, Erlang + MongoDB has been used in the company's webGame project. there is no way to learn about the project. To learn this, you must have an environment at least. Today, we will record it by setting up the development environment, and we will still develop it under ubuntu. By the way, if you do development, you 'd better choose linux, because there are many...
Recently, Erlang + MongoDB has been u
Ubuntu under ECLIPSE+ERLANG+MONGODB development environment Build-Linux operating system: Ubuntu_centos_debian-Red and Black Alliance
Recently, the company Webgame project to use the ERLANG+MONGODB, there is no way the project needs to learn Bai.
Learn this thing at least have the environment, today set up the development environment on the way to record, still under the development of Ubuntu.
By th
Erlang distributed issues that should be paid attention to between linux and windows systems-Linux Enterprise Application-Linux server application information. The following is a detailed description. If nothing happens, test Erlang distribution between two machines. One is Windows XP, and the other is redHat9. Without detailed documents, you can find it and record it.
1. First, the implementation of dis
Rebar is a follow ERLANG/OTP principle Erlang Project builder, using it to reduce the build standard ERLANG/OTP Project architecture configuration, and can be easily compiled, tested, published Span style= "font-family:arial; Background-color:white; " > Erlang application. More powerful, rebar Provide
There are two common types of network communication: Text communication and binary communication. Text communication between php and erlang is relatively simple. We will not discuss it here. We will mainly discuss how php and erlang implement binary communication. Communication Example erlang code:-module (server).-export ([start0]).-define (UINT, 32unsigned-litt
The module is the Basic code unit of Erlang, and the Erl file is compiled with. Beam as the extension, with the UTF8 character set, and the. erl file as shown below:-module (module name, the same as the file name of the storage module)-export ([number of method name/input parameter])Method1 ({a,b,c})->a*b*c;MEHTOD2 ({d,e})->d-e.There are two types of module properties: predefined and user-defined.The data type used in
Erlang uses some common parameters and commands of hipe SASL Monitor, which are recorded in this memo.
Compile and enable hipe (High Performance Erlang)
What is hipe?
The Overlord has a description in the phrase "Erlang's hipe is equivalent to JIT. According to the language evaluation, hipe supports 2-3 times faster in pure Erlang operations, this performance
Reprinted: http://hi.baidu.com/let163/blog/item/f4877311703faedbf7039ef6.html
1. The reserved characters of Erlang include:
After and andalso band begin bnot Bor bsl bsr bxor case catch cond Div end fun if let not of or orelse query receive REM try when XOR
These are basically symbols used for logical operations, bit operations, and special expressions.
2. The types of Erlang include:1) binary, used to indi
Summary: Collect some Erlang project and learning materials, and update them...
1. Web:
Nitrogen: an event-based Web development framework. Http://nitrogenproject.com /.
Http://yaws.hyber.org/
Http://github.com/mochi/mochiweb
Http://sourceforge.net/projects/erdialog/ (Ajax framework implemented by Erlang)
Rabbitmq: http://www.rabbitmq.com/
Ejabberd (Jabber/XMPP server written in
The module is the basic unit of code for Erlang, and the Erl file is compiled with the. Beam as the extension, with the UTF8 character set, the. erl file is indicated as follows:-module (the module name, same as the file name of the storage module)-export ([Method name/number of input parameters])
Copy Code code as follows:
Method1 ({a,b,c})->a*b*c;
MEHTOD2 ({d,e})->d-e.
There are two types of module properties: predefined and
The zebra puzzle is a typical constraint satisfaction problem (CSPs). Sudoku, Magic Square also belongs to CSPs problem. The language features of Erlang's list parsing allow it to solve such problems in a way that is very close to the natural language: it does not need to consider the process-solving steps to describe the constraints, and the Erlang interpreter matches the answer through a domain search. Someone has also used
Nothing to do, just between two machines test Erlang distributed example, a station is WindowsXP, a set of REDHAT9, no detailed documents, their own groping for success, recorded.1. First, the implementation of distributed Erlang provides its own security mechanism to prevent unauthorized access to the Erlang system. When an
overall idea.
3. Software Construction guide-how do we plan a system? We need a clear software build guide set. our system will be written and maintained by a programmer team-so it is important for all programmers and system designers to understand the system architecture and its potential philosophy. from a practical point of view, this knowledge is presented in the form of a software constructor guide for easier maintenance. A complete software constructor set includes a set of programming ru
Friends in the blog Park, this time they have another chance to let you know Erlang, a good language. Please keep up with me and buy an Erlang book, or download an ebook and start the Erlang world. This is a new journey. Let's take a look at mochiweb, a good HTTP server.
The title is changed to the source code for reading, rather than the source code analysis. I
Erlang is a distributed development language based on message transmission. It is easy to develop and has powerful functions. Although Erlang's FP programming is nothing for some FP geeker, there is still a huge gap to be told by most developers at work, in addition, it is inferior to other "mainstream" languages in terms of convenience of development. What a wonderful situation would it be if we could graft the powerful capabilities of
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.