🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.functional
Article #1126

Re: Haskell optimization (mandelbrot generator)

#1126
From: Ian Osgood
Date: Tue, 27 Jun 2006 21:18
18 lines
1770 bytes
jtdubs@gmail.com wrote:
> I am teaching myself Haskell and decided to write a Mandelbrot
> generator as a learning exercise.
>
> It works fine and the code is nice and short, but I'm not happy with
> the performance.

This happens to be one of the benchmarks in the Computer Language
Shootout. Perhaps you can gain some insight from its Haskell
implementation:


http://shootout.alioth.debian.org/debian/benchmark.php?test=mandelbrot&lang=ghc&id=2

(This is also an order of magnitude slower than the C benchmark.)

Ian
Technical Details
Message-ID: <1151443098.852991.168430@i40g2000cwc.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i40g2000cwc.googlegroups.com!not-for-mail
References: <1151378213.631887.29960@r2g2000cwb.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107f24,c4c6b7c72553cb95
X-Google-Thread: 10707f,c4c6b7c72553cb95
X-Google-Attributes: gid107f24,gid10707f,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!i40g2000cwc.googlegroups.com!not-for-mail
From: "Ian Osgood" <iano@quirkster.com>
Newsgroups: comp.lang.functional,fa.haskell
Subject: Re: Haskell optimization (mandelbrot generator)
Date: 27 Jun 2006 14:18:18 -0700
Organization: http://groups.google.com
Lines: 19
Message-ID: <1151443098.852991.168430@i40g2000cwc.googlegroups.com>
References: <1151378213.631887.29960@r2g2000cwb.googlegroups.com>
NNTP-Posting-Host: 206.169.234.165
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1151443103 8502 127.0.0.1 (27 Jun 2006 21:18:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 27 Jun 2006 21:18:23 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 1.0.3705),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: i40g2000cwc.googlegroups.com; posting-host=206.169.234.165;
   posting-account=G5_EGQwAAACqUAjUeo_i_Vn17V6nqvfz