'erlang'에 해당되는 글 3건

  1. 2013.07.31 [Erlang] Erlang & Aptana Install
  2. 2013.07.31 [Erlang] Erlang/OTP http://erlang.org
  3. 2013.07.11 [Erlang] 얼랑 : Erlang/OTP
 Erlang & Aptana Install


1. Erlang Install

 : 윈도우용 프로그램을 다운 받아서 설치 - http://erlang.org/download.html




2. 환경변수에서 시스템 변수 "Path"에  \Bin 폴더를 추가한다.




3. APTANA에 추가

    [window] - [Preferences] 에서  "General" - "Network Connections"에서

      "Active Provider"를 "Manual" 로 변경한다.



4. APTANA에 추가

   [Help] - [Install New Software]에 "Add Repository" 클릭.

    Name : Erlide

    Location : http://erlide.org/update 


   "Panding" 되는 리소스 중에 필요한 것만 설치하면 된다.



5. 설치 후 자동 리스타트 되고 나서, 프로젝트를 생성하려고 보면 "Erlang" 프로젝트가 나온다.   

    "Perspective"에서 선택할 수도 있다.







Posted by 홍반장水 홍반장水
TAG aptana, erlang



Github : https://github.com/erlang/otp



재미있는 놀이: C, Python, Erlang으로 50000! 해보기 #3

재미있는 놀이: C, Python, Erlang으로 50000! 해보기 #2


Posted by 홍반장水 홍반장水
TAG erlang, 얼랭





wiki kor : http://xper.org/wiki/seminar/ErlangLanguage


What is Erlang?

Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance.



Starting erlang

If you are running a unix system type "erl" or, if you are running on windows start Erlang by clicking on the Erlang start icon. You should see something like this:

$ erl
Erlang R14B (erts- [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.8.1.1 (abort with ^G)




The ">" prompt means the system is waiting for input.Using Erlang as a calculator


1> 2*6.


Remember to terminate every expression with a DOT followed by a newline!

Editing previous expressions

Previous expressions can be retrieved and edited using simple emacs line editing commands. The most common of these are:

  • ^P fetch the previous line.
  • ^N fetch the next line.
  • ^A Go to the beginning of the current line.
  • ^E Go to the end of the current line.
  • ^D Delete the character under the cursor.
  • ^F Go forward by one character.
  • ^B Go Back by one character.
  • Return Evaluate the current command.

Note: ^X means press Control + X

Try typing Control+P to see what happens.

Compiling your first program

Type the following into a file using your favorite text editor:





fac(0) -> 1;
fac(N) -> N * fac(N-1).



Save the file as test.erl The file name must be the same as the module name.

Compile the program by typing c(test) then run it:



3> c(test).
30> test:fac(20).
4> test:fac(40).



Now go and write some games!

Digging deeper
Posted by 홍반장水 홍반장水
TAG erlang