Slashdot Mirror


User: sdnin

sdnin's activity in the archive.

Stories
0
Comments
5
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 5

  1. Re:Erlang on An Overview of Parallelism · · Score: 1
    Well,
    Erlang I have installed, but never seriously used... ...maybe one day I will, but maybe not...

    ...as OCaml-programmer (and Perl and C and others, but OCaml is my favourite) I found it very amazing, when I yesterday got a hint to OCamlP3l...

    ...the decription/abstract looks very promising:

    http://ocamlp3l.inria.fr/eng.htm

    Ciao, sdnin

  2. Re:Gendericator on Spyware or Researchware? · · Score: 1

    And with social interaction, nobody has the chance to lie.

    (well some bodies maybe...?) ;-)

  3. Re:it runs in about 10 seconds on OCaml vs. C++ for Dynamic Programming · · Score: 1

    Section 1.2.1 in SICP: http://mitpress.mit.edu/sicp/full-text/book/book-Z -H-11.html#%_sec_1.2.1 ... programming is an art... ...maybe one that C++ does not force you to learn... :->

  4. Re:it runs in about 10 seconds on OCaml vs. C++ for Dynamic Programming · · Score: 1

    Well, ok, it's not 7x3 in the original code.

    But after looking into the code in more detail,
    I saw that many (the most (nearly all (all?!)))
    recursive functions aren't tail-recursive.

    With such simple recursive approaches
    it is no wonder that the program is slow.

    Try to read SICP and learn to write tail-recursive
    code, then the code will be reasonably fast!

    At least the functions that will be called often
    should be rewritten into tailrec functions.

    ocamlprof will help to find out, which functions
    are called most often.

  5. it runs in about 10 seconds on OCaml vs. C++ for Dynamic Programming · · Score: 1

    Well, I tried the code and on my computer it ran in about 10 seconds (ocamlc/bytecode) and in about 7.6 seconds (ocamlopt/machine code). So, what's the problem this discussion is about?