I want to analyze my Haskell code. Is there an approach, as e.g. amortized analysis, to analyzing lazily evaluated algorithms?

asked 24 Jan '12, 08:59

oleks's gravatar image

oleks ♦♦
5201718
accept rate: 41%


There are some details in Chris Okasaki, "Purely Functional Data Structures". The major thing to note is that when you have a lazy structure in e.g. Haskell, then call-by-need makes you evaluate a certain path once and only once. Provided that you structure your program correctly that is.

But in general this is quite hard. It was one of the negative points on lazy evaluation in the beginning.

link

answered 24 Jan '12, 10:03

jlouis's gravatar image

jlouis
6163
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×122
×3
×2

Asked: 24 Jan '12, 08:59

Seen: 1,719 times

Last updated: 24 Jan '12, 10:03

powered by OSQA