Archive for the ‘Cairo’ Category

More fun with Gtk# and Cairo in F#

Wednesday, December 3rd, 2008

This time it has taken me more than I planned but I finally have something to show off.

As usual the compiled exe here and the full code here.

This week I have really struggled to figure out how to mix functional and imperative concpets. After a few days of trying to recursively build an F# list I gave up and resorted to using a ResizeArray<> which is simply an equivalent of C# List<>. I really wonder if a bit more “functional” way of building a list is possible.

Another F# sunday

Sunday, November 23rd, 2008

So, another weekend, another F# excercise. This time I decided have some fun with Cairo inside Gtk# and a port of the old Knockout example from C# seemed like a prefect idea. Here’s what I got:

Compiled executable here, code here. Now, what I’ve done was pretty much a simple “translation” to get it running but I would love to make the code really functional. So, go headed and comment on what I could change to do it.


Another embarrassing udpate: fixed indentation


Update 2: indentation is broken by WordPress editor. Code replaced with a link.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes