🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.functional
Article #77

Re: algorithmic efficiency and lazy languages

#77
From: Hans Boehm
Date: Thu, 23 Jul 1992 17:23
23 lines
1393 bytes
dat@ukc.ac.uk (D.A.Turner) writes:

> There  is  no  special  difficulty  in
>reasoning   about  the  *time*  complexity  of  programs  written  in  a
>non-strict  functional  language.   One  can  derive  from  the  program
>equations   for  functions  fi  say,  similar  equations  for  Tfi,  the
>time-to-execute of function fi.

It seems to me that this is insufficient.  It basically tells us that it's
possible to write accurate profilers.  The real question is:  Are the Tfi
sufficiently simple for real programs that I can understand what's going
on, and use them to drive my algorithm design? 

>There is quite  a  nice  discussion  of
>this,   with   some   examples,  in  chapter  6  of  Bird  and  Wadler's
>"Introduction to Functional Programming".
>
>On the other  hand  reasoning  about  the  *space*  complexity  of  such
>programs seems to be much more difficult.

>David Turner

Hans-J. Boehm
Technical Details
Message-ID: <boehm.711912209@siria>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!mips!pacbell.com!decwrl!parc!boehm
References: <DTARDITI.92Jul21023549@DESERT.FOX.CS.CMU.EDU> <501@owl.ukc.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!mips!pacbell.com!decwrl!parc!boehm
From: boehm@parc.xerox.com (Hans Boehm)
Newsgroups: comp.lang.functional
Subject: Re: algorithmic efficiency and lazy languages
Message-ID: <boehm.711912209@siria>
Date: 23 Jul 92 17:23:29 GMT
References: <DTARDITI.92Jul21023549@DESERT.FOX.CS.CMU.EDU> <501@owl.ukc.ac.uk>
Sender: news@parc.xerox.com
Distribution: comp
Organization: Xerox PARC
Lines: 23