Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PARALLEL fibs

Name: Anonymous 2009-12-15 9:19

   To illustrate the use of [m]par we present a program that performs
two compute intensive functions in parallel. The first compute
intensive function we use is the notorious Fibonacci function:

 fib :: IntInt
 b 0 = 0
  b 1 = 1
  b n = b (n − 1) + b (n − 2)


[1] http://www.haskell.org/~simonmar/papers/threadscope.pdf

Name: Anonymous 2009-12-15 10:42

Fibonacchan considered harmful.

Name: Anonymous 2013-09-02 13:01


Don't change these.
Name: Email:
Entire Thread Thread List