Build Erlang programming environment under Ubuntu-adu World-Blog channel-csdn.net
Spit Groove: Erlang as a small language, programming environment configuration of my crazy Ah, the official standard is Emacs, but I as poisoning has deep vimer really do not want to change the editor, on the way I tried to use Eclipse plug-in erlide, but, when I consumed a lot of character, After having endured a slow spe
http://blog.csdn.net/flyinmind/article/details/7740540Erlang is used in the project, and MySQL is used as well. Convention, Google.However, according to the online said to do, some discrepancy, does not work, need to find their own, the following record my groping things.1, download erlang-mysql-driver;: Https://github.com/dizzyd/erlang-mysql-driver2, decompression to the MySQL directory, not wordy;3. Compi
When installing, be sure to use the Centos6.4 disc as a Yum source, otherwise the version of the problematic OpenSSL may be used1, first to install GCC gcc-c++ OpenSSL and other dependent modules:Yum-y install make GCC gcc-c++ kernel-devel M4 ncurses-devel Openssl-devel2. Re-install the ncurses moduleYum-y Install Ncurses-develYum Install Ncurses-devel3, download Erang source code file otp_src_r15b03-1.tar.gz file, and to pay permission and decompression files:chmod +x otp_src_r16b03-1.tar.gzTAR
This is a creation in
Article, where the information may have evolved or changed.
Because of the high concurrency and low latency requirements of the system, we have done a lot of research and comparison work on various languages and platforms. This naturally includes Go and Erlang, which are dedicated to developing high-concurrency applications.
Concurrent
Go's support for high concurrency is achieved through goroutine. Goroutine can be understood as
Link: http://unbe.cn/erlang_php_socket_test_01/
Some time ago, I chatted with my brother in the group about memcached and APC and gradually talked about/dev/SHM. I said that he used/dev/SHM for caching. This discussion triggered my tests on the read/write performance of memcached, APC, and dev/SHM data.
During the test, I thought of the Erlang built-in ETS and the legendary concurrency performance. If I use Erlang
Question: 1 million people are online on the server, and 16 GB of memory is quickly consumed. High memory usage by player Processes
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 virtual machine.Step 2:View the memory bottleneck of a node> Erlang
Erlang tool andCodeLibrary Erlang has a set of common tool libraries: Appmon -Process Group graphical monitoring (on local and remote nodes ). ASN.1 -Supports the ASN.1 basic markup method and the code package at compile time and runtime of the BER, der, and per encoding rules. Compiler -Erlang compiler. Debugger -Graphical E
In the past year, we can see a major change: the online game line separation has gradually changed from standard to optional, and more games are starting to be offline. Why did we need line separation? Why is there no line? What are the technical challenges? Is it just a technical problem?
Glossary
Different technologies implement different concepts of "One Line". We use Erlang implementation. Here, a line corresponds to a VM of Erlang.Why do we need
Http://blog.chinaunix.net/uid-22566367-id-382012.htmlThe connection between Erlang and CReference: Web MaterialsSunnyIn the 12th chapter of the programming Erlang book, the connection between the Elang and the C language is realized, and I think that example is still a bit complicated, and I would like to cite a simpler example. And there was a mistake in page 161 7th of that book.The book reads:Port! {PidC
This is a creation in
Article, where the information may have evolved or changed.
Give yourself a retreat and compare Erlang and Golang again.
2014-6-28
Chen Yehao chenyehao@gmail.com
Rainy weekend, suitable for the season of the code word ...
A year ago, when I began to learn the go language, unsanitary environment, both Python coding efficiency and 15 times times the performance improvement. Especially in the area of asynchronous programming, you c
Zhangchangchang1, problem descriptionThe Erlang side writes an Oracle table through ODBC, and Java uses the JDBC driver to write the table, which is locked when the write operation occurs multiple times.2. Problem solvingIdea: Using the adapter principle, suitable for Erlang and Java database connection, let Erlang end of the operation of the data table and Java
Goal(1) Understand the effect of Erlang concurrent process scheduling on CPU core load in multi-core CPU environment;(2) The memory addition mechanism of Erlang virtual machine;(3) The operation of Erlang process;(4) Monitoring CPU usage under LinuxExperimental environmentLenovo Minicomputer: Operating system: RedHat Enterprise linuxserver release6.4 (Santiago)Ke
From: https://my.oschina.net/ffs/blog/465402
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 ThingsTo
1,DiscoIs a framework that implements map-Reduce and is developed using Erlang + python.Development language: Erlang PythonProject home: http://discoproject.org/Document address: http://discoproject.org/doc/: Http://discoproject.org/download.html
2,Stress testing toolsTo test servers including HTTP, WebDAV, PostgreSQL, MySQL, LDAP, and XMPP/jabber.Development language: ErlangProject home: http://tsung.erlan
Recently, I took the time to read some Erlang things. They are very interesting, pure functional programming, and process/message programming models. Of course, what I care about most is the basic philosophy behind language design about building a robust system.
Functional programming is not new, and it is not new. It has been available in lisp for a long time. Erlang looks like a pure FP language, looks g
Erlang vs. cerl
As we all know, Erlang is not introduced here. Its advantages include:
The most concise and refined Distributed Model
Node, process, mail (Message)
The most elegant error handling model: fail fast)
If any exception occurs, immediately die.
Genserver programming framework
The program code style is consistent for easy communication
Lightweight Process
We c
Step 1:Check whether the number of processes is normal? Erlang: system_info (process_count ).
Step 2:Check the node memory consumption?> Erlang: memory ().[{Total, 2099813400 },{Processes, 1985444264 },{Processes_used, 1985276128 },{System, 114369136 },{Atom, 4479545 },{Atom_used, 4477777 },{Binary, 22756952 },{Code, 10486554 },{ETS, 47948808}]It is shown that most of the memory is consumed by the process,
* Make sure there are no compilation warnings
* In Erlang, string is implemented by list. In 32-bit systems, the space of one character is 8 bytes (four values are saved and four pointer values are saved ). Therefore, the string speed is slow and the space usage is large.
* On the server, you always try your best to write tail-recursive functions.
* When '+ +' is used, the left list will be copied and added to the right list header. Therefore, i
This is a creation in
Article, where the information may have evolved or changed.
Http://blog.sina.com.cn/s/blog_6e1bd8350102uwgl.html
Rainy weekend, suitable for the season of the code word ...
A year ago, when I began to learn the go language, unsanitary environment, both Python coding efficiency and 15 times times the performance improvement. Especially in the area of asynchronous programming, you can use channel synchronization threads, without locking can make full use of CPU multi-core com
Notes SeriesErlang Environment and sequential programmingErlang Concurrent ProgrammingErlang Distributed programmingYawsErlang/otpDate Change Description2014-12-21 A Outline, 1Agenda0 ScopeAround the OTP design principles, record behavioral patterns, supervisory tree concepts, applications, releases and deployments, and a product-level caching solution in [3].1 OTP Design PrinciplesErlang Doc: OTP Design principles User ' s guideThe OTP design principle illustrates how
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.