Posted in haskell, open source on May 23rd, 2007 1 Comment »
I’ve been sitting on this for a while, so I’m very excited to announce
that Don Stewart, John Goerzen and I are collaborating on an upcoming
book for O’Reilly, the working title of which is “Real-World Haskell”.
Better yet, O’Reilly has agreed to publish the title under a Creative
Commons license!
You can find more details, and follow our progress, [...]
Posted in haskell, linux on May 14th, 2007 No Comments »
With Jens Petersen’s blessing, I’ve packaged GHC 6.6.1 for Fedora
Extras. If you use FC6, it’s available via yum as of a few days
ago. It will be a part of Fedora 7 as soon as that comes out, too.
The upgrade to 6.6.1 necessitated a bump of the release number of
the Fedora Gtk2Hs package, too. [...]
Posted in haskell on May 14th, 2007 No Comments »
A few weeks ago, I spent a little time porting Peter Norvig’s Python
code from his article How to Write a Spelling
Corrector to Haskell. It’s a
concise vehicle for a few Haskelly topics that don’t get much airing
in front of a general audience: what idiomatic Haskell looks like, and
the dreaded space leak.
Bear in mind as you [...]
I just released version 0.1 of
FileManip,
a Haskell library I put together to make it easier to futz about
with files in the filesystem.
There are a few different components to the package.
The
Find
module lets you search the filesystem for files, after the manner of
the Unix find program. It provides a nice embedded language for
building filters and controlling [...]
Posted in haskell on April 23rd, 2007 4 Comments »
I don’t intend for this blog to become a dumping ground for code
snippets, but sometimes the temptation is too strong. Here’s a simple but
fast function for computing a factorial, using the binary splitting
algorithm from this
page.
factorial :: Integral a => a -> a
factorial n = split n 0
where split a b = let d = [...]
Posted in haskell on April 16th, 2007 2 Comments »
Simon Peyton Jones will be giving two Haskell-related talks at OSCON in July! As far as I know, this will be the first time that Haskell gets an airing at a general-interest conference. Simon is a fantastic speaker, so if you were going to OSCON anyway, you absolutely should not miss his talks.
One of Simon’s [...]
Posted in haskell on April 12th, 2007 1 Comment »
This year, the Haskell.org community has
had nine projects funded by Google, out of 64 student applications.
We had mentoring capacity for over 20 projects, so the final number
was decided by Google, not by our ability to deal with them.
Congratulations to those who were accepted! And to those who were
not, take heart; the competition was tight.
Most [...]
Posted in linux on April 11th, 2007 2 Comments »
I recently bought a Thinkpad X60 that came with Windows preinstalled.
I never actually use Windows, but it’s convenient to have around for
the occasional BIOS update.
My Linux distribution of choice has long been
Fedora. Unfortunately, unlike other
modern Linux distros, Fedora doesn’t provide a simple graphical means
to shrink an NTFS partition in its installer.
Since the X60 doesn’t [...]
Posted in haskell on March 2nd, 2007 1 Comment »
From diffbavis on #haskell:
> sum (map ord “al gore”)
666
Posted in haskell on February 27th, 2007 19 Comments »
Someone showed up on #haskell yesterday, asking how to use regular
expressions. This isn’t a completely straightforward question to
answer. While Haskell’s regexp libraries provide the same
functionality you’ll find in Perl, Python, and Java, they provide a
rich and fairly abstract interface that can be daunting to newcomers.
So let’s fix that, and strip away the abstractions [...]