Re: speed and size of compiled Haskell code

2000-03-16 Thread Fergus Henderson
On 16-Mar-2000, Jan Brosius <[EMAIL PROTECTED]> wrote: > I wonder if someone could tell me more about the speed and size of compiled > Haskell code. ... > What about Haskell 98 versus (I anticipate) Haskell 2 There should be no significant differences as far as performance goes between Haskell 98

Re: newtypes

2000-03-16 Thread Fergus Henderson
On 17-Mar-2000, Tom Pledger <[EMAIL PROTECTED]> wrote: > Marcin 'Qrczak' Kowalczyk writes: > > Thu, 16 Mar 2000 14:38:30 -0500, Chris Okasaki <[EMAIL PROTECTED]> pisze: > > > > > How are these two statements reconciled for recursive > > > types such as > > > > > > newtype Foo = F Foo >

Re: newtypes

2000-03-16 Thread Tom Pledger
Marcin 'Qrczak' Kowalczyk writes: > Thu, 16 Mar 2000 14:38:30 -0500, Chris Okasaki <[EMAIL PROTECTED]> pisze: > > > How are these two statements reconciled for recursive > > types such as > > > > newtype Foo = F Foo > > IMHO simply the only value of this type is bottom. [...] Hi. Sh

Re: newtypes

2000-03-16 Thread Marcin 'Qrczak' Kowalczyk
Thu, 16 Mar 2000 14:38:30 -0500, Chris Okasaki <[EMAIL PROTECTED]> pisze: > How are these two statements reconciled for recursive > types such as > > newtype Foo = F Foo IMHO simply the only value of this type is bottom. I see no problem here, neither does Hugs. But GHC sees some problem and

Re: speed and size of compiled Haskell code

2000-03-16 Thread Marcin 'Qrczak' Kowalczyk
Thu, 16 Mar 2000 18:00:35 +, Malcolm Wallace <[EMAIL PROTECTED]> pisze: > GHC and HBC tend to produce code that is, broadly speaking, > equally fast, I experienced each of these compilers producing code about 3 times faster than the other for a simple program. -- __("

The return of the Void [Was: newtypes]

2000-03-16 Thread Patrik Jansson
On Thu, 16 Mar 2000, Chris Okasaki wrote: > newtype Foo = F Foo Interesting loop hole you found there! Semantically it should be pretty clear what this type means, just as the corresponding meaning on the value level: bottom = bottom Foo is simply Void! (formal def. later) Void has been in

Re: newtypes

2000-03-16 Thread Neil Leslie
At 2:38 pm -0500 16/3/00, Chris Okasaki wrote: >The Haskell report says that in > > newtype T = C t > >T uses the same representation as t, and so coercions >between the two can be implemented without execution >time overhead. Furthermore, the report says that >"unlike type synonyms, newtype may

Re: newtypes

2000-03-16 Thread Sengan
"S.M.Kahrs" wrote: > > newtype Inftype b = A (b,Inftype) > newtype Alist a = B (Either () (a,Alist a)) > > infy = A (1,infy) > onetwothree = B (Right(1,B(Right(2,B(Right(3,Left ())) The following works with hugs. > newtype Inftype b = A (b,Inftype b) > newtype Alist a = B (Either () (a,Al

newtypes

2000-03-16 Thread S.M.Kahrs
Adding to Chris' enquiry: newtype Inftype b = A (b,Inftype) newtype Alist a = B (Either () (a,Alist a)) ...and we can (?) create values for them: infy = A (1,infy) onetwothree = B (Right(1,B(Right(2,B(Right(3,Left ())) Stefan Kahrs

newtypes

2000-03-16 Thread Chris Okasaki
The Haskell report says that in newtype T = C t T uses the same representation as t, and so coercions between the two can be implemented without execution time overhead. Furthermore, the report says that "unlike type synonyms, newtype may be used to define recursive types." How are these tw

Re: speed and size of compiled Haskell code

2000-03-16 Thread Malcolm Wallace
> I wonder if someone could tell me more about the speed and size of > compiled Haskell code. E.g. if one uses GHC to compile Haskell code > into native code what speed performance can be expected versus a same > program written in C (Hints about the nhc compiler are welcome). Without going into

speed of compiled Haskell code. Reply

2000-03-16 Thread S.D.Mechveliani
Jan Brosius <[EMAIL PROTECTED]> writes on 16 Mar 2000 on speed and size of compiled Haskell code > [..] > E.g. if one uses GHC to compile Haskell code into native code what > speed performance can be expected versus a same program written in > C [..] My experience with the program of gen

FW: speed and size of compiled Haskell code

2000-03-16 Thread Peter Douglass
Jan's questions I don't think have a simple answer. My own belief is that with sufficient development effort, one can always write a C program that is more efficient than compiled Haskell code. However, the same thing also applies to assembly language. The question, imho, is what are the typica

Re: records in Haskell

2000-03-16 Thread Jan Brosius
Does anyone know if this below situation is as bad in say SMLNJ or OCAML? JanBrosius - Original Message - From: Jan Kort <[EMAIL PROTECTED]> To: Simon Marlow <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 16, 2000 12:59 PM Subject: Re: records in Haskell > Simon Marlo

speed and size of compiled Haskell code

2000-03-16 Thread Jan Brosius
Hi, I wonder if someone could tell me more about the speed and size of compiled Haskell code. E.g. if one uses GHC to compile Haskell code into native code what speed performance can be expected versus a same program written in C (Hints about the nhc compiler are welcome). Is lazyness as good as

Re: records in Haskell

2000-03-16 Thread Jan Kort
Simon Marlow wrote: > > Jan Kort writes: > > > It seem that any record, no matter how trivial, can't be much > > longer than about 200 lines in Haskell. If a try to compile a > > 300 line record containing just: > > data X = X { > > f1 :: String, > > f2 :: String, > > f3

Re: ghc-4.06-1.src.rpm

2000-03-16 Thread Marcin 'Qrczak' Kowalczyk
Tue, 14 Mar 2000 13:54:49 + (GMT), [EMAIL PROTECTED] <[EMAIL PROTECTED]> pisze: > I have heard that rpm version 3 now contains a way to specify > build-time requirements (as distinct from install-time). Yes, "BuildRequires:". > Is it sufficient to describe the bootstrapping of self-compilin

Re: docbook tools (was ghc-4.06-1.src.rpm)

2000-03-16 Thread Greg O'Keefe
On Wed, Mar 15, 2000 at 10:27:56AM +, Peter Hancock wrote: > After a _lot_ of ferreting round the net, I found db2dvi in > stylesheets-0.10-2.i386.rpm. (Actually, it's not in > docbook-3.1-5.i386.rpm, or psgml-1.2.1-1.i386.rpm, or > sgml-tools-1.0.9-5.i386.rpm, or jade-1.2.1-9.i386.rpm, or ..