<div dir="auto">Hi, I think if you need to port ScaledDecimal for your project it would be nice to put it in a separated ScaledDecimal package, so anyone who needs it can use the package. We do this with Complex for example.</div><div dir="auto"><br></div><div dir="auto">About random generators, I use the default one (ParkMiller93Random), have been using it extensively for years and never had the need to use a different one. But again it is great to have alternatives, and could be useful to have this in a package too. In Cuis the random number generators are extensible, so it is easy to create a new subclass of Random that implements a different algorithm. The disadvantage I see with the algorithm you propose is that it uses 64 bit arithmetic and would end up using LargeIntegers in 32 bit platforms, right? About gaps, in Cuis we implemented the random number generators as sort of black boxes that output a number of uniformly distributed bits each time, and we can concatenate them to generate random bitstrings of any size, so there are no gaps when generating Floats or arbitrarily large integers (see Random>>nextInteger:). Of course there could be loss of random qualities if you use it to generate too big bitstrings, but the period is large enough and it never was a problem for me.</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 31 Mar 2021 at 4:26 PM Benoit St-Jean via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Is there any reason why ScaledDecimal is not present in Cuis? Would <br>
anyone be interested if I did port it to Cuis?<br>
<br>
I was thinking about porting the MySQL driver to Cuis (hence the need <br>
for ScaledDecimal) as a nice project to experiment with Cuis.  Anyone <br>
interested by such a port?<br>
<br>
I noticed you have a few random number generators in Cuis.  Would anyone <br>
like me to port my version of SplitMix64 <br>
(<a href="https://github.com/bstjean/SmalltalkStuff/tree/master/SplitMix64" rel="noreferrer" target="_blank">https://github.com/bstjean/SmalltalkStuff/tree/master/SplitMix64</a>) to <br>
Cuis ? It's a RNG used to generate very large numbers that doesn't <br>
suffer the usual gaps created with 32 bit arithmetic.<br>
<br>
P.S. Very nice job guys!<br>
<br>
-- <br>
-----------------<br>
Benoît St-Jean<br>
Yahoo! Messenger: bstjean<br>
Twitter: @BenLeChialeux<br>
Pinterest: benoitstjean<br>
Instagram: Chef_Benito<br>
IRC: lamneth<br>
GitHub: bstjean<br>
Blogue: <a href="http://endormitoire.wordpress.com" rel="noreferrer" target="_blank">endormitoire.wordpress.com</a><br>
"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)<br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>