[Haskell-cafe] Data.Array.Accelerate initialization timings

2012-02-20 Thread Paul Sujkov
mistakes! -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Data.Array.Accelerate initialization timings

2012-02-20 Thread Paul Sujkov
didn't use the use method which according to [1] initiates asynchronous data transfer from host to GPU. Cheers, Alex [1]: http://www.cse.unsw.edu.au/%7Echak/papers/acc-cuda.pdf On 20/02/12 14:46, Paul Sujkov wrote: Hi everyone, since accelerate mail list seems to be defunct, I'm trying

Re: [Haskell-cafe] Data.Array.Accelerate initialization timings

2012-02-20 Thread Paul Sujkov
Accelerate, it seems to me that you didn't use the use method which according to [1] initiates asynchronous data transfer from host to GPU. Cheers, Alex [1]: http://www.cse.unsw.edu.au/%7Echak/papers/acc-cuda.pdf On 20/02/12 14:46, Paul Sujkov wrote: Hi everyone, since accelerate mail

Re: [Haskell-cafe] Data.Array.Accelerate initialization timings

2012-02-20 Thread Paul Sujkov
. Cheers, Alex [1]: http://www.cse.unsw.edu.au/%7Echak/papers/acc-cuda.pdf On 20/02/12 14:46, Paul Sujkov wrote: Hi everyone, since accelerate mail list seems to be defunct, I'm trying to ask specific questions here. The problem is: array initialization in Data.Array.Accelerate takes

[Haskell-cafe] Optimizations and parallel execution in the IO for a small spellchecker

2012-02-15 Thread Paul Sujkov
optimizations, it would be deeply appreciated. -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] [Haskell-Cafe] Optimizations and parallel execution in the IO for a small spellchecker

2012-02-15 Thread Paul Sujkov
Sorry, I've forgotten to add a [Haskell-Cafe] tag for the message. On 15 February 2012 19:33, Paul Sujkov psuj...@gmail.com wrote: Hi everyone, http://hpaste.org/63732 that's a very simple spellchecker application: it consumes standard Linux dictionary, reads a file, and prints out words

Re: [Haskell-cafe] An example of enumerator processing some data between input and output

2011-04-20 Thread Paul Sujkov
Hi Oleg, thank you for the answer, things are getting much clearer now. On 20 April 2011 09:08, o...@okmij.org wrote: Paul Sujkov wrote: I played a bit with the enumerator package, and I'm quite stuck with the question how to duplex data to two (or more) consumers Many packages have

[Haskell-cafe] An example of enumerator processing some data between input and output

2011-04-19 Thread Paul Sujkov
of the consumers), but not both. Can anybody tell me how to make a pipe (input - process - output) to have text both parsed and then put back to the file? While pretty straightforward with the arrow approach, it doesn't seem obvious to me with the iteratees :( -- Regards, Paul Sujkov

Re: [Haskell-cafe] An example of enumerator processing some data between input and output

2011-04-19 Thread Paul Sujkov
be easy, but I still do not see it. On 19 April 2011 20:10, Paul Sujkov psuj...@gmail.com wrote: Hi haskellers, I played a bit with the enumerator package, and I'm quite stuck with the question how to duplex data to two (or more) consumers using combinators from xml-enumerator (for example

Re: [Haskell-cafe] Haskell IDE

2011-03-03 Thread Paul Sujkov
Plugin for Eclipse a real alternative? Thanks Klaus ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Regards, Paul Sujkov ___ Haskell

Re: [Haskell-cafe] Learn You a Haskell for Great Good - a few doubts

2011-03-03 Thread Paul Sujkov
? Regards, Karthick ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Haskell - .NET

2009-09-16 Thread Paul Sujkov
considering a .NET backend for a Haskell compiler? Peter Verswyvelen ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Regards, Paul Sujkov

[Haskell-cafe] [Haskell Cafe] ASCII Graphics Library wanted

2009-08-30 Thread Paul Sujkov
in Haskell? :) -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [Haskell Cafe] ASCII Graphics Library wanted

2009-08-30 Thread Paul Sujkov
Hi Peter, yes, this seems like what I actually want. Thank you :) 2009/8/30 Peter Verswyvelen bugf...@gmail.com Maybe this can help? http://hackage.haskell.org/package/ansi-terminal http://hackage.haskell.org/package/ansi-terminal On Sun, Aug 30, 2009 at 4:24 PM, Paul Sujkov psuj

Re: [Haskell-cafe] Parsec: using two different parser for the same string

2009-08-09 Thread Paul Sujkov
either f _ (Left x) = f x either _ g (Right y)= g y Dan Paul Sujkov wrote: Hi Dan, thank you for the solution. It looks pretty interesting and usable, however I'll have to spend some time understanding arrows: I never had an opportunity to use them before. Anyway, it looks very

Re: [Haskell-cafe] Parsec: using two different parser for the same string

2009-08-06 Thread Paul Sujkov
, along with the string itself: *P parseTest intOrStringListParser $ (1;2w4;8;85) [(Just 1,1),(Nothing,2w4),(Just 8,8),(Just 85,85)] There may be some parsecMap-fold fusion optimization possible, though I haven't looked into that. Dan Paul Sujkov wrote: Hi everybody, suppose I have two

[Haskell-cafe] [Haskell Cafe] Parsec: using two different parser for the same string

2009-08-05 Thread Paul Sujkov
, but it is also very ineffective: I need to use such multiple parsing on a relatively small substring of the actual input, so little backtracking would be a much nicier approach. Any suggestions? -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Re: [Haskell Cafe] Parsec: using two different parser for the same string

2009-08-05 Thread Paul Sujkov
Well, I was too optimistic saying I can return the updated state. I don't know how to do that actually. Maybe someone else here knows? 2009/8/5 Paul Sujkov psuj...@gmail.com Hi everybody, suppose I have two different parsers: one just reads the string, and another one parses some values from

[Haskell-cafe] [Haskell Cafe] Troubles with StateT and Parsec

2009-08-03 Thread Paul Sujkov
that really affects state, but code is filled with lifts from StateT to underlying Parser Sorry if the questions are silly; any help is appreciated -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] [Haskell Cafe] Troubles with StateT and Parsec

2009-08-03 Thread Paul Sujkov
O'Sullivan b...@serpentine.com On Mon, Aug 3, 2009 at 10:46 AM, Paul Sujkov psuj...@gmail.com wrote: parseSyslog :: StateT Integer Parser TimeStamp parseString :: StateT Integer Parser LogString and the following code: parseString = do [...] Without real code to look at, it's impossible

[Haskell-cafe] [Haskell Cafe] Data construction: how to avoid boilerplate code?

2009-07-29 Thread Paul Sujkov
is observed. Is there any generic solution? Thanks in advance -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] [Haskell Cafe] Parsec: buildExpressionParser and parens typecheck problem

2009-07-10 Thread Paul Sujkov
and Parsec 3.0.0 -- Regards, Paul Sujkov ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe