Re: [Haskell] installing streams library

2006-05-21 Thread Taral
On 5/20/06, Brian Hulley [EMAIL PROTECTED] wrote: It's strange that with the most advanced programming language in existence we're still unable to automate the task of having to manually type a sequence of 3 commands at an ancient UNIX command prompt!!! :-) No, it's not strange. What appears

[Haskell] Haskell Weekly News: May 22, 2006

2006-05-21 Thread Donald Bruce Stewart
Haskell Weekly News: May 22, 2006 Welcome to issue 36 of HWN, a weekly newsletter covering developments in the Haskell community. Each Monday, new editions are posted to [1]the Haskell mailing list as well as to [2]the Haskell Sequence and [3]Planet Haskell.

Re: [Haskell-cafe] parsing machine-generated natural text

2006-05-21 Thread Bjorn Bringert
On May 19, 2006, at 6:35 PM, Evan Martin wrote: For a toy project I want to parse the output of a program. The program runs on someone else's machine and mails me the results, so I only have access to the output it generates, Unfortunately, the output is intended to be human-readable, and

Re: [Haskell-cafe] parsing machine-generated natural text

2006-05-21 Thread Udo Stenzel
Evan Martin wrote: Here's the beginning of the file, where it's not obvious to me how to distinguish elements in the :: section from the rest of the file. :: Judge: USDP Game: dip Variant: standard :: Deadline: F1901M Mon 20 Feb 2006 20:00 PST :: URL:

[Haskell-cafe] Writing an extensible interpreter

2006-05-21 Thread David House
Hi all. I'm in the process of writing an interpreter for the self-modifying automaton languages SMATINY [1], designed by ihope (whose name some of you may recognise from IRC). The current effort is online [2], but it's at a rather early stage and there's a few modifications I'd like to make to

[Haskell-cafe] How to automatically free memory allocated by malloc? and how to reliably realloc such buffer?

2006-05-21 Thread Bulat Ziganshin
Hello Haskell-Cafe, my program uses datastructure that contains plain Ptr, this Ptr points to the memory area allocated by 'malloc': createRawMemBuf size = do buf- mallocBytes (fromIntegral size) bufRef - newURef buf ... return (Mem bufRef ...) i need to free this memory

Re: [Haskell-cafe] parsing machine-generated natural text

2006-05-21 Thread Jason Dagit
On 5/20/06, Udo Stenzel [EMAIL PROTECTED] wrote: do power colon integer reserved Supply centers, integer reserved Units: ((reserved Builds return id) | (reserved Disbands return negate)) `ap` integer reserved units. | reserved unit. I always struggle

Re: [Haskell-cafe] parsing machine-generated natural text

2006-05-21 Thread Udo Stenzel
Jason Dagit wrote: reserved units. | reserved unit. I always struggle with when I need to use 'try' with parsec. My understanding is that if 'unit.' appears in the input the first parser will parse up to the '.' and then fail and consume the input up to that point, leaving the

[Haskell-cafe] Re: [Haskell] installing streams library

2006-05-21 Thread Chad Scherrer
On 5/20/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote: Data.ByteString is in the base libraries now.For a bit of the flavour, see:http://haskell.org/haskellwiki/Wc In this message http://article.gmane.org/gmane.comp.lang.haskell.general/13625 Bulat says, i foresee that Streams + Fast Packed

Re: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-21 Thread Jeremy Shaw
Hello, I really wanted to respond to the parent thread, but I deleted it already, so this message will be a bit out of context. For my own needs, I cabalized and debianized the Streams library. It generates binary debs for ghc6 and hugs -- but I think the hugs version is broken. In any case, it

Re: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-21 Thread Ross Paterson
On Sun, May 21, 2006 at 01:20:54PM -0700, Jeremy Shaw wrote: Cabal Question: The streams library uses cpphs to do some preprocessing. There is a hugs specific Makefile that invokes cpphs with the command-line: cpphs --noline -D__HUGS__ -D__HUGS_VERSION__=2005 -DSIZEOF_HSINT=4

[Haskell-cafe] Re: [Haskell] installing streams library

2006-05-21 Thread Donald Bruce Stewart
chad.scherrer: On 5/20/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote: Data.ByteString is in the base libraries now. For a bit of the flavour, see: [2]http://haskell.org/haskellwiki/Wc In this message

RE: [Haskell-cafe] Writing an extensible interpreter

2006-05-21 Thread Ralf Lammel
Hi David, Readers on this list will not be surprised to hear me saying that, of course, type classes perfectly make sense for your scenario. You may have a look at some posts on extensible interpreters: - http://compilers.iecc.com/comparch/article/04-12-111 -

[Haskell-cafe] Re: Writing an extensible interpreter

2006-05-21 Thread Jonathan Tang
Message: 2 From: David House [EMAIL PROTECTED]Subject: [Haskell-cafe] Writing an extensible interpreter I'm in the process of writing an interpreter for the self-modifyingautomaton languages SMATINY [1], designed by ihope (whose name some ofyou may recognise from IRC). The current effort is

[Haskell-cafe] Re[2]: [Haskell] installing streams library

2006-05-21 Thread Bulat Ziganshin
Hello Donald, Monday, May 22, 2006, 4:19:59 AM, you wrote: i foresee that Streams + Fast Packed Strings together will yield a breakthrough in GHC I/O speed, and this can be implemented even without waiting for GHC 6.6 Before reading this I had thought it might be an XOR situation,

Re[2]: [Haskell-cafe] Re: [Haskell] installing streams library

2006-05-21 Thread Bulat Ziganshin
Hello Ross, Monday, May 22, 2006, 3:59:17 AM, you wrote: cpphs --noline -D__HUGS__ -D__HUGS_VERSION__=2005 -DSIZEOF_HSINT=4 -DSIZEOF_HSWORD=4 Cabal already adds -D__HUGS__ when building for Hugs, __HUGS_VERSION__ isn't used, and the SIZEOF's aren't universally valid. For GHC, the package