Re: [Haskell] sizeFM type

2004-04-27 Thread Donald Bruce Stewart
wolfgang: > Am Dienstag, 27. April 2004 07:09 schrieb Donald Bruce Stewart: > > > > > To ask a silly question, is Int defined as 32 bits or is it defined in > > > > a similar vein to C's int? > > > > Well, you can all look this up, at least in GHC's implementation: > > It seems that people someti

Re: [Haskell] sizeFM type

2004-04-27 Thread Wolfgang Jeltsch
Am Dienstag, 27. April 2004 07:09 schrieb Donald Bruce Stewart: > [...] > > > To ask a silly question, is Int defined as 32 bits or is it defined in > > > a similar vein to C's int? > > Well, you can all look this up, at least in GHC's implementation: It seems that people sometimes tend to think

Re: [Haskell] sizeFM type

2004-04-27 Thread Wolfgang Jeltsch
Am Dienstag, 27. April 2004 00:55 schrieb Don Groves: > [...] > Wolfgang and Remi, > > Thanks to you both for the explanation. Yes, the GHC Integer > type does what I was referring to and clearly anything done at > runtime will slow execution. > > For future reference, if I know an integer will ne

Re: [Haskell] sizeFM type

2004-04-26 Thread Don Groves
On Mon, 26 Apr 2004 21:21:09 +0200, Remi Turk <[EMAIL PROTECTED]> wrote: On Mon, Apr 26, 2004 at 08:58:53PM +0200, Wolfgang Jeltsch wrote: Am Montag, 26. April 2004 20:45 schrieb Don Groves: > Some languages handle the Int/Integer question automatically, > determined by the size of the integer in

Re: [Haskell] sizeFM type

2004-04-26 Thread Remi Turk
On Mon, Apr 26, 2004 at 08:58:53PM +0200, Wolfgang Jeltsch wrote: > Am Montag, 26. April 2004 20:45 schrieb Don Groves: > > Some languages handle the Int/Integer question automatically, > > determined by the size of the integer in question. Int is used > > until the integer excedes what the underl

Re: [Haskell] sizeFM type

2004-04-26 Thread Wolfgang Jeltsch
Am Montag, 26. April 2004 20:45 schrieb Don Groves: > [...] > Hello, Haskell newbie here. > > Some languages handle the Int/Integer question automatically, > determined by the size of the integer in question. Int is used > until the integer excedes what the underlying architecture can > handle, t

Re: [Haskell] sizeFM type

2004-04-26 Thread Malcolm Wallace
Wolfgang Jeltsch <[EMAIL PROTECTED]> writes: > > To ask a silly question, is Int defined as 32 bits or is it defined in a > > similar vein to C's int? > > I think it is defined to cover at least the numbers from > -(2 ^ 27) + 1 > to > 2 ^ 27 - 1. Actually, according to section 6.4 of the

Re: [Haskell] sizeFM type

2004-04-26 Thread Wolfgang Jeltsch
Am Montag, 26. April 2004 17:06 schrieb Philippa Cowderoy: > [...] > To ask a silly question, is Int defined as 32 bits or is it defined in a > similar vein to C's int? I think it is defined to cover at least the numbers from -(2 ^ 27) + 1 to 2 ^ 27 - 1. So its exact range is implementati