Thursday, September 9, 2010

wumpus-basic

Copperbox revision 1691.

Experiment with a more applicative style for the Graphic types.

Its not a big success - the code is rather horrible, and some of the necessary operations turn out to be 'context sensitive' so it is really monadic rather than applicative. Drawing a centered text label is context sensitive - this needs the font size from the environment to calculate the centering vector (i.e the displacement for the real origin of a text label which is baseline left).

Another problem that I've just discovered, is that links seem to be at the wrong place in the syntax tree in Wumpus-Core. Primitives get labelled with links, but really a link should be a tree node with primitives as children.

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.