Re: [Haskell-cafe] The Lisp Curse

2011-05-20 Thread Jesper Louis Andersen
On Thu, May 19, 2011 at 20:33, Andrew Coppin andrewcop...@btinternet.com wrote: Ok, I'll bite. To all the people who look at Hackage, see that there are 6 different libraries for processing Unicode text files, and claim that this is somehow a *good* thing, I offer the above essay as a

Re: [Haskell-cafe] Crypto-api performance

2011-05-10 Thread Jesper Louis Andersen
On Tue, May 10, 2011 at 09:47, Johan Brinch brin...@gmail.com wrote: Stuff like xor'ing two bytestrings or generating a block of incremental IV's (for CTR mode)? I don't particularly like the notion of XOR on a bytestring. The bytestring is not a number and it does not make much sense to

Re: [Haskell-cafe] Help optimising a Haskell program

2011-03-22 Thread Jesper Louis Andersen
On Tue, Mar 22, 2011 at 09:11, David MacIver da...@drmaciver.com wrote:  Productivity  85.0% of total user, 85.0% of total elapsed That is somewhat ok. So much for hoping GC tuning would yield an improvement. -- J. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Help optimising a Haskell program

2011-03-21 Thread Jesper Louis Andersen
On Tue, Mar 22, 2011 at 00:59, David MacIver da...@drmaciver.com wrote: It's for rank aggregation - taking a bunch of partial rankings of some items from users and turning them into an overall ranking (aka That thing that Hammer Principle does). Two questions immediately begs themselves: *

Re: [Haskell-cafe] Parallel Haskell stories

2011-03-10 Thread Jesper Louis Andersen
On Wed, Mar 9, 2011 at 17:18, Simon Peyton-Jones simo...@microsoft.com wrote:        could you contribute a little vignette or story        about using Haskell in a *parallel/concurrent* application        that I could use to illustrate my talk? Combinatorrent is a BitTorrent client written

Re: [Haskell-cafe] ANN: theoremquest-0.0.0

2011-02-28 Thread Jesper Louis Andersen
On Mon, Feb 28, 2011 at 17:02, Colin Adams colinpaulad...@googlemail.com wrote: No I haven't. I'm not a mass-market gamer. I'm an ex-hard-core gamer. I think that basically, it is the same psychological stuff that is going on in the brains of (puzzle) gamers and people who interactively proves

Re: [Haskell-cafe] Concurrency best practices?

2011-02-05 Thread Jesper Louis Andersen
On Sat, Feb 5, 2011 at 10:46, wren ng thornton w...@freegeek.org wrote: Sometimes I need those threads to do some IO like printing logging info. Logging is easy, especially if you don't mind a performance hit. Create an STM.TChan and throw each log message on it. Have a separate forkIO'ed

Re: [Haskell-cafe] Concurrency best practices?

2011-02-05 Thread Jesper Louis Andersen
On Sat, Feb 5, 2011 at 17:13, Andrew Coppin andrewcop...@btinternet.com wrote: On 05/02/2011 12:56 PM, Jesper Louis Andersen wrote: Presumably messages added to the channel appear immediately after the transaction commits. The problem is, I think GHC's STM implementation might mean

Re: [Haskell-cafe] How do you make constant expressions?

2010-07-18 Thread Jesper Louis Andersen
On Sun, Jul 18, 2010 at 10:19 PM, Eitan Goldshtrom thesource...@gmail.com wrote: Silly question, but I can't find the answer on the net. I think I'm just using the wrong words in my search. I'm looking for a way to create constant expressions in Haskell. The C/C++ equivalent of what I'm talking

[Haskell-cafe] Ideas for better network IO in Combinatorrent?

2010-05-08 Thread Jesper Louis Andersen
Hi, Cafe! (This post got rather long, and in writing it, I probably answered some of my own questions. I'll still post it because it might be interesting to read for somebody). This post concerns the currently central problem in Combinatorrent. But the problem is interesting from another angle.

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

2010-04-30 Thread Jesper Louis Andersen
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 by user. The only real list of repos by language seems to be gotten at via

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

2010-04-30 Thread Jesper Louis Andersen
On Fri, Apr 30, 2010 at 6:02 PM, Gwern Branwen gwe...@gmail.com wrote: Github has a REST API for accessing data. Unfortunately it can't give you the wanted breakdown, but I would ask them for it. It is much simpler for you, You mean ask for a new feature? (Just a one-time list is no good

[Haskell-cafe] ANN: Combinatorrent v0.3.0

2010-04-30 Thread Jesper Louis Andersen
We are pleased to announce Combinatorrent v0.3.0 Combinatorrent is a bittorrent client, written in Haskell and with an emphasis on concurrency. This version has the following changes from v0.2.0: - Numerous space leak fixes. The client doesn't leak memory anymore for typical runs. - A number

[Haskell-cafe] Does anyone know the reason for differeng measurements in profiling under -threaded?

2010-04-22 Thread Jesper Louis Andersen
Hi, I am asking if anyone has seen the following behaviour from GHC under -threaded and heavy use of File I/O, network I/O and STM use. After having run Combinatorrent for a while and then terminating it, we get the following output from the RTS in GC statistics: INIT time0.00s ( 0.00s

Re: [Haskell-cafe] Does anyone know the reason for differeng measurements in profiling under -threaded?

2010-04-22 Thread Jesper Louis Andersen
On Fri, Apr 23, 2010 at 2:19 AM, Iustin Pop iu...@k1024.org wrote: I don't know GHC internals, but from the description of the program (and the fact that you don't use more than one core), I wonder why you use -threaded? A worthy question indeed. The reason is that I am using registerDelay

Re: [Haskell-cafe] GHC, odd concurrency space leak

2010-04-17 Thread Jesper Louis Andersen
On Sat, Apr 17, 2010 at 12:00 AM, Jason Dagit da...@codersbase.com wrote: Myself and others posted simpler programs that had similar bad behavior, including the space leak (depending on optimizations flags).  I realize it's tedious to retest all those versions, but do you think you could check

Re: [Haskell-cafe] ANN: HaskellTorrent/Combinatorrent v0.2.0

2010-04-17 Thread Jesper Louis Andersen
On Sat, Apr 17, 2010 at 9:05 PM, Stephan Maka step...@spaceboyz.net wrote: * Introduce RTS benchmarks:     See http://jlouis.github.com/combinatorrent where we plot SVG-based     sparklines for various key RTS parameters over time (works best in Opera or     Chrome). A slow-changing

Re: [Haskell-cafe] GHC, odd concurrency space leak

2010-04-16 Thread Jesper Louis Andersen
On Thu, Apr 15, 2010 at 1:33 AM, Daniel Fischer daniel.is.fisc...@web.de wrote: Can some core expert please look at these and explain the difference? I'm interested in an explanation too. +1 The behaviour is consistent. GHC 6.8.3, 6.10.4, 6.12.1 and 6.13-20100416 all agree on the space

[Haskell-cafe] GHC, odd concurrency space leak

2010-04-14 Thread Jesper Louis Andersen
A problem with GHC? === This post describes some odd behaviour I have seen in GHC 6.12.1 when writing Combinatorrent. The post is literate Haskell so you can run it. The executive summary: A space leak occurs when a new process is spawned from inside another process - and I can't

[Haskell-cafe] ANN: HaskellTorrent/Combinatorrent v0.2.0

2010-04-05 Thread Jesper Louis Andersen
Goodbye HaskellTorrent, hello Combinatorrent! Due to the internationally acclaimed Boing!'er Shae Erisson, HaskellTorrent has been renamed into Combinatorrent. We thus present Combinatorrent v0.2, Easter eggs release. This release marks yet another milestone in getting a decent bittorrent client

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

2010-04-04 Thread Jesper Louis Andersen
On Mon, Apr 5, 2010 at 1:49 AM, Brandon S. Allbery KF8NH allb...@ece.cmu.edu wrote: Some people are paranoid about such things, for example because it would allow people to google-mine for things they'd rather a random HR person not reading by linking names together. In addition, the concept

Re: [Haskell-cafe] Integers v ints

2010-04-02 Thread Jesper Louis Andersen
On Thu, Apr 1, 2010 at 11:27 AM, Jens Blanck jens.bla...@gmail.com wrote: I was wondering if someone could give me some references to when and why the choice was made to default integral numerical literals to Integer rather than to Int in Haskell. Also, if you are aware of similar discussions

[Haskell-cafe] ANN: HaskellTorrent v0.1.1

2010-03-11 Thread Jesper Louis Andersen
Hello Cafe, I am pleased to announce yet another release of the HaskellTorrent project. In this release, focus has been on improving upon the work laid in v0.0. Highlights include: * Certain data structures have changed from Data.List to Data.IntSet, yielding much improved performance. *

Re: [Haskell-cafe] Benchmarking and Garbage Collection

2010-03-04 Thread Jesper Louis Andersen
On Thu, Mar 4, 2010 at 7:16 PM, Neil Brown nc...@kent.ac.uk wrote: However, one thing I've found is that the libraries have noticeably different behaviour in terms of the amount of garbage created. In fact, CML relies on the garbage collector for some implementation constructions. John H.

Re: [Haskell-cafe] Benchmarking and Garbage Collection

2010-03-04 Thread Jesper Louis Andersen
On Thu, Mar 4, 2010 at 8:35 PM, Neil Brown nc...@kent.ac.uk wrote: CML is indeed the library that has the most markedly different behaviour.  In Haskell, the CML package manages to produce timings like this for fairly simple benchmarks:  %GC time      96.3%  (96.0% elapsed) I knew from

Re: [Haskell-cafe] Some great results on fused code with the LLVM backend

2010-02-22 Thread Jesper Louis Andersen
On Mon, Feb 22, 2010 at 2:57 AM, Don Stewart d...@galois.com wrote: I tried out some of the vector and uvector fusion benchmarks with the new LLVM backend and got some great results for the tight loops generated through fusion. This is excellent news! The LLVM backend looks very promising

[Haskell-cafe] ANN: HaskellTorrent v0.0

2010-02-20 Thread Jesper Louis Andersen
was brought to you by: Alex Mason: A lot of Wireprotocol and BCode serialization work through the use of the cereal package. Astro: GHC 6.12 support. Support for multi-file torrents. In addition, patches were contributed by: Jesper Louis Andersen John Gunderman Thomas Christensen

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Jesper Louis Andersen
2010/2/14 Günther Schmidt gue.schm...@web.de: So fellows, what is the next stop on my road to enlightenment? I really think I need best to start from scratch. I think I'm sufficiently familiar now with most of Haskell's technicalities but how do I climb the ladder of abstraction? A couple of

Re: [Haskell-cafe] Hackage Package version ranges

2010-02-03 Thread Jesper Louis Andersen
On Wed, Feb 3, 2010 at 2:13 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Well, in Gentoo we normally resort to using sed to fix these kinds of things.  If we can do it, I'm sure the Arch package managers are able to do so. It might be more annoying, but IMHO it's a bigger

Re: [Haskell-cafe] Hackage Package version ranges

2010-02-02 Thread Jesper Louis Andersen
On Tue, Feb 2, 2010 at 11:11 PM, Neil Mitchell ndmitch...@gmail.com wrote: Alternatively, if I could sign up to be emailed when something went wrong, I'd happily fix it. i.e. I'd like an email either when my package fails to compile against the latest version of all packages but within my

Re: Re[4]: [Haskell-cafe] Records (was Re: [Haskell] Improvements to GHC)

2005-11-21 Thread Jesper Louis Andersen
On Sat, 2005-11-19 at 15:40 +0300, Bulat Ziganshin wrote: my 15 CRT holds entire 100, even 102 chars in line and i don't want to lose even one of them! :) especially when comment to this function occupies another 7 lines :) The best argument I can come up with when advocating lines of 80

Re: [Haskell-cafe] Literate Haskell

2005-02-22 Thread Jesper Louis Andersen
Quoting Jérémy Bobbio ([EMAIL PROTECTED]): I really see Literate Haskell and Haddock as two orthogonal tools, and that help me to focus when writing docs. It impresses me SO much that the COMPUTER SCIENTIST have found a WAY to ELEVATE mere tools likke Haddock and Literate Haskell as elements

Re: character syntax

2002-02-07 Thread Jesper Louis Andersen
On Thu, Feb 07, 2002 at 08:00:36AM -0800, Ian Zimmerman wrote: I am new to the language (coming from ML) and I am sorry if my first post turns out to be a flamebait, but I can't help it: Why in the world did the designers of Haskell permit the ' character to be both a prime (part of

Re: character syntax

2002-02-07 Thread Jesper Louis Andersen
On Thu, Feb 07, 2002 at 08:38:22AM -0800, Ian Zimmerman wrote: You miss my point: I agree that having a prime character for id's is neat. But in SML, that's the _only_ role it has, character literals are written like #x. With Haskell's characters (and Ocaml's :-( ) Ooops, yup... I forgot

Re: Haskell coding environment for windows users?

2001-11-12 Thread Jesper Louis Andersen
On Fri, Nov 09, 2001 at 05:20:35PM +0530, Srineet wrote: Hi, I am not sure whether this is the right place to ask this question. I want to know what's the Haskell coding environment used by GHC users on windows? What 's the preferred editor? Is there any Haskell tags for vim? There is. Vim