Re: [ANN] The STON Specification
Posted by
Julien Delplanque-2 on
Nov 06, 2018; 8:03am
URL: https://forum.world.st/ANN-The-STON-Specification-tp5088047p5088269.html
Hello,
STON is able to serialise Pharo’s Floats, what do you mean by double ?
Additionally, I recently asked Sven if t would be possible to store ScaledDecimals (I think it implements what you call ArbitraryPrecisionFloats) without loss of precision.
Before, because STON extends JSON, it was storing all kind of numbers either as float or integer.
Now, thanks to Sven, STON stores ScaledDecimals correctly (without loss of precision through serialisation as float, what was done before).
But I do not know if this change is integrated in recent images yet.
Cheers,
Julien
---
Julien Delplanque
Doctorant à l’Université de Lille
Bâtiment B 40, Avenue Halley 59650 Villeneuve d'Ascq
Numéro de téléphone: +333 59 35 86 40
(Having domain problems recently. Please excuse this posting if you have
seen it twice. I've not seen it appear yet on the list.)
Can STON be extended to handle Doubles and ArbitraryPrecisionFloats?
Shaping
-----Original Message-----
From: Pharo-dev [
[hidden email]] On Behalf Of
David T. Lewis
Sent: Wednesday, October 31, 2018 14:58
To: Pharo Development List <
[hidden email]>
Subject: Re: [Pharo-dev] [ANN] The STON Specification
This is very clear and well written.
Dave
Hi,
Since there can never be enough documentation I finally took some time
to write a more formal description of STON as a data format.
https://github.com/svenvc/ston/blob/master/ston-spec.md
The idea is to let this stabilise a bit and to then update the two
other documents describing STON, where necessary:
https://github.com/svenvc/ston/blob/master/ston-paper.md
https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuc
cessfulBuild/artifact/book-result/STON/STON.html
Also, the latest changes in STON have to make their way to the Pharo
image as well.
https://github.com/svenvc/ston
All feedback is welcome.
Sven
--
Sven Van Caekenberghe
Proudly supporting Pharo
http://pharo.org
http://association.pharo.org
http://consortium.pharo.org