draft

still scheming away

In scheming_away I started exploring things and stopped somewhere in the middle. Strated with defining things as structures, then as a tree structure. Now comes a third attempt at the same height. Thank god I'm not competing.

Take 3, or coming back to structures


;a tuple is a structure with an id and a value
(define-struct tuple (id value))

;tuple + -> list of tuples
(define make-thing (lambda( head . rest)
  (map (lambda(x)
          (make-tuple 
            (car x) 
            (cdr x))) 
          (cons head rest))))

;just print the bleeding thing

scheming away

In yesterday's write-up I started touching scheme. It is part of my attempt to study the language. It might be a bit ambitious as a first "real" problem, though. So until I reach a solution for that, I will try and solve a few randomly selected different problems. Most of them will be something I already know how to say in other languages, the aim for most of them should be a cleaner solution. In the end I must prove to myself that it is worth learning scheme.

Today's problem

Things or the theory of anything
There were a lot of discussions going in the Drupal development circles around what is a node, what is a user, is a user a node, is a taxonomy term a node, etc... In Amsterdam a few of us were really impressed my anymeta by mediamatic, where everything is a thing.

Powered by Drupal, an open source content management system