[Haskell-cafe] Data.Binary.GetT or ... ?

2010-03-13 Thread Juraj Hercek
Hello, I'm thinking about using Data.Binary to parse binary stream of data. Binary data stream consists of messages which can have one or more (sometimes couple of hundreds) sub-messages. The stream is spitting out data slowly. I would like to parse this data with Data.Binary.Get monad,

Re: [Haskell-cafe] Data.Binary.GetT or ... ?

2010-03-13 Thread Paul Johnson
On 13/03/10 10:06, Juraj Hercek wrote: Hello, I'm thinking about using Data.Binary to parse binary stream of data. Binary data stream consists of messages which can have one or more (sometimes couple of hundreds) sub-messages. The stream is spitting out data slowly. I would like to parse

Re: [Haskell-cafe] [Haskell.org Google Summer of Code] trac signup issues

2010-03-13 Thread Marco Túlio Gontijo e Silva
Hi Edward. Excerpts from Edward Kmett's message of Sex Mar 12 15:52:50 -0300 2010: It has come to my attention that there is an issue with creating accounts on the summer-of-code trac at the moment. Yes, I had one of those. I tried to create an account with the user marcot, and it asked me

Re: [Haskell-cafe] ANNOUNCE: attoparsec-iteratee v0.1

2010-03-13 Thread David Leimbach
Sounds pretty good and applicable to a system I've been trying to implement. I've been trying to understand Iteratee, and it seems like a way of fusing some of the parsing with some of the IO in a fairly safe way. Is this a correct way to think of it? Dave On Fri, Mar 12, 2010 at 6:25 PM,

[Haskell-cafe] When is a bug GHC's fault/strange STM behaviour

2010-03-13 Thread Michael Lesniak
Hello, In one of my example programs I have a strange behaviour: it is a very simple taskpool using STM; in pseudocode it's 1. generate data structures 2. initialize data structures 3. fork threads 4. wait (using STM) until the pool is empty and all threads are finished 5. print a final message

Re: [Haskell-cafe] Upgrading to Haskell Platform

2010-03-13 Thread Jason Dagit
On Wed, Mar 10, 2010 at 8:50 AM, David Place d...@vidplace.com wrote: Hi: I am running GHC 6.10.4 on Mac OSX 10.6.2. Somehow, I have a broken version of Cabal (1.6.0.3) installed. In what was is it broken? A co-worker of mine had problem recently where her cabal was giving Bus error

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Jason Dagit
On Thu, Mar 11, 2010 at 3:44 PM, Arnoldo Muller arnoldomul...@gmail.comwrote: Daniel, Thank you so much for helping me out with this issue! Thanks to all the other answers from haskel-cafe members too! As a newbie, I am not able to understand why zip and map would make a problem... Is

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Jason Dagit
On Wed, Mar 10, 2010 at 2:03 PM, Arnoldo Muller arnoldomul...@gmail.comwrote: Hello Justin, I tried and what I saw was a constant increase in memory usage. Any particular profiling option that you would use? A great place to get started with profiling is the chapter in Real-World Haskell:

Re: [Haskell-cafe] [Haskell.org Google Summer of Code] trac signup issues

2010-03-13 Thread Carter Schonwald
Hello, could I be added to interested students list too? -Carter Schonwald (use my above email) On Sat, Mar 13, 2010 at 8:34 AM, Marco Túlio Gontijo e Silva mar...@debian.org wrote: Hi Edward. Excerpts from Edward Kmett's message of Sex Mar 12 15:52:50 -0300 2010: It has come to my

Re: [Haskell-cafe] Upgrading to Haskell Platform

2010-03-13 Thread David Place
On Mar 13, 2010, at 12:39 PM, Jason Dagit wrote: On Wed, Mar 10, 2010 at 8:50 AM, David Place d...@vidplace.com wrote: Hi: I am running GHC 6.10.4 on Mac OSX 10.6.2. Somehow, I have a broken version of Cabal (1.6.0.3) installed. In what was is it broken? It turns out that I had the

Re: [Haskell-cafe] When is a bug GHC's fault/strange STM behaviour

2010-03-13 Thread Carter Schonwald
is it possibly something related to how the gc interacts with that many threads in that context? On Sat, Mar 13, 2010 at 11:36 AM, Michael Lesniak mlesn...@uni-kassel.dewrote: Hello, In one of my example programs I have a strange behaviour: it is a very simple taskpool using STM; in

Re: [Haskell-cafe] When is a bug GHC's fault/strange STM behaviour

2010-03-13 Thread Daniel Fischer
Am Samstag 13 März 2010 17:36:49 schrieb Michael Lesniak: Hello, In one of my example programs I have a strange behaviour: it is a very simple taskpool using STM; in pseudocode it's 1. generate data structures 2. initialize data structures 3. fork threads 4. wait (using STM) until the

Re: [Haskell-cafe] When is a bug GHC's fault/strange STM behaviour

2010-03-13 Thread Michael Lesniak
Hi, is it possibly something related to how the  gc interacts with that many threads in that context? Would be one possibility, but it even hangs with just a few threads (e.g. 2); it just takes more iterations until it hangs. Cheers, Michael ___

Re: [Haskell-cafe] When is a bug GHC's fault/strange STM behaviour

2010-03-13 Thread Michael Lesniak
Hello, For the attached programme, in the task-getting,            else if Set.null work                    then return Nothing                    else retry doesn't really make sense, when the channel is empty, we could return Nothing right away. I suppose, in the real programme, some

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Arnoldo Muller
Jason, I am trying to use haskell in the analysis of bio data. One of the main reasons I wanted to use haskell is because lazy I/O allows you to see a large bio-sequence as if it was a string in memory. In order to achieve the same result in an imperative language I would have to write lots of

Re: [Haskell-cafe] Space leak

2010-03-13 Thread David Leimbach
On Sat, Mar 13, 2010 at 3:58 PM, Arnoldo Muller arnoldomul...@gmail.comwrote: Jason, I am trying to use haskell in the analysis of bio data. One of the main reasons I wanted to use haskell is because lazy I/O allows you to see a large bio-sequence as if it was a string in memory. In order

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Rafael Almeida
On Sat, Mar 13, 2010 at 8:58 PM, Arnoldo Muller arnoldomul...@gmail.com wrote: Jason, I am trying to use haskell in the analysis of bio data. One of the main reasons I wanted to use haskell is because lazy I/O allows you to see a large bio-sequence as if it was a string in memory. In order

[Haskell-cafe] Can't get Regions to show up in HGL

2010-03-13 Thread Brandon Simmons
I'm having trouble finding example code that uses Regions in the Haskell Graphics Library. But the following gives me a black window when I think it should give me a black window with a square in it: -- START CODE -- import Graphics.HGL

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Brandon S. Allbery KF8NH
On Mar 13, 2010, at 18:58 , Arnoldo Muller wrote: In order to achieve the same result in an imperative language I would have to write lots of error-prone iterators. I saw lazy I/O as a very strong point in favor of Haskell. Besides the space leaks that can occur and that are a bit difficult

Re: [Haskell-cafe] Space leak

2010-03-13 Thread Daniel Fischer
Am Sonntag 14 März 2010 00:58:09 schrieb Arnoldo Muller: Jason, I am trying to use haskell in the analysis of bio data. One of the main reasons I wanted to use haskell is because lazy I/O allows you to see a large bio-sequence as if it was a string in memory. In order to achieve the same

Re: [Haskell-cafe] [Haskell.org Google Summer of Code] trac signup issues

2010-03-13 Thread Carter Schonwald
Hello, I'd like to be added to the interested students list too - Carter Schonwald On Saturday, March 13, 2010, Marco Túlio Gontijo e Silva mar...@debian.org wrote: Hi Edward. Excerpts from Edward Kmett's message of Sex Mar 12 15:52:50 -0300 2010: It has come to my attention that there is an

[Haskell-cafe] difficulty getting cabal and macports to play nice

2010-03-13 Thread Carter Schonwald
Hello, I'm not sure if theres a more specialized list for which this might be appropriate, but cabal (up to date) on snow leopard can't seem to find libraries installed by macports even if i show it where they are (which i have in fact installed the most up to date version of with the macports