Re: [Haskell-cafe] How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Erik Hesselink
On Wed, Feb 10, 2010 at 16:59, Jason Dusek jason.du...@gmail.com wrote:  I wonder how many people actually write Haskell,  principally or exclusively, at work? We (typLAB) use Haskell. There's four of us, but only two actually program Haskell, and not exclusively. We also use Javascript in the

[Haskell-cafe] ANN: Dungeons of Wor - a largish FRP example and a fun game, all in one!

2010-02-11 Thread Patai Gergely
Hello all, I just uploaded the first public version of Dungeons of Wor [1], a homage to the renowned three-decade-old arcade game, Wizard of Wor. While it makes a fine time killer if you have a few minutes to spare, it might be of special interest to the lost souls who are trying to figure out

[Haskell-cafe] Seen on reddit: or, foldl and foldr considered slightly harmful

2010-02-11 Thread Johann Höchtl
In a presentation of Guy Steele for ICFP 2009 in Edinburgh: http://www.vimeo.com/6624203 he considers foldl and foldr harmful as they hinder parallelism because of Process first element, then the rest Instead he proposes a divide and merge aproach, especially in the light of going parallel. The

[Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Michael Oswald
On 02/10/2010 04:59 PM, Jason Dusek wrote: I wonder how many people actually write Haskell, principally or exclusively, at work? Well, my main language at work in the moment is C++, we also use Java, a lot of Tcl and Python. I use Haskell for my own programs and test utilities /

[Haskell-cafe] HDBC convert [SqlValue] without muchos boilerplate

2010-02-11 Thread Iain Barnett
Hi, I'm trying to get to grips with HDBC and have the following problem. When I run a query that returns a result set, each row comes back as a [SqlValue]. Naively, I thought the following function would convert a [SqlValue] into a string, but instead I get the error below. convrow2 ::

Re: [Haskell-cafe] Seen on reddit: or, foldl and foldr considered slightly harmful

2010-02-11 Thread Ketil Malde
Johann Höchtl johann.hoec...@gmail.com writes: In a presentation of Guy Steele for ICFP 2009 in Edinburgh: http://www.vimeo.com/6624203 he considers foldl and foldr harmful as they hinder parallelism because of Process first element, then the rest Instead he proposes a divide and merge

Re: [Haskell-cafe] Seen on reddit: or, foldl and foldr considered slightly harmful

2010-02-11 Thread Thomas Girod
Isn't it the kind of things Data Parallel Haskell is achieving ? I'm in no way an expert of the field, but from what I've read on the subject it looked like : I have a list of N elements and I want to map the function F on it. technically, I could spawn N processes and build the result from that,

Re: [Haskell-cafe] HDBC convert [SqlValue] without muchos boilerplate

2010-02-11 Thread Miguel Mitrofanov
The problem is, fromSql x doesn't know that type it should return. It's sure that it has to be of class Convertible SqlValue, but nothing more. Could be String, or Int32, or something else. What if you just omit the show function? fromSql seems to be able to convert almost anything to String.

[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 78, Issue 14

2010-02-11 Thread Maciej Piechotka
On Tue, 2010-02-09 at 16:41 +, John Lato wrote: See http://inmachina.net/~jwlato/haskell/ParsecIteratee.hs for a valid Stream instance using iteratee. Also Gregory Collins recently posted an iteratee wrapper for Attoparsec to haskell-cafe. To my knowledge these are not yet in any

Re: [Haskell-cafe] Using Cabal during development

2010-02-11 Thread Limestraël
Eventually, I think using cabal during development may be convenient. The only drawback is that you have to specify each dependency and -- above all -- every module each time you add one. Nevertheless, I'm not convinced regarding the use of Makefiles with Cabal. I happen to think it's a bit

[Haskell-cafe] Re: Using Cabal during development

2010-02-11 Thread Maurí­cio CA
Eventually, I think using cabal during development may be convenient. The only drawback is that you have to specify each dependency and -- above all -- every module each time you add one. When writing bindings-posix, bindings-glib etc., which have lots of modules, I used a shell script to

Re: [Haskell-cafe] Seen on reddit: or, foldl and foldr considered slightly harmful

2010-02-11 Thread Ross Paterson
On Thu, Feb 11, 2010 at 11:00:51AM +0100, Ketil Malde wrote: Johann Höchtl johann.hoec...@gmail.com writes: In a presentation of Guy Steele for ICFP 2009 in Edinburgh: http://www.vimeo.com/6624203 he considers foldl and foldr harmful as they hinder parallelism because of Process first

Re: [Haskell-cafe] If monads are single/linearly threaded, doesn't that reduce parallelism?

2010-02-11 Thread Matthias Görgens
Perhaps if you search for Abelian Monad or so, you will find interesting things in the category theory literature. Some of them may be transplantable to Haskell --- but you probably don't want a completely commutative structure. Arrows seem to express the dependencies between operations more

Re: [Haskell-cafe] Using Cabal during development

2010-02-11 Thread MightyByte
On Thu, Feb 11, 2010 at 5:28 AM, Limestraël limestr...@gmail.com wrote: Eventually, I think using cabal during development may be convenient. The only drawback is that you have to specify each dependency... I actually think this is a benefit, not a drawback. In one of my projects where I used

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Praki Prakash
I am working on an analytics server with a web front end. Being a personal endeavor at this time, I can choose any language that I fancy. I love Haskell and have achieved a modicum of proficiency with many years of following along. I spent a few weeks of serious Haskell prototyping and came to the

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Michael Lesniak
Hello, elegance of Haskell. Whether Haskell becomes an easy choice for commercial work or remains a boutique language depends on how easy it is to build today's applications. Do you (or anyone reading this thread) know of some kind of wishlist of missing features and/or libraries? Would be

Re: [Haskell-cafe] Seen on reddit: or, foldl and foldr considered slightly harmful

2010-02-11 Thread Jan-Willem Maessen
On Feb 11, 2010, at 3:41 AM, Johann Höchtl wrote: In a presentation of Guy Steele for ICFP 2009 in Edinburgh: http://www.vimeo.com/6624203 he considers foldl and foldr harmful as they hinder parallelism because of Process first element, then the rest Instead he proposes a divide and merge

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
I need to be able to swap out the RTS. The place I want to stick Haskell absolutely needs its own custom RTS, and currently, I don't think it's all that easy or clean to do that. Am I wrong? Are there resources describing how to do this already? /jve On Thu, Feb 11, 2010 at 10:12 AM, Michael

Re: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 78, Issue 14

2010-02-11 Thread Gregory Collins
Maciej Piechotka uzytkown...@gmail.com writes: On Tue, 2010-02-09 at 16:41 +, John Lato wrote: See http://inmachina.net/~jwlato/haskell/ParsecIteratee.hs for a valid Stream instance using iteratee. Also Gregory Collins recently posted an iteratee wrapper for Attoparsec to haskell-cafe.

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Ivan Panachev
On Thu, Feb 11, 2010 at 6:30 PM, John Van Enk vane...@gmail.com wrote: I need to be able to swap out the RTS. The place I want to stick Haskell absolutely needs its own custom RTS, and currently, I don't think it's all that easy or clean to do that. Am I wrong? Are there resources describing

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
I'm not specifically interested in raw hardware, but I am interested in, say, making the garbage collection deterministic and altering the scheduler to fit some other needs. I'll try and find a link to the paper describing the GC i want to implement On Thu, Feb 11, 2010 at 11:10 AM, Ivan

[Haskell-cafe] Haskell and the Job Market, e.g. with Google

2010-02-11 Thread Hans van Thiel
Hello, Somewhat in response to the original post about Haskell engineers I, II and III. This confirms the remark that Haskell experience is now being appreciated, though not (yet) used (very much). Steven Grant, recruiter from Google, asked me to bring to his attention anyone who might be

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
Here's the paper: http://comjnl.oxfordjournals.org/cgi/content/abstract/33/5/466 On Thu, Feb 11, 2010 at 11:45 AM, John Van Enk vane...@gmail.com wrote: I'm not specifically interested in raw hardware, but I am interested in, say, making the garbage collection deterministic and altering the

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Jason Dusek
Is JHC not suitable in this case? It won't compile all of Haskell but it does some to be doing the right things as regards a pluggable RTS. I think it's fair to say at this point that GHC can compile all the Haskell we want and that new Haskell pieces will come to GHC before anything

[Haskell-cafe] Streamed creation of STArray from list?

2010-02-11 Thread Jason Dagit
Hello, I was wondering if there is a trick for generating a new STArray from a list in such a way that you do not have to hold both the list and array in memory? http://www.haskell.org/ghc/docs/latest/html/libraries/array-0.3.0.0/Data-Array-MArray.html As far as I can tell, that is the

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
Well, my point here is that if we want to see GHC branch into other fields (mine being safety critical), and actually see the code generated by GHC be what's really running (rather than once-removed in the form of an EDSL), some changes will have to be made. Being able to experiment with GHC's

[Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Job Vranish
Anyone know of a type inference utility that can run right on haskell-src types? or one that could be easily adapted? I want to be able to pass in an HsExp and get back an HsQualType. It doesn't have to be fancy, plain Haskell98 types would do. It wouldn't be to hard to make one myself, but I

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Stephen Tetley
Hello Job For Haskell 98 would the code from 'Typing Haskell in Haskell' paper suffice? A web search should find the code... Best wishes Stephen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Stephen Tetley
http://web.cecs.pdx.edu/~mpj/thih/ Looks like its a type _checker_ though... On 11 February 2010 17:39, Stephen Tetley stephen.tet...@gmail.com wrote: Hello Job For Haskell 98 would the code from 'Typing Haskell in Haskell' paper suffice? A web search should find the code... Best wishes

Re: [Haskell-cafe] Haskell and the Job Market, e.g. with Google

2010-02-11 Thread Gwern Branwen
On Thu, Feb 11, 2010 at 11:49 AM, Hans van Thiel hthiel.c...@zonnet.nl wrote: Hello, Somewhat in response to the original post about Haskell engineers I, II and III. This confirms the remark that Haskell experience is now being appreciated, though not (yet) used (very much). Steven Grant,

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread stefan kersten
On 10.02.10 19:03, Bryan O'Sullivan wrote: I'm thinking of switching the statistics library over to using vector. that would be even better of course! an O(0) solution, at least for me ;) let me know if i can be of any help (e.g. in testing). i suppose uvector-algorithms would also need to be

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Lennart Augustsson
To do anything interesting you also to process modules, something which I hope to contribute soon to haskell-src-exts. On Thu, Feb 11, 2010 at 6:35 PM, Job Vranish job.vran...@gmail.com wrote: Anyone know of a type inference utility that can run right on haskell-src types? or one that could be

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Lennart Augustsson
It does type inference, it's just not engineered to be part of a real compiler. On Thu, Feb 11, 2010 at 6:41 PM, Stephen Tetley stephen.tet...@gmail.com wrote: http://web.cecs.pdx.edu/~mpj/thih/ Looks like its a type _checker_ though... On 11 February 2010 17:39, Stephen Tetley

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Henning Thielemann
stefan kersten schrieb: uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector is The Shiny Future. Roman, would you call the vector library good enough to use in production at the moment? i've been using the library for

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Henning Thielemann
John Van Enk schrieb: I need to be able to swap out the RTS. The place I want to stick Haskell absolutely needs its own custom RTS, and currently, I don't think it's all that easy or clean to do that. Am I wrong? Are there resources describing how to do this already? As far as I know JHC is

[Haskell-cafe] Hackage download statistis

2010-02-11 Thread Maurí­cio CA
Hi, all, Some time ago a download statistic of hackage was made available, and analysed in a few ways. Googling for it still find that at a Galois web page. I though that, since the tools to get that were there, this would be output once in a while, but it seems it hasn't been done since then.

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Meacham
On Thu, Feb 11, 2010 at 06:57:48PM +0100, Henning Thielemann wrote: John Van Enk schrieb: I need to be able to swap out the RTS. The place I want to stick Haskell absolutely needs its own custom RTS, and currently, I don't think it's all that easy or clean to do that. Am I wrong? Are

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Matthias Görgens
Implementing an alternative RTS for GHC seems like a viable Google Summer of Code project to me. What do you think? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Jason Dagit
On Thu, Feb 11, 2010 at 9:35 AM, Job Vranish job.vran...@gmail.com wrote: Anyone know of a type inference utility that can run right on haskell-src types? or one that could be easily adapted? I want to be able to pass in an HsExp and get back an HsQualType. It doesn't have to be fancy, plain

Re: [Haskell-cafe] Streamed creation of STArray from list?

2010-02-11 Thread Ryan Ingram
On Thu, Feb 11, 2010 at 9:23 AM, Jason Dagit da...@codersbase.com wrote: If I know the length of the list, I might expect newListArray to have the memory behavior I want.  In my case, the code calls (length xs) to calculate the length of the list.  As I understand it, that will force the spine

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-11 Thread Jeremy Shaw
On Wed, Feb 10, 2010 at 1:15 PM, Bardur Arantsson s...@scientician.netwrote: I've also been contemplating some solutions, but I cannot see any solutions to this problem which could reasonably be implemented outside of GHC itself. GHC lacks a threadWaitError, so there's no way to detect the

Re: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 78, Issue 14

2010-02-11 Thread Maciej Piechotka
On Thu, 2010-02-11 at 11:00 -0500, Gregory Collins wrote: Maciej Piechotka uzytkown...@gmail.com writes: On Tue, 2010-02-09 at 16:41 +, John Lato wrote: See http://inmachina.net/~jwlato/haskell/ParsecIteratee.hs for a valid Stream instance using iteratee. Also Gregory Collins

Re: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 78, Issue 14

2010-02-11 Thread Antoine Latter
On Thu, Feb 11, 2010 at 1:27 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Thu, 2010-02-11 at 11:00 -0500, Gregory Collins wrote: Maciej Piechotka uzytkown...@gmail.com writes: On Tue, 2010-02-09 at 16:41 +, John Lato wrote: See

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread stefan kersten
On 11.02.10 18:55, Henning Thielemann wrote: i've been using the library for wavelet transforms, matching pursuits and the like, Nice I have also worked on this topics, even with Haskell. However, at that time I used plain lists. interesting! was performance acceptable for practical work? at

Iteratee and parsec (was: Re: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 78, Issue 14)

2010-02-11 Thread Maciej Piechotka
On Thu, 2010-02-11 at 13:34 -0600, Antoine Latter wrote: On Thu, Feb 11, 2010 at 1:27 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Thu, 2010-02-11 at 11:00 -0500, Gregory Collins wrote: Maciej Piechotka uzytkown...@gmail.com writes: On Tue, 2010-02-09 at 16:41 +, John Lato

[Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-11 Thread Bardur Arantsson
Jeremy Shaw wrote: On Wed, Feb 10, 2010 at 1:15 PM, Bardur Arantsson s...@scientician.netwrote: I've also been contemplating some solutions, but I cannot see any solutions to this problem which could reasonably be implemented outside of GHC itself. GHC lacks a threadWaitError, so there's no

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
I'd suggested this in an earlier SoC thread. 2010/2/11 Matthias Görgens matthias.goerg...@googlemail.com Implementing an alternative RTS for GHC seems like a viable Google Summer of Code project to me. What do you think? ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
I'll definitely take a closer look. On Thu, Feb 11, 2010 at 1:09 PM, John Meacham j...@repetae.net wrote: On Thu, Feb 11, 2010 at 06:57:48PM +0100, Henning Thielemann wrote: John Van Enk schrieb: I need to be able to swap out the RTS. The place I want to stick Haskell absolutely needs

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Alp Mestanogullari
It seems quite big for a 3 months project made by a student, though. 2010/2/11 Matthias Görgens matthias.goerg...@googlemail.com Implementing an alternative RTS for GHC seems like a viable Google Summer of Code project to me. What do you think? -- Alp Mestanogullari

[Haskell-cafe] Undecidable instances with functional dependencies

2010-02-11 Thread Henning Thielemann
I have the following class and instance class Register a r | a - r where instance (Register a ra, Register b rb) = Register (a,b) (ra,rb) where and GHC refuses the instance because of violated Coverage Condition. I have more instances like instance Register Int8 (Reg Int8) where

Re: [Haskell-cafe] Undecidable instances with functional dependencies

2010-02-11 Thread Miguel Mitrofanov
-- {-# LANGUAGE FunctionalDependencies#-} -- {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} module Register where -- class Register a r | a - r class Register a where type R a -- instance Register Int Int instance Register Int where type R Int = Int -- instance

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread John Van Enk
Perhaps just defining the interface and demonstrating that different RTS's are swappable would be enough? 2010/2/11 Alp Mestanogullari a...@mestan.fr It seems quite big for a 3 months project made by a student, though. 2010/2/11 Matthias Görgens matthias.goerg...@googlemail.com Implementing

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-11 Thread Thomas DuBuisson
Bardur Arantsson s...@scientician.net wrote: ...       then do errno - getErrno               if errno == eAGAIN                 then do                    threadDelay 100                    sendfile out_fd in_fd poff bytes                 else throwErrno Network.Socket.SendFile.Linux      

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Evan Laforge
On Thu, Feb 11, 2010 at 1:49 PM, John Van Enk vane...@gmail.com wrote: Perhaps just defining the interface and demonstrating that different RTS's are swappable would be enough? I read a paper by (I think) a Simon, in which he described a haskell RTS. It would make it easier to experiment with

Re: [Haskell-cafe] Type arithmetic with ATs/TFs

2010-02-11 Thread Andrew Coppin
Andrew Coppin wrote: OK, so I sat down today and tried this, but I can't figure out how. There are various examples of type-level arithmetic around the place. For example, http://www.haskell.org/haskellwiki/Type_arithmetic (This is THE first hit on Google, by the way. Haskell is apparently

Re: [Haskell-cafe] ANN: Happstack 0.4.1

2010-02-11 Thread Станислав Черничкин
I was unable to install happstack-data-0.4.1 on windows with GHC 6.12.1. Here the log: Resolving dependencies... Configuring happstack-data-0.4.1... Preprocessing library happstack-data-0.4.1... Preprocessing executables for happstack-data-0.4.1... Building happstack-data-0.4.1...

Re: [Haskell-cafe] Type arithmetic with ATs/TFs

2010-02-11 Thread Ryan Ingram
Actually, at least in GHC, associated types are just syntax sugar for type families. That is, this code: class Container c where type Element c :: * view :: c - Maybe (Element c,c) instance Container [a] where type Element [a] = a view [] = Nothing view (x:xs) = Just (x,xs) is

Re: [Haskell-cafe] Examples/docs for simulated annealing bindings

2010-02-11 Thread John Meacham
On Thu, Oct 15, 2009 at 02:41:42PM +0100, Dougal Stanton wrote: I found the HsASA library [1] on Hackage, but there's no documentation and it's not particularly intuitive. I can't see any obvious way of choosing initial config or generating new configurations. Google reveals no one using it.

Re: [Haskell-cafe] Type arithmetic with ATs/TFs

2010-02-11 Thread Robert Greayer
What Ryan said, and here's an example of addition with ATs, specifically (not thoroughly tested, but tested a little). The translation to TFs sans ATs is straightforward. class Add a b where type SumType a b instance Add Zero Zero where type SumType Zero Zero = Zero instance Add (Succ

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Niklas Broberg
Anyone know of a type inference utility that can run right on haskell-src types? or one that could be easily adapted? This is very high on my wish-list for haskell-src-exts, and I'm hoping the stuff Lennart will contribute will go a long way towards making it feasible. I believe I can safely

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Erik de Castro Lopo
Michael Lesniak wrote: Hello, elegance of Haskell. Whether Haskell becomes an easy choice for commercial work or remains a boutique language depends on how easy it is to build today's applications. Do you (or anyone reading this thread) know of some kind of wishlist of missing

Re: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 78, Issue 14

2010-02-11 Thread John Lato
On Thu, Feb 11, 2010 at 10:00 AM, Gregory Collins g...@gregorycollins.net wrote: Maciej Piechotka uzytkown...@gmail.com writes: On Tue, 2010-02-09 at 16:41 +, John Lato wrote: See http://inmachina.net/~jwlato/haskell/ParsecIteratee.hs for a valid Stream instance using iteratee.  Also

Re: [Haskell-cafe] ANN: Happstack 0.4.1

2010-02-11 Thread Jeremy Shaw
As a work around install happstack-data like this: cabal install -O0 happstack-data More details at the end of this thread: http://groups.google.com/group/happs/browse_thread/thread/c66c74294d8eabf/a4de5e67853925e0?lnk=gstq=happstack-data#a4de5e67853925e0 I am using GHC 6.13, and I believe

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-11 Thread Jeremy Shaw
On Feb 11, 2010, at 1:57 PM, Bardur Arantsson wrote: 2. the remote client has terminated the connection as far as it is concerned but not notified the server -- when you try to send data it will reject it, and send/write/sendfile/etc will raise sigPIPE. Looking at your debug output, we are

[Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-11 Thread Bardur Arantsson
Thomas DuBuisson wrote: Bardur Arantsson s...@scientician.net wrote: ... then do errno - getErrno if errno == eAGAIN then do threadDelay 100 sendfile out_fd in_fd poff bytes else throwErrno

Re: [Haskell-cafe] Seen on reddit: or, foldl and foldr considered slightly harmful

2010-02-11 Thread Richard O'Keefe
On Feb 11, 2010, at 9:41 PM, Johann Höchtl wrote: In a presentation of Guy Steele for ICFP 2009 in Edinburgh: http://www.vimeo.com/6624203 he considers foldl and foldr harmful as they hinder parallelism because of Process first element, then the rest Instead he proposes a divide and merge

[Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-11 Thread Bardur Arantsson
Jeremy Shaw wrote: On Feb 11, 2010, at 1:57 PM, Bardur Arantsson wrote: [--snip lots of technical info--] Thanks for digging so much into this. Just a couple of comments: The whole point of the sendfile library is to use sendfile(), so not using sendfile() seems like the wrong

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
bos: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector is The Shiny Future. Roman, would you call the vector library good enough to use in production at

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
rl: On 11/02/2010, at 05:03, Bryan O'Sullivan wrote: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector is The Shiny Future. Roman, would you

Re: [Haskell-cafe] ANN: Dungeons of Wor - a largish FRP example and a fun game, all in one!

2010-02-11 Thread Thomas Hartman
1) This is missing the obligatory youtube video. 2) AWESOME! :) thomas. 2010/2/11 Patai Gergely patai_gerg...@fastmail.fm: Hello all, I just uploaded the first public version of Dungeons of Wor [1], a homage to the renowned three-decade-old arcade game, Wizard of Wor. While it makes a fine

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Dan Doel
On Thursday 11 February 2010 12:43:10 pm stefan kersten wrote: On 10.02.10 19:03, Bryan O'Sullivan wrote: I'm thinking of switching the statistics library over to using vector. that would be even better of course! an O(0) solution, at least for me ;) let me know if i can be of any help

Re: [Haskell-cafe] Hackage download statistis

2010-02-11 Thread Don Stewart
mauricio.antunes: Hi, all, Some time ago a download statistic of hackage was made available, and analysed in a few ways. Googling for it still find that at a Galois web page. I though that, since the tools to get that were there, this would be output once in a while, but it seems it hasn't

[Haskell-cafe] Re: ANN: Dungeons of Wor - a largish FRP example and a fun game, all in one!

2010-02-11 Thread Simon Michael
Exciting! But on a mac, I can't get the window to become focussed or accept input. Tips ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Roman Leshchinskiy
On 12/02/2010, at 12:39, Don Stewart wrote: bos: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector is The Shiny Future. Roman, would you call the

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
rl: On 12/02/2010, at 12:39, Don Stewart wrote: bos: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector is The Shiny Future. Roman, would you

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Roman Leshchinskiy
On 12/02/2010, at 12:40, Don Stewart wrote: rl: On 11/02/2010, at 05:03, Bryan O'Sullivan wrote: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Don Stewart
rl: On 12/02/2010, at 12:39, Don Stewart wrote: bos: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector is The Shiny Future. Roman, would you

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Roman Leshchinskiy
On 12/02/2010, at 12:54, Dan Doel wrote: I also notice that vector seems to have discarded the idea of Vec (A * B) = Vec A * Vec B Oh no, it hasn't. In contrast to uvector/DPH, which use a custom strict tuple type for rather outdated reasons, vector uses normal tuples. For instance,

[Haskell-cafe] ANN: hledger 0.8 released

2010-02-11 Thread Simon Michael
hledger 0.8 is out! http://hledger.org http://hledger.org/MANUAL.html#installing Bug fixes, refactoring and Hi-Res Graphical Charts. (See Roman Cheplyaka's blog: http://www.reddit.com/r/haskell/comments/b0w0q/using_the_hledger_package_to_track_finances) Best - Simon Release notes:

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Dan Doel
On Thursday 11 February 2010 9:57:40 pm Roman Leshchinskiy wrote: Oh no, it hasn't. In contrast to uvector/DPH, which use a custom strict tuple type for rather outdated reasons, vector uses normal tuples. For instance, Data.Vector.Unboxed.Vector (a,b,c) is internally represented as a triple

Re: [Haskell-cafe] ANN: hledger 0.8 released

2010-02-11 Thread Brandon S. Allbery KF8NH
On Feb 11, 2010, at 22:02 , Simon Michael wrote: * add: ctrl-d doesn't work on windows, suggest ctrl-c instead Ctrl-Z would be the usual EOF in the Windows world, fwiw. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com system administrator [openafs,heimdal,too many

Re: [Haskell-cafe] How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Thomas Hartman
Hear hear. But a few successful happstack private sector startups could change that... 2010/2/10 Jason Dusek jason.du...@gmail.com: 2010/02/10 Roderick Ford develo...@live.com: A U.S. president would probably subsidize such a job-creating endeavor too!  The US government generally subsidizes

Re: [Haskell-cafe] vector to uvector and back again

2010-02-11 Thread Roman Leshchinskiy
On 12/02/2010, at 13:49, Don Stewart wrote: rl: On 12/02/2010, at 12:39, Don Stewart wrote: bos: I'm thinking of switching the statistics library over to using vector. uvector is pretty bit-rotted in comparison to vector at this point, and it's really seeing no development, while vector

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Jason Dusek
Things are missing but Haskell was certainly fit for practical use two years ago. The big things missing now are trust, mindshare and enough people who think reliability and consistency are a good play for long term productivity. -- Jason Dusek

Re: [Haskell-cafe] haskell-src type inference algorithm?

2010-02-11 Thread Bernie Pope
On 12 February 2010 10:13, Niklas Broberg niklas.brob...@gmail.com wrote: Anyone know of a type inference utility that can run right on haskell-src types? or one that could be easily adapted? This is very high on my wish-list for haskell-src-exts, and I'm hoping the stuff Lennart will

[Haskell-cafe] Computer Camp for kids 13 - 15 years old in Colorado featuring Functional Reactive Programming

2010-02-11 Thread John Peterson
Western State College in Colorado has a computer camp for kids aged 13 - 15. Although we don't use Haskell (it's Python on the inside) the underlying engine is Functional Reactive Programming. We use a 3-D game engine to explore more than just programming - we cover a lot of math and physics.

Re: [Haskell-cafe] parallel and distributed haskell?

2010-02-11 Thread Bernie Pope
On 17 December 2009 06:21, Scott A. Waterman tswater...@gmail.com wrote: I feel there is quite a bit of latent interest in the subject here, but relatively little active development (compared to erlang, clojure, etc.) Can anyone involved give a quick overview (or pointers to one)? It would be

[Haskell-cafe] Time for a San Francisco Hackathon?

2010-02-11 Thread Bryan O'Sullivan
I'm thinking it might be a good idea to organise a Haskell Hackathon for people in (and who'd like to visit) the Bay Area. The tentative date I have in mind is the first weekend in May (conveniently May 1). If you'd be interested in attending or helping to organise, please let me know.

Re: [Haskell-cafe] HDBC convert [SqlValue] without muchos boilerplate

2010-02-11 Thread Iain Barnett
On 11 Feb 2010, at 10:05, Vasyl Pasternak wrote: But fromSql function could convert everything to String, so you never need to use `show`, just simply write convrow2 :: [SqlValue] - String convrow2 (x:xs) = foldl (\i j - i ++ | ++ (fromSql j)) (fromSql x) xs But, IMO, this is more

Re: [Haskell-cafe] Time for a San Francisco Hackathon?

2010-02-11 Thread Don Stewart
bos: I'm thinking it might be a good idea to organise a Haskell Hackathon for people in (and who'd like to visit) the Bay Area. The tentative date I have in mind is the first weekend in May (conveniently May 1). If you'd be interested in attending or helping to organise, please let me

Re: [Haskell-cafe] Re: How many Haskell Engineer I/II/IIIs are there?

2010-02-11 Thread Jason Dusek
I looked at generating C for AVR with JHC. I wanted to see what this program became: http://github.com/solidsnack/trippy-waves/blob/99ad424a3ed4a21ff6f6a662293d6d21e92d6611/using-jhc/RGB.hs The program is relatively simple. It doesn't work, of course (I never did get the right FFI

Re: [Haskell-cafe] ANN: Dungeons of Wor - a largish FRP example and a fun game, all in one!

2010-02-11 Thread Patai Gergely
1) This is missing the obligatory youtube video. That's usually handled by dons. ;) Gergely -- http://www.fastmail.fm - Email service worth paying for. Try it for free ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] ANN: Dungeons of Wor - a largish FRP example and a fun game, all in one!

2010-02-11 Thread Patai Gergely
Exciting! But on a mac, I can't get the window to become focussed or accept input. Tips ? I don't have a Mac, but I heard that GLFW is not without problems there, so maybe it's the culprit this time too. Do other GLFW apps work on your machine? Gergely -- http://www.fastmail.fm - IMAP