Posted in Uncategorized, haskell on March 3rd, 2010 2 Comments »
My goal in working on the new GHC I/O manager has been to get the Haskell network stack into a state where it could be used to attack high-performance and scalable networking problems, domains in which it has historically been weak.While it's encouraging to have an excellent networking stack (Johan and I now have this [...]
Posted in haskell on December 15th, 2009 2 Comments »
Earlier this evening, I released a new version of the Haskell text package. This one adds support for I/O, which in previous releases you had to roll by hand. The Data.Text.IO and Data.Text.Lazy.IO modules are the places you'll want to look for details of how to read and write text easily.
The reason for this timing [...]
Posted in reading, software on December 2nd, 2009 6 Comments »
…if the world of blogging about software had by now developed some kind of a tradition of critical analysis?
Over at Inside Higher Ed, Scott McLemee writes a careful and thoughtful review of Cornel West’s new book. It performs the delicate feat of being at once both generous to its subject and devastating in its analysis:
Legend [...]
Posted in haskell on December 1st, 2009 5 Comments »
This evening, Matthew Podwysocki drew my attention to an amusing article over on Phil Trelford's blog, in which people compare various versions of an algorithm for producing left-truncatable primes.
I can't resist a round of golf, and I was of course tempted by Matt Curran's 17-line Haskell entry, so here's the exact same algorithm in 6 [...]
Posted in haskell, open source on November 6th, 2009 2 Comments »
I’m pleased to announce the availability of version 0.2 of my criterion library for Haskell performance evaluation.
Compared to version 0.1, this version has some significant changes.
The benchmarking API has been improved! If you’re benchmarking a pure function, you no longer need to feed it an Int to ensure that it won’t get thunked or let-floated. [...]
Posted in haskell, open source on October 9th, 2009 4 Comments »
I'm pleased to announce the availability of version 0.5 of text, a library that provides fast Unicode text handling for Haskell.
This version contains numerous changes compared to version 0.4, in three broad categories:
I made improvements to the performance of some common functions by, in many cases, more than 10x.I have substantially refined the API.Many bugs [...]
Posted in haskell, open source on September 30th, 2009 4 Comments »
And has prettier charts, too, thanks to a patch from Tim Docker.
If you already have criterion installed:
$ cabal update
$ cabal install –reinstall criterion
If you want to use criterion on a Mac:
$ cabal update
$ cabal install criterion -f-chart
Alas, on OS X, you’ll lack the ability to directly generate pretty chart images, but criterion will still output [...]
Posted in haskell, open source on September 29th, 2009 28 Comments »
I'm pleased to announce the availability of criterion, a new library for measuring the performance of Haskell code.
Compared to most other benchmarking frameworks (for any programming language, not just Haskell), criterion focuses on being easy to use, informative, and robust.
Here's a canonical benchmark-worthy function, which has the desirable properties of being both small and slow:
-- [...]
Posted in haskell on September 25th, 2009 6 Comments »
I find Lennart Augustsson's Text.Printf module very handy, but also quite baffling.
Here is one example of my bafflement: suppose I want to print a piece of text if my program's verbosity level is above a certain threshold, but not otherwise. I'd like to hide that detail in a function, such that I could just call [...]
Thanks to the tireless work of Malcolm Wallace, all of the video from CUFP now appears to be up up Vimeo, including the keynote talk I gave.
Keynote: Real world Haskell. from Malcolm Wallace on Vimeo.