Re: [Haskell-cafe] Writing a web service client

2010-05-25 Thread Vo Minh Thu
2010/5/25 Ionut G. Stan ionut.g.s...@gmail.com: Hi, café I've begun learning Haskell for some time already, and although I don't really feel confident writing real world Haskell, I have a little idea that I want to materialize in Haskell code so I'm pretty eager to do something instead of

Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure

2010-05-27 Thread Vo Minh Thu
2010/5/27 Ionut G. Stan ionut.g.s...@gmail.com: Hi, I was just wondering if there's any particular reason for which the two constructors of the Either data type are named Left and Right. I'm thinking that something like Success | Failure or Right | Wrong would have been a little better.

Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure

2010-05-28 Thread Vo Minh Thu
2010/5/28 Donn Cave d...@avvanta.com: Quoth Ivan Lazar Miljenovic ivan.miljeno...@gmail.com,   Whilst the Either type isn't officially used for errors, that is how it is usually treated in Haskell with the consensus that Left = failure and Right = success (note that due to how its defined it

Re: [Haskell-cafe] The state of Hackage: what are we doing about it?

2010-06-01 Thread Vo Minh Thu
2010/6/1 Brandon S. Allbery KF8NH allb...@ece.cmu.edu: On May 31, 2010, at 19:13 , Don Stewart wrote: I see fairly regular complaints about too many Haskell libraries, bewildering choice of difficult-to-determine quality. One thing that might help is just a less cluttered/better organized

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

2010-06-07 Thread Vo Minh Thu
2010/6/7 Benjamin L. Russell dekudekup...@yahoo.com: Ozgur Akgun ozgurak...@gmail.com writes: http://downforeveryoneorjustme.com/www.haskell.org-- Ozgur Akgun Same problem here since two days ago. Apparently, the server just went back up.  Anybody know what kept the server down for so

Re: [Haskell-cafe] Tiger compiler: variable escaping analysis phase

2010-06-22 Thread Vo Minh Thu
2010/6/22 José Romildo Malaquias j.romi...@gmail.com: Hello. I have been teaching an introductory course on compiler construction to our undergraduates students using Appel's Modern Compiler Implementation in Java. There are also versions of the book in ML and C. The books explain how to

Re: [Haskell-cafe] Tiger compiler: variable escaping analysis phase

2010-06-22 Thread Vo Minh Thu
2010/6/22 José Romildo Malaquias j.romi...@gmail.com: On Tue, Jun 22, 2010 at 02:54:08PM +0200, Vo Minh Thu wrote: 2010/6/22 José Romildo Malaquias j.romi...@gmail.com: Hello. I have been teaching an introductory course on compiler construction to our undergraduates students using

Re: [Haskell-cafe] Haskell Weekly News?

2010-06-23 Thread Vo Minh Thu
2010/6/23 aditya siram aditya.si...@gmail.com: I haven't seen HWN in a while. If there is still community interest, how can we help you with this? It will come back, see this thread: http://www.reddit.com/r/haskell/comments/cdw38/hwn_it_will_be_back_promise/ Cheers, Thu

Re: [Haskell-cafe] Tiger compiler: variable escaping analysis phase

2010-06-24 Thread Vo Minh Thu
2010/6/24 José Romildo Malaquias j.romi...@gmail.com: On Tue, Jun 22, 2010 at 04:44:09PM +0200, Vo Minh Thu wrote: 2010/6/22 José Romildo Malaquias j.romi...@gmail.com: On Tue, Jun 22, 2010 at 02:54:08PM +0200, Vo Minh Thu wrote: 2010/6/22 José Romildo Malaquias j.romi...@gmail.com: Hello

Re: [Haskell-cafe] Physical equality

2010-06-28 Thread Vo Minh Thu
2010/6/28 José Romildo Malaquias j.romi...@gmail.com: Is there in Haskell a non monadic function of type a - a - Bool which test for physical equality of two values? It would return True if only if both values are the same object in memory. For instance:  value1 = good  value2 = good  eq

Re: [Haskell-cafe] Error monads (was: Call for comments: neither package)

2010-06-29 Thread Vo Minh Thu
2010/6/29 Roman Cheplyaka r...@ro-che.info: * Stephen Tetley stephen.tet...@gmail.com [2010-06-29 12:02:45+0100] The Applicative Programming with Effects Paper has the monodial accumulating applicative instance on a sum type Conor McBride and Ross Paterson call Except: data Except err a = OK

Re: [Haskell-cafe] lists of arbitrary depth

2010-07-13 Thread Vo Minh Thu
2010/7/13 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: vadali shlomivak...@gmail.com writes: hello, iam really new to haskell, i want to define a function which takes as a parameter a list which can contain other lists, eg. [1,[2,3],[4,[5,6]]] how would i define a function that can

Re: [Haskell-cafe] Applying a value to a function generically

2010-07-14 Thread Vo Minh Thu
2010/7/14 Felipe Lessa felipe.le...@gmail.com: On Wed, Jul 14, 2010 at 8:25 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I would like to construct a collection of function-like objects on which I could apply some value, in a typesafe and clean way. You could use Data.Typeable.cast

Re: [Haskell-cafe] Expression dye

2010-07-14 Thread Vo Minh Thu
2010/7/14 Andrew Coppin andrewcop...@btinternet.com: I'm trying to write a function that builds a series of results in a very complicated way. Eventually I ended up writing things like newtype Dye = Dye String deriving (Eq, Show) instance Num Dye where   (Dye x) + (Dye y) = Dye (x ++ + ++

Re: [Haskell-cafe] Expression dye

2010-07-14 Thread Vo Minh Thu
2010/7/14 Vo Minh Thu not...@gmail.com: 2010/7/14 Andrew Coppin andrewcop...@btinternet.com: I'm trying to write a function that builds a series of results in a very complicated way. Eventually I ended up writing things like newtype Dye = Dye String deriving (Eq, Show) instance Num Dye

Re: [Haskell-cafe] Expression dye

2010-07-15 Thread Vo Minh Thu
2010/7/15 Vo Minh Thu not...@gmail.com: 2010/7/14 Vo Minh Thu not...@gmail.com: 2010/7/14 Andrew Coppin andrewcop...@btinternet.com: I'm trying to write a function that builds a series of results in a very complicated way. Eventually I ended up writing things like newtype Dye = Dye String

Re: [Haskell-cafe] point-free ADT pattern matching ?

2010-07-15 Thread Vo Minh Thu
2010/7/15 Alexey Karakulov ankaraku...@gmail.com: I wonder if pattern matching could be less verbose. Maybe this sounds weird, but here is example of what I mean: type A = (Int, String) f :: String - A - A f s (i,s') = (i, s ++ s') data B = B Int String deriving Show g :: String - B - B

Re: [Haskell-cafe] Hierarchical modules issue

2010-07-18 Thread Vo Minh Thu
2010/7/19 Ivan Miljenovic ivan.miljeno...@gmail.com: On 19 July 2010 14:31, Jonathan Geddes geddes.jonat...@gmail.com wrote: Now when I'm working in a subdirectory, say Foo where the modules are named Foo.Bar, Foo.Baz, Foo.etc., and I try to compile Bar.hs which imports Foo.Baz, the compiler

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-21 Thread Vo Minh Thu
2010/7/21 Ketil Malde ke...@malde.org: John Goerzen jgoer...@complete.org writes: I need to read the LGPL and analyze it closer, but my first analysis suggests that this would work fine for me and others. I'm using the LGPL for library code, and GPL for applications.  Although a lot of

Re: [Haskell-cafe] ANNOUNCE: Haskell Platform 2010.2.0.0

2010-07-23 Thread Vo Minh Thu
2010/7/23 Andrew Coppin andrewcop...@btinternet.com: Don Stewart wrote: Download the Haskell Platform 2010.2.0.0:    http://hackage.haskell.org.nyud.net/platform/ (Caching server). Anybody have any theroes why Trend Micro Antivirus is reporting this as a confirmed fraud/attack site?

Re: [Haskell-cafe] data type declaration

2010-07-25 Thread Vo Minh Thu
2010/7/25 Andrew Coppin andrewcop...@btinternet.com: Patrick Browne wrote: Andrew, Thanks for your detailed feedback, it is a great help. Well, I like to be helpful. I appreciate that the code does not do anything useful, nor is it an appropriate way to write Haskell, but it does help me

Re: [Haskell-cafe] Lists and monads

2010-07-26 Thread Vo Minh Thu
2010/7/26 Kevin Jardine kevinjard...@gmail.com: As a Haskell neophyte, one of the things I find confusing is the way that the usual list functions (map, fold, ++, etc.) often cannot be used directly with monadic lists (m [a] or [m a]) but seem to require special purpose functions like ap, mapM

Re: [Haskell-cafe] Re: Lists and monads

2010-07-26 Thread Vo Minh Thu
2010/7/26 Kevin Jardine kevinjard...@gmail.com: On Jul 26, 3:00 pm, Vo Minh Thu not...@gmail.com wrote: Also, just like with IO, maybe restructuring the code to separate monadic code would help. The specific monad I am dealing with carries state around inside it. I could revert to a pure

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Vo Minh Thu
2010/7/26 Daniel Díaz lazy.dd...@gmail.com: Hi all, I want to open a Haskell forum based on phpBB, but I need some collaborators for organize its content, and moderate its use. When we have finished, I will open this forum for the entire community of Haskell! Hi, The idea of a forum has

Re: [Haskell-cafe] Is 'flip' really necessary?

2010-07-26 Thread Vo Minh Thu
2010/7/26 Daniel Fischer daniel.is.fisc...@web.de: On Monday 26 July 2010 23:25:27, Max Rabkin wrote: It took me a fair while (I'm talking on the order of half a minute) to figure out what that meant, but it's pretty cool. Yeah, really neat. Maybe a different name would be better? How

Re: [Haskell-cafe] Is 'flip' really necessary?

2010-07-26 Thread Vo Minh Thu
2010/7/26 Vo Minh Thu not...@gmail.com: 2010/7/26 Daniel Fischer daniel.is.fisc...@web.de: On Monday 26 July 2010 23:25:27, Max Rabkin wrote: It took me a fair while (I'm talking on the order of half a minute) to figure out what that meant, but it's pretty cool. Yeah, really neat. Maybe

Re: [Haskell-cafe] OpenGL Speed!

2010-07-29 Thread Vo Minh Thu
2010/7/29 Eitan Goldshtrom thesource...@gmail.com: I'm having an unusual problem with OpenGL. To be honest I probably shouldn't be using OpenGL for this, as I'm just doing 2D and only drawing Points, but I don't know about any other display packages, so I'm making due. If this is a problem

Re: [Haskell-cafe] OpenGL Speed!

2010-07-29 Thread Vo Minh Thu
://hackage.haskell.org/package/SDL SDL is better suited for 2D drawing (IMHO). http://www.libsdl.org/ - Job On Thu, Jul 29, 2010 at 6:51 AM, Vo Minh Thu not...@gmail.com wrote: 2010/7/29 Eitan Goldshtrom thesource...@gmail.com: I'm having an unusual problem with OpenGL. To be honest I

Re: [Haskell-cafe] Preview the new haddock look and take a short survey

2010-08-04 Thread Vo Minh Thu
2010/8/4 Mark Lentczner ma...@glyphic.com: The Haddock team has spent the last few months revamping the look of the generated output. We're pretty close to done, but we'd like to get the community's input before we put it in the main release. Please take a look, and then give us your

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Vo Minh Thu
2010/8/15 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: Don Stewart d...@galois.com writes:     * Pay attention to Haskell Cafe announcements     * Follow the Reddit Haskell news.     * Read the quarterly reports on Hackage     * Follow Planet Haskell And yet there are still many

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Vo Minh Thu
2010/8/15 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: Vo Minh Thu not...@gmail.com writes: 2010/8/15 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: Don Stewart d...@galois.com writes:     * Pay attention to Haskell Cafe announcements     * Follow the Reddit Haskell news.     * Read

Re: [Haskell-cafe] Higher-order algorithms

2010-08-23 Thread Vo Minh Thu
2010/8/23 Eugene Kirpichov ekirpic...@gmail.com: [snip] Do there exist other nontrivial higher-order algorithms and datastructures? Is the field of higher-order algorithms indeed as unexplored as it seems? [snip] Hi, I'm thinking to some HOAS (higher order abstract syntax) representation.

[Haskell-cafe] empty .prof file

2010-08-23 Thread Vo Minh Thu
Hi, I'd like to profile a GLUT application. After a run of the application with the +RTS -p flag, the .prof file is actually created but is always empty. Does someone have a clue of what's going on? Would it be related to my application calling GLUT's leaveMainLoop to exit? Thanks, Thu

[Haskell-cafe] Re: empty .prof file

2010-08-23 Thread Vo Minh Thu
2010/8/23 Vo Minh Thu not...@gmail.com: Hi, I'd like to profile a GLUT application. After a run of the application with the +RTS -p flag, the .prof file is actually created but is always empty. Does someone have a clue of what's going on? Would it be related to my application calling

Re: [Haskell-cafe] On to applicative

2010-08-26 Thread Vo Minh Thu
2010/8/26 michael rice nowg...@yahoo.com From: http://en.wikibooks.org/wiki/Haskell/Applicative_Functors = import Control.Applicative f :: (a - b - c) fmap :: Functor f = (d - e) - f d - f e fmap f :: Functor f = f a - f (b - c)    -- Identify d with a, and e

Re: [Haskell-cafe] On to applicative

2010-08-26 Thread Vo Minh Thu
I think it works well :) But sumsqr has type Int - Int - Int, not Int - Int - Int - Int. I.e. it does take only two arguments while fmap3 takes a function of three arguments. 2010/8/26 michael rice nowg...@yahoo.com OK, fmap2 works, but not fmap3. What am I not understanding? Michael

Re: [Haskell-cafe] On to applicative

2010-08-26 Thread Vo Minh Thu
This is indeed the case: if you want to apply your sumsqr function or Ivan's (\ x y z - z * y + z), to some Functor (Maybe in this case), you don't have to redefine them, or even to use fmap2 or fmap3: you just have to use $ and *. E.g.: (\ a b c - a + b + c) $ Just 1 * Just 2 * Just 3

[Haskell-cafe] non-blocking recv from UDP socket

2010-08-26 Thread Vo Minh Thu
Hi, Is is possible to get Network.Socket.ByteString.recv to be non-blocking (i.e. return directly even if no data is available) ? I have tried ti use setSocketOption sock NoDelay 1 but then I get the following error: setSocketOption: unsupported operation (Protocol not available) Here is

Re: [Haskell-cafe] non-blocking recv from UDP socket

2010-08-26 Thread Vo Minh Thu
2010/8/26 Johan Tibell johan.tib...@gmail.com: Hi Thu, On Thu, Aug 26, 2010 at 11:13 AM, Vo Minh Thu not...@gmail.com wrote: Is is possible to get Network.Socket.ByteString.recv to be non-blocking (i.e. return directly even if no data is available) ? Unfortunately not. I have tried ti

Re: [Haskell-cafe] non-blocking recv from UDP socket

2010-08-26 Thread Vo Minh Thu
2010/8/26 Brandon S Allbery KF8NH allb...@ece.cmu.edu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/26/10 05:13 , Vo Minh Thu wrote: Is is possible to get Network.Socket.ByteString.recv to be non-blocking (i.e. return directly even if no data is available) ? What are you really

Re: [Haskell-cafe] Slightly humorous: Headhunters toolbox (example for Germany)

2010-08-27 Thread Vo Minh Thu
2010/8/27 sylvain sylvain.na...@googlemail.com: Hi, the results given by the same research at the world level is worrisome: the interest in Haskell is steadily declining since 2004. Why was Haskell not successful conquering the hearts? Is it doomed to fail or is there still a chance?

Re: [Haskell-cafe] Slightly humorous: Headhunters toolbox (example for Germany)

2010-08-27 Thread Vo Minh Thu
2010/8/28 sylvain sylvain.na...@googlemail.com: Hello, I'm not sure if you're serious or not ... Well, I wasn't, actually. My previous email was an eruption of second degré (I guess the closest English term would be irony). But you do realise Haskell is not a word only used to name some

Re: [Haskell-cafe] Slightly humorous: Headhunters toolbox (example for Germany)

2010-08-28 Thread Vo Minh Thu
2010/8/28 Sean Leather leat...@cs.uu.nl: On Sat, Aug 28, 2010 at 01:29, Vo Minh Thu wrote: It would be interesting to know some other sources: [...] number of attendees to e.g. Utrecht summer school on FP, ... Just a bit over 30, I think. And it was interesting to see a significant number

Re: [Haskell-cafe] On to applicative

2010-08-31 Thread Vo Minh Thu
2010/8/31 michael rice nowg...@yahoo.com Learn You a Haskell ...  says that (-) is a type just like Either. Where can I find its type definition? You can't define it *in* Haskell as user code. It is a built-in infix type constructor (Either or Maybe are type constructors too, not just types).

Re: [Haskell-cafe] On to applicative

2010-08-31 Thread Vo Minh Thu
the relationship between the ananymous function syntax and the function type: id = \x - x In fact, if you write in prefix form, it is quite familiar: f :: (-) Int Bool e = Either String Float Cheers, Thu Michael --- On Tue, 8/31/10, Vo Minh Thu not...@gmail.com wrote: From: Vo Minh Thu

Re: [Haskell-cafe] Statically tracking validity - suggestions?

2010-08-31 Thread Vo Minh Thu
2010/8/31 Andrew Coppin andrewcop...@btinternet.com: Luke Palmer wrote: I have a description of the design pattern you need, appropriately named: http://lukepalmer.wordpress.com/2009/03/24/certificate-design-pattern/ Mmm, I like that. There are two small problems: * In my web browser,

Re: [Haskell-cafe] On to applicative

2010-08-31 Thread Vo Minh Thu
. m :: Maybe Int -- not just Maybe (+) :: (-) Int Int -- and not only (-) Int Cheers, Thu Michael --- On Tue, 8/31/10, Vo Minh Thu not...@gmail.com wrote: From: Vo Minh Thu not...@gmail.com Subject: Re: [Haskell-cafe] On to applicative To: michael rice nowg...@yahoo.com Cc: haskell-cafe

Re: [Haskell-cafe] On to applicative

2010-08-31 Thread Vo Minh Thu
: Vo Minh Thu not...@gmail.com, haskell-cafe@haskell.org Date: Tuesday, August 31, 2010, 2:36 PM Prelude FmapFunc let s = show :: ((-) Int) String Prelude FmapFunc :t s s :: Int - String Prelude FmapFunc let v = fmap (hello ++) s Prelude FmapFunc :t v v :: Int - String Prelude FmapFunc v 1

Re: [Haskell-cafe] On to applicative

2010-08-31 Thread Vo Minh Thu
Thu not...@gmail.com wrote: From: Vo Minh Thu not...@gmail.com Subject: Re: [Haskell-cafe] On to applicative To: michael rice nowg...@yahoo.com Cc: Ryan Ingram ryani.s...@gmail.com, haskell-cafe@haskell.org Date: Tuesday, August 31, 2010, 3:07 PM 2010/8/31 michael rice nowg...@yahoo.com

Re: [Haskell-cafe] On to applicative

2010-08-31 Thread Vo Minh Thu
* constructors. Just is a (value) constructor. This makes sense: Just 7 is a value, so Just surely constructs a value. Nothing doesn't take an argument but is called a constructor too. Maybe Int is a type, so Maybe surely constructs a type. Michael --- On Tue, 8/31/10, Vo Minh Thu

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

2010-09-04 Thread Vo Minh Thu
2010/9/4 Michael Litchard mich...@schmong.org: I'll be starting a new job soon as systems tool guy. The shop is a perl shop as far as internal automation tasks go. But I am fortunate to not be working with bigots. If they see a better way, they'll take to it. So please give me your best

Re: [Haskell-cafe] Re: [Haskell] Proposal: Form a haskell.org committee

2010-09-06 Thread Vo Minh Thu
2010/9/6 Manuel M T Chakravarty c...@cse.unsw.edu.au: Ian Lynagh: To fix this problem, we propose that we create a haskell.org committee, which is responsible for answering these sorts of questions, although for some questions they may choose to poll the community at large if they think

Re: [Haskell-cafe] running ghci simply

2010-09-06 Thread Vo Minh Thu
2010/9/6 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: On 6 September 2010 17:42, Johann Bach johann.bach1...@gmail.com wrote: Is there a way to run a Haskell module via ghci with a single command on the command-line? Note: I'm on Windows XP. If I have the module test.hs, I can type

Re: [Haskell-cafe] running ghci simply

2010-09-06 Thread Vo Minh Thu
2010/9/6 Johann Bach johann.bach1...@gmail.com: On Mon, Sep 6, 2010 at 12:51 AM, Vo Minh Thu not...@gmail.com wrote: 2010/9/6 Ivan Lazar Miljenovic ivan.miljeno...@gmail.com: On 6 September 2010 17:42, Johann Bach johann.bach1...@gmail.com wrote: Is there a way to run a Haskell module via ghci

Re: [Haskell-cafe] Re: Paralelism and Distribution in Haskell

2010-09-07 Thread Vo Minh Thu
2010/9/7 David Virebayre dav.vire+hask...@gmail.com: 2010/9/7 Ben Lippmeier b...@ouroborus.net: Though be warned you must use a recent GHC head build to get good performance. After GHC 7.0 is out (in a few weeks) we'll be able to release a properly stable version. Pardon a probably stupid

Re: [Haskell-cafe] generating foreign Code (Java, C++, PHP)?

2010-09-07 Thread Vo Minh Thu
2010/9/7 Günther Schmidt gue.schm...@web.de: Hi list, I noticed that there are some libs / packages like atom and HJscript which allow you to write a program in a haskell EDSL and that then actually generates valid source code in another language. In the above example that would be

[Haskell-cafe] benchmarking c/c++ and haskell

2010-09-12 Thread Vo Minh Thu
Hi, I would like to benchmark C/C++ and Haskell code. The goal is to improve the Haskell port[0] of smallpt[1]. To make sure my approach was reliable, I got the code of two programs (one in C, the other in Haskell) from a post[2] by Don. The code is reproduced below. When timing the execution of

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-12 Thread Vo Minh Thu
2010/9/12 Andrew Coppin andrewcop...@btinternet.com: Vo Minh Thu wrote: Hi, I would like to benchmark C/C++ and Haskell code. The goal is to improve the Haskell port[0] of smallpt[1]. To make sure my approach was reliable, I got the code of two programs (one in C, the other in Haskell

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-13 Thread Vo Minh Thu
2010/9/13 David Virebayre dav.vire+hask...@gmail.com: Does it help to compile with ghc --make -O2 -funbox-strict-fields  ?? No, it doesn't. Can I assume you don't have the problem I described? Thanks, Thu ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-13 Thread Vo Minh Thu
2010/9/13 Daniel Fischer daniel.is.fisc...@web.de: On Monday 13 September 2010 11:50:14, Vo Minh Thu wrote: 2010/9/13 David Virebayre dav.vire+hask...@gmail.com: Does it help to compile with ghc --make -O2 -funbox-strict-fields  ?? No, it doesn't. Can I assume you don't have the problem I

Re: [Haskell-cafe] benchmarking c/c++ and haskell

2010-09-15 Thread Vo Minh Thu
the same options, and ease the whole process. Thanks, Thu 2010/9/15 Daniel Fischer daniel.is.fisc...@web.de: On Wednesday 15 September 2010 02:50:15, David Terei wrote: On 13 September 2010 20:41, Vo Minh Thu not...@gmail.com wrote: ... the post is from 2008. No LLVM goodness. So I thought GHC

Re: [Haskell-cafe] IO-oriented cache library for interacting with GUI

2010-09-16 Thread Vo Minh Thu
2010/9/16 Evan Laforge qdun...@gmail.com: 2010/9/16 Alexey Karakulov ankaraku...@gmail.com: Hi. I'm writing GUI (gtk) program which purpose is take some data as user input, perform some evaluations, and produce some plots and coefficients. Since some evaluations take significant time (about 10

Re: [Haskell-cafe] Uniting graphics libraries

2010-09-18 Thread Vo Minh Thu
2010/9/18 Tillmann Vogt tillmann.v...@rwth-aachen.de:  Hi, I have nearly finished writing a Collada-output library to make 3d animation files. Before doing this I have looked at two libraries on hackage that parse Collada to display it. For my library I have copied the types from

Re: [Haskell-cafe] Uniting graphics libraries

2010-09-18 Thread Vo Minh Thu
2010/9/18 Tillmann Vogt tillmann.v...@rwth-aachen.de:  Am 18.09.2010 15:14, schrieb Vo Minh Thu: Hi, This is a great goal! I've also been thinking in solidifying all things 3D on hackage lately and forming a game and graphics strike team. (The idea is that even if you're not interested

Re: [Haskell-cafe] capture of idioms and patterns

2010-09-24 Thread Vo Minh Thu
2010/9/24 Albert Y. C. Lai tre...@vex.net: On 10-09-23 04:57 PM, Andrew Coppin wrote: If you think that sounds silly, ask some random person (not a computer programmer, just some random human) how find the sum of a list of numbers. My reply: to sum 10 numbers, sum 9 numbers, then account

Re: [Haskell-cafe] Retargeting Haskell compiler to embedded/hardware

2010-09-29 Thread Vo Minh Thu
2010/9/29 Tom Hawkins tomahawk...@gmail.com: On Tue, Sep 28, 2010 at 9:20 PM, Shakthi Kannan shakthim...@gmail.com wrote: If you are still at it, you can have a look at Chalmers Lava [1], or Kansas Lava [2]. Feldspar [3] project targets DSP though. These are examples light embedded DSLs,

Re: [Haskell-cafe] Haskell list on Twitter?

2010-10-01 Thread Vo Minh Thu
2010/10/1 Magnus Therning mag...@therning.org: Now that there are lists/groups on Twitter (http://mashable.com/2009/11/02/twitter-lists-guide/) maybe one should be created one for Haskellers? I would do it, but it seems I can't be on my own list :-)  So unless I've missed something I'd have

Re: [Haskell-cafe] Re: I still cannot seem to get a GUI working under Windows.

2010-10-02 Thread Vo Minh Thu
2010/10/2 Luke Palmer lrpal...@gmail.com: On Sat, Oct 2, 2010 at 4:32 AM, Bulat Ziganshin bulat.zigans...@gmail.com wrote: Hello Heinrich, Saturday, October 2, 2010, 1:36:48 PM, you wrote: Would you put a flattr button [1] on the wxHaskell page? This way, people like me would be able to

Re: [Haskell-cafe] Haskell Platform, Hackage and Cabal : The 2nd Year : Status Report

2010-10-03 Thread Vo Minh Thu
2010/10/3 Ketil Malde ke...@malde.org: Matthias Kilian k...@outback.escape.de writes:     http://www.vimeo.com/15462768 And is there any way to just *download* the video? For people not using adobe flash? +1.  I'd like to watch video offline on my phone, so Flash isn't really a good

Re: [Haskell-cafe] Template Haskell: hiding declarations

2010-10-04 Thread Vo Minh Thu
2010/10/4 Jonas Almström Duregård jonas.dureg...@chalmers.se: Hi Café, I'm doing some code generation with Template Haskell that results in few hundred top level declaration, of which only 10 or so should actually be exposed to the user (the rest are only used by generated code). Since I

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-07 Thread Vo Minh Thu
2010/10/7 Michael Snoyman mich...@snoyman.com: On Wed, Oct 6, 2010 at 8:14 PM, Brent Yorgey byor...@seas.upenn.edu wrote: One (slightly off-topic) question: at the top of the site it says the meeting place for professional Haskell programmers.  Is this supposed to be geared towards Haskell

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-11 Thread Vo Minh Thu
2010/10/11 Roman Cheplyaka r...@ro-che.info: On Mon, 11 Oct 2010 11:54:12 +0100, Magnus Therning mag...@therning.org wrote: On Mon, Oct 11, 2010 at 08:37, Michael Snoyman mich...@snoyman.com wrote: [...] Also, now 10 random profiles will be displayed on the homepage. Only verified users

Re: [Haskell-cafe] Re: A rant against the blurb on the Haskell front page

2010-10-18 Thread Vo Minh Thu
2010/10/18 DavidA polyom...@f2s.com: Ketil Malde ketil at malde.org writes: Don Stewart dons at galois.com writes: Good start, if only the advanced were replaced with something more characteristic, like lazy, or statically typed. Which, BTW, both do not lazy and statically typed

Re: [Haskell-cafe] profiling cabal libraries

2010-10-19 Thread Vo Minh Thu
2010/10/19 Tom Hawkins tomahawk...@gmail.com: How do I profile cabal libraries? I cabal install -p a local package I am testing, and I compile a test of the library using -prof -auto-all.  But the profiling report only lists a CAF entry for the library, but does not detail any of the

Re: [Haskell-cafe] Regression test utility suggestions?

2010-10-21 Thread Vo Minh Thu
2010/10/21 Peter Schmitz ps.hask...@gmail.com: I am seeking suggestions for a regression test utility or framework to use while developing in Haskell (in a MS Windows environment). [snip] Hi, Have a look at HUnit and, e.g. test-framework. http://hackage.haskell.org/package/HUnit

Re: [Haskell-cafe] Parsing workflow

2010-10-31 Thread Vo Minh Thu
2010/10/31 Nils Schweinsberg m...@n-sch.de: Hi! I'm having a really hard time to write a correct parser for a small language I've developed. I have been trying to write a parser using parsec, but always get a lot of error messages like unexpected \n, expected ..., new-line or... when trying

Re: [Haskell-cafe] internship opportunities in France

2010-11-06 Thread Vo Minh Thu
Hi, There is for instance http://gamr7.com/ They are listed in http://www.haskell.org/haskellwiki/Haskell_in_industry Cheers, Thu 2010/11/6 Corentin Dupont corentin.dup...@gmail.com: Hello, as well as I know, there is very few, if no, jobs in Haskell in France. They are much more on CAML.

Re: [Haskell-Cafe] Parsing bytestream

2010-11-09 Thread Vo Minh Thu
2010/11/9 C K Kashyap ckkash...@gmail.com: Thanks Stephen, On Tue, Nov 9, 2010 at 2:53 PM, Stephen Tetley stephen.tet...@gmail.com wrote: I'd use a parser combinator library that has word8 word16, word32 combinators. The latter should really have big and little endian versions word16be,

Re: [Haskell-Cafe] Parsing bytestream

2010-11-09 Thread Vo Minh Thu
2010/11/9 C K Kashyap ckkash...@gmail.com: I think I can restate my problem like this --- If I have a list of actions as follows - import Data.Word import Data.Binary.Get data MyAction = A1 (Get Word8) | A2 (Get Word16) a = A1 getWord8 b = A2 getWord16be listOfActions = [a,b,a] How

Re: [Haskell-Cafe] Parsing bytestream

2010-11-09 Thread Vo Minh Thu
2010/11/9 Ozgur Akgun ozgurak...@gmail.com: If we change the code a bit, data MyAction = A1 Word8 | A2 Word16 a,b :: Get MyAction a = A1 $ getWord8 b = A2 $ getWord16be listOfActions :: [Get MyAction] listOfActions = [a,b,a] Now, we know how to execute the list of actions, and get the

Re: [Haskell-cafe] Happstack events and web page refreshing

2011-01-19 Thread Vo Minh Thu
Hi, I've not really followed the thread, but on the client side, for long-polling, you issue an XMLHttpRequest that will receive an answer from the server only when the server has something to push to the client (maybe done with a thread waiting on an MVar). XHR is asynchronous as you have to

Re: [Haskell-cafe] Looking for criticism and comments on web-mongrel2.

2011-01-21 Thread Vo Minh Thu
2011/1/21 Clint Moore cmo...@wamboli.com: After sufficient hand-wringing I finally uploaded web-mongrel2 up to hackage and I'm interested in criticism of my approach.  The module itself is terribly simple as it's meant to provide a lightweight layer between an application or framework and

Re: [Haskell-cafe] Status update on {code, trac, projects, planet, community}.haskell.org

2011-02-17 Thread Vo Minh Thu
2011/2/17 Henning Thielemann lemm...@henning-thielemann.de: Duncan Coutts schrieb: Several people have asked about the new host key. Yes, there is a new RSA host key for the community server, the fingerprint of which is: 21:b8:59:ff:39:69:58:7a:51:ef:c1:d8:c6:24:6e:f7 ssh will likely give

Re: [Haskell-cafe] http://www.cs.cornell.edu/icfp/task.htm

2011-02-25 Thread Vo Minh Thu
2011/2/25 Hauschild, Klaus (EXT) klaus.hauschild@siemens.com: Hi, Currently I'm trying to lern Haskell by doing. After doing some examples I plan to solve an ICFP task (see subject). In short: build an interpreter for a stack based language thata describes a 3D scene. Ray trace this scene

Re: [Haskell-cafe] http://www.cs.cornell.edu/icfp/task.htm

2011-02-28 Thread Vo Minh Thu
, }] results in [FunctionToken [IdentifierToken foo, BinderToken bar]] -Ursprüngliche Nachricht- Von: Vo Minh Thu [mailto:not...@gmail.com] Gesendet: Freitag, 25. Februar 2011 17:44 An: Hauschild, Klaus (EXT) Cc: haskell-cafe@haskell.org Betreff: Re: [Haskell-cafe] http

Re: [Haskell-cafe] Light and fast http server

2011-03-11 Thread Vo Minh Thu
2011/3/11 Victor Oliveira rhapso...@gmail.com: Hi cafe, There are a lot of http servers in hackage. I didn't have used none. I would like to know if one of them is something closer of the nginx. I need some light and fast. It don't need support all http, just the basics is fine.

Re: [Haskell-cafe] [Haskell] ANN: craftwerk-0.1, craftwerk-cairo-0.1, craftwerk-gtk-0.1

2011-03-14 Thread Vo Minh Thu
2011/3/14 Malte Harder malte.har...@googlemail.com: Dear all, I just released the first version of the Craftwerk graphics library for 2d vector graphics. Craftwerk is intended to act as an abstract interface to different backend drivers. The library itself has a TikZ

Re: [Haskell-cafe] How large is the Haskell community ?

2011-03-17 Thread Vo Minh Thu
2011/3/17 wren ng thornton w...@freegeek.org: On 3/17/11 9:18 AM, Andy Stewart wrote: On Sat, Feb 12, 2011 at 6:57 PM, Jan Christiansenj...@informatik.uni-kiel.de  wrote: if you have written at least 1 lines of code in Haskell, Goodness. It looks like my current project is over 17,275

Re: [Haskell-cafe] ANNOUNCEMENT: nehe-tuts 0.2.0, new release

2011-03-28 Thread Vo Minh Thu
2011/3/28 Jason Dagit dag...@gmail.com: ... The tutorials are still written using OpenGL's immediate mode, but that was deprecated in OpenGL 3.x so it's possible that in the future these examples won't be supported by your graphics card. ... Hi, I wouldn't worry about the older API to be

Re: [Haskell-cafe] WANTED: Compensated Haskell Hacker for Language Project

2011-03-29 Thread Vo Minh Thu
2011/3/29 Bryan Edds bryane...@yahoo.com: Hi Jake! My only question is this: what does your language offer that others do not with respect to soft real time systems? The language you describe in the linked forum thread looks neat, but I think I'm missing the reasoning behind its design. Why

Re: [Haskell-cafe] GSoC Proposal: A 3d visualization of code (packages)

2011-04-04 Thread Vo Minh Thu
2011/4/4 Tillmann Vogt tillmann.v...@rwth-aachen.de: Dear Haskell Programmers, To get some feedback on my proposal here is posting that explains it more detailed: http://tillmannvogt.wordpress.com/2011/03/30/gsoc/ If this succeeds it could become the poster child application for WebGL and

Re: [Haskell-cafe] ANN: Google Summer of Code student application period opens today

2011-04-05 Thread Vo Minh Thu
2011/4/5 Christopher Done chrisd...@googlemail.com: On 5 April 2011 15:17, Marco Túlio Gontijo e Silva mar...@marcot.eti.br wrote: I plan to apply to the Google Summer of Code, to work on the parallelization of Cabal Install.  As stated in some comments, this project may be too small for

Re: [Haskell-cafe] Local copy of hackageDB

2011-04-07 Thread Vo Minh Thu
2011/4/7 José Pedro Magalhães j...@cs.uu.nl: Hi all, I want to use cabal-install on a machine without internet access. I tried downloading http://hackage.haskell.org/cgi-bin/hackage-scripts/archive.tar, unpacking it and setting the local-repo field in the config file to this location but

Re: [Haskell-cafe] Deciding equality of functions.

2011-04-09 Thread Vo Minh Thu
2011/4/9 Grigory Sarnitskiy sargrig...@ya.ru: I guess that deciding whether two functions are equal in most cases is algorithmically impossible. However maybe there exists quite a large domain of decidable cases? If so, how can I employ that in Haskell? It is a common situation when one has

Re: [Haskell-cafe] ANNOUNCE: cereal-0.3.3.0

2011-04-27 Thread Vo Minh Thu
2011/4/26 Trevor Elliott tre...@galois.com: Hot on the heels of the last release, cereal-0.3.3.0 [1] adds support for parsing and rendering lazy ByteStrings.  Most running functions in Data.Serialize.Get and Data.Serialize.Put now have lazy analogues, and Data.Serialize has gained encodeLazy

Re: [Haskell-cafe] Python is lazier than Haskell

2011-04-27 Thread Vo Minh Thu
2011/4/27 Henning Thielemann lemm...@henning-thielemann.de: I like to apply for the quote of the week. :-)  If Haskell is great because of its laziness,   then Python must be even greater,   since it is lazy at the type level. Dynamically typed languages only check types if they have to,

Re: [Haskell-cafe] ANN: Newt - command-line template instantiation tool library

2011-05-09 Thread Vo Minh Thu
2011/5/9 bri...@aracnet.com: On Sun, 8 May 2011 16:23:59 -0700 Rogan Creswick cresw...@gmail.com wrote: Newt scans the input (either a file, directory or stdin) for tags marked with tagName [1], then replaces those entries with values specified on the command line, producing either a new

Re: [Haskell-cafe] The Lisp Curse

2011-05-19 Thread Vo Minh Thu
2011/5/19 Andrew Coppin andrewcop...@btinternet.com: http://www.winestockwebdesign.com/Essays/Lisp_Curse.html Some of you might have seen this. Here's the short version:  Lisp is so powerful that it discourages reuse. Why search for and reuse an existing implementation, when it's so

Re: [Haskell-cafe] License of hslogger, HDBC, etc.

2011-06-02 Thread Vo Minh Thu
2011/6/2 John Goerzen jgoer...@complete.org: Hi Jon all, I've decided that I'm OK with re-licensing hslogger, HDBC, and well all of my Haskell libraries (not end programs) under 3-clause BSD. My schedule is extremely tight right now but if someone wants to send me patches for these things

Re: [Haskell-cafe] Subcategories on Hackage

2011-06-04 Thread Vo Minh Thu
2011/6/4 Tillmann Vogt tillmann.v...@rwth-aachen.de: Hi, There are some categories on Hackage that have become so large that it is hard to find something, i.e. Data(414 packages) and Graphics (191). Thats why I suggest to use subcategories separated from the category with a dot. To show that

  1   2   >