<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 – 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> </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> </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> </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'>"J. David
Beutel" <jdb@getsu.com></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>
"Daniel Leuck" <dan @ikayzo.com="">wrote on Monday, November 13, 2006
09:38:27:<br>
><br>
> So you vote for #2? Does anyone else have an opinion?<br>
><br>
> <br>
><br>
> BTW- I included decimal because two of our users in the finance sector <br>
> wanted a type accurate enough to handle currency. In Java this means <br>
> BigDecimal. In C# "decimal" is used.<br>
><br>
> <br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> *From:* Jesse Weaver [mailto:pianohacker@gmail.com]<br>
> *Sent:* Monday, November 13, 2006 8:52 AM<br>
> *To:* <st1:PersonName w:st="on">sdl-developers@ikayzo.org</st1:PersonName><br>
> *Subject:* Re: FW: Couple of things<br>
><br>
> <br>
><br>
> <br>
><br>
> On 11/13/06, *Daniel Leuck* <dan @ikayzo.com=""><mailto:dan _x0040_ikayzo.com="">>
<br>
> wrote:<br>
><br>
> Hi Jesse,<br>
><br>
> <br>
><br>
> The Mono issue appears to be a bug with the Mono compiler (those two <br>
> interface methods are not ambiguous), but I will look into what can be <br>
> done.<br>
><br>
> Re: I would think that a 32-bit integer and a 64-bit floating<br>
> point would be enough.<br>
><br>
> <br>
><br>
> The two options I would consider are:<br>
><br>
> 1. Make the 128 bit decimal type an optional feature.<br>
> 2. Redefine decimal as the most accurate decimal type available<br>
> on the platform.<br>
><br>
> <br>
><br>
> I am leaning strongly towards one because I don't like the notion<br>
> of something having significantly different meaning on different<br>
> platforms. Any objections?<br>
><br>
> <br>
><br>
> Dan<br>
><br>
> <br>
><br>
><br>
> Well, there is one problem: right now, Java and C# support the 128-bit <br>
> number, and C++ won't. This effectively means that we'll have two <br>
> versions of the SDL language. Since the decimal type is probably only <br>
> needed for special uses, this should be okay, but it could lead to <br>
> problems down the road.<br>
><br>
> -- <br>
> Jesse<br>
><br>
> -----------<br>
> There is a theory which states that if anybody ever discovers exactly <br>
> what the Universe is for and why it is here, it will instantly <br>
> disappear and be replaced by something even more bizarre and <br>
> inexplicable. There is another theory which states that this has <br>
> already happened. - Douglas Adams, author of Hitchhiker's Guide to the <br>
> Galaxy<br>
><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>
"Those who would give up essential liberty to purchase<br>
a little temporary safety deserve neither liberty nor<br>
safety." -- B. Franklin<o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>