Re: [Haskell-cafe] Iteratees again

2011-06-03 Thread Ketil Malde
dm-list-haskell-c...@scs.stanford.edu writes: leaking file descriptors ...until they are garbage collected. I tend to consider the OS fd limitation an OS design error - I've no idea why there should be some arbitrary limit on open files, as long as there is plenty of memory around to store

Re: [Haskell-cafe] *GROUP HUG*

2011-06-03 Thread Ketil Malde
Michael Litchard mich...@schmong.org writes: I disagree. I'm by no means proficient in Haskell. And, I never bothered learning PHP. I will when I need to. PHP programmers are a dime a dozen. ..and since PHP programmers are a dime a dozen, any decent manager (who, after all, has an MBA and

[Haskell-cafe] Comment Syntax

2011-06-03 Thread Guy
-- followed by a symbol does not start a comment, thus for example, haddock declarations must begin with -- |, and not --|. What might --| mean, if not a comment? It doesn't seem possible to define it as an operator. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Max Rabkin
On Fri, Jun 3, 2011 at 10:32, Guy guytsalmave...@yahoo.com wrote: -- followed by a symbol does not start a comment, thus for example, haddock declarations must begin with -- |, and not --|. What might --| mean, if not a comment? It doesn't seem possible to define it as an operator. GHCi, at

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 18:32, Guy guytsalmave...@yahoo.com wrote: -- followed by a symbol does not start a comment, thus for example, haddock declarations must begin with -- |, and not --|. What might --| mean, if not a comment? It doesn't seem possible to define it as an operator. Sure you can; --|

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Malcolm Wallace
-- followed by a symbol does not start a comment, thus for example, haddock declarations must begin with -- |, and not --|. What might --| mean, if not a comment? It doesn't seem possible to define it as an operator. GHCi, at least, allows it. Prelude let (--|) = (+) Prelude 1 --| 2

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Guy
On 03/06/2011 12:01, Malcolm Wallace wrote: I believe the motivating example that persuaded the Language Committee to allow these symbols was -- which is not of course used anywhere in the standard libraries, but is an extremely nice symbol to have available in user code. Seeing as no

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 19:19, Guy guytsalmave...@yahoo.com wrote: On 03/06/2011 12:01, Malcolm Wallace wrote: I believe the motivating example that persuaded the Language Committee to allow these symbols was      -- which is not of course used anywhere in the standard libraries, but is an extremely

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Guy
On 03/06/2011 12:26, Ivan Lazar Miljenovic wrote: On 3 June 2011 19:19, Guyguytsalmave...@yahoo.com wrote: On 03/06/2011 12:01, Malcolm Wallace wrote: I believe the motivating example that persuaded the Language Committee to allow these symbols was -- which is not of course used

Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Yitzchak Gale
Bryan O'Sullivan wrote: I'd like a no-copy combinator for the same reasons, but I think it's impossible to do without some low-level support. I wrote: ...does the internal representation easily admit such a combinator? Not very easily. Internally, attoparsec maintains just three pieces of

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Serguey Zefirov
2011/6/3 Guy guytsalmave...@yahoo.com: I wasn't proposing additional comment symbols; I'm proposing that anything beginning with -- is a comment. I use -- as a infix operator to describe types in Template Haskell. So I too oppose your proposal. ;)

Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Yitzchak Gale
Mario Blažević wrote: I don't know if this helps, but the incremental-parser library has exactly the combinator you're looking for. Wow, that is a beautiful implementation of a general parser library. So much simpler than Parsec. Thanks for pointing it out. Why are you hiding those nice

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

2011-06-03 Thread Yitzchak Gale
John Goerzen wrote: 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. Thanks John! -Yitz ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Daniel Schoepe
On Fri, 03 Jun 2011 12:19:31 +0300, Guy guytsalmave...@yahoo.com wrote: On 03/06/2011 12:01, Malcolm Wallace wrote: I believe the motivating example that persuaded the Language Committee to allow these symbols was -- which is not of course used anywhere in the standard libraries,

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 20:32, Daniel Schoepe daniel.scho...@googlemail.com wrote: On Fri, 03 Jun 2011 12:19:31 +0300, Guy guytsalmave...@yahoo.com wrote: On 03/06/2011 12:01, Malcolm Wallace wrote: I believe the motivating example that persuaded the Language Committee to allow these symbols was  

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Steffen Schuldenzucker
Am 03.06.2011 10:32, schrieb Guy: What might --| mean, if not a comment? It doesn't seem possible to define it as an operator. Obviously, anyone who is going to write a formal logic framework would want to define the following operators ;) : T |- phi: T proves phi T |-- phi: T proves phi

[Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Dmitri O.Kondratiev
Hello, Please advise on Haskell 2D plotting libraries to generate plots, histograms, power spectra, bar charts, errorcharts, scatterplots, etc, similar to what Matplotlib does: http://matplotlib.sourceforge.net/ Thanks! Dmitri ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Ivan Lazar Miljenovic
On 3 June 2011 21:39, Dmitri O.Kondratiev doko...@gmail.com wrote: Hello, Please advise on Haskell 2D plotting libraries to generate plots, histograms, power spectra, bar charts, errorcharts, scatterplots, etc, similar to what Matplotlib does: http://matplotlib.sourceforge.net/ I was going

Re: [Haskell-cafe] Unbelievable parallel speedup

2011-06-03 Thread Thomas Schilling
While I would guess that your superlinear speedup is due to the large variance of your single-core case, it is indeed possible to have superlinear speedup. Say you have a problem set of size 32MB and an L2 cache of 8MB per core. If you run the same program on one CPU it won't fit into the cache,

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

2011-06-03 Thread John Goerzen
Nothing particularly lofty; just a realization that other people didn't really want to engage in the conversation about LGPL, and I ran out of time to do so myself. -- John On 06/02/2011 05:07 PM, Vo Minh Thu wrote: 2011/6/2 John Goerzenjgoer...@complete.org: Hi Jon all, I've decided that

Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Mario Blažević
On 11-06-03 06:00 AM, Yitzchak Gale wrote: Mario Blažević wrote: I don't know if this helps, but the incremental-parser library has exactly the combinator you're looking for. Wow, that is a beautiful implementation of a general parser library. So much simpler than Parsec. Thanks for

Re: [Haskell-cafe] Unbelievable parallel speedup

2011-06-03 Thread Yves Parès
I've enjoyed reading Simon Marlow's new tutorial on parallel and concurrent programming I am interested: where I this tutorial? 2011/6/3 John D. Ramsdell ramsde...@gmail.com I've enjoyed reading Simon Marlow's new tutorial on parallel and concurrent programming, and learned some surprisingly

Re: [Haskell-cafe] Unbelievable parallel speedup

2011-06-03 Thread Erlend Hamberg
On 3 June 2011 16:14, Yves Parès limestr...@gmail.com wrote: I am interested: where I this tutorial? https://github.com/simonmar/par-tutorial -- Erlend Hamberg ehamb...@gmail.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Gregory Collins
On Fri, Jun 3, 2011 at 11:52 AM, Yitzchak Gale g...@sefer.org wrote: Bryan O'Sullivan wrote: I'd like a no-copy combinator for the same reasons, but I think it's impossible to do without some low-level support. I wrote: ...does the internal representation easily admit such a combinator?

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Dmitri O.Kondratiev
On Fri, Jun 3, 2011 at 3:44 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 3 June 2011 21:39, Dmitri O.Kondratiev doko...@gmail.com wrote: Hello, Please advise on Haskell 2D plotting libraries to generate plots, histograms, power spectra, bar charts, errorcharts,

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Antoine Latter
On Fri, Jun 3, 2011 at 9:57 AM, Dmitri O.Kondratiev doko...@gmail.com wrote: On Fri, Jun 3, 2011 at 3:44 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 3 June 2011 21:39, Dmitri O.Kondratiev doko...@gmail.com wrote: Hello, Please advise on Haskell 2D plotting libraries to

[Haskell-cafe] [JOB] NYU's Center for Genomics and Systems Biology seeks Functional Programmer

2011-06-03 Thread Ashish Agarwal
Relevance to this list: The posting below is for an OCaml programmer but welcomes applications from Haskell programmers. Dear Functional Programmers, I am pleased to announce a job opportunity at The Center for Genomics and Systems Biology (CGSB) at New York University (NYU), located in the

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Malcolm Wallace
I tried gnuplot: Demo.hs:25:18: Could not find module `Paths_gnuplot': Use -v to see a list of the files searched for. Failed, modules loaded: none. Prelude Graphics.Gnuplot.Simple Where to get `Paths_gnuplot': module? $ cd gnuplot-0.4.2 $ cabal install # this generates

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Brandon Allbery
On Fri, Jun 3, 2011 at 05:19, Guy guytsalmave...@yahoo.com wrote: On 03/06/2011 12:01, Malcolm Wallace wrote: I believe the motivating example that persuaded the Language Committee to allow these symbols was      -- which is not of course used anywhere in the standard libraries, but is an

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Albert Y. C. Lai
I propose that only {- -} is comment; that is, -- is an operator token and not a marker of comments. Two birds in one stone: 1. Removes the cause of the mistake of writing a haddock comment as --| That is, if no one writes any comment with -- then no one writes any haddock comment with --|

Re: [Haskell-cafe] Iteratees again

2011-06-03 Thread Brandon Allbery
On Fri, Jun 3, 2011 at 03:53, Ketil Malde ke...@malde.org wrote: dm-list-haskell-c...@scs.stanford.edu writes: leaking file descriptors ...until they are garbage collected.  I tend to consider the OS fd limitation an OS design error - I've no idea why there should be some arbitrary limit on

Re: [Haskell-cafe] Attoparsec concatenating combinator

2011-06-03 Thread Bryan O'Sullivan
On Fri, Jun 3, 2011 at 2:52 AM, Yitzchak Gale g...@sefer.org wrote: I was thinking of even lower level: allocating a moderate chunk of memory and writing the results directly into it consecutively as a special case. Surely that would save only one copy compared to creating a list of results

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Andrew Coppin
On 03/06/2011 05:02 PM, Albert Y. C. Lai wrote: I propose that only {- -} is comment; that is, -- is an operator token and not a marker of comments. I'm curious to know why anybody thought that -- was a good comment marker in the first place. (I'm curious because Haskell isn't the only

[Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Greg Weber
I have been trying to make a few edits to the haskell wiki and find it an excruciating process when I press save and then have to wait a long time to see if the save will go through. I just clicked on the introduction page and it may have took an entire minute to load. Can we put at the top: this

[Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread John D. Ramsdell
I rarely use a Mac because it is too cute, but I bought one for my wife. I'd like to install GHC on her Mac just to test Haskell Platform and cabal install. (I rarely use Windows too, but testing GHC cabal install is completely painless.) To do a quick test, do I really have to register as an

Re: [Haskell-cafe] Comment Syntax

2011-06-03 Thread Ivan Lazar Miljenovic
On 4 June 2011 02:02, Albert Y. C. Lai tre...@vex.net wrote: I propose that only {- -} is comment; that is, -- is an operator token and not a marker of comments. Two birds in one stone: 1. Removes the cause of the mistake of writing a haddock comment as --| That is, if no one writes any

Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Eric Rasmussen
This is a bit of a tangent, but has anyone developed wiki software in Haskell? If anyone is working on this or interested in working on it, I'd like to help. I've built simple wiki applications with Python web frameworks and have been looking for a good project to start learning one of the

Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Christopher Done
On 3 June 2011 22:17, Eric Rasmussen ericrasmus...@gmail.com wrote: This is a bit of a tangent, but has anyone developed wiki software in Haskell? They have[1][2], but there's always room for more. [1]: http://hackage.haskell.org/package/gitit [2]: http://hackage.haskell.org/package/Flippi

Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Ivan Lazar Miljenovic
On 4 June 2011 06:17, Eric Rasmussen ericrasmus...@gmail.com wrote: This is a bit of a tangent, but has anyone developed wiki software in Haskell? http://hackage.haskell.org/package/gitit -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Judah Jacobson
Hi John, You should be able to install the Apple Developer Tools directly from one of the software installation DVDs that come with the Mac. If you're not downloading the tools from online, you shouldn't need to register. Best, -Judah On Fri, Jun 3, 2011 at 1:03 PM, John D. Ramsdell

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Daniel Peebles
I thought Apple had stopped bundling the dev tools with installation DVDs? On Fri, Jun 3, 2011 at 4:32 PM, Judah Jacobson judah.jacob...@gmail.comwrote: Hi John, You should be able to install the Apple Developer Tools directly from one of the software installation DVDs that come with the

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Henning Thielemann
Malcolm Wallace schrieb: I tried gnuplot: Demo.hs:25:18: Could not find module `Paths_gnuplot': Use -v to see a list of the files searched for. Failed, modules loaded: none. Prelude Graphics.Gnuplot.Simple Where to get `Paths_gnuplot': module? $ cd gnuplot-0.4.2 $ cabal

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Dmitri O.Kondratiev
On Sat, Jun 4, 2011 at 12:55 AM, Henning Thielemann schlepp...@henning-thielemann.de wrote: Malcolm Wallace schrieb: I tried gnuplot: Demo.hs:25:18: Could not find module `Paths_gnuplot': Use -v to see a list of the files searched for. Failed, modules loaded: none.

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Nathan Howell
XCode 4 is for sale in the App Store for $5. You do need an account, but not a developer account... so it may be a bit more palatable. On Fri, Jun 3, 2011 at 1:03 PM, John D. Ramsdell ramsde...@gmail.comwrote: I rarely use a Mac because it is too cute, but I bought one for my wife. I'd like

Re: [Haskell-cafe] Matplotlib analog for Haskell?

2011-06-03 Thread Ivan Lazar Miljenovic
On 4 June 2011 07:11, Dmitri O.Kondratiev doko...@gmail.com wrote: So, if I got this right,  I should run: 'cabal install -fbuildExamples gnuplot' from gnuplot source root folder? You can either get the gnuplot tarball from Hackage, unpack it, and then within the directory do cabal install

Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Gwern Branwen
On Fri, Jun 3, 2011 at 4:17 PM, Eric Rasmussen ericrasmus...@gmail.com wrote: This is a bit of a tangent, but has anyone developed wiki software in Haskell? Gitit is the most developed one, and it's been suggested in the past that hawiki move over. It's not a good idea for a couple reasons,

Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-03 Thread Eric Rasmussen
Those are definitely valid concerns. Has anyone made a wiki-like site with Yesod? I hadn't heard of Yesod until I joined this mailing list, but I've seen quite a bit of buzz around it since then. If a large enough chunk of the community is backing a framework and focusing on making it secure and

[Haskell-cafe] Problem with linker

2011-06-03 Thread Alejandro Serrano Mena
Hi, I'm trying to use Hoogle as a library in my Summer of Code project. But when I try to compile using Cabal, I get the following error: Linking dist/build/scion-browser/scion-browser ... /home/serras/.cabal/lib/hoogle-4.2.4/ghc-7.0.2/libHShoogle-4.2.4.a(Serialise.o): In function `s1ePR_info':

Re: [Haskell-cafe] Problem with linker

2011-06-03 Thread Clint Moore
On Sat, Jun 04, 2011 at 01:17:03AM +0200, Alejandro Serrano Mena wrote: Hi, I'm trying to use Hoogle as a library in my Summer of Code project. But when I try to compile using Cabal, I get the following error: Linking dist/build/scion-browser/scion-browser ...

Re: [Haskell-cafe] Problem with linker

2011-06-03 Thread Rogan Creswick
On Fri, Jun 3, 2011 at 4:17 PM, Alejandro Serrano Mena trup...@gmail.com wrote: I've been looking for some information and it seems to be related with the fact that Hoogle first builds a library and then build an executable using the library, but all files get recompiled in that second pass.

Re: [Haskell-cafe] *GROUP HUG*

2011-06-03 Thread Michael Xavier
I just wanted to echo this a bit. I'm a Ruby on Rails developer in my day job. While I still enjoy ruby, I was very proud that my studies of Haskell helped me identify a problem a week or so ago that would be much more difficult to solve in an imperative language and benefits from laziness. While

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Donn Cave
Quoth Daniel Peebles pumpkin...@gmail.com, I thought Apple had stopped bundling the dev tools with installation DVDs? Do you have an install DVD with no Xcode on it? I have it on a 10.6 DVD, when would this have happened (or stopped happening)? Quoth Nathan Howell nathan.d.how...@gmail.com,