반응형
반응형

Erlang

 

http://www.erlang.org/

 

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-5.8.1.1) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.8.1.1 (abort with ^G)

 


1>

 

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

 

1> 2*6.
12
2>

 

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:

 

 

-module(test).
-export([fac/1]).

 

 
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).
{ok,test}
30> test:fac(20).
2432902008176640000
4> test:fac(40).
815915283247897734345611269596115894272000000000
32>

 

 

Now go and write some games!

Digging deeper
반응형
반응형

파일검색 프로그램 - Everything search engine

http://www.voidtools.com/

 

  • Download
  • FAQ
  • Support
  • Forums
  • Donate
  • Contact
  • Everything search engine

    Locate files and folders by name instantly.

    Everything
    • Small installation file
    • Clean and simple user interface
    • Quick file indexing
    • Quick searching
    • Minimal resource usage
    • Share files with others easily
    • Real-time updating
    • More...

    For more information please visit the Everything FAQ


    Download Everything for Windows 2000, XP, 2003, Vista, 2008 and Windows 7

    Everything-1.2.1.371.exe (334 KB)

    Everything-1.2.1.371.zip (Portable, 272 KB)

    (See list of changes)Older versionsMD5

    Donate with PayPal Flattr this

    Download Everything 1.3.3.658b Beta for Windows

    Everything-1.3.3.658b.x64.exe (Installer, x64, 520 KB)

    Everything-1.3.3.658b.x86.exe (Installer, x86, 440 KB)

    Everything-1.3.3.658b.x64.zip (Portable, x64, 533 KB)

    Everything-1.3.3.658b.x86.zip (Portable, x86, 425 KB)

    (See list of changes)MD5

    Donate with PayPal Flattr this

     

    반응형
    반응형

    [OST/하울의 움직이는 성] 지브리 25주년 기념 공연실황이구요.

     작곡가 히사이시 조가 직접 피아노를 칩니다.

    곡목은 영화의 메인테마인 '인생의 회전목마(Merry Go Round Life)'

    후반부 전체 연주 장면은 가슴을 쿵쿵 뛰게만드네요.

     

     

     

     

    .

    반응형
    반응형

    아이디어를 표현하는 능력은 아이디어 자체만큼 중요하다. - 버나드 바루크 -

    반응형
    반응형

    - KBS 1TV '강연 100℃' 영상 -

    '꿈꾸는 자는 늙지 않는다'는 제목으로 방송된
    16분 짜리 강연영상입니다. 꼭 한 번 보시기 바랍니다.

     

     

     

     

     

     

     

     

     

     

    .

    반응형

    '아침편지' 카테고리의 다른 글

    맛난 만남  (0) 2013.07.13
    '느낌'  (0) 2013.07.12
    남자들의 무감각  (0) 2013.07.11
    위험하니 충전하라!  (0) 2013.07.10
    눈에 보이지 않는 것  (0) 2013.07.09
    반응형
    남자들에게
    문제가 생겼다는 말이 나올 때쯤 되면
    일이 거의 대형 사고 수준까지 불거졌음을 의미한다.
    아프다고 말하면 이미 심각한 병에 걸린 경우가 많다.
    왜 남자들은 이토록 스스로에게 무감각한 것일까?
    자신에게든, 주변에 대해서든 조금만 더
    민감하게 반응한다면 위험 요소들을
    사전에 처리할 수 있을 텐데 말이다.


    - 이의수의《남자를 이끄는 힘》중에서 -


    * 남자들만 무감각한 것이 아닙니다.
    저의 어머니도 '대형사고'가 나기 전까지
    평생 무감각하게 사셨습니다. 자식에 대한 사랑,
    헌신적 책임감이 그렇게 살게 했지 않나 싶습니다.
    남자든 여자든 무감각에서 벗어나야 합니다.
    감각이 살아나야 더 사랑 할 수 있고
    더 큰 헌신도 가능합니다.

     

    반응형

    '아침편지' 카테고리의 다른 글

    '느낌'  (0) 2013.07.12
    꿈꾸는 자는 늙지 않는다. - KBS 1TV '강연 100℃' 영상 -  (0) 2013.07.11
    위험하니 충전하라!  (0) 2013.07.10
    눈에 보이지 않는 것  (0) 2013.07.09
    향기로운 여운  (0) 2013.07.08

    + Recent posts