[Haskell-cafe] Getting highest sum of list elements with Map

2009-08-05 Thread gwern0
-- based on http://jtauber.com/blog/2008/02/10/a_new_kind_of_graded_reader/ -- TODO: read knownwords from file -- print out matching sentences as well (make optional) -- fix performance; goal: handle Frank Herbert corpus in under 5 minutes -- benchmark parallelism; is it gaining

[Haskell-cafe] Generating functions for games

2009-04-03 Thread gwern0
So some time ago I saw mentioned the game of Zendo https://secure.wikimedia.org/wikipedia/en/wiki/Zendo_(game) as a good game for programmers to play (and not just by Okasaki). The basic idea of Zendo is that another player is creating arrangements of little colored plastic shapes and you

Re: [Haskell-cafe] problems building hpodder

2008-04-08 Thread gwern0
On 2008.04.08 15:19:12 -0500, John Goerzen [EMAIL PROTECTED] scribbled 1.1K characters: On Mon April 7 2008 9:31:04 pm [EMAIL PROTECTED] wrote: Well, changing the deps at least would be a good idea. Right. I've uploaded a new version of hpodder to hackage that will require the correct

Re: [Haskell-cafe] problems building hpodder

2008-04-07 Thread gwern0
On 2008.04.07 00:24:10 +0200, Karl Hasselström [EMAIL PROTECTED] scribbled 0.9K characters: I'm trying to build hpodder 1.1.2 with ghc 6.8.2. I successfully downloaded, built, and installed (the latest versions of) all its dependencies, but when building hpodder itself, I get

Re: [Haskell-cafe] Problem building HXT

2008-04-07 Thread gwern0
On 2008.04.07 20:17:06 +0200, ln [EMAIL PROTECTED] scribbled 1.1K characters: Hi, I would like to try HXT, but I can't manage to build it. I resolved all the dependencies, but I get the following error: [EMAIL PROTECTED]:~/Desktop/hxt$ make all make -C src all VERSION=7.5

[Haskell-cafe] Re: [Haskell] Some old and quite old news.

2008-04-05 Thread gwern0
On 2008.04.05 17:42:00 +0400, Serguey Zefirov [EMAIL PROTECTED] scribbled 0.6K characters: [EMAIL PROTECTED] пишет: Hmm. I'm having trouble getting it through SVN: [EMAIL PROTECTED]:1003~svn co http://thesz.mskhug.ru/browser/hiersort [ 1:44PM] svn: PROPFIND request failed on

Re: [Haskell-cafe] Re: SoC project: Python-Haskell bridge - request for feedback

2008-03-30 Thread gwern0
On 2008.03.27 14:07:23 -0700, Dan Weston [EMAIL PROTECTED] scribbled 0.7K characters: I did not see MissingPy on Hackage (presumably it would be next to MissingH?) Remember, Hackage is alphabetical by category and then by title; I personally would not stick MissingH in the Unclassified

Re: [Haskell-cafe] libmad and os/x coreaudio wrappers

2008-03-19 Thread gwern0
On 2008.03.19 11:09:00 -0700, Chris Waterson [EMAIL PROTECTED] scribbled 1.7K characters: Hi there! I've taken my first stab at writing some (admittedly minimal) libraries for Haskell, and would love to get feedback on them: * hmad: a wrapper for the libmad MP3 decoder.

Re: [Haskell-cafe] Re: HFuse: ls fails in HelloFS

2008-03-19 Thread gwern0
On 2008.03.19 02:43:27 -0400, Brandon S. Allbery KF8NH [EMAIL PROTECTED] scribbled 0.8K characters: On Mar 19, 2008, at 2:12 , Austin Seipp wrote: Excerpts from Will Thompson's message of Sun Mar 16 08:37:00 -0500 2008: Currently the module's name is HFuse. Presumably it really belongs

[Haskell-cafe] Re: Data.HashTable

2008-03-07 Thread gwern0
On 2008.03.06 22:43:53 +0100, Johannes Waldmann [EMAIL PROTECTED] scribbled 1.4K characters: In practice, Data.Map outperforms it in essentially all cases (Data.HashTable stops working beyond a certain size and so any asymptotic benefits, if they exist at all, don't have time to kick in).

Re: [Haskell-cafe] Trouble finding exception source

2008-02-26 Thread gwern0
On 2008.02.26 23:13:59 -0500, Denis Bueno [EMAIL PROTECTED] scribbled 7.4K characters: Hi all, I've got some code crashing with Prelude.foldr1: empty list. In GHCi, the code uses too much memory (I kill it after it consumes 1GB) to be able to use :trace and :history, but I just found out

Re: [Haskell-cafe] Is Haskore dead?

2008-02-04 Thread gwern0
On 2008.02.04 16:11:55 -0200, Maurí­cio [EMAIL PROTECTED] scribbled 0.3K characters: Hi, I've just tried using Haskore (I use Ubuntu and GHC), with no success. Since Haskore was started a long time ago, but it's not yet cabalized, and the author's page can not be reached, I can't say for

[Haskell-cafe] ANN: Hlist 0.1 on Hackage

2008-02-02 Thread gwern0
Hey everyone: I'd like to make a short announcement that with the permission of its maintainer, I've uploaded HList v0.1 to Hackage. You can find the Hackage page here: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HList-0.1. 'cabal install HList' should also work. HList for

Re: [Haskell-cafe] RE: [Haskell] Announce: Yi 0.3

2008-01-31 Thread gwern0
On 2008.01.31 16:27:05 -, Bayley, Alistair [EMAIL PROTECTED] scribbled 0.7K characters: From: Thomas Schilling [mailto:[EMAIL PROTECTED] So Yi works on Windows? hs-plugins was broken for Windows for a while, so I'm wondering if this has been fixed too. Does Yi use hs-plugins,

[Haskell-cafe] Testing one's .ghci

2008-01-26 Thread gwern0
So I was recently going over my config files (which are version-controlled in Darcs, of course), and I was adding tests for recording patches. For some of the files, it was easy enough - the application generally provided some mean of loading in the rc file and then it would error or not based

Re: [Haskell-cafe] Yi and Data.ByteString

2008-01-21 Thread gwern0
On 2008.01.21 19:12:26 +0100, Cetin Sert [EMAIL PROTECTED] scribbled 1.9K characters: 1) Can anyone tell me how I can build Yi or point me to a binary release of that editor? I tried to follow the instructions on http://www.nobugs.org/developer/yi/building.html but got a missing

Re: [Haskell-cafe] Throwback of inferred types

2008-01-20 Thread gwern0
On 2008.01.19 19:11:13 +0100, Peter Verswyvelen [EMAIL PROTECTED] scribbled 1.4K characters: The problem is that this only works when the complete source file compiles correctly no? Yes. As I said, it's a very hackish solution - think of it as proof-of-concept. I would find it most useful to

Re: [Haskell-cafe] First go at reactive programming

2008-01-19 Thread gwern0
On 2008.01.19 12:22:43 -0500, Steve Lihn [EMAIL PROTECTED] scribbled 1.5K characters: ... I am asking this question in another thread. The problem is -- I've got many modules compiled under 6.6, some with much agony. If I switch to 6.8, I have to recompile them again. Two issues I image: (1)

Re: [Haskell-cafe] Throwback of inferred types

2008-01-19 Thread gwern0
On 2008.01.19 17:30:50 +, Jon Harrop [EMAIL PROTECTED] scribbled 0.2K characters: Is it possible to get throwback of inferred types into Emacs or an IDE for Haskell? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Sure. I once hacked together quite a while ago a little function for

Re: [Haskell-cafe] One-line haskell program with GHC

2008-01-18 Thread gwern0
On 2008.01.18 13:57:27 -0800, Sukit Tretriluxana [EMAIL PROTECTED] scribbled 1.3K characters: Hi, I don't know if it's been asked before. I just wonder if GHC supports some sort of one-liner program that can be specify right as the argument to either ghci or runghc program. In

Re: [Haskell-cafe] Yi editor tutorial

2008-01-16 Thread gwern0
On 2008.01.15 22:54:08 -0800, Benjamin L. Russell [EMAIL PROTECTED] scribbled 1.8K characters: Your Yi editor tutorial looks like a fascinating idea, but I use Mac OS X (10.2.8 Jaguar, soon to be upgraded to 10.5.x Leopard) at home, and Windows XP at work, while your tutorial is based on

Re: [Haskell-cafe] Re: Data constructors versus types

2008-01-16 Thread gwern0
On 2008.01.17 00:58:19 +0100, [EMAIL PROTECTED] scribbled 0.9K characters: Achim Schneider writes: Lisp is actually not really meant to be compiled, but interpreted. The nice thing is that it doesn't need more than a handful of primitives, a list parser and heap manager/garbage collector and

Re: [Haskell-cafe] Yi editor tutorial

2008-01-14 Thread gwern0
On 2008.01.14 13:34:42 +, Andrew Birkett [EMAIL PROTECTED] scribbled 0.8K characters: [EMAIL PROTECTED] wrote: I'm going through them now, and I like them a lot. (Maybe I'll finally begin doing stuff with Yi!) Is there any particular reason you didn't put your tutorials on the Haskell

Re: [Haskell-cafe] GHC 6.8.2 as a library on Windows and GHCi

2008-01-09 Thread gwern0
On 2008.01.09 17:07:46 +0100, Peter Verswyvelen [EMAIL PROTECTED] scribbled 4.7K characters: I while I ago I sent an email regarding hs-plugins not working on windows. I now tried to directly use GHC API, but I also failed. The following program (which might be buggy, I copy/pasted

Re: [Haskell-cafe] Trouble with function with two clauses

2008-01-09 Thread gwern0
On 2008.01.09 18:15:33 +, Fernando Rodriguez [EMAIL PROTECTED] scribbled 0.3K characters: Hi, I have the following type and function: data ConsCell a = Nil | Cons a (ConsCell a) deriving Show head' Nil = Nothing head' (Cons a _) = Just a Works fine, however, what's wrong with the

Re: [Haskell-cafe] GHC's dynamic linker and Windows

2008-01-07 Thread gwern0
On 2008.01.07 07:20:05 -0600, Austin Seipp [EMAIL PROTECTED] scribbled 2.6K characters: I recently tried the latest version of HS-PLUGINS, and it gave an error on Windows. After a bit of Googling it seemed Conal Elliot had the same problem. I reported this problem to the author. This is

Re: [Haskell-cafe] Re: US Homeland Security program language security risks

2008-01-06 Thread gwern0
On 2008.01.06 15:54:00 +0100, Achim Schneider [EMAIL PROTECTED] scribbled 0.6K characters: Daniel Fischer [EMAIL PROTECTED] wrote: Am Sonntag, 6. Januar 2008 15:18 schrieb Andrew Coppin: Daniel Fischer wrote: Just because I don't know: what bugs would be possible in a language

Re: [Haskell-cafe] Software Tools in Haskell

2008-01-06 Thread gwern0
On 2007.12.12 12:51:58 -0600, Tommy M McGuire [EMAIL PROTECTED] scribbled 2.7K characters: Gwern Branwen wrote: Some of those really look like they could be simpler, like 'copy' - couldn't that simply be 'main = interact (id)'? Have you seen http://haskell.org/haskellwiki/Simple_Unix_tools?

Re: [Haskell-cafe] Re: Hackage web page

2008-01-04 Thread gwern0
On 2008.01.02 17:20:04 +, Duncan Coutts [EMAIL PROTECTED] scribbled 0.8K characters: In message [EMAIL PROTECTED] Neil Mitchell [EMAIL PROTECTED] writes: Hi, The hackage web page confuses me: http://hackage.haskell.org/packages/hackage.html Hackage has now graduated from being a

[Haskell-cafe] Re: [xmonad] Re: XMonad.Layout.NoBorders

2007-12-19 Thread gwern0
On 2007.12.19 10:57:33 -0500, David Roundy [EMAIL PROTECTED] scribbled 0.3K characters: No, I don't have time. And I'm not sure why one would want no borders on floating windows... David Perhaps I don't fully understand the issues, but wouldn't such a thing be nice for things like MPlayer?

Re: [Haskell-cafe] Creating a type for a subset of the integers

2007-12-18 Thread gwern0
On 2007.12.18 21:07:25 -0500, Brad Larsen [EMAIL PROTECTED] scribbled 0.6K characters: Hi there list, How would one go about creating a new type for a subset of the integers, for (contrived) example just the even integers? I was thinking of making a new type newtype EvenInt = EvenInt

Re: [Haskell-cafe] unsubscribe

2007-12-11 Thread gwern0
On 2007.12.12 09:33:12 +1100, Tim- tigre11 [EMAIL PROTECTED] scribbled 2.2K characters: Very suspicious extension of attachment Sender: Gwern Branwen [EMAIL PROTECTED] Recipient: [EMAIL PROTECTED] Subject: [Haskell-cafe] Software Tools in Haskell

[Haskell-cafe] New slogan for haskell.org

2007-12-11 Thread gwern0
FWIW to the discussion about changing the main page, I was reading the CUFP paper and I saw some germane comments (and the writer is apparently one Noel Welsh, whose name I don't see in the thread); the context is a discussion (pg 17) of various members or potential members of the Haskell

Re: [Haskell-cafe] New slogan for haskell.org

2007-12-11 Thread gwern0
On 2007.12.12 03:29:13 +0100, Wolfgang Jeltsch [EMAIL PROTECTED] scribbled 1.6K characters: Am Mittwoch, 12. Dezember 2007 03:12 schrieb [EMAIL PROTECTED]: FWIW to the discussion about changing the main page, I was reading the CUFP paper and I saw some germane comments (and the writer is

Re: [Haskell-cafe] Clean Dynamics and serializing code to disk

2007-12-05 Thread gwern0
On 2007.12.05 15:56:49 +0100, John van Groningen [EMAIL PROTECTED] scribbled 0.7K characters: [EMAIL PROTECTED] wrote: Hey everyone; recently I've been toying around with various methods of writing a shell and reading the academic literature on such things. The best prior art on the

Re: [Haskell-cafe] ANN: Shu-thing 1.0 and Monadius 0.9

2007-12-04 Thread gwern0
On 2007.12.04 12:12:04 +, Neil Bartlett [EMAIL PROTECTED] scribbled 2.2K characters: Hi Gwern, Shu-thing is great fun! I think Monadius isn't compiling because most of the source files are missing; you only have Main.hs in there. Regards Neil Oh - you're absolutely right. For some

[Haskell-cafe] Clean Dynamics and serializing code to disk

2007-12-04 Thread gwern0
Hey everyone; recently I've been toying around with various methods of writing a shell and reading the academic literature on such things. The best prior art on the subject seems to be the ESTHER shell (see http://citeseer.ist.psu.edu/689593.html, http://citeseer.ist.psu.edu/744494.html,

[Haskell-cafe] ANN: Shu-thing 1.0 and Monadius 0.9

2007-12-03 Thread gwern0
Hi everyone. With the permission of the authors, I'd like to announce the release upload to Hackage of two games written in Haskell (you may've seen them mentioned here once or twice before): *Monadius *Shu-thing They are both scrolling 2 dimensional arcade shooting games which use 3D vector