The Erlang Shell is an interface program that users interact with the Erlang runtime system. In fact, the Erlang VM runs without any shell, as long as the parameter detached is added at startup to get out of the terminal. -detachedStarts the Erlang runtime system detached from the system console. Useful for running dae
appropriate, is too bloated, and lack of system programming genes, after all, it is enterprise-level development background
finally I chose Erlang, because it performs well in the network layer, while the fault-tolerant and robustness are very good, its virtual machine is the only one comparable to the JVM, but also the OTP super-heavyweight weapons, almost can be a network layer application, but according to my summary it has a mishap and a soft r
appropriate, is too bloated, and lack of system programming genes, after all, it is enterprise-level development background
Finally I chose Erlang, because it performs well in the network layer, while the fault-tolerant and robustness are very good, its virtual machine is the only one comparable to the JVM, but also the OTP super-heavyweight weapons, almost can be a network layer application, but according to my summary it has a mishap and a soft rib
The following example is mentioned in many of the basic Erlang tutorials on the web today:-module (tut).-export ([DOUBLE/1]).Double (X)2 * X.Then compile the Tut.erl source file in the Erlang shell:1> C (tut).But for a beginner who has just touched Erlang, the following errors often occur:./tut.erl:none:no such file or directoryErrorThe prompt message tells the u
Solution to high memory usage of Erlang Server
Question: The Erlang server has 1 million online users, and 16 GB of memory is quickly swallowed up. The memory occupied by player processes is high.
Solution:
Step 1:Erlang: system_info (process_count). Check whether the number of processes is normal and whether it exceeds the maximum number of processes on the
Erlang send analysis and parameter significance, erlangsendErlang send is a basic message sending function used by a process to send a message to another process. This function can be used for local node process communication or remote node Process Communication.Preface recently, some colleagues encountered the problem of message accumulation caused by erlang: send, which aroused my strong attention. I also
This is a creation in
Article, where the information may have evolved or changed.
original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author Sunface
It is estimated that many students will find this confusing, go's name has been thunderclap piercing, but Erlang? This stuff is God horse? Is it a programming language? I've never heard of it before.
Here, let me first introduce the more famous
found that Erlang uses the traditional poll model on Linux. however, the source code of Erlang is found to support epoll. after searching the Internet for half a day, I finally found a maillist post.Code
$./Configure -- enable-kernel-poll
Because our test server is dual-core, we also opened the SMP support during configuration. After the cheerful make make i
http://blog.csdn.net/karl_max/article/details/3976372The 6th chapter compiles and runs the program1. Erlang:halt () can immediately stop the system from running.2. The q () command can complete some processing of files and databases before exiting. It is a shell alias for Init:stop ()3. Erlang can dynamically load code, and the running code can be dynamically trimmed after recompilation without stopping the program from running.4. Module load related
Internal Implementation of erlang catch (first draft), erlangcatchRecently, some colleagues in the project team shared the internal data (Eterm) of erlang. Eterm is short for Erlang Term, used to represent any type of data in erlang, that is, any data that erlang can use can
When my team and I decided to transform technology to Erlang, a series of problems emerged: What ide does Erlang use? How to compile Erlang? How do I run a program compiled by Erlang? How can I debug a program written in Erlang? In fact, these problems are universal. When le
Erlang Multi-process and multithreading:In Erlang development, the smallest execution unit we face is the process, and of course this process is not a process at the system level, nor is it a thread. It is a process that is based on the Erlang runtime system. So how does Erlang's multi-process become multi-threaded at the system level and then processed by multi-
commonly used dependent applications such as kernel and stdlib, and rectangular representation of library applications.
Hierarchies can be found using the observer 7 application, but for individual supervision trees. Put together, you may get an easy way to find out what does what in the code base.
You can also use observer 7 application to view the parent hierarchy, but only for individual supervisior trees. With all the summary, you can easily dive into the code.
[5] At the very least on t
blocking operations in each "Thread"; otherwise, the entire mechanism will become invalid.
Of course there are some perfect solutions. Erlang can be regarded as relatively perfect. Erlang implements lightweight threads and schedulers on virtual machines and becomes the basis of language. In Erlang, users do not control threads, but create a large number of light
Http://wenku.baidu.com/link?url=AUQR8Hn-e-fEB_lqjXsd8XfapWj1qAK7J05JoBXFib_ Llsk5qsotia8hixnv1xkezi-khfsh18qb9ned5pkipb8h6odfvr6kg75musyaammErlang Learning NotesI. The focus of Erlang language features1. Catch is a tuple that returns the value of an expression or an error messageTry...catch is able to capture different types of errors and have process control2, the message will never fail, if you try to send a message to a non-existent process, will o
Reprinted: http://chaoslawful.iteye.com/blog/310346#bc2251686
Evaluation purpose
The purpose of this test is to investigate the specific performance differences between the Erlang file I/O and the C standard I/O.
Prerequisites
Erlang has two types of operations: normal file I/O and bare file I/O. The file handle of normal file I/O is a process ID, therefore, you can access the handle from any location of th
Many people will notice this problem, Erlang provides 2 time functions, Erlang:now () and Os:timestamp (). In the same way, the current time is returned. The time is from January 1, 1970 Zero, to the current elapsed time, the result is {megasecs, Secs, microsecs}. What is the difference between these two functions? Os:timestamp () Gets the time of the operating system without making any corrections, while Erlang:now () ensures that a unique time is ge
The resume interface will be designed for system construction, so that he can be connected to the resume System of applications in different languages. This is called the interface technology of Erlang.
Three methods of interface technology:
1. allow external operating systems to run outside the Erlang virtual machine. This is a safe approach. The code in the real-time external language is also problematic
Unbe. cnerlang_php_socket_test_01 some time ago, I talked about memcached and APC in the group and talked about devshm gradually. I said that he used devshm for caching. This discussion triggered my tests on the read/write performance of memcached, APC, and devshm data. During the test, I thought of Erlang's built-in ets and the legendary
Http://unbe.cn/erlang_php_socket_test_01/ some time ago, in the group and brother chat memcached and APC, gradually talked about/dev/shm, said he used/dev/shm
When analyzing Erlang:send's Bif, a Bif_trap series of macros was found. Refer to some of Erlang's own descriptions, which are designed to implement a mechanism called trap. The trap mechanism introduces Erlang's code directly into ERTs, allowing the C function to "use" these Erlang functions directly.Let's first think about why Erlang implements the trap mechanism. Let me start with the more recent fire go
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.