[squeak-dev] Fun with spock (NativeBoost FFI)

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon May 14 06:41:35 UTC 2012


There is also ArbitraryPrecisionFloat
(http://www.squeaksource.com/ArbitraryPrecisionFl) for image internal
representation.
It is using base 2 for internal implementation, not sure if it fits
gmp floats...
It could also provide a slooow replacement if gmp is absent.

Nicolas

2012/5/14 Igor Stasenko <siguctua at gmail.com>:
> On 14 May 2012 01:39, Lawson English <lenglish5 at cox.net> wrote:
>> On 5/13/12 3:49 PM, Igor Stasenko wrote:
>>>
>>> On 14 May 2012 00:03, Lawson English<lenglish5 at cox.net>  wrote:
>>>>
>>>> So...
>>>>
>>>>
>>>> What can be done to better integrate such libraries? I browsed the Parser
>>>> and other classes but didn't understand what I was seeing well enough to
>>>> figure out how to begin.
>>>>
>>> See SqNumberParser.
>>> this is the guy who used by Parser to parse number literals.
>>>
>>>
>>
>> Thanks.
>
> keep in mind that the instance of those numbers from GMP library is kept in
> external memory. that means if you save an image with it, all of them
> will become invalid.
> that, in own turn, makes them pretty useless as literals, unless you
> will be using some intermediate form
> to keep them and convert on request, i.e..
>
> pi
>  ^ '3.14159265358979323846264338327950288419716939937510' asGMPFloat
>
>
> --
> Best regards,
> Igor Stasenko.
>


More information about the Squeak-dev mailing list