Re: [Haskell-cafe] Display an inferred type during compilation

2013-04-27 Thread Gwern Branwen
On Sat, Apr 27, 2013 at 12:55 PM, Corentin Dupont corentin.dup...@gmail.com wrote: can I ask the compiler to display the type of an inferred value during compile time? It would be great if I can output a string during compilation with the type. A little bit like running :type in GHCi, but

Re: [Haskell-cafe] Resource Limits for Haskell

2013-04-04 Thread Gwern Branwen
On Mon, Apr 1, 2013 at 5:56 PM, Edward Z. Yang ezy...@mit.edu wrote: http://ezyang.com/papers/ezyang13-rlimits.pdf Correct me if I'm wrong, but reading that I don't seem to see any tests against actual adversarial code - just checking that the limits kick in on a bunch of ordinary code.

Re: [Haskell-cafe] mueval, interpreter options

2013-04-02 Thread Gwern Branwen
On Tue, Apr 2, 2013 at 1:34 PM, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote: I don't understand mueval's design anyway here: do the interpreter options mean that these are automatically on, or just that the source text will be allowed to switch then on? (I'd prefer the latter.)

Re: [Haskell-cafe] Specialized Computer Architecture - A Question

2013-03-18 Thread Gwern Branwen
On Mon, Mar 18, 2013 at 4:31 PM, OWP owpmail...@gmail.com wrote: If I may ask, I'm not quite sure what O(2^n) and O(1) are? Just a metaphor using algorithmic complexity, is all. I'm curious, were not all these built on the foundation of Moore's Law? Everything Vigoda lists has Moore's Law in

Re: [Haskell-cafe] Specialized Computer Architecture - A Question

2013-03-17 Thread Gwern Branwen
On Sun, Mar 17, 2013 at 5:56 PM, OWP owpmail...@gmail.com wrote: These stock architectures, were they really so good that they out performed the specialized ones on it's own merits or was this mainly due to Moore's Law on transistors? In other words, suppose we separate Moore's Law from the

Re: [Haskell-cafe] Resource Limits for Haskell

2013-03-15 Thread Gwern Branwen
On Fri, Mar 15, 2013 at 5:17 PM, Edward Z. Yang ezy...@mit.edu wrote: There is a lot of subtlety in this space, largely derived from the complexity of interpreting GHC's current profiling information. Your questions, comments and suggestions are greatly appreciated! How secure is this? One of

Re: [Haskell-cafe] Maintaining lambdabot

2013-02-20 Thread Gwern Branwen
On Wed, Feb 20, 2013 at 12:59 PM, Jan Stolarek jan.stola...@p.lodz.pl wrote: Exactly. This allows to use and develop these packages independently of lambdabot and I consider that a Good Thing. I'm also much in favor of using git, because github allows easy collaboration between community

Re: [Haskell-cafe] Maintaining lambdabot

2013-02-20 Thread Gwern Branwen
On Wed, Feb 20, 2013 at 1:35 PM, Jan Stolarek jan.stola...@p.lodz.pl wrote: Gwern, and what do you think about James' fork of lambdabot? It seems that there was a lot of work put into it and that this is indeed a good starting point to continue development. I haven't looked at the diffs; if

Re: [Haskell-cafe] Maintaining lambdabot

2013-02-19 Thread Gwern Branwen
On Tue, Feb 19, 2013 at 5:36 PM, Jan Stolarek jan.stola...@p.lodz.pl wrote: - remove unlambda, brainfuck and show from the repo. They are on hackage, no need to keep them here - these packages aren't even used in the build process. Where will they go? -- gwern http://www.gwern.net

Re: [Haskell-cafe] A list of Haskell-related quotes?

2013-02-06 Thread Gwern Branwen
On Wed, Feb 6, 2013 at 5:36 PM, Petr Pudlák petr@gmail.com wrote: Does anybody collect them or know about such a collection? You can look at the Haskell Weekly News quote sections, or you can download the lambdabot source repo and read the State/quote file. -- gwern http://www.gwern.net

Re: [Haskell-cafe] Substantial (1:10??) system dependencies of runtime performance??

2013-02-02 Thread Gwern Branwen
On Sat, Feb 2, 2013 at 3:19 PM, Nick Rudnick nick.rudn...@gmail.com wrote: Roughly, I would say the differences in runtime can reach a factor as much as 1:10 at many times -- and so I am curious whether this subject has already been observed or even better discussed elsewhere. I have spoken to

Re: [Haskell-cafe] Most used functions in hackage

2013-02-01 Thread Gwern Branwen
One thing you could do is download Hackage (easy enough with a little scripting of 'cabal list'; see for example http://www.haskell.org/pipermail/haskell-cafe/2011-July/093669.html ), unpack, and use Language.Haskell.Exts to parse every Haskell file. Here are two examples from the past: 1.

[Haskell-cafe] Haskell Summers of Code retrospective (updated for 2012)

2013-01-01 Thread Gwern Branwen
The Wheel turns, and months come and pass, leaving web links that fade into 403 Forbiddens; a wind rose in NYC, whispering of the coming Winter... As is now customary for me, I've looked into how the 2012 SoCs went - the better to feed my misanthropic heart by mocking the students who failed my

Re: [Haskell-cafe] delete http://www.haskell.org/haskellwiki/Haskell_IDE

2012-11-28 Thread Gwern Branwen
On Wed, Nov 28, 2012 at 3:24 PM, Roman Beslik rabes...@gmail.com wrote: A humble link What links here to the right will help you find those pages. Only for wikipages, nowhere else on the Internet. -- gwern http://www.gwern.net ___ Haskell-Cafe

Re: [Haskell-cafe] size of Haskell Platform

2012-11-11 Thread Gwern Branwen
On Sun, Nov 11, 2012 at 11:59 AM, Doug McIlroy d...@cs.dartmouth.edu wrote: So it seems to be with Haskell Platform, which aims to include all you need to get up and running--an extensive set of standard libraries and utilities with full documentation. I get the impression that the Platform is

Re: [Haskell-cafe] [Off-topic] How unimportant it is whether submarines can swim (EWD1056)

2012-10-26 Thread Gwern Branwen
On Fri, Oct 26, 2012 at 4:51 PM, Henk-Jan van Tuyl hjgt...@chello.nl wrote: L.S., I thought you might be interested to know, that I have translated one of prof. Edsger W. Dijkstra's writings to English[0]. I will submit this translation to the E. W. Dijkstra Archive of the University of

Re: [Haskell-cafe] Hackage Package Discoverability

2012-10-23 Thread Gwern Branwen
On Tue, Oct 23, 2012 at 1:53 AM, Myles C. Maxfield myles.maxfi...@gmail.com wrote: Is there a better way to make this algorithm discoverable? How about deprecation pragmas? http://www.haskell.org/ghc/docs/7.2.2/html/users_guide/pragmas.html -- gwern http://www.gwern.net

Re: [Haskell-cafe] Getting PID of a child process

2012-10-18 Thread Gwern Branwen
On Thu, Oct 18, 2012 at 5:03 PM, Jason Dusek jason.du...@gmail.com wrote: For diagnostic purposes, I'd like to print the PID of the process attached to this handle -- how best to do that? In Mueval when I wanted the PID (so I could later send sigkills), I did this: hdl - runProcess

Re: [Haskell-cafe] How to take a minimum sub list that only contain certain number of elements of certain type?

2012-09-25 Thread Gwern Branwen
On Tue, Sep 25, 2012 at 1:42 PM, Rishabh Jain rishab...@live.com wrote: f x 0 = [] f (x:xs) y | x `mod` 2 == 0 = x : (f xs y) | otherwise = x : (f xs (y-1)) f [0..] 4 [0,1,2,3,4,5,6,7] Tsk, tsk. So ugly. How's this: let f x = take x . filter odd f 4 [0..] ~ [1, 3, 5, 7] Notice that 0 is

Re: [Haskell-cafe] How to take a minimum sub list that only contain certain number of elements of certain type?

2012-09-25 Thread Gwern Branwen
On Tue, Sep 25, 2012 at 8:17 PM, Richard O'Keefe o...@cs.otago.ac.nz wrote: Wrong. The original poster gave an explicit example in which even elements were *retained* in the output, they just weren't *counted*. You are at least the fourth person to email me now to point this out. I'm glad I

Re: [Haskell-cafe] How to take a minimum sub list that only contain certain number of elements of certain type?

2012-09-25 Thread Gwern Branwen
On Tue, Sep 25, 2012 at 8:45 PM, Richard O'Keefe o...@cs.otago.ac.nz wrote: That doesn't work either. Consider the list [1,1,1,1,1]. The element just after the 5th odd number in the list is 1; takeWhile (/= 1) will thus return [] instead of [1,1,1,1]. I'm not sure that OP would prefer

Re: [Haskell-cafe] Darcs fetches too little files

2012-08-24 Thread Gwern Branwen
On Fri, Aug 24, 2012 at 4:47 PM, Henk-Jan van Tuyl hjgt...@chello.nl wrote: I am trying to fetch wxHaskell with the command darcs get --lazy http://code.haskell.org/wxhaskell/ but there are much too little files downloaded; what could be the problem? I'm working on Windows XP, both in an

Re: [Haskell-cafe] [Haskell] Spam on the Haskell wiki

2012-08-04 Thread Gwern Branwen
On Fri, Aug 3, 2012 at 10:34 PM, damodar kulkarni kdamodar2...@gmail.com wrote: So, another doubt, if detecting spam is trivial, then why not just send the detected spam to trash directly without any human inspection? This may mean some trouble for the posters due to false positives; but the

Re: [Haskell-cafe] [Haskell] Spam on the Haskell wiki

2012-08-03 Thread Gwern Branwen
On Mon, Jul 30, 2012 at 6:59 PM, Alexander Solla alex.so...@gmail.com wrote: We could even have a report spam button on each page, and if enough users click on it (for a given revision), the revision gets forwarded to a moderator. This would be useless. The problem is not detecting spam, since

Re: [Haskell-cafe] lambdabot-4.2.3.3

2012-07-18 Thread Gwern Branwen
On Wed, Jul 18, 2012 at 11:12 AM, James Cook mo...@deepbondi.net wrote: It diverged from the official version quite a while ago, but it builds on the latest GHC and uses Safe Haskell for the @eval module. That doesn't sound very safe. How does it handle all the DoS attacks etc in the mueval

Re: [Haskell-cafe] Finding longest common prefixes in a list

2012-01-23 Thread Gwern Branwen
On Sat, Jan 21, 2012 at 8:18 AM, Twan van Laarhoven twa...@gmail.com wrote: Notice that there are lots of miku-X prefixes found. This is probably not what you want. What exactly do you want the algorithm to do? For example, is obviously a prefix of every string, but it is not very long. On the

[Haskell-cafe] Finding longest common prefixes in a list

2012-01-20 Thread Gwern Branwen
Recently I wanted to sort through a large folder of varied files and figure out what is a 'natural' folder to split out, where natural means something like 4 files with the same prefix. (This might be author, genre, subject, whatever I felt was important when I was naming the file.) Now usually I

Re: [Haskell-cafe] Finding longest common prefixes in a list

2012-01-20 Thread Gwern Branwen
On Fri, Jan 20, 2012 at 1:57 PM, Twan van Laarhoven twa...@gmail.com wrote: Here is some example code (untested): Well, you're right that it doesn't work. I tried to fix the crucial function, 'atLeastThisManyDescendants', but it's missing something because varying parts doesn't much affect the

Re: [Haskell-cafe] Pattern-matching substitution for haskell-src-exts?

2012-01-18 Thread Gwern Branwen
On Wed, Jan 18, 2012 at 3:05 PM, Conal Elliott co...@conal.net wrote: Has anyone implemented pattern-matching substitution for haskell-src-exts?  - Conal I don't know what exactly you are looking for, but I remember banging together a function-name search script using haskell-src-exts and

[Haskell-cafe] Haskell Summers of Code retrospective (updated for 2011)

2011-12-10 Thread Gwern Branwen
The Wheel turns, and months come and pass, leaving blog posts that fade into 404s; a wind rose in Mountain View, whispering of the coming Winter... Tonight I sat down and finally looked into the 2011 SoCs to see how they turned out and judge them according to my whimsically arbitrary and

Re: [Haskell-cafe] Google Knol and haskellers

2011-10-13 Thread Gwern Branwen
On Thu, Oct 13, 2011 at 11:52 AM, Sean Leather leat...@cs.uu.nl wrote: On Wed, Oct 12, 2011 at 12:35, Yves Parès wrote: I re-head recently about Google Knol, which is IMO some crossing-over between a wiki and a blog. Are there some people that use it here to write haskell-related articles

Re: [Haskell-cafe] Solving the configuration problem with parametrized modules

2011-09-05 Thread Gwern Branwen
On Mon, Sep 5, 2011 at 1:43 PM, Joachim Breitner m...@joachim-breitner.de wrote: Do you think this could be useful (from a user point of view)? Has this idea maybe already been proposed? How does it compare with Oleg's typeclass approach? http://okmij.org/ftp/Haskell/types.html#Prepose --

Re: [Haskell-cafe] Truly Really Off-topic: (Was: Mathematics)

2011-08-29 Thread Gwern Branwen
On Mon, Aug 29, 2011 at 11:19 AM, Jerzy Karczmarczuk jerzy.karczmarc...@unicaen.fr wrote: It is unsourced, repeated without discernment, and Dijkstra cannot confirm (or deny) it any more. Somehow I cannot believe he said that... Dijkstra began to study physics, and a physicist would be

Re: [Haskell-cafe] Truly Really Off-topic: (Was: Mathematics)

2011-08-29 Thread Gwern Branwen
On Mon, Aug 29, 2011 at 12:18 PM, aditya siram aditya.si...@gmail.com wrote: I'm afraid you're going to have a lot of OCD's completely miss the point of your email and annoy you with comments about the quote which you'll then have to refute. I dunno, I found the quote interesting. I had typed

Re: [Haskell-cafe] Truly Really Off-topic: (Was: Mathematics)

2011-08-29 Thread Gwern Branwen
On Mon, Aug 29, 2011 at 11:47 AM, Gwern Branwen gwe...@gmail.com wrote: As well, in no Google hit did I find any specific citation to Dijkstra. Hence, I conclude that because it is insightful and sounds like Dijkstra (eg. his submarine quote), it has become apocryphally associated with him

Re: [Haskell-cafe] Parsing cabal files to calculate average number of dependencies

2011-07-09 Thread Gwern Branwen
On Fri, Jul 1, 2011 at 5:37 PM, Gwern Branwen gwe...@gmail.com wrote: Looking at it, the index tarball contains the .cabal files for all versions known to Hackage, which isn't necessarily the interesting set of cabal files - I'm usually more interested in just the cabal files of the latest

[Haskell-cafe] Parsing cabal files to calculate average number of dependencies

2011-07-01 Thread Gwern Branwen
Athas on #haskell wondered how many dependencies the average Haskell package had. I commented that it seemed like some fairly simple scripting to find out, and as these things tend to go, I wound up doing a complete solution myself. First, we get most/all of Hackage locally to examine, as

Re: [Haskell-cafe] Parsing cabal files to calculate average number of dependencies

2011-07-01 Thread Gwern Branwen
On Fri, Jul 1, 2011 at 4:49 PM, L Corbijn aspergesoe...@gmail.com wrote: Is this including or exluding 'or'-ed dependency lists like http://hackage.haskell.org/package/hugs2yc ? Excluding, it seems. When I run the script on that tarball: $ tar --wildcards *.cabal -Oxf `find . -name *.tar.gz |

Re: [Haskell-cafe] Parsing cabal files to calculate average number of dependencies

2011-07-01 Thread Gwern Branwen
On Fri, Jul 1, 2011 at 5:23 PM, Rogan Creswick cresw...@gmail.com wrote: I think the index tarball has all the info you need, and would be faster to retrieve / process, if you or anyone else needs to get the .cabal files again: http://hackage.haskell.org/packages/archive/00-index.tar.gz

Re: [Haskell-cafe] Parsing cabal files to calculate average number of dependencies

2011-07-01 Thread Gwern Branwen
Another thing you can do along the same lines is generate a script to download all the repos from packages which declare repos. Some ugly code: import Data.Maybe (fromJust) import Distribution.PackageDescription import Distribution.PackageDescription.Parse import Control.Monad (unless) main ::

Re: [Haskell-cafe] haskellwiki slow/unresponsive

2011-06-06 Thread Gwern Branwen
On Mon, Jun 6, 2011 at 4:45 PM, Greg Weber g...@gregweber.info wrote: Gitit uses darcs or git to store data, but through the command line interfaces. Unfortunately to my knowledge darcs does not expose a library interface. Gitit could be made faster and more secure by interfacing with

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] lambdabot hoogle

2011-05-25 Thread Gwern Branwen
On Wed, May 25, 2011 at 6:22 AM, Jacek Generowicz jacek.generow...@cern.ch wrote: I had assumed that it connected to a server. It did at one point, but Hoogle had downtime and the local hoogle command was just as good and worked offline. (Maybe my assumption was not entirely unfounded, given

Re: [Haskell-cafe] lambdabot hoogle

2011-05-25 Thread Gwern Branwen
On Wed, May 25, 2011 at 11:08 AM, Jacek Generowicz jacek.generow...@cern.ch wrote: Quite possibly not, but it would it be too much to ask, to have the documentation mention that they need to be installed separately if you intend to use them through lambdabot? I've just added them to the

Re: [Haskell-cafe] lambdabot check

2011-05-24 Thread Gwern Branwen
On Tue, May 24, 2011 at 7:00 AM, Jacek Generowicz jacek.generow...@cern.ch wrote: I've installed lambdabot, but check within it seems to be broken: the only answer it ever gives is Terminated. For example: lambdabot check True  Terminated lambdabot quickCheck works just fine in a GHCi

Re: [Haskell-cafe] Downloading Haskell repos from GitHub

2011-03-20 Thread Gwern Branwen
On Fri, Apr 30, 2010 at 12:02 PM, Gwern Branwen gwe...@gmail.com wrote: On Fri, Apr 30, 2010 at 11:51 AM, Jesper Louis Andersen jesper.louis.ander...@gmail.com wrote: On Fri, Apr 30, 2010 at 5:38 PM, Gwern Branwen gwe...@gmail.com wrote: Nothing in http://develop.github.com/ seems especially

Re: [Haskell-cafe] ANN: unordered-containers - a new, faster hashing-based containers library

2011-02-23 Thread Gwern Branwen
On Wed, Feb 23, 2011 at 1:18 PM, Johan Tibell johan.tib...@gmail.com wrote: Could you manually look at some of them to see if you find something interesting. In particular `Set.size s == 0` (a common use of size in imperative languages) could be replaced by `Set.null s`. You could look at

Re: [Haskell-cafe] Why is there no splitSeperator function in Data.List

2011-02-12 Thread Gwern Branwen
On Sat, Feb 12, 2011 at 11:00 AM, Robert Clausecker fuz...@gmail.com wrote: Is there any reason, that one can't find a function that splits a list at a seperator in the standard library? I imagined something like this:    splitSeperator :: Eq a = a - [a] - [[a]]    splitSeperator ','

[Haskell-cafe] Haskell Summers of Code retrospective (updated for 2010)

2011-02-09 Thread Gwern Branwen
2 years ago in February 2009, I wrote up a history of Summers of Code through 2008 (http://www.haskell.org/pipermail/haskell-cafe/2009-February/055489.html). But the Wheel turns, and years come and pass, leaving memories that fade into 404s; a wind rose in Mountain View, whispering of the coming

[Haskell-cafe] Problem with xhtml 1.5.1.1: html tags are split

2011-02-05 Thread Gwern Branwen
On Thu, May 13, 2010 at 11:38 AM, Gwern Branwen gwe...@gmail.com wrote: On Tue, May 11, 2010 at 3:00 AM, Bjorn Bringert bj...@bringert.net wrote: I support finding a new maintainer. Alright; as the old maintainer, I guess it falls on you to advertise on -cafe and libraries. Has a request

Re: [Haskell-cafe] Automatically move cursor focus in split window in haskell-mode in emacs on load (C-c C-l) command?

2011-01-30 Thread Gwern Branwen
On Sun, Jan 30, 2011 at 11:30 AM, JETkoten jetko...@gmail.com wrote: The way it defaults to now is that the cursor stays in the topmost editing half of the split screen, and I inevitably begin typing and mess up my code and have to do some backspacing and then mouse over to the bottom half.

Re: [Haskell-cafe] Building lambdabot

2011-01-20 Thread Gwern Branwen
On Thu, Jan 20, 2011 at 3:24 AM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 20 January 2011 01:51, Gwern Branwen gwe...@gmail.com wrote: It had a lot of issues which meant it wouldn't build anywhere, where at least the Hackage version worked at some point. I spent this evening

Re: [Haskell-cafe] Building lambdabot

2011-01-20 Thread Gwern Branwen
On Thu, Jan 20, 2011 at 12:45 PM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 20 January 2011 17:30, Gwern Branwen gwe...@gmail.com wrote: * You need to loosen the base upper bound to 4.4 * If using base = 4, you need to depend on the syb package as well (current version 0.3) Would

Re: [Haskell-cafe] Building lambdabot

2011-01-20 Thread Gwern Branwen
On Thu, Jan 20, 2011 at 5:33 PM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 20 January 2011 20:50, Gwern Branwen gwe...@gmail.com wrote: Notice the flag defaults to False, not True. When I tried it with True, I got: $ cabal install Resolving dependencies... cabal: dependencies

Re: [Haskell-cafe] Building lambdabot

2011-01-19 Thread Gwern Branwen
On Tue, Jan 18, 2011 at 3:41 PM, Max Bolingbroke batterseapo...@hotmail.com wrote: That sounds like a good thing to do. Also, oo you know if there's any reason that the most recent lambdabot is not pushed to Hackage? That might make things even easier for others who wish to install it. It

Re: [Haskell-cafe] Building lambdabot

2011-01-07 Thread Gwern Branwen
On Fri, Jan 7, 2011 at 11:00 AM, Max Bolingbroke batterseapo...@hotmail.com wrote: Well, I tried to see if I could reproduce your problem but didn't get to this stage. It looks like v4.2.2.1 from Hackage hasn't been updated for donkeys years and breaks massively because of at least the new

[Haskell-cafe] ANN: archiver 0.1 and 0.2

2010-12-10 Thread Gwern Branwen
I'd like to announce a small utility and library which builds on my WebArchive plugin for gitit: archiver http://hackage.haskell.org/package/archiver Source is available via `darcs get http://community.haskell.org/~gwern/archiver/`. The library half is a simple wrapper around the appropriate HTTP

Re: [Haskell-cafe] Haskell and a complete mail client lib?

2010-10-27 Thread Gwern Branwen
2010/10/27 Don Stewart d...@galois.com: gue.schmidt: Hi all, do we Haskellers have a complete Mail client library? As always, look on Hackage:     http://www.google.com/search?hl=enas_sitesearch=hackage.haskell.org/packageas_q=email Besides the tagged packages, there are a few other

Re: [Haskell-cafe] back doors into the IO monad

2010-10-24 Thread Gwern Branwen
On Sun, Oct 24, 2010 at 10:22 AM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: On Sun, 24 Oct 2010 00:28:37 +0200, Manlio Perillo manlio_peri...@libero.it wrote: Hi. What are the available methods to execute IO actions from pure code? I know only unsafePerformIO and foreign import

Re: [Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-02 Thread Gwern Branwen
On Sat, Oct 2, 2010 at 4:13 PM, Michael Snoyman mich...@snoyman.com wrote: I understand the advantages to splitting into multiple pages, but on the other hand it *does* make it more difficult to locate information. My guess is a good search function on the wiki will make that point moot.

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

2010-10-01 Thread Gwern Branwen
On Fri, Oct 1, 2010 at 5:00 PM, Matthias Kilian k...@outback.escape.de wrote: On Fri, Oct 01, 2010 at 09:29:32PM +0100, Malcolm Wallace wrote: The slides are here:   http://donsbot.wordpress.com/2010/10/01/hackage-cabal-and-the-haskell-platform-the-second-year/ And the video is here:  

Re: [Haskell-cafe] Re: Haskell at bettercodes.org

2010-09-22 Thread Gwern Branwen
On Wed, Sep 22, 2010 at 11:15 AM, David Sankel cam...@gmail.com wrote: I can understand why it would be slightly better for any website to not require JavaScript clients since it becomes a bit more accessible. I'm confused though about why being a professional developer site would make this

Re: [Haskell-cafe] Changing my Profile

2010-08-24 Thread Gwern Branwen
On Tue, Aug 24, 2010 at 2:48 AM, David Virebayre dav.vire+hask...@gmail.com wrote: 2010/8/23 Christopher Done chrisd...@googlemail.com: Any suggestions would be appreciated. Isn't there the possibility to mute a thread in gmail ? You need to activate keyboard shortcuts, then ? gives you a

Re: [Haskell-cafe] Re: The site has been exploited (again)

2010-07-12 Thread Gwern Branwen
On Sun, Jul 11, 2010 at 2:28 PM, Mike Dillon m...@embody.org wrote: begin Mike Dillon quotation: Being that there is only one active admin on the Haskell.org wiki (User:Ashley Y), I believe the fact that this page is editable by any user is a policy decision to allow the community to

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-19 Thread Gwern Branwen
On Sat, Jun 19, 2010 at 2:45 PM, Mike Dillon m...@embody.org wrote: Actually, it looks like MediaWiki:Newarticletext probably needs to be edited as well since that's what you see when you click through a red link. The others are for the top text after a search using Go and Search respectively.

Re: [Haskell-cafe] Language Shootout reverse-complement benchmark

2010-06-01 Thread Gwern Branwen
On Tue, Jun 1, 2010 at 10:25 AM, David Leimbach leim...@gmail.com wrote: I'm still trying to figure out what the point of the shootout really is.  If there's no dedicated folks working with a language there, trying to make things run faster, a language will come out looking inefficient

Re: [Haskell-cafe] How efficient is read?

2010-05-11 Thread Gwern Branwen
On Tue, May 11, 2010 at 12:16 AM, Tom Hawkins tomahawk...@gmail.com wrote: The tarball was missing its Rules.hs; as it happens, GHC has a module named Rules.hs as well, hence the confusing error. I've uploaded a fresh one that should work. Thanks.  This builds and installs fine. But I

Re: [Haskell-cafe] How efficient is read?

2010-05-10 Thread Gwern Branwen
On Mon, May 10, 2010 at 4:50 PM, Tom Hawkins tomahawk...@gmail.com wrote: In fact, if you just want Read-like functionality for a set of Haskell datatypes, use polyparse: the DrIFT tool can derive polyparse's Text.Parse class (the equivalent of Read) for you, so you do not even need to write

Re: [Haskell-cafe] Re: Haskell and scripting

2010-05-05 Thread Gwern Branwen
On Wed, May 5, 2010 at 4:29 PM, Limestraël limestr...@gmail.com wrote: Yes, the xmonad approach is very neat, but I see 2 major (IMO) drawbacks to it: 1) The end-user has to have GHC, and all the necessary libraries to compile the configuration 2) A scripting language should be simple and

Re: [Haskell-cafe] Haskell and scripting

2010-05-03 Thread Gwern Branwen
On Mon, May 3, 2010 at 5:47 PM, Kyle Murphy orc...@gmail.com wrote: That's also the approach Yi uses. I'm fairly certain there's a library on hackage that makes writing up programs in that style fairly trivial, http://hackage.haskell.org/package/dyre -- gwern

Re: [Haskell-cafe] Typing Haskell in Haskell

2010-05-01 Thread Gwern Branwen
On Sat, May 1, 2010 at 10:05 AM, Aaron Gray aaronngray.li...@googlemail.com wrote: Hi, I am relatively new to Haskell. I am attempting to get Typing Haskell in Haskell to work on HUGS or GHC.    http://web.cecs.pdx.edu/~mpj/thih/ I am getting an error on loading SourcePrelude :-    Hugs :l

[Haskell-cafe] Downloading Haskell repos from GitHub

2010-04-30 Thread Gwern Branwen
Along the lines of http://blog.patch-tag.com/2010/03/13/mirroring-patch-tag/ for downloading all patch-tag.com repositories, I've begun to wonder how to download all Github repositories since more and more people seem to be using it. Nothing in http://develop.github.com/ seems especially useful

Re: [Haskell-cafe] Downloading Haskell repos from GitHub

2010-04-30 Thread Gwern Branwen
On Fri, Apr 30, 2010 at 11:51 AM, Jesper Louis Andersen jesper.louis.ander...@gmail.com wrote: On Fri, Apr 30, 2010 at 5:38 PM, Gwern Branwen gwe...@gmail.com wrote: Nothing in http://develop.github.com/ seems especially useful for grabbing the git:// URLs of all repos by language - just

Re: [Haskell-cafe] The instability of Haskell libraries

2010-04-23 Thread Gwern Branwen
On Fri, Apr 23, 2010 at 7:17 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Keith Sheppard keiths...@gmail.com writes: Set up a server to poll the Source-Repository head of every hackage package that includes one in it's cabal file, then rerun the build any time a change is

Re: [Haskell-cafe] problem with cabal on snow leopard

2010-04-17 Thread Gwern Branwen
On Sat, Apr 17, 2010 at 5:30 PM, Carter Schonwald carter.schonw...@gmail.com wrote: Hello all, I can't seem to find it documented anywhere as to the default directories that cabal puts its information in  (its certainly not in ~/.cabal ),  as I'm finding that even when I try to do a reinstall

Re: [Haskell-cafe] What is the consensus about -fwarn-unused-do-bind ?

2010-04-09 Thread Gwern Branwen
On Fri, Apr 9, 2010 at 10:20 AM, Neil Brown nc...@kent.ac.uk wrote: Ivan Lazar Miljenovic wrote: As of 6.12.1, the new -fwarn-unused-do-bind warning is activated with -Wall.  This is based off a bug report by Neil Mitchell: http://hackage.haskell.org/trac/ghc/ticket/3263 . However, does it

Re: [Haskell-cafe] Simple game: a monad for each player

2010-04-08 Thread Gwern Branwen
On Thu, Apr 8, 2010 at 4:08 PM, Yves Parès limestr...@gmail.com wrote: Hello Cafe, I have a question about program design. Let's say I have a simple sequential game (a TicTacToe for instance, but with more than 2 players). I have a Player datatype which is like: data Player m = Player {  

Re: [Haskell-cafe] [OT?] Haskell-inspired functions for BASH

2010-04-06 Thread Gwern Branwen
On Tue, Apr 6, 2010 at 11:17 AM, Stephen Tetley stephen.tet...@gmail.com wrote: On 6 April 2010 15:09, Mario Blažević mblaze...@stilo.com wrote:        A question of my own: is there any written design (an academic paper would be perfect) of a functional shell language? Olin Shivers has

Re: [Haskell-cafe] Hackage accounts and real names

2010-04-05 Thread Gwern Branwen
On Sun, Apr 4, 2010 at 5:28 PM, David House dmho...@gmail.com wrote: Hi, An issue came up on #haskell recently with Hackage accounts requiring real names. The person in question (who didn't send this email as he's wishing to remain anonymous) applied for a Hackage account and was turned

Re: [Haskell-cafe] [OT?] Haskell-inspired functions for BASH

2010-04-01 Thread Gwern Branwen
On Thu, Apr 1, 2010 at 11:13 AM, Jeremy Shaw jer...@n-heptane.com wrote: fps is what we now call bytestring. Alas, hsplugins is dead. hsplugins is useful, but needs to be rewritten for modern GHC :( - jeremy I never looked into hsplugins too carefully. Did it offer anything that Hint doesn't

Re: [Haskell-cafe] ANN: Salvia-1.0.0

2010-03-23 Thread Gwern Branwen
On Tue, Mar 23, 2010 at 9:27 AM, Bas van Dijk v.dijk@gmail.com wrote: On Tue, Mar 23, 2010 at 2:13 PM, Sebastiaan Visser sfvis...@cs.uu.nl wrote: Nice! This is certainly worth it. I'm glad you like it. Sebastiaan, I made the same mistake as threadmanager does: I forgot to block before

Re: [Haskell-cafe] Prelude.undefined

2010-03-03 Thread Gwern Branwen
On Wed, Mar 3, 2010 at 10:56 AM, Tom Hawkins tomahawk...@gmail.com wrote: On Wed, Mar 3, 2010 at 7:24 AM, Alexander Dunlap alexander.dun...@gmail.com wrote: On Tue, Mar 2, 2010 at 9:06 PM, Tom Hawkins tomahawk...@gmail.com wrote: How do I track down an reference to an undefined value?  My

Re: [Haskell-cafe] Has anybody translated Douglas Hofstadter's Scientific American articles introducting Scheme to a general audience into Haskell?

2010-03-02 Thread Gwern Branwen
On Tue, Mar 2, 2010 at 1:04 AM, Benjamin L. Russell dekudekup...@yahoo.com wrote: There is an interesting, if somewhat dated, suggestion on Lambda the Ultimate (see http://lambda-the-ultimate.org/node/1748) that someone translate Doug Hofstadter's Scientific American columns introducing Scheme

Re: [Haskell-cafe] Function to detect duplicates

2010-02-24 Thread Gwern Branwen
2010/2/23 Jonas Almström Duregård jonas.dureg...@gmail.com: Hi Rafael, I assume you will perform this operation on some very large lists, or performance would not be an issue. Have you tested if your optimized version is better than your initial one? You should compare your implementation

Re: [Haskell-cafe] What happened in Ohloh?

2010-02-19 Thread Gwern Branwen
On Fri, Feb 19, 2010 at 5:20 PM, Paul Johnson p...@cogito.org.uk wrote: If you go to http://www.ohloh.net/languages/compare?l0=haskellmeasure=projects and look at the number (not percentage) of Haskell projects you see it rise exponentially until the start of 2008 and then suddenly drop away.  

Re: [Haskell-cafe] Haskell and the Job Market, e.g. with Google

2010-02-11 Thread Gwern Branwen
On Thu, Feb 11, 2010 at 11:49 AM, Hans van Thiel hthiel.c...@zonnet.nl wrote: Hello, Somewhat in response to the original post about Haskell engineers I, II and III. This confirms the remark that Haskell experience is now being appreciated, though not (yet) used (very much). Steven Grant,

Re: [Haskell-cafe] Links to darcs.haskel.org in the haskellwiki

2010-02-08 Thread Gwern Branwen
On Mon, Feb 8, 2010 at 5:35 PM, Henning Thielemann schlepp...@henning-thielemann.de wrote: Ketil Malde schrieb: Henk-Jan van Tuyl hjgt...@chello.nl writes: There are a lot of links in the haskellwiki that point to projects at darcs.haskel.org; I hope that anyone who moves a project, looks

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-05 Thread Gwern Branwen
On Fri, Feb 5, 2010 at 6:20 AM, Sittampalam, Ganesh ganesh.sittampa...@credit-suisse.com wrote: Gwern Branwen wrote: On Wed, Feb 3, 2010 at 8:14 PM, Henk-Jan van Tuyl hjgt...@chello.nl wrote: On Wed, 03 Feb 2010 23:34:34 +0100, Neil Mitchell ndmitch...@gmail.com wrote: Hi Gwern, Please

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-05 Thread Gwern Branwen
On Fri, Feb 5, 2010 at 3:38 PM, Niklas Broberg niklas.brob...@gmail.com wrote: I'm at a loss as to what criteria is actually used to judge success here. It seems to me a bit like the eternal discussion between basic research and applied research. Just because something

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-04 Thread Gwern Branwen
On Wed, Feb 3, 2010 at 8:14 PM, Henk-Jan van Tuyl hjgt...@chello.nl wrote: On Wed, 03 Feb 2010 23:34:34 +0100, Neil Mitchell ndmitch...@gmail.com wrote: Hi Gwern, Please update: haskell-src-exts - haskell-src **Unknown** This project was an unqualified success.  haskell-src-exts is now one

Re: [Haskell-cafe] Failure to load hmatric

2010-02-02 Thread Gwern Branwen
On Tue, Feb 2, 2010 at 1:59 PM, d...@patriot.net wrote: OK, I'm working on matrix stuff in Haskell now (I've been trying to get the professor to approve that) and when I use cabal install to install hmatrix, it fails at HUnit with: --- Configuring HUnit-1.2.2.1... Preprocessing

Re: [Haskell-cafe] Anyone up for Google SoC 2010?

2010-02-02 Thread Gwern Branwen
On Tue, Feb 2, 2010 at 5:11 PM, Johan Tibell johan.tib...@gmail.com wrote: On Tue, Feb 2, 2010 at 2:06 PM, Neil Mitchell ndmitch...@gmail.com wrote: I'd also be happy to mentor. Where is the official place to collect project ideas? We used trac previously, are we still using it or are we now

Re: [Haskell-cafe] HList darcs repo missing?

2010-01-25 Thread Gwern Branwen
On Mon, Jan 25, 2010 at 3:47 PM, Jake Wheat jakewheatm...@googlemail.com wrote: Hello all, I was looking for the HList darcs repo at: http://darcs.haskell.org/HList/ but it seems to be missing. Has it been moved somewhere else? Thanks, Jake Wheat It was there as of 15 September 2009

Re: [Haskell-cafe] Broken registration link on hackage trac

2010-01-18 Thread Gwern Branwen
On Mon, Jan 18, 2010 at 6:17 PM, Ian Lynagh ig...@earth.li wrote: On Mon, Jan 18, 2010 at 07:35:31PM +, Andy Gimblett wrote: I want to register an account on hackage's trac instance, but the register an account link on the start page:

Re: [Haskell-cafe] cabal install vacuum-cairo

2010-01-17 Thread Gwern Branwen
On Sun, Jan 17, 2010 at 9:55 AM, Ozgur Akgun ozgurak...@gmail.com wrote: Cafe, I've been trying to install vacuum-cairo using cabal but I couldn't have it installed because of the missing packages cairo, svg and gtkcairo. What should I do to install vacuum-cairo? Thanks for any help in

Re: [Haskell-cafe] Compilers

2010-01-16 Thread Gwern Branwen
On Sat, Nov 29, 2008 at 8:02 PM, John Meacham j...@repetae.net wrote: On Sat, Nov 29, 2008 at 11:41:03PM +0100, Daniel Fischer wrote: Great, nothing I don't already have, so download the source tarball, unpack and ./configure --prefix=$HOME checking for a BSD-compatible install...

Re: [Haskell-cafe] Design question, HTML for GUIs?

2010-01-10 Thread Gwern Branwen
2010/1/10 Günther Schmidt gue.schm...@web.de: Hi everyone, as probably most people I find the GUI part of any application to be the hardest part. It just occurred to me that I *could* write my wxHaskell desktop application as a web app too. When the app starts, a haskell web server start

Re: [Haskell-cafe] ghc -e

2010-01-06 Thread Gwern Branwen
On Wed, Jan 6, 2010 at 7:23 PM, Tony Morris tonymor...@gmail.com wrote: ghc -e import Control.Monad; forM [[1,2,3]] reverse As of 6.10.2, the bug whereby the GHC API lets you use functions from anywhere just by naming them (Java-style) has not been fixed: $ ghc -e Control.Monad.forM [[1,2,3]]

Re: [Haskell-cafe] ghc -e

2010-01-06 Thread Gwern Branwen
On Wed, Jan 6, 2010 at 7:35 PM, Tony Morris tonymor...@gmail.com wrote: Gwern Branwen wrote: On Wed, Jan 6, 2010 at 7:23 PM, Tony Morris tonymor...@gmail.com wrote: ghc -e import Control.Monad; forM [[1,2,3]] reverse As of 6.10.2, the bug whereby the GHC API lets you use functions from

Re: [Haskell-cafe] Memory-aware Haskell?

2009-12-25 Thread Gwern Branwen
On Fri, Dec 25, 2009 at 5:14 AM, Svein Ove Aas svein@aas.no wrote: On Thu, Dec 24, 2009 at 11:38 PM, Roman Cheplyaka r...@ro-che.info wrote: So, let's think what we can do at runtime. Suppose RTS takes the parameter -- upper limit of consumed memory. When it sees that memory consumption is

  1   2   3   >