Aug
14
Program Design and Presentation [pdf]
Filed Under Technology | Leave a Comment
There are at least three different ways in which the term “computer
program” is used… They could be called the artistic, the legal, and
scientfic interpretation.
(i) Artistic. Here the program is an automaton created out of curiosity,
with the intention of observing its behaviour when exercised…
(ii) Legal. Here the user is not supposed really to know what he [...]
Aug
14
XSLT, Perl, Haskell, and a word on language design
Filed Under MDB, Technology, XML | Leave a Comment
An interesting thread over at kuro5hin on the tribulations one person had when writing a filter to convert XML documents to LaTeX using XSLT (with examples of how some of the transformations would be handled using Perl or Haskell instead).
My initial reaction when faced with problems such as the one described in this post (lots [...]
Aug
14
Functional Programming with XSLT - A proof through examples
Filed Under MDB, Technology, XML | Leave a Comment
This paper sets out to show that XSLT is a true functional language, by implementing 35 of the most common functions that you would encounter in such a language (foldl, map, minimum, sum, sumTree etc)! It’s long (the PDF version is 76 pages) - mostly because of the code: just because XSLT can implement all [...]
Aug
14
XSLT Abstraction
Filed Under MDB, XML | Leave a Comment
I’m trying to learn how to abstract common elements of XSLT away. For example, the MusicDatabase’s shiny new XML output gives the run-length of a CD, or a track on it, in seconds. But, for output, we’d really like to show it as minutes and seconds (i.e. 308 would become 5:08).
This is fairly simple to [...]