Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Erlang

  1. #1
    Join Date
    Apr 2005
    Location
    Mars
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Erlang

    A few days ago I learned about Erlang. I looked at www.erlang.org and on wikipedia to learn more. I installed the interpreter and ran a few simple programs. Does anyone have advice about this particular programming language? Is it any similar to Lisp (if so how)? What are your experiences?

    The whole thing about putting a period at the end of a line and then whitespace was a little odd at first.

  2. #2
    Join Date
    Dec 2004
    Beans
    60

    Re: Erlang

    i'm practicing programming in erlang too

    what i can say:
    - it's becoming my language of choice for anything network oriented, it's a pleasure to create state machines.
    - it's good for creating systems, attending many clients at time or controlling many external processes (see the port system). it's not good for creating small scripts.
    - you're going to have some patience getting used to the functional style and using read only variables

  3. #3
    Join Date
    Apr 2005
    Location
    Mars
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Erlang

    Quote Originally Posted by angustia View Post
    i'm practicing programming in erlang too

    what i can say:
    - it's becoming my language of choice for anything network oriented, it's a pleasure to create state machines.
    - it's good for creating systems, attending many clients at time or controlling many external processes (see the port system). it's not good for creating small scripts.
    What about neural networks?
    Quote Originally Posted by angustia View Post
    - you're going to have some patience getting used to the functional style and using read only variables
    Yes, I noticed that. But there are other things that can functionally replace variables (as we're used to them in other languages), I think they're called modules, but can't recall.

  4. #4
    Join Date
    Apr 2005
    Location
    Mars
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Erlang

    Angustia, how do you get out of the emulator once you're in it?

    I get to this point:
    Code:
    $ erl
    Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] [hipe] [kernel-poll:false]
    
    Eshell V5.5.2  (abort with ^G)
    1>
    The only way that I can get out is do Ctrl + C. Ctrl + G doesn't really work very well.

    I know that lisp's emulator has (bye), (quit) and (exit) commands.

  5. #5
    Join Date
    Dec 2004
    Beans
    60

    Re: Erlang

    Quote Originally Posted by YourSurrogateGod View Post
    Angustia, how do you get out of the emulator once you're in it?

    I get to this point:
    Code:
    $ erl
    Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] [hipe] [kernel-poll:false]
    
    Eshell V5.5.2  (abort with ^G)
    1>
    The only way that I can get out is do Ctrl + C. Ctrl + G doesn't really work very well.

    I know that lisp's emulator has (bye), (quit) and (exit) commands.


    q().

  6. #6
    Join Date
    Dec 2004
    Beans
    60

    Re: Erlang

    Quote Originally Posted by YourSurrogateGod View Post
    What about neural networks?


    Yes, I noticed that. But there are other things that can functionally replace variables (as we're used to them in other languages), I think they're called modules, but can't recall.
    i don't know so much about neural networks, but i could guess:

    - each neuron it's a very simple state machine
    - you want to have the maximum number of neurons

    you could program some neural networks using erlang processes, but if you need to make the maximum performance you will be force to use a compiled language.



    P.S. if you have a smp machine, run erlang this way:

    erl -smp
    excuse my english

  7. #7
    Join Date
    Apr 2005
    Location
    Mars
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Erlang

    Quote Originally Posted by angustia View Post
    i don't know so much about neural networks, but i could guess:

    - each neuron it's a very simple state machine
    - you want to have the maximum number of neurons

    you could program some neural networks using erlang processes, but if you need to make the maximum performance you will be force to use a compiled language.



    P.S. if you have a smp machine, run erlang this way:

    erl -smp
    excuse my english
    Silly question, but what's SMP. I looked in the man page and this is what I got:
    Code:
             -smp [enable|auto|disable]:
    
                 -smp enable and -smp starts the Erlang runtime system with SMP support enabled. This may fail if no runtime  system  with  SMP  support  is
                 available.  -smp  auto starts the Erlang runtime system with SMP support enabled if it is available and more than one logical processor are
                 detected. -smp disable starts a runtime system without SMP support. This is currently the default behavior. -smp auto will probably be  the
                 default behavior some time in the future.
    
                 NOTE: The runtime system with SMP support will not be available on all supported platforms. See also the +S flag.
    It tells me how to activate it, but it forgets to tell me what it is .

  8. #8
    Join Date
    Jul 2007
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Erlang

    Symmetrical Multi Processing?
    ch
    In Switzerland we make it other
    with apologies to Gerard Hoffnung


  9. #9
    Join Date
    Dec 2004
    Beans
    60

    Re: Erlang

    http://en.wikipedia.org/wiki/Symmetric_multiprocessing

    like this:

    Gazelle laptop.
    Dual-core, 2 gigs of ram.

  10. #10
    Join Date
    Apr 2005
    Location
    Mars
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Erlang

    Cool thanks guys .

    One other thing that I picked up. It seems that Erlang is really good at running many processes at the same time. So good, that the web servers written in erlang out-performed Apache by a very large margin.

    http://en.wikipedia.org/wiki/Yaws_%28web_server%29

    That's pretty cool.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •