<div dir="ltr"><div>I have published an early implementation of Posit with very few PositTests</div><div>at <a href="http://www.squeaksource.com/STEM">http://www.squeaksource.com/STEM</a></div><div><br></div><div>Currently, reciprocal is not correct (it's the rough approximation given by circle symmetry) , and the implementation of mathematical functions rely on Float, which is only a good idea for small Posit representations (low range, low precision).</div><div>The rest of arithmetic uses asFraction, which is not fast, but is exact.</div><div><br></div><div>I have not implemented a Quire, since by now we can perform all arithmetic asFraction with infinite precision.</div><div>Quire has an interest if accelerated.</div><div><br></div><div>Also, the Posit intervals are not implemented, that would be interesting too.<br></div><div><br></div><div>The decoding of Posit bit fields is duplicated at many places, and that might be better factored.<br><div></div><div><br></div><div>The algorithm for correctly rounding to a Posit is also duplicated in Float/Integer/Fraction.</div><div>Since it is not trivial, it definitely lacks tests.</div><div><br></div><div>If you wanna play...<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 10 nov. 2022 à 18:34, Lauren P <<a href="mailto:drurowin@gmail.com">drurowin@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Lists,<div dir="auto"><br></div><div dir="auto">This is the first I've ever heard of posits.</div><div dir="auto"><br></div><div dir="auto">I certainly don't see the harm in including them in Squeak! If it isn't too arduous, I think we should.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 10, 2022, 06:55 Tony Garnock-Jones <<a href="mailto:tonyg@leastfixedpoint.com" target="_blank">tonyg@leastfixedpoint.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks for that link, Eliot! That led me down a rabbit hole [1][2], and <br>
upon coming out I can say I officially love posits. Very cool stuff. (To <br>
other readers of this message: if you read or skim only one document, it <br>
should be [1] IMO.)<br>
<br>
Cheers,<br>
   Tony<br>
<br>
[1]: <a href="https://posithub.org/docs/Posits4.pdf" rel="noreferrer noreferrer" target="_blank">https://posithub.org/docs/Posits4.pdf</a><br>
[2]: <a href="https://posithub.org/docs/posit_standard-2.pdf" rel="noreferrer noreferrer" target="_blank">https://posithub.org/docs/posit_standard-2.pdf</a><br>
<br>
On 11/9/22 17:54, Eliot Miranda wrote:<br>
> It would be nice to have these alongside Float. Perhaps with a 128 bit <br>
> representation…<br>
> <br>
> Begin forwarded message:<br>
> <br>
>> *From:* Annick Fron <<a href="mailto:annick.fron@afceurope.com" rel="noreferrer" target="_blank">annick.fron@afceurope.com</a>><br>
>> *Date:* November 9, 2022 at 1:14:46 AM PST<br>
>> *To:* vwnc NC <<a href="mailto:vwnc@cs.uiuc.edu" rel="noreferrer" target="_blank">vwnc@cs.uiuc.edu</a>><br>
>> *Subject:* *[vwnc] Posits*<br>
>> *Reply-To:* Annick Fron <<a href="mailto:annick.fron@afceurope.com" rel="noreferrer" target="_blank">annick.fron@afceurope.com</a>><br>
>><br>
>> Hi,<br>
>><br>
>> Does anybody know about posits ?<br>
>><br>
>> <a href="https://www.cs.cornell.edu/courses/cs6120/2019fa/blog/posits/" rel="noreferrer noreferrer" target="_blank">https://www.cs.cornell.edu/courses/cs6120/2019fa/blog/posits/</a> <br>
>><br>
>> Best regards<br>
>><br>
>> Annick<br>
> <br>
> Eliot<br>
> _,,,^..^,,,_ (phone)<br>
> <br>
> <br>
<br>
</blockquote></div>
<br>
</blockquote></div>