Re: [Haskell-cafe] ghc

2008-04-11 Thread Jake Mcarthur
On Apr 10, 2008, at 1:20 PM, Brent Yorgey wrote: This is true for any compiler that produces native binaries (as opposed to certain languages which require a virtual machine...) Unless, of course, it results in a dynamically linked binary, which I'm pretty sure GHC doesn't support at all an

Re: [Haskell-cafe] Re: Shouldn't this loop indefinitely => take (last [0..]) [0..]

2008-04-04 Thread Jake Mcarthur
On Apr 4, 2008, at 11:31 AM, Loup Vaillant wrote: I mean, could we calculate this equality without reducing length ys to weak head normal form (and then to plain normal form)? Yes. Suppose equality over Nat is defined something like: Z == Z = True S x == S y = x == y x == y

Re: [Haskell-cafe] existential types

2008-02-13 Thread Jake McArthur
From: Jake McArthur <[EMAIL PROTECTED]> Date: February 13, 2008 7:04:49 PM CST To: Felipe Lessa <[EMAIL PROTECTED]> Subject: Re: [Haskell-cafe] existential types On Feb 13, 2008, at 11:15 AM, Felipe Lessa wrote: On Feb 13, 2008 2:41 PM, Jake McArthur <[EMAIL PROTECTED]>

Re: [Haskell-cafe] existential types

2008-02-13 Thread Jake McArthur
Oops, I was hasty in typing those data definitions. They will not work because they have no constructors. Sorry about that. - Jake ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] existential types

2008-02-13 Thread Jake McArthur
Let's try a different example. Let's start with a list designed to hold numbers: data NumericList a = Num a => [a] Normally this would be fine. We can hold things like [1, 2, 3, 4, 5] and [1.7, 5.3, 2.0, 99.1]. But what if we wanted to be able to hold numbers with _different types_ in the

Re: [Haskell-cafe] Problem with HGL

2008-01-26 Thread Jake McArthur
On Jan 26, 2008, at 12:20 PM, jia wang wrote: Graphics/HGL/Key.hs:57:7: Could not find module `Graphics.Win32': it is a member of package Win32-2.1.1.0, which is hidden You need to install the Win32 package. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Win32-2.1.0.0 -

Re: [Haskell-cafe] Hangman game

2008-01-21 Thread Jake McArthur
On Jan 20, 2008, at 1:03 PM, Yitzchak Gale wrote: Generating an infinite list from a random generator "burns up" the generator, making it unusable for any further calculations. That's what the split function is for. ^_^ - Jake ___ Haskell-Cafe mail

Re: [Haskell-cafe] Re: Tim Sweeney (the gamer)

2008-01-10 Thread Jake McArthur
On Jan 10, 2008, at 1:57 PM, Achim Schneider wrote: Now don't make me think of using par on a beowolf cluster of ps3's. Never in my life have I _literally_ drooled over using a programming abstraction. - Jake___ Haskell-Cafe mailing list Haskell-

Re: [Haskell-cafe] Re: Trying to fix space leak

2007-12-31 Thread Jake McArthur
On Dec 31, 2007, at 11:21 AM, Achim Schneider wrote: Jake McArthur <[EMAIL PROTECTED]> wrote: I disagree. It might be the case that the _contents_ of the data structure are lazy, in which case I would say the relevant constructor parameters should be made strict. As long as the stru

Re: [Haskell-cafe] Trying to fix space leak

2007-12-31 Thread Jake McArthur
On Dec 31, 2007, at 9:53 AM, Paul Johnson wrote: I'd advise against trying to make your program stricter because you might suddenly find yourself building an entire 6GB structure in memory before traversing it, which would not be a Good Thing. I disagree. It might be the case that the _cont

Re: [Haskell-cafe] Re: Web server continued

2007-12-31 Thread Jake McArthur
On Dec 31, 2007, at 6:50 AM, Cristian Baboi wrote: On Mon, 31 Dec 2007 14:36:02 +0200, Joost Behrends <[EMAIL PROTECTED] > wrote: I forgot 2 things: The distinction between '=' and '==' is much like in C, although mixing them up is not so dangerous like in C. ':=' and '=' like in Wirth l

Re: [Haskell-cafe] ReRe: Basic question concerning data constructors

2007-12-30 Thread Jake McArthur
On Dec 30, 2007, at 12:32 PM, Joost Behrends wrote: Thanks to both fast answers. there remain problems with Jakes mail for me. This: When you define datatypes, you are essentially defining a type-level constructors on the left hand side and (value-level) constructors on the right hand side.

Re: [Haskell-cafe] Basic question concerning data constructors

2007-12-30 Thread Jake McArthur
On Dec 30, 2007, at 8:24 AM, Joost Behrends wrote: For adapting hws (one of the reasons for me to be here, not many languages have a native web server) to Windows i must work on time. In System.Time i found data ClockTime = TOD Integer Integer 2 questions arise here: Does this define "TOD"

Re: [Haskell-cafe] Specializing classes with classes

2007-12-29 Thread Jake McArthur
On Dec 28, 2007, at 10:18 PM, [EMAIL PROTECTED] wrote: Quoting alex <[EMAIL PROTECTED]>: I would like to do this: class Foo t where hi :: t -> Bool class Foo t => Bar t where hi x = True This is arguably one of the most requested features in Haskell. The only reason

Re: [Haskell-cafe] New to Haskell

2007-12-19 Thread Jake McArthur
On Dec 19, 2007, at 6:25 PM, John Meacham wrote: On Tue, Dec 18, 2007 at 01:58:00PM +0300, Miguel Mitrofanov wrote: I just want the sistem to be able to print one of these expressions ! Its this too much to ask ? Yes, 'cause it means you want to embed almost all source code into the compil

Re: [Haskell-cafe] Small optimisation question

2007-11-17 Thread Jake McArthur
On Nov 17, 2007, at 11:26 AM, Stefan O'Rear wrote: The STG-machine was brilliant when it was designed, but times have changed. In particular, indirect jumps are no longer cheap. Pointer tagging has allowed STG to hobble into the 21st century, but really the air is ripe for a new abstract ma

<    1   2   3