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:
ExchangeThe previous log System example broadcasts all messages to all consumers. We want to extend it so that it allows filtering information.With fanout type of exchange, there won't be much flexibility, just broadcasting.With direct-type exchange, direct Exchange's algorithm is simple, and messages with the routing key and the same binding key for the queue are delivered to the queue. See:This setting, we can see that there are two queues bound to a direct type of exchange. Q1 's binding key
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
Learning materials:
Official doc:http://www.erlang.org/doc.html
Written in special detail: http://www.cnblogs.com/zhengsyao/(strong push, write very detailed)
System Technology Research: http://blog.yufeng.info/
Zhongzhou Butterfly Erlang: http://www.blogjava.net/killme2008/category/20770.html
A blogger in the blog Park: http://www.cnblogs.com/lulu/category/559387.html
The other one: http://wqtn22.iteye.com
A simple e
Here is the CentOS operating system under the installation, other operations can draw on this article to see How to install, the following steps:Installing GCC yum install gccInstalling Ncurses-devel Yum Install Ncurses-devel1. Visit the official website download page to find the appropriate version for your machine;2. Download Erlang to a local
wget http://www.erlang.org/download/otp_src_19.2.tar.gz
3. Unzip and install
Tar -z
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.