I. Variables
1. The variable [Single Assignment] in Erlang means that the variable can be assigned only once.
2. The variable must start with an uppercase letter.
Ii. Atom
The atom is equivalent to the enumeration type in C ++, but the value of the atom in Erlang is itself.
An atom is a string starting with a lower-case letter. However, if it is enclosed by single quotes, it doesn't matter if it is named. A
Erlang provides binary_to_term to convert binary data into original Erlang data. However, this function also has side effects. If you directly perform a binary_to_term operation on the data transmitted from the peer end, the VM crash may be dropped.
Binary_to_term side effects
This is because binary_to_term generates these atoms when binary data has Atomic values. However, the total number of VM atoms is li
Erlang Cowboy WebSocket ServerThe original text is:Http://marcelog.github.io/articles/erlang_websocket_server_cowboy_tutorial.htmlThis article is not a simple translation of the original text, is a reference to the original, according to my understanding and practice written. The source code of this article is:Https://github.com/marcelog/erws1 IntroductionErlang can be used to implement a WebSocket server. Cowboy such a framework can accomplish this t
1. Building the directory structureIn my example, the project folder is Bank1Ebin directory: storing compiled beam filesInclude directory: storing HRL filesSRC directory: Storing erl source Files2. Create a Emakefile fileAt compile time, the compiler will handle the Emakefile file as appropriate.{[' src/* '% specify the erl source file directory],[debug_info,{i, "include"} percent specifies the Include folder, {OutDir, "Ebin"} percent to specify the compiled beam file directory]}.2, write the co
Questions:When we put all the supervision tree in a project through a simple function game:start (), we find that the tree structure is particularly complex, with only one root node, and then it expands.Here, this is why application appears, designing a sub-block (application) that can be switched on at any time. For example: In the Log app, DB app, game app, connect app.So the switch management of these applications is very convenient, "Imagine if you use supervisor, the runtime also to manuall
See http://ecug.org/
You are welcome to spread this message everywhere.
----CN erlounge III-launch
Time ~ , For 2 days
Location: Shanghai (detailed address to be confirmed)
Character: This is intended for the Erlang Chinese community, but it does not exclude anyone interested in topics such as Erlang, distributed, and multi-core.
Topics: Erlang-rela
Here is an elang description:
Erlang Quick Start Abstract: Erlang is not only a programming language, but also has some features closer to the operating system than the programming language: concurrent threads, Job Scheduling, memory management, distributed, and networking. It has a super lightweight process, which dynamically changes the memory requirements. Erlang
Source: http://erlang-china.org/misc/scalaris_and_build-in-json.html
Recently active Erlang community events are the code announcement of scalaris and the hot json bif discussion.
Scalaris is the mysterious yet an other key-value dB project presented by Alexander reinefeld on Erlang Exchange 2008 in the previous article. Currently, its source code has been publi
(1) Operation of tuples in Erlang:
1. Concepts of tuples:
1. Fixed Number
2. Any types that Erlang can recognize
2. Create a tuples:
1. f = {A, XX, 123, {345, BB, CC, "XX "}}.
3. Extract tuples
1. Matching:
Eg:
F = {A, XX, 123 },
{A, XX, YY} = f. % the value of YY is 123.
2. Erlang: element (Pos, mytuple). Pos indicates the first element, starting from
[Erlang crisis] (5.1.4) port, erlang5.1.4Original article, reproduced please indicate the source: Server non amateur research http://blog.csdn.net/erlib Sunface contact mailbox: cto@188.comPort
In a manner similar to processes, Ports shoshould be considered. ports are a datatype that encompasses all kinds of connections and sockets opened to the outside world: TCP sockets, UDP sockets, SCTP sockets, file descriptors, and so on.There is a general funct
For the installation of RABBITMQ, I also really wasted some effort, version download a lot, but there are compile problems, compile does not pass, error can not find the cause of errors, even error is * * * such existence.Other dependencies that I have not tested because I exist in the environment: Python,simplejson, installingBetween RABBITMQ is dependent on the Erlang language.Erlang installation is more important, version problems, compile problems
This article describes how to parse binary communication instances between php and erlang. For more information, see the following two common methods of network communication: text communication and binary communication. It is relatively simple to implement text communication between php and erlang. we will not discuss it here. this article mainly discusses how php and
This article describes how to parse binary communication instances between php and erlang. For more information, see the following two common methods of network communication: text communication and binary communication. It is relatively simple to implement text communication between php and erlang. we will not discuss it here. this article mainly discusses how php and
In Erlang shell, end an expression with a period plus a space, tab, or carriage return, and% represents the starting point of the comment; The module is the. erl file, the header file for the library. HRL, the shell's compile-time C (), outside the compile command when ERLC, exits the shell with Q (), or Erlang:halt ().The variable starts with an uppercase letter and cannot be re-bound, and can be assigned only once, with an immutable state.Atoms are
The main problem with map matching is to recall the map group map in Erlang, which is called hash hash or Dict dictionary in other languages.
Erlang supports mapping groups starting with the R17 version
Create a mapping group
The mapping group in Erlang is represented by a struct #{} that creates a mapping group that can be
Copy Code code as follows:
original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author Sunface Contact e-mail: [Email protected]Initial Form File.erl1.preprocessing (pretreatment)Compile:file (file,[' P ']).2.expansion (Extended)Compile:file (file,[' E ']).3.core Erlang (Erlang core code)Compile:file (File,[to_core]).4.kernel Erlang
Went to Fuzhou, things did not fix, entrusted to the students to help deal with, home rest two days to work. Home these days the biggest harvest is the fourth time to reread the "deep Java Virtual Machine", previously unclear chapters enlightened, a sense of enlightened feeling, it seems, the technology of learning or anxious not to come.Gossip does not mention, continue the study of Erlang, last learned the chapter of distributed programming, the rem
Transferred from: http://www.thinksaas.cn/group/topic/244329/Feature Description: There is insufficient encoding support for various languages in Erlang, which uses Erlang to drive the well-known Iconv encoding library to encode and convert characters. File Description: Iconv_erl.c and iconv.h are the driver of the Erlang character encoding module, which is the f
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.