Archive for the ‘swdev’ Category

Haskell is Functional

Saturday, September 18th, 2004

Both the Haskell language and functional programming were new to me; I came across both while reading about darcs. From the horse’s mouth:

Haskell is a computer programming language. In particular, it is a polymorphicly typed, lazy, purely functional language, quite different from most other programming languages. The language is named for Haskell Brooks Curry, whose work in mathematical logic serves as a foundation for functional languages. Haskell is based on lambda calculus, hence the lambda we use as a logo.

[…]
A functional program is a single expression, which is executed by evaluating the expression. Anyone who has used a spreadsheet has experience of functional programming. In a spreadsheet, one specifies the value of each cell in terms of the values of other cells.

The same page contrasts functional languages with the imperative languages most of us app programmers are more familiar with: java, C#, etc, and emphasizes the level of abstraction:

This focus on the high-level “what” rather than the low-level “how” is a distinguishing characteristic of functional programming languages.

Another well-known nearly-functional language is the standard database query language SQL. An SQL query is an expression involving projections, selections, joins and so forth. The query says what relation should be computed, without saying how it should be computed. Indeed, the query can be evaluated in any convenient order.

Okay, now I see that SQL and LISP are functional, so it’s not so new to me as I thought.

Is there much Haskell going on? Well, it has a wiki that is getting daily update activity. Though monster.com finds only nine jobs in four companies in the US.

Wikipedia is very helpful; here are articles on functional and imperative programming, and there is also a one-page programming paradigms at-a-glance category page.

I wonder if this is one of Ward Cunningham’s 100 languages?

So many ways to skin that scm cat

Saturday, September 18th, 2004

A first look at Steve McConnell

Monday, September 6th, 2004

Learning from SWT

Sunday, September 5th, 2004

David Chappell blogging and bpm

Monday, June 28th, 2004

The lyf so short, the craft so long to lerne

Sunday, June 20th, 2004

Oh please God, let it be ready for primetime…

Saturday, June 19th, 2004

No, I mean I’ve *really* just worked up a demo

Saturday, June 19th, 2004

(un)diaspora-ing

Friday, April 30th, 2004

What’s your encoding?

Friday, April 30th, 2004