[Haskell-cafe] Books on Haskell

2005-01-17 Thread Dmitri Pissarenko
Hello! I've completed reading of Yet another Haskell tutorial and now want to learn Haskell more thoroughly. I'm searching for a book, in which the features of Haskell are explained in the form of examples and exercises (like in the book Clause and Effect on PROLOG). My purpose in exploring

[Haskell-cafe] performance question

2005-01-17 Thread Stijn De Saeger
Hello all, A question on that most elusive of subjects performance in haskell (GHC 6.2) Using the GHC profiler, I obtained the following analysis results (i hope the code doesn't come out too ugly by mail): total time =0.92 secs (46 ticks @ 20 ms) total alloc =

Re: [Haskell-cafe] Books on Haskell

2005-01-17 Thread Matthew Roberts
If you really want to find out if Haskell is for you, you need to try and do things you already know how to do in the other languages. For this reason I found that Algorithms: A Functional Programming Approach was great for showing me where Haskell excelled and why it was the language for me.

Re: [Haskell-cafe] Books on Haskell

2005-01-17 Thread Dmitri Pissarenko
Thanks for your suggestions! As far as learning about Haskell, I have learnt the most from doing the Implementing a functional language tutorial. However, if you are not interested in compilers, this would not be a good option. I am primarily interested in using Haskell for everyday work, which

Re: [Haskell-cafe] Matroids in Haskell

2005-01-17 Thread Henning Thielemann
On Fri, 14 Jan 2005, Michael Matsko wrote: Dimitri Matriods are generalization of vector spaces. Basically, they are defined by a set of linear dependence axioms and basis exchange properties. Oxley's Matriod Theory is the standard reference. There are a multitude of equivalent

Re: [Haskell-cafe] Re: Hugs vs GHC (again)was: Re: Somerandomnewbiequestions

2005-01-17 Thread Ben Rudiak-Gould
John Meacham wrote: Actually, If I were writing new haskell libraries, I would use mmap whenever I could for accessing files. not only does it make the file pointer problem go away, but it can be drastically more efficient. I'm not sure this is a good idea, because GHC really needs non-blocking

Re: [Haskell-cafe] Re: Hugs vs GHC (again)was: Re: Somerandomnewbiequestions

2005-01-17 Thread Keean Schupke
can't GHC do this using the threaded RTS? Keean. John Meacham wrote: Actually, If I were writing new haskell libraries, I would use mmap whenever I could for accessing files. not only does it make the file pointer problem go away, but it can be drastically more efficient. I'm not sure this is a

Re: [Haskell-cafe] Re: Hugs vs GHC (again)was: Re: Somerandomnewbiequestions

2005-01-17 Thread Duncan Coutts
On Mon, 2005-01-17 at 13:44 -0800, Ben Rudiak-Gould wrote: John Meacham wrote: Actually, If I were writing new haskell libraries, I would use mmap whenever I could for accessing files. not only does it make the file pointer problem go away, but it can be drastically more efficient. I'm

Re: [Haskell-cafe] I/O interface

2005-01-17 Thread Ben Rudiak-Gould
Marcin 'Qrczak' Kowalczyk wrote: Convenience. I'm worried that it uses separate types for various kinds of streams: files, pipes, arrays (private memory), and sockets. Haskell is statically typed and lacks subsumption. This means that even though streams are unified by using a class, code which

Re: [Haskell-cafe] I/O interface

2005-01-17 Thread Duncan Coutts
On Mon, 2005-01-17 at 16:27 -0800, Ben Rudiak-Gould wrote: Marcin 'Qrczak' Kowalczyk wrote: Convenience. I'm worried that it uses separate types for various kinds of streams: files, pipes, arrays (private memory), and sockets. Haskell is statically typed and lacks subsumption. This means

[Haskell-cafe] Re: Books on Haskell

2005-01-17 Thread David Owen
Hi, I have 3 Haskell books, The Craft of Functional Programming (Thompson), Introduction to Functional Programming Using Haskell (Bird) and The Haskell School of Expression (Hudak). I recommend Thompson's book because it contains good explanations and lots of exercises, although the book is

Re: [Haskell-cafe] Re: Books on Haskell

2005-01-17 Thread Gour
David Owen ([EMAIL PROTECTED]) wrote: I recommend Thompson's book because it contains good explanations and lots of exercises, although the book is quite big and takes some time to work through. Do you know if there are solutions to exersises avaialable somewhere? Have you gone through

Re: [Haskell-cafe] performance question

2005-01-17 Thread Ben Rudiak-Gould
Stijn De Saeger wrote: data Bound = I Double | E Double deriving (Eq, Show, Ord) data Interval = Il Bound Bound | Nil Bound Bound deriving (Eq,Ord) isIn :: Double - Interval - Bool isIn r (Nil x y) = not (isIn r (Il x y)) isIn r (Il (I x) (I y)) = r = x r = y isIn r (Il (I x) (E y)) = r = x

Re: [Haskell-cafe] Books on Haskell

2005-01-17 Thread Isaac Jones
Dmitri Pissarenko [EMAIL PROTECTED] writes: What book can you recommend? shamelessPlugI reviewed The Haskell School of Expression on Slashdot a few months ago./shamelessPlug: http://books.slashdot.org/article.pl?sid=04/03/12/221232 peace, isaac