[Haskell-cafe] EDSL's using Filet-O-Fish of Barrelfish project

2010-02-14 Thread C K Kashyap
Hi All, I'd been looking for a mechanism to generate "C" from Haskell as EDSL - to develop an OS. In the process, I ran into the Barrelfish project ( http://www.barrelfish.org) - They seem to be using Haskell based "DSL generator" called Filet-O-Fish - http://www.barrelfish.org/fof_plos09.pdf It w

Re: [Haskell-cafe] EDSL's using Filet-O-Fish of Barrelfish project

2010-02-15 Thread C K Kashyap
Thank you very much, What would be your recommendation on how to get a grasp of FoF - would the tic-tac-toe sample help - could you share that please? Regards, Kashyap On Sun, Feb 14, 2010 at 11:27 PM, Pierre-Evariste Dagand wrote: > Hi, > > On Sun, Feb 14, 2010 at 4:44 PM, C K Kashy

Re: [Haskell-cafe] EDSL's using Filet-O-Fish of Barrelfish project

2010-02-27 Thread C K Kashyap
Thanks, I'll follow your suggestion and get back with any doubts that I might have. Regards, Kashyap On Sat, Feb 27, 2010 at 1:37 AM, Pierre-Evariste Dagand wrote: > Hi Kashyap, > > > What would be your recommendation on how to get a grasp of FoF > > Well, you can read the PLOS paper first. Also,

[Haskell-cafe] Implementation of Functional Languages - a tutorial

2010-03-31 Thread C K Kashyap
Hi Everybody, I've started reading SPJ's book - When I tried to execute some sample code in miranda, I found that Miranda does not seem to recognize things like import Utils or module Langauge where ... Has someone created a clean compilable miranda source out of this book? -- Regards, Kashyap

Re: [Haskell-cafe] Implementation of Functional Languages - a tutorial

2010-03-31 Thread C K Kashyap
Great ... thanks Thu ... Regards, Kashyap On Wed, Mar 31, 2010 at 4:15 PM, minh thu wrote: > 2010/3/31 C K Kashyap : > > Hi Everybody, > > I've started reading SPJ's book - When I tried to execute some sample > code > > in miranda, I found that Miranda does

Re: [Haskell-cafe] Implementation of Functional Languages - a tutorial

2010-03-31 Thread C K Kashyap
Looks like some functions are left as an exercise... I'd appreciate it if someone could share a complete code for the "Core language" On Wed, Mar 31, 2010 at 4:20 PM, C K Kashyap wrote: > Great ... thanks Thu ... > > Regards, > Kashyap > > > On Wed, Mar

Re: [Haskell-cafe] Implementation of Functional Languages - a tutorial

2010-03-31 Thread C K Kashyap
e. > > On Wed, Mar 31, 2010 at 7:12 AM, C K Kashyap wrote: > > Looks like some functions are left as an exercise... I'd appreciate it if > > someone could share a complete code for the "Core language" > > > > On Wed, Mar 31, 2010 at 4:20 PM

Re: [Haskell-cafe] Ocaml for Haskellers tutorial

2010-04-16 Thread C K Kashyap
I am a little surprised by the "shortcomings" of Haskell mentioned in the thread. I was under the impression that Haskell was closest to Nirvana on the usefulness vs safety graph. In the paper "Why FP matters" - Laziness is stated as one of the two key features of FP that allows conceptual modula

Re: [Haskell-cafe] Profiling

2010-04-20 Thread C K Kashyap
Hi Ivan, I tried doing > cabal install "parsec >= 3" --reinstall --enable-library-profiling This complained about bytestring ... so I did this - > cabal install "bytestring" --reinstall --enable-library-profiling And this complained about base - Data/ByteString.hs:278:7: Could not find module `

Re: [Haskell-cafe] Profiling

2010-04-20 Thread C K Kashyap
Thanks Daniel, that worked. On Tue, Apr 20, 2010 at 11:24 PM, Daniel Fischer wrote: > Am Dienstag 20 April 2010 18:59:23 schrieb C K Kashyap: > > Hi Ivan, > > I tried doing > > > > > cabal install "parsec >= 3" --reinstall --enable-library-profili

[Haskell-cafe] How to make way into a hadoop infrastructure

2010-04-29 Thread C K Kashyap
Dear Haskellers, A big part of my new job requires tuning app's on Hadoop. I was wondering if there is a way to push some Haskell code in the mix. I did some googling on "Hadoop/Haskell" and came across Holumbus - but looks like that is parallel to Hadoop. I was thinking in the lines of doing a H

Re: [Haskell-cafe] How to make way into a hadoop infrastructure

2010-04-30 Thread C K Kashyap
ke folks have already implemented support for Thrift and > Protocol Buffers, so implementing a library for Avro would likely be > pretty similar. > > -md > > begin C K Kashyap quotation: > > Dear Haskellers, > > > > A big part of my new job requires tuning app'

[Haskell-cafe] Parselib sample

2010-06-01 Thread C K Kashyap
Hi, Is there a not-so-trivial parser implementation with Parselib? Parser for a "C" like language would be good. I searched and found Haskell++ -> http://www.cs.chalmers.se/~rjmh/Software/h++.html However, I'd prefer to look at a parser for a "C" like language. -- Regards, Kashyap ___

Re: [Haskell-cafe] Parselib sample

2010-06-01 Thread C K Kashyap
Thanks Stephan, In Haskell, what would be the right thing to parse "C" like languages. Parsec literature seems to indicate that they can pretty much parse anything. The reason I had asked for a sample in Parselib was for me to understand the monadic parser in action. The last time I tried looking

Re: [Haskell-cafe] Parselib sample

2010-06-02 Thread C K Kashyap
Thanks Stephen, I'll look at the Parsec documentation ... I'd certainly be interested in the article. But I thought Parsec was conceptually same as Parselib ... is that not the case? Regards, Kashyap On Wed, Jun 2, 2010 at 7:12 AM, Richard O'Keefe wrote: > > On Jun 2, 2010, at 6:45 AM, Stephen T

Re: [Haskell-cafe] Parselib sample

2010-06-03 Thread C K Kashyap
vailable on a website. I think it is also > instructive to start with looking at simpler parsers, e.g. for the bibtex > format, which is available from: > > > https://subversion.cs.uu.nl/repos/project.STEC.uulib/uulib/trunk/examples/ > > Doaitse > > > On 1 jun 2010, at

[Haskell-cafe] Execution call graph pruning

2010-06-08 Thread C K Kashyap
Hi, I have a call grah which contains information of the edges in the following format caller callee count (time spent by the caller) === foo bar 10100 xxx yyy 2010 zzz yyy 1010 (I used pintool pintool.org t

Re: [Haskell-cafe] Execution call graph pruning

2010-06-09 Thread C K Kashyap
Thanks Ivan. Regards, Kashyap On Wed, Jun 9, 2010 at 4:40 AM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > C K Kashyap writes: > > > Hi, > > I have a call grah which contains information of the edges in the > following > > format > > > &g

[Haskell-cafe] Graph type

2010-06-13 Thread C K Kashyap
Hi, I am trying to write a routine that would generate a graph - where each vertex would be a string. type Graph v = [(v,[v])] -- list of tuples of vertices and adjacent vertices list addEdgeToGraph :: Graph -> String -> String -> Graph I am having trouble coming up with the body of this functi

Re: [Haskell-cafe] Graph type

2010-06-13 Thread C K Kashyap
I love this list ... thanks Roman. I take it that there is nothing obviously inefficient about this approach to graph - as in the graph type. On Mon, Jun 14, 2010 at 12:02 AM, Roman Cheplyaka wrote: > * C K Kashyap [2010-06-13 22:45:44+0530] > > Hi, > > I am trying to write

Re: [Haskell-cafe] Graph type

2010-06-13 Thread C K Kashyap
Thanks Roman. I think I'll try out Data.Graph in that case. On Mon, Jun 14, 2010 at 8:53 AM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > C K Kashyap writes: > > > I love this list ... thanks Roman. > > > > I take it that there is nothing obviou

[Haskell-cafe] Haskell Bangalore

2010-06-20 Thread C K Kashyap
Hi, I was wondering if it would be a good idea for the folks interested in Haskell in Bangalore to get together. Especially if there are folks at EGL, perhaps we could just meet up at pyramid. I've been trying to learn Haskell for a while and currently am trying to work through SPJ's "implementatio

Re: [Haskell-cafe] Is there good place to post Haskell alorithms/data structures that follow Steven Skiena's book on algorithm design and also Haskell code snippets that follow some of Knuth's books?

2010-06-22 Thread C K Kashyap
Hi Casey, Do you have these snippets already? If so, I can't wait to see them :) On Tue, Jun 22, 2010 at 4:42 AM, Twan van Laarhoven wrote: > Casey Hawthorne wrote: > >> Is there good place to post Haskell alorithms/data structures that >> follow Steven Skiena's book on algorithm design and also

[Haskell-cafe] PNG sample on haskellwiki

2010-07-12 Thread C K Kashyap
Hi, I tried out the code on this page http://haskell.org/haskellwiki/Library/PNGbut the png file that'e emitted does not seem to open properly with image viewing tools. Has anyone tried it out? I added this bit for supplying the data for image creation - count=100 row = take count (cycle [True,F

Re: [Haskell-cafe] PNG sample on haskellwiki

2010-07-12 Thread C K Kashyap
t;). > > In summary, thank you Luke for a good package. > > Cheers, > Thomas > > [1] http://hackage.haskell.org/package/Codec-Image-DevIL > [2] http://hackage.haskell.org/package/pngload > [3] > http://hackage.haskell.org/packages/archive/stb-image/0.2/doc/html/Codec-Ima

[Haskell-cafe] A question about State Monad and Monad in general

2010-07-15 Thread C K Kashyap
Hi, I looked at State Monad yesterday and this question popped into my mind. >From what I gather State Monad essentially allows the use of Haskell's do notation to "invisibly" pass around a state. So, does the use of Monadic style fetch us more than syntactic convenience? Again, if I understand cor

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-15 Thread C K Kashyap
Thanks Daniel, Better refactorability. > If you're using monadic style, changing from, say, > State Thing > to > StateT Thing OtherMonad > > or from > StateT Thing FirstMonad > to > StateT Thing SecondMonad > > typically requires only few changes. Explicit state-passing usually > requires more cha

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-15 Thread C K Kashyap
a thing- or does it need to be done using FFI only? On Thu, Jul 15, 2010 at 10:48 PM, David Leimbach wrote: > > > On Thu, Jul 15, 2010 at 9:02 AM, C K Kashyap wrote: > >> Hi, >> I looked at State Monad yesterday and this question popped into my mind. >> From what

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-15 Thread C K Kashyap
a list of lists of 3 tuples (rgb) and wanted to do in place replacement to set the pixel values, how could I go about it. On Fri, Jul 16, 2010 at 9:47 AM, wren ng thornton wrote: > C K Kashyap wrote: > >> Thanks Daniel, >> >> Better refactorability. >> >>>

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-16 Thread C K Kashyap
en < claudiusmaxi...@goto10.org> wrote: > Hi, > > > On 16/07/10 07:35, C K Kashyap wrote: > >> Haskell without using any standard library stuff? >> > > For example, if I wanted an image representation such as this >> [[(Int,Int.Int)]] - basically a

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-19 Thread C K Kashyap
Okay...I think I am beginning to understand. Is it right to assume that "magic" is backed by FFI and cannot be done in "pure" Haskell? On Mon, Jul 19, 2010 at 1:47 PM, Ketil Malde wrote: > C K Kashyap writes: > > > I looked at State Monad yesterday and t

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-19 Thread C K Kashyap
Also, Claude ... If I am correct, in your example, there is no in-place replacement happening. On Mon, Jul 19, 2010 at 2:36 PM, C K Kashyap wrote: > Okay...I think I am beginning to understand. > Is it right to assume that "magic" is backed by FFI and cannot be done in

Re: [Haskell-cafe] A question about State Monad and Monad in general

2010-07-20 Thread C K Kashyap
10,11,12) > > print_pixels pixels > > > > GHCI Output: > > *Main> test_replace > > (1,2,3) > > (10,11,12) > > (7,8,9) > > [(),(),()] > > > > This code takes a list of pixels and replaces the second pixel with > > the given va

[Haskell-cafe] Porting ELF statifier to Haskell!

2010-07-21 Thread C K Kashyap
Hi, At my work we ran into a situation where we started wishing there was a way to take a dynamically linked executable and create a statically linked bundle out of it. Little bit of googling got me to statifier - http://statifier.sourceforge.net/statifier/main.html. The project seems a little old

Re: [Haskell-cafe] Porting ELF statifier to Haskell!

2010-07-22 Thread C K Kashyap
ions limits its usefulness. This isn't a > debilitating limitation - you can use elf for basic inspection then > perform mutations via objcopy and ld, which are more likely to have > any oddities / corner cases accounted for anyway. > > Thomas > > On Wed, Jul 21, 2010 at 9:20 PM, C

Re: [Haskell-cafe] Porting ELF statifier to Haskell!

2010-07-24 Thread C K Kashyap
for me once I disabled ASLR ... On Sun, Jul 25, 2010 at 12:32 AM, Henning Thielemann < schlepp...@henning-thielemann.de> wrote: > C K Kashyap schrieb: > > Hi, > > At my work we ran into a situation where we started wishing there was a > > way to take a dynamically lin

[Haskell-cafe] Can we come out of a monad?

2010-07-29 Thread C K Kashyap
Hi, In the code here - http://hpaste.org/fastcgi/hpaste.fcgi/view?id=28393#a28393 If I look at the type of modifiedImage, its simply ByteString - but isn't it actually getting into and back out of the state monad? I am of the understanding that once you into a monad, you cant get out of it? Is this

Re: [Haskell-cafe] Suggestions For An Intro To Monads Talk.

2010-08-03 Thread C K Kashyap
Hi, Please take a look at this video http://videoarch1.s-inf.de/FP.2005-SS-Giesl.(COt).HD_Videoaufzeichnung/2005-SS-FP.U09.2005-07-06.HDV.avi Here Monad's are explained as "something" that helps making your program modular. The teacher gives an example implementation of an expression evaluator wit

Re: [Haskell-cafe] real-time audio processing [Was: can Haskell do everyting as we want?]

2010-08-06 Thread C K Kashyap
Hey John, The language you are working on - is it a EDSL in Haskell? If not, had you considered such an option? On Thu, Aug 5, 2010 at 8:11 PM, Job Vranish wrote: > Yeah Atom is pretty slick, though unfortunately it's not quite powerful > enough for much of the stuff that we do. > > John Van Enk

[Haskell-cafe] Is there a pure Haskell gzip/bzip compression module out there?

2010-08-12 Thread C K Kashyap
Hi All, I looked at Hackage and found a couple of pure Haskell modules for un-compression. Are there any for comression? I found Huffman compression - but what I need is something that I can uncompress with standard tools. -- Regards, Kashyap ___ Haske

Re: [Haskell-cafe] Is there a pure Haskell gzip/bzip compression module out there?

2010-08-12 Thread C K Kashyap
It's for a purely academic purpose :) On Thu, Aug 12, 2010 at 5:30 PM, Yuras Shumovich wrote: > 2010/8/12 Max Bolingbroke : > > On 12 August 2010 12:10, C K Kashyap wrote: > > > http://hackage.haskell.org/packages/archive/zlib/0.4.0.2/doc/html/Codec-Compression-GZip.

Re: [Haskell-cafe] bitmap examples

2010-08-24 Thread C K Kashyap
I am looking for an example of dealing with a 2dim mem region with O1 access time in pure haskell (pure as in whatever comes with haskell platform). On Tue, Aug 24, 2010 at 11:59 PM, Anthony Cowley wrote: > On Tue, Aug 24, 2010 at 11:02 AM, Raluca-Elena Podiuc > wrote: >> >> Hi, >> I am trying

Re: [Haskell-cafe] help me evangelize haskell.

2010-09-07 Thread C K Kashyap
Hi Dan, This presentation is really nice. I went over it a couple of times and I think this ppt will help me try to use Haskell for things that I usually use Perl for :) A quick question - import Process bombs on my GHCI(The Glorious Glasgow Haskell Compilation System, version 6.12.3) -what do I n

Re: [Haskell-cafe] help me evangelize haskell.

2010-09-07 Thread C K Kashyap
Thanks Don! On Tue, Sep 7, 2010 at 10:51 PM, Don Stewart wrote: > That's a separate module, based on System.Process -- > >    http://code.haskell.org/~dons/code/cpuperf/Process.hs > > ckkashyap: >> Hi Dan, >> This presentation is really nice. >> I went over it a couple of times and I think this p

Re: [Haskell-cafe] ANNOUNCE: http-enumerator 0.0.0

2010-09-22 Thread C K Kashyap
Hey Michael, > I'd like to announce the first release of http-enumerator[1], an HTTP > client package with support for HTTPS connections. This release is > very experimental; bug reports and API feedback are very welcome. This sounds nice (I'll certainly try it out). A non-technical question - wh

[Haskell-cafe] Problem with a sample from RWH

2010-09-29 Thread C K Kashyap
Hi, I was going over the Error Handling chapter in RWH and tried out this sample - Prelude> :m Control.Exception Prelude Control.Exception> let x=5 `div` 0 Prelude Control.Exception> let y=5 `div` 1 Prelude Control.Exception> handle (\_ -> putStrLn "Text") (print x) :1:0: Ambiguous type varia

Re: [Haskell-cafe] Problem with a sample from RWH

2010-09-29 Thread C K Kashyap
Thanks Ivan, > > * Keep using old-style exceptions.  With GHC 6.10 and 6.12, import > Control.OldException instead of Control.Exception > * Manually migrate the RWH code to new-style exceptions; there are two > ways of doing this: >  - For production code, you should add explicit type signatures,

Re: [Haskell-cafe] Problem with a sample from RWH

2010-09-30 Thread C K Kashyap
> The change looks good; note, however, that you're doing something > subtly different if an error occurs: in the original, if an error > occured then "fail" was used to forcibly terminate the program.  Your > variant however returns the shown error message.  Depending on the > situation, this is u

[Haskell-cafe] EDSL for Makefile

2010-09-30 Thread C K Kashyap
Hi All, I was thinking about doing an EDSL for Makefile (as an exercise) I put down my line of thought here - http://hpaste.org/40233/haskell_makefile_edsl I'd appreciate some feedback on the approach. Also, I wanted some idea on how(in the current approach) I could make the target name and the de

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread C K Kashyap
Thanks Neil and Warren. On Thu, Sep 30, 2010 at 3:32 PM, Neil Brown wrote: > On 30/09/10 09:41, C K Kashyap wrote: >> >> Hi All, >> I was thinking about doing an EDSL for Makefile (as an exercise) >> I put down my line of thought here - >> http://hpaste.org/4023

Re: [Haskell-cafe] EDSL for Makefile

2010-09-30 Thread C K Kashyap
Hi Warren, > You might want to take a look at http://github.com/nfjinjing/nemesis > which is somewhat related. The above looks like a DSL approach and not an EDSL approach. -- Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread C K Kashyap
Hi Neil ... how did the talk go? On Thu, Sep 30, 2010 at 10:23 PM, Neil Mitchell wrote: >>> What great timing! I will be giving a talk at the Haskell Implementors >>> Workshop tomorrow about the Make system Shake. It will be video taped >>> and I can send you the slides after I've given the talk.

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread C K Kashyap
Thanks Neil On Sat, Oct 2, 2010 at 10:07 AM, Don Stewart wrote: > Neil's > >    * slides http://www.galois.com/~dons/talks/hiw-2010/ndm-shake.pdf >    * video  http://www.vimeo.com/15465133 > > ckkashyap: >> Hi Neil ... how did the talk go? >> >> On Thu, Sep 30, 2010 at 10:23 PM, Neil Mitchell

Re: [Haskell-cafe] EDSL for Makefile

2010-10-01 Thread C K Kashyap
On Thu, Sep 30, 2010 at 5:35 PM, Emil Axelsson wrote: > How about: > >  execute ("gcc -c " ++ dependencyList ++ " -o " ++ target r1) > > / Emil Thanks Emil ... yeah, that works...I was wondering what I could do to not have to mention "r1" explicitly. I'll check out Neil's pdf and video now - perh

Re: [Haskell-cafe] EDSL for Makefile

2010-10-02 Thread C K Kashyap
> > Thanks Emil ... yeah, that works...I was wondering what I could do to > not have to mention "r1" explicitly. > I'll check out Neil's pdf and video now - perhaps I'll find answers there. > I checked out the video - nice - but I think, understandably, since its not open source yet, not much of i

Re: [Haskell-cafe] Re: EDSL for Makefile

2010-10-03 Thread C K Kashyap
On Sun, Oct 3, 2010 at 5:22 PM, steffen wrote: > If you don't want to mention "r1" explicitly, but want to refer to > "target", "sources" and such only a monadic approach (e.g. Reader > Monad) might be what you want. > Thanks Steffen ... would you be able to give me an example? -- Regards, Kash

Re: [Haskell-cafe] EDSL for Makefile

2010-10-03 Thread C K Kashyap
Thanks Neil, > main = do >  want ["file1"] >  "file1" *> \x -> do >    need ["file2"] >    putStrLn "Hello" >    putStrLn "World" What if I want to mention "file1" only once? -- Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org h

Re: Re[2]: [Haskell-cafe] EDSL for Makefile

2010-10-03 Thread C K Kashyap
> > mention_only_once file action = do >   want [file] >   file *> action > > main = mention_only_once "file1" $ \x -> do need ["file2"] >                                            putStrLn "Hello" >                                            putStrLn "World" > > Thanks Bulat I guess even th

[Haskell-cafe] Lazy evaluation from "Why Functional programming matters"

2010-10-05 Thread C K Kashyap
Hi All, I was going through the paper's "lazy evaluation" section where the square root example is given. It occurred to me that one could implement it in a modular way with just higher order functions (without the need for lazy evaluation that is). function f (within, eps, next, a0){ while(t

Re: [Haskell-cafe] pointers for EDSL design

2010-10-05 Thread C K Kashyap
> Any advice or references would be very much appreciated. > Best, Please check out the EDSL around the software build domain - * slides http://www.galois.com/~dons/talks/hiw-2010/ndm-shake.pdf * video http://www.vimeo.com/15465133 This one is around the music composition domain http://www.haske

Re: [Haskell-cafe] Lazy evaluation from "Why Functional programming matters"

2010-10-05 Thread C K Kashyap
> Hi, > Let us try to rewrite the code in a more java-esque syntax: > It translates to something like the below generic method. Correct? > static T function(IBoundsCheck within, Delta eps,  Iterator > iterator, T initValue){ >       T currVal = initVal; >     while(iterator.hasNext()){ >         T

Re: [Haskell-cafe] Lazy evaluation from "Why Functional programming matters"

2010-10-05 Thread C K Kashyap
> > Yes. It would slightly easier in, say,  C# or C++. > I think 'D' achieves its implementation of the 'lazy' keyword using a > similar approach. > But I did not understand why you are disappointed ? The disappointment was not on a serious note ... the thing is, I constantly run into discussions

Re: [Haskell-cafe] Re: Lazy evaluation from "Why Functional programming matters"

2010-10-06 Thread C K Kashyap
On Tue, Oct 5, 2010 at 9:19 PM, steffen wrote: > Don't be to disappointed. One can always kinda fake lazy evaluation > using mutable cells. > But not that elegantly. In the example given above, all being used is > iterators as streams... this can also be expressed using lazy lists, > true. But one

Re: [Haskell-cafe] Re: Lazy evaluation from "Why Functional programming matters"

2010-10-07 Thread C K Kashyap
> Have you seen Potential > (http://intoverflow.wordpress.com/2010/05/21/announcing-potential-x86-64-assembler-as-a-haskell-edsl/)? > Quote: > > "The language’s goal is to provide a solid foundation for the development of > a useful (multi-tasked, multi-processor, etc) microkernel" > > Which sounds

Re: [Haskell-cafe] Re: EDSL for Makefile

2010-10-07 Thread C K Kashyap
> which looks somewhat nicer. This example also defines runTest and a > test function (which calls the shell command "echo" to print some > lines) you can try in ghci by typing "runTest test"... > > [1] http://gist.github.com/614246 > Thank you very much Steffen for taking the time out for the exa

Re: [Haskell-cafe] ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-07 Thread C K Kashyap
Does native mean "Haskell only" - without FFI? -- Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] My knight's tour does not seem to end

2010-10-10 Thread C K Kashyap
Hi, I tried an implementation of knight's tour and it does not seem to terminate. I am looking for some feedback on algorithm and Haskellness of my implementation (knight.hs attached). -- Regards, Kashyap type Position = (Int,Int) getPossiblePositions :: Position -> [Position] getPossiblePositio

Re: [Haskell-cafe] My knight's tour does not seem to end

2010-10-10 Thread C K Kashyap
Thank you Stephen, > Quite probably the algorithm is working correctly just that for boards >>5 it takes a pathologically long time (for boards <= 5 I haven't > checked the answer is correct just that it is computed). I checked it out with 5 and looks like the answer is correct also :) > In the

[Haskell-cafe] Review request for my baby steps towards a "platform independent interactive graphics" using VNC

2010-11-03 Thread C K Kashyap
Hi, I started with the implementation of a VNC server library intended to be used as a library for rendering graphics and interacting with the user(mouse/keyboard). I'd appreciate it very much if I could get some feedback on my approach to binary parsing and Haskellism. Also, any reference/sugges

Re: [Haskell-cafe] [ANNOUNCE] csound-expression - csound combinator library

2010-11-04 Thread C K Kashyap
Hi Erik, > This looks very interesting and seems to have quite comprehensive > reference documentation. Unfortunately there doesn't seem to be > any examples. > > Would it be possible to add some examples? Even trivial ones would > be useful to get people started. > > Erik The examples at the bot

[Haskell-cafe] Parsec question

2013-07-24 Thread C K Kashyap
Dear Cafe, I am trying to implement[1] parsec in go using the "Monadic Parser Combinators" paper [2] . I've been able to implement "plus" "bind" and "many" While doing the implementation - I looked at bind closely bind :: Parser a -> (a -> Parser b) -> Parser b p `bind` f = \inp -> concat [f v in

Re: [Haskell-cafe] Parsec question

2013-07-24 Thread C K Kashyap
gt; I can't guarantee this is any good, and I haven't looked at it in a while, > but at [1] I have an example of using exceptions to get a parsec-like > backtracking-when-explicitly-allowed parser. I was planning on writing an > article about how to do this technique, but I neve

Re: [Haskell-cafe] Parsec question

2013-07-24 Thread C K Kashyap
ybe? I'd like it very much if I could get > > an example of a missed match by not using the complete match. > > > > regards, > > Kashyap > > > > Sent from my Windows Phone > > From: Roman Cheplyaka > > Sent: 24/07/2013 8:19 PM > > To: C K Kash

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-17 Thread C K Kashyap
On Tue, Jan 17, 2012 at 4:19 PM, dokondr wrote: > Hi all, > I hope to use Haskell for graphics (charts) programming in Web client. > > My current implementation in brief: > Server side, Haskell modules: > 1) collecting various statistics from Twitter > 2) generating text data for Gnuplot (http://

[Haskell-cafe] [haskell-cafe] Question about 64bit target on Windows platform

2012-03-04 Thread C K Kashyap
Hi All, Can someone please let me know if there is a 64bit target on Windows on the horizon for GHC? I am trying to push for changing the current implementation in my organization in C++ to Haskell - Our primary targets are Windows and Mac. Not being able to generate 64bit DLL's on Windows would be

Re: [Haskell-cafe] [haskell-cafe] Question about 64bit target on Windows platform

2012-03-05 Thread C K Kashyap
ket for this: > http://hackage.haskell.org/trac/ghc/ticket/1884 > > On Sun, Mar 4, 2012 at 9:59 PM, C K Kashyap wrote: > > Hi All, > > Can someone please let me know if there is a 64bit target on Windows on > the > > horizon for GHC? > > I am trying to push for changing the

Re: [Haskell-cafe] [haskell-cafe] Question about 64bit target on Windows platform

2012-03-05 Thread C K Kashyap
On Mon, Mar 5, 2012 at 2:54 PM, Simon Marlow wrote: > There is a possibility that the IHG might fund this during the next cycle, > which would mean that it would be in 7.6.1. > > Cheers, >Simon > > That is very good to hear!!! Regards, Kashyap

[Haskell-cafe] An idea to document inter department dependencies in Haskell

2012-03-13 Thread C K Kashyap
My dear Haskell folks, I work in a software company where I develop components that go into a really complex system that's built of several components developed by different teams that are geographically distributed. The components themselves run in a distributed manner across client and several s

Re: [Haskell-cafe] An idea to document inter department dependencies in Haskell

2012-03-14 Thread C K Kashyap
ve, in the form of > a textual description of activities). > > Thus, the power users should handle the abstract descriptions, and the > ordinary users could run the engine, perhaps they should answer some > questions to obtain the concrete workflows for their intended tasks > >

[Haskell-cafe] Need feedback on my EDSL attempt for writing test scripts

2012-04-23 Thread C K Kashyap
Dear cafe, Recently, I decided to use Haskell to drive the testing of a C++ DLL that we develop. After getting the FFI etc working, I thought it might be a good idea to expose an EDSL for the testers to alter the flow of invocations of the functions in the DLL. I've tried to demonstrate the approac

[Haskell-cafe] Need inputs for a Haskell awareness presentation

2012-05-31 Thread C K Kashyap
Hi folks, I have the opportunity to make a presentation to folks (developers and managers) in my organization about Haskell - and why it's important - and why it's the only way forward. I request you to share your experiences/suggestions for the following - 1. Any thoughts around the outline of th

Re: [Haskell-cafe] Need inputs for a Haskell awareness presentation

2012-06-01 Thread C K Kashyap
Thank you all very much, I am sitting now and collating all your responses. I'll revert with questions if I may have. Indeed, it may be better to have this kind of collateral ready for future use. I am going to put my stuff on github considering markdown + pandoc. Regards, Kashyap On Sat,

[Haskell-cafe] An attempt at an EDSL for platform independent 3D animation

2012-06-03 Thread C K Kashyap
Hi All, I've written a Haskell program that allows you to describe "dance movements" and it spits out javascript that does animation on an HTML 5 canvas (that's the platform independent bit). https://github.com/ckkashyap/Dancer Please do check it out and let me know what you think - all you'd ne

[Haskell-cafe] Is haskell.org down?

2012-07-05 Thread C K Kashyap
Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] OpenShift a free PaaS from RedHat

2012-07-05 Thread C K Kashyap
Hi Folks, I just found out about OpenShift - its a free PaaS from RedHat. It has some interesting offerings. It does not support Haskell out of the box as of now. Please do check it out and if you like it - vote for Haskell support on it here - https://openshift.redhat.com/community/content/suppor

Re: [Haskell-cafe] Is haskell.org down?

2012-07-05 Thread C K Kashyap
Thanks! Regards, Kashyap On Thu, Jul 5, 2012 at 4:20 PM, Ivan Lazar Miljenovic < ivan.miljeno...@gmail.com> wrote: > Not anymore! > > On 5 July 2012 15:13, C K Kashyap wrote: > > Regards, > > Kashyap > > > > __

Re: [Haskell-cafe] OpenShift a free PaaS from RedHat

2012-07-05 Thread C K Kashyap
two things - 1. GLIBC version mismatch 2. libgmp missing on the openshift box Regards, Kashyap On Thu, Jul 5, 2012 at 9:19 PM, Shakthi Kannan wrote: > Hi, > > --- On Thu, Jul 5, 2012 at 8:41 PM, C K Kashyap > wrote: > | I just found out about OpenShift - its a free PaaS from

Re: [Haskell-cafe] OpenShift a free PaaS from RedHat

2012-07-05 Thread C K Kashyap
Thank you Micheal and Satvik. I think cde should solve the problem - I'll confirm later - for some reason, I do not have SSH connectivity from my office. What'll be best though is - yesod on OpenShift :) Regards, Kashyap On Fri, Jul 6, 2012 at 10:51 AM, satvik chauhan wrote: > >> OpenShift give

[Haskell-cafe] Non-greedy match in Text.Regx.Posix

2012-07-17 Thread C K Kashyap
Hi all, I was exploring Text.Regex.Posix and found that I was not able to do a non-greedy match by modifying the quantifier with a "?". How can I achieve non-greedy match in Text.Regex.Posix? Regards, Kashyap ___ Haskell-Cafe mailing list Haskell-Cafe@h

Re: [Haskell-cafe] Non-greedy match in Text.Regx.Posix

2012-07-17 Thread C K Kashyap
Thanks Roman, I guess I better invest my time in Parsec then :) Regards, Kashyap On Tue, Jul 17, 2012 at 5:05 PM, Roman Cheplyaka wrote: > * C K Kashyap [2012-07-17 13:31:05+0530] > > I was exploring Text.Regex.Posix and found that I was not able to do a > > non-greedy match b

[Haskell-cafe] Need help with learning Parsec

2012-07-19 Thread C K Kashyap
Dear gentle Haskellers, I was trying to whet my Haskell by trying out Parsec today to try and parse out XML. Here's the code I cam up with - I wanted some help with the "gettext" parser that I've written. I had to do a dummy "char ' ') in there just to satisfy the "many" used in the xml parser.

Re: [Haskell-cafe] Need help with learning Parsec

2012-07-19 Thread C K Kashyap
Thank you so much ... I've updated my monad version here - https://github.com/ckkashyap/LearningPrograms/blob/master/Haskell/Parsing/xml_1.hs and the Applicative version here - https://github.com/ckkashyap/Learni

Re: [Haskell-cafe] Need help with learning Parsec

2012-07-22 Thread C K Kashyap
? Regards, Kashyap On Thu, Jul 19, 2012 at 8:31 PM, C K Kashyap wrote: > Thank you so much ... I've updated my monad version here - > > > https://github.com/ckkashyap/LearningPrograms/blob/master/Haskell/Parsing/xml_1.hs<https://github.com/ckkashyap/LearningPrograms/blob/m

Re: [Haskell-cafe] Need help with learning Parsec

2012-07-22 Thread C K Kashyap
What's the function to access it? On Sun, Jul 22, 2012 at 9:16 PM, Simon Hengel wrote: > > I have an outstanding question - What's the second parameter of the > > parse function really for? > > It's used to refer to the source file on parse errors. > > Cheers, > Simon > _

Re: [Haskell-cafe] Need help with learning Parsec

2012-07-22 Thread C K Kashyap
Thanks a lot Antonie and Simon. Regards, Kashyap On Mon, Jul 23, 2012 at 12:15 AM, Antoine Latter wrote: > On Sun, Jul 22, 2012 at 11:00 AM, C K Kashyap wrote: > > What's the function to access it? > > > > The function 'runParser' returns either a result or

Re: [Haskell-cafe] Need help with learning Parsec

2012-07-23 Thread C K Kashyap
Thank you so much Christian for your feedback ... I shall incorporate them. Regards, Kashyap On Mon, Jul 23, 2012 at 3:17 PM, Christian Maeder wrote: > Am 22.07.2012 17:21, schrieb C K Kashyap: > > I've updated the parser here - >> https://github.com/ckkashyap/**Learning

[Haskell-cafe] Capturing the parent element as I parse XML using parsec

2012-07-28 Thread C K Kashyap
Hi, With the help of the cafe I've been able to write up the xml parser using parsec - https://github.com/ckkashyap/really-simple-xml-parser/blob/master/RSXP.hs I am struggling with an idea though - How can I capture the parent element of each element as I parse? Is it possible or would I have to

[Haskell-cafe] Current state of garbage collection in Haskell

2012-07-29 Thread C K Kashyap
Hi, I was looking at a video that talks about GC pauses. That got me curious about the current state of GC in Haskell - say ghc 7.4.1. Would it suffer from lengthy pauses when we talk about memory in the range of 500M +? What would be a good way to keep abreast with the progress on haskell GC? Rega

Re: [Haskell-cafe] Capturing the parent element as I parse XML using parsec

2012-07-30 Thread C K Kashyap
Thank you Richard and Antoine. I think I see the pointlessness of my ask. Regards, Kashyap On Mon, Jul 30, 2012 at 4:14 AM, Richard O'Keefe wrote: > > On 29/07/2012, at 6:21 PM, C K Kashyap wrote: > > I am struggling with an idea though - How can I capture the parent > ele

Re: [Haskell-cafe] Current state of garbage collection in Haskell

2012-07-30 Thread C K Kashyap
ing keeping up, Simon Marlow is the main person working on GHC's > GC (often collaborating with others) and he keeps a list of papers on > his homepage: http://research.microsoft.com/en-us/people/simonmar/ > > If you have further questions about GHC's GC, you can ask them on

  1   2   3   >