<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1066227315;
        mso-list-type:hybrid;
        mso-list-template-ids:313838282 -302615248 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l1
        {mso-list-id:1922788079;
        mso-list-type:hybrid;
        mso-list-template-ids:1443803764 -916011094 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F06E;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l2
        {mso-list-id:1931892603;
        mso-list-type:hybrid;
        mso-list-template-ids:1384525892 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:38.4pt;
        text-indent:-.25in;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>As I&#8217;m a selfmade man, I never really studied
relational databases in detail. My intuition told me that the &#8220;relational&#8221;
part was not really suitable for the 3D data, 2D images, animation curves, state
machines, and other data I encountered in the videogame and animation business.
I could always get away with files, and for the applications I needed to deploy,
plugging in a couple of extra gigabytes of RAM and serializing the &#8220;object&#8221;
state to disk was more practical, cheaper and faster. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>However, a couple of years ago I started studying computer
science (I seem to do the theory after the practice, weird behavior ;-) at the
Open University, and one of the exams I did was about databases. Initially this
course convinced me that databases are actually very nice, but the course ended
with a topic on object oriented databases, which were designed to make storing
data like &#8220;3D models, graphs, networks, and complex datastructures&#8221;
more practical. Duh.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Since then, I did deploy a few commercial applications for
customers using databases, which worked fine for the typical &#8220;simple/flat&#8221;
database data. I hated embedding a dynamic untyped language like SQL, as much
as I hated embedding code in HTML or XML&#8230; IMHO it feels UGLY and unsafe. Regarding
the other popular data storage format &#8211; XML &#8211; I did use that a lot,
but it seems like going back to the stone ages, when hierarchical stores/databases
got invented (and ditched?)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Now, initially after an introduction to Microsoft&#8217;s LINQ,
and recently having read a very brief overview of HAppS, it seems I&#8217;m not
the only one with those &#8220;feelings&#8221;. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Ouch, this introduction got way to long, sorry about that
;-)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Finally some practical questions:<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:38.4pt;text-indent:-.25in;
mso-list:l2 level1 lfo3'><![if !supportLists]><span style='font-family:Symbol'><span
style='mso-list:Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>regarding Haskell and <b>databases</b>, the page
<a href="http://haskell.org/haskellwiki/Libraries_and_tools/Database_interfaces">http://haskell.org/haskellwiki/Libraries_and_tools/Database_interfaces</a>
describes a few, but which are the ones that are <b>stable</b> and <b>practical</b>?
Any user experiences?<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:38.4pt;text-indent:-.25in;
mso-list:l2 level1 lfo3'><![if !supportLists]><span style='font-family:Symbol'><span
style='mso-list:Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><b>HApps</b> is not listed in the page above,
because it does not use databases? Is HApps reliable or experimental, and does
it scale well? Any success stories?<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:38.4pt;text-indent:-.25in;
mso-list:l2 level1 lfo3'><![if !supportLists]><span style='font-family:Symbol'><span
style='mso-list:Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>regarding Haskell and <b>serialization, </b>I
don&#8217;t think that implementing Read/Show is a good way for real
serialization, so what other options exist? I could find some libraries at <a
href="http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Data">http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Data</a>,
but again which are the most practical and stable? When programming in C++/MFC
and C#/.NET, I tended to develop my own serialization frameworks because I used
that for many things, like logging commands to disk, performing undo/redo, intra
and inter process cut/copy/paste, save/load, etc&#8230;<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:38.4pt;text-indent:-.25in;
mso-list:l2 level1 lfo3'><![if !supportLists]><span style='font-family:Symbol'><span
style='mso-list:Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>Regarding serialization, I&#8217;m kinda curious
how ADTs and even GADTs are stored and retrieved in a relational database? I
guess it could be done using BLOBs and serialization to ByteStrings, so bypassing
a lot of the database table structures?<o:p></o:p></p>

<p class=MsoListParagraph style='margin-left:38.4pt;text-indent:-.25in;
mso-list:l2 level1 lfo3'><![if !supportLists]><span style='font-family:Symbol'><span
style='mso-list:Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]>If I would want to experiment with say HAppS, the
way I understand it, I first would first have to study &#8220;Scratch your
boilerplate&#8221; and Template Haskell, and maybe some other language features?
I&#8217;m still new to Haskell, and the road to understanding all language
elements and extensions is very long, so sequentially learning it would be
insane I guess. I have no practical experience with TH, but I spent a long time
trying to do &#8220;aspect oriented programming&#8221; in C# without success,
so TH looks uber to me&#8230;<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Thanks a lot and best wishes for 2008?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Peter<o:p></o:p></p>

</div>

</body>

</html>