Citation: http://cryolite.iteye.com/blog/15472521. Binary data can be shared between different processesOf course, these processes are all on the same Erlang node.This is different from ordinary term, which is to be copied in the receiving process as the message passes between processes (of course atom data exceptions, they are not copied). Pick a piece of text here:All data in messages between Erlang proce
original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author SunfaceContact e-mail: [Email protected]SSH DaemonERLANG/OTP comes shipped with an SSH implementation that can both act as a server and a client. Part of it was a demo application providing a remote shell working in ERLANG.to get the usually need to has your keys to has access to SSH stuff remotely on place already, but for Qu Ick test purposes, you can get the things working by
Creates an environment that runs production systems, and the System Architecture support Library (Sasl,system Administration Support libriaries) will be responsible for error logging and overload protection.
Using Gen_server, gen_supervisor,application and other behaviors, you can build a system with a reliability of 99.9999999.
Unified Erlang Message:
1 abstract The difference between the different line protocols2
One: Variable
1. The variable "single assignment" in Erlang means that the variable can only be assigned one time.2. Variables must begin with a "capital letter".
Two: Atoms
An atom is equivalent to an enumeration type in C + +, but the value of an atom in Erlang is itself.
Atoms are a string that starts with "lowercase letters," but if you use single quotes, the name of the atom doesn't matter, and a l
When you deploy an Erlang project under Linux, many of the development processes are done in Windows and then released to Linux, so the testing process is done under the virtual machine. One day, because you want to use Erlang graphical tools such as APPMON, TV, observer, and so on in a virtual machine, it's a whim to use the Windows Erlang connection to a virtua
First, Erlang syntax: variables, pattern matching--------------------------------------1.ELR Command: Toolbar Toolbar:start ().2.% ... Comments3. Capitalize the variable first letter, single assignment4. Pattern matching5. Atom: Hello, ' an atom with '6. Tuple tuples: tuple nested {person,{a,1},{b,2}}Extract the tuple field value point = {point, ten, +} {point, X, Y} = Point7 list: definition list ThingsToBuy1 = [{oranges,4}, {newspaper,1}|{ Thingstob
In [Erlang 0009] Erlang 30th, I mentioned a small trap about the if statement:
30. If statements will catch the guard clause, so if 1/0-> A; true-> B end. Returns B rather than throwing an exception.
Don't believe it? Open Erlang shell and drill down to see:
Eshell V5.9 (abort with ^G)1> F = fun(X) -> if 1/0 -> a; true -> b end end.#Fun2> F(1).b3> G=1/0 , if
These days, I have been pondering how to convert the simplified Chinese characters of Erlang to Unicode. I have thought of using external modules such as port, C, and python. Using ERTs, dict, and array is not only too cumbersome, but even hard to understand.
Two major issues to be considered in programming: Functions and efficiency.
Efficiency: not only the program running efficiency, but also the programming efficiency.
The simpler the code, the hig
Basic concurrency Functions in Erlang
1) Pid =spwan (Mod,func,args) creates a new process to perform the Apply (Mod,func,args) and runs in parallel with the calling process, using the latest code definition module.2) pid! Message sends message,! to PID process asynchronously For the Send operator3 Receiving ... end receive message
Copy Code code as follows:
Receive
Pattern1[when guard1]-> Expression1;
pattern2[whenguard2]->expressi
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
One, assignment time matching
Atom Match
Copy Code code as follows:
Atom = Atom% atom
Another = another% another
Atom = another% exception error
variable Matching
Copy Code code as follows:
Var = 2. % 2
Var = 3-1. % 2
Var = 1. % exception Error
tuple Match
Copy Code code as follows:
Attr = {name, Sloger}. % {name, sloger}
{name, name} = Attr. % {name, sloger}
Name. % Sloger
List Matching
Copy Code code as
1. ETS and Dets Introduction: ETS (Erlang term Storage) and Dets (Dist ETS) are system modules that Erlang uses to efficiently store large numbers of Erlang data entries. ETS vs. Dets: Same: Both ETS and Dets provide large "key-value" search tables. Different: ETS resides in memory and Dets resides on the hard disk. The ETS storage is temporary and the data store
Beginner Erlang, when compiling the. erl file, Tip:
>1 C (some_module)
./some_module.erl:none:no such file or directory
Error
This is because the. erl file is not being caused in the current working directory of Erlang. Enter the following function in the Erlang shell to get the current working directory: >1 pwd (). You can switch the working directory usin
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
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.