<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

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

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jesse, Dave, Eric &#8211; thank you for
the feedback.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am going to amend the language spec to allow
the decimal type to be provided according to the best abilities of the
platform. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> E M [mailto:<st1:PersonName
w:st="on">eric@sulawesi.net</st1:PersonName>] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, November 13, 2006
11:03 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">sdl-developers@ikayzo.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: FW: Couple of things</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>This is an interesting point. Both Java and C(++) would by definition
use libraries for this 128 bit fp data type and operations. Even if C#'s
decimal type is supported by the language, it is not supported by any piece of
hardware and is therefore implicitly library based. GMP, an example of a world
class Big Number library, wouldn't be any less consistent than probably already
exists between C# and Java. Especially since BigDecimal is NOT based upon fp
operations.<br>
<br>
It would actually be very interesting (though off topic) to write the native
code to integrate GMP into Java, and then test how close a mpf_t with mantissa=96
approximates the behavior of BigDecimal as used in Java SDL. If anyone ever
wants to do this, consider me a volunteer for the project :)<br>
<br>
Eric<br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>&quot;J. David
Beutel&quot; &lt;jdb@getsu.com&gt;</span></i></b> wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Is the issue here that the 128-bit decimal number is inconsistent in
the <br>
C++ library? If so, then another option is to support it but just let <br>
it be inconsistent. Or does SDL have a use-case for inter-platform <br>
communication? Unless all of the application's math remains inside SDL, <br>
such inconsistency seems inevitable with mixed languages and platforms. <br>
Is it better to have consistency within a given platform?<br>
<br>
Cheers,<br>
11011011<br>
<br>
&quot;Daniel Leuck&quot; <dan @ikayzo.com="">wrote on Monday, November 13, 2006
09:38:27:<br>
&gt;<br>
&gt; So you vote for #2? Does anyone else have an opinion?<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; BTW- I included decimal because two of our users in the finance sector <br>
&gt; wanted a type accurate enough to handle currency. In Java this means <br>
&gt; BigDecimal. In C# &quot;decimal&quot; is used.<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; *From:* Jesse Weaver [mailto:pianohacker@gmail.com]<br>
&gt; *Sent:* Monday, November 13, 2006 8:52 AM<br>
&gt; *To:* <st1:PersonName w:st="on">sdl-developers@ikayzo.org</st1:PersonName><br>
&gt; *Subject:* Re: FW: Couple of things<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; On 11/13/06, *Daniel Leuck* <dan @ikayzo.com=""><mailto:dan _x0040_ikayzo.com="">&gt;
<br>
&gt; wrote:<br>
&gt;<br>
&gt; Hi Jesse,<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; The Mono issue appears to be a bug with the Mono compiler (those two <br>
&gt; interface methods are not ambiguous), but I will look into what can be <br>
&gt; done.<br>
&gt;<br>
&gt; Re: I would think that a 32-bit integer and a 64-bit floating<br>
&gt; point would be enough.<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; The two options I would consider are:<br>
&gt;<br>
&gt; 1. Make the 128 bit decimal type an optional feature.<br>
&gt; 2. Redefine decimal as the most accurate decimal type available<br>
&gt; on the platform.<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; I am leaning strongly towards one because I don't like the notion<br>
&gt; of something having significantly different meaning on different<br>
&gt; platforms. Any objections?<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt; Dan<br>
&gt;<br>
&gt; <br>
&gt;<br>
&gt;<br>
&gt; Well, there is one problem: right now, Java and C# support the 128-bit <br>
&gt; number, and C++ won't. This effectively means that we'll have two <br>
&gt; versions of the SDL language. Since the decimal type is probably only <br>
&gt; needed for special uses, this should be okay, but it could lead to <br>
&gt; problems down the road.<br>
&gt;<br>
&gt; -- <br>
&gt; Jesse<br>
&gt;<br>
&gt; -----------<br>
&gt; There is a theory which states that if anybody ever discovers exactly <br>
&gt; what the Universe is for and why it is here, it will instantly <br>
&gt; disappear and be replaced by something even more bizarre and <br>
&gt; inexplicable. There is another theory which states that this has <br>
&gt; already happened. - Douglas Adams, author of Hitchhiker's Guide to the <br>
&gt; Galaxy<br>
&gt;<br>
<br>
<br>
<br>
<o:p></o:p></span></font></p>

</mailto:dan></dan></dan>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<br>
&quot;Those who would give up essential liberty to purchase<br>
a little temporary safety deserve neither liberty nor<br>
safety.&quot; -- B. Franklin<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>