Skip to content

Monthly Archives: December 2007

CUFP 07 Write-Up now available

A write-up on the Commercial Users of Functional Programming 07 conference is now available here.
It is definitely worth a read for folks who wonder about the “real world” problems that are solved using functional programming. There is a nice mix of both languages and problem domains, and the tone is pretty laid back.

Rubys Upto in a Scheme macro

For a lot of folks, Ruby has a syntax that is really irresistible. Iteration is one of the things in particular that is described as being quite simply, fun. Here is how it works:

Code Generation and DSLs in Scheme

Over the years, I have heard some pretty outrageous and tantalizing claims made about the programming language Lisp. For example, “It will change you, forever.” and “You write code that writes code.”. Sadly, no further explanation is ever provided. Perhaps it is impossible to capture the essence of that to which these statements allude? This [...]

OLPC XO next to a Psion Netbook

Compare an OLPC XO to a Psion Netbook

Unboxing the OLPC XO

Ever wondered how the OLPC XO looks right out of the box?

UML Surrealism

Remember the classic UML “sailboat” book Applying UML and Patterns?
It has kind of a neat image on the cover of a picture of a sailboat, a uml diagram of a sailboat, along with the words “This is not a sailboat”.
(Click on the image to zoom in):
Amazon link
Never noticed before, but I bet it is a [...]

Fun read on the evolution of C++

Last June I read “The Evolution of C++”. I was pleasantly surprised by just how fun it was to read. If you’ve ever read Bjarne Stroustrup before you know that he has got a sense of humor and frankness that makes his work quite accessible and informative.

What is “real code”?

One common complaint about non-mainstream programming languages is that there hasn’t been any “real code” written in that particular language. One response to this is the Practical Common Lisp book.
Whether or not a MP3 database or a spam filter is “real code” is up for debate. Nonetheless, based on the success of the book, [...]

Move and resize windows on MS Windows

ms-window-move-resize-info is a project to provide both the libraries
and helper programs to do three things:

Get information about the windows on your MS Windows desktop.
Move windows on your MS Windows desktop.
Resize windows on your MS Windows desktop.

An implementation of the map function in F Sharp

Here is how map may be implemented in F Sharp. (At the very least, it is my attempt at implementing it!)
You can run this in the interactive shell.

#light;;
 
let rec my_map fn xs =
match xs with
| first::rest -> (fn first) :: (my_map fn rest)
| [...]