[squeak-dev] Re: [Pharo-project] [ANN] STON - Smalltalk Object
Notation
H. Hirzel
hannes.hirzel at gmail.com
Sat May 5 09:53:38 UTC 2012
Thank you Sven for your follow up of the recent JSON/STON/Tirade
discussion by providing an STON implementation for Squeak 4.3 and
working with Dale to get it to other Smalltalks (github). [1]
I think your STON implementation will be very useful for my work. It
works fine in Squeak 4.3 updated to the latest change [2].
There is a class STON used as a singleton. I assume this is the
equivalent of the JSON object in web browsers, right?
--Hannes
-----------------------------------------------------------------------------------------------------------------
[1]
http://www.mail-archive.com/pharo-project@lists.gforge.inria.fr/msg62706.html
Example object
Dale H. writes
Tue, 24 Apr 2012 10:23:18 -0700
Sven,
I looked at your sample document in the pdf:
TestDomainObject {
#created : DateAndTime [ '2012-02-14T16:40:15+01:00' ],
#modified : DateAndTime [ '2012-02-14T16:40:18+01:00' ],
#integer : 39581,
#float : 73.84789359463944,
#description : 'This is a test',
#color : #green,
#tags : [
#two,
#beta,
#medium
],
#bytes : ByteArray [ 'afabfdf61d030f43eb67960c0ae9f39f' ],
#boolean : false
}
-----------------------------------------------------------------------------------------------------------------
[2] Tests in Squeak 4.3
MCHttpRepository
location: 'http://ss3.gemstone.com/ss/STON'
user: ''
password: ''
loads fine in a fully updated Squeak-4.3
all 86 tests are green.
On 5/5/12, Serge Stinckwich <serge.stinckwich at gmail.com> wrote:
> On Sat, May 5, 2012 at 4:02 AM, Sven Van Caekenberghe <sven at beta9.be>
> wrote:
>> Hi,
>>
>> STON - Smalltalk Object Notation is a lightweight text-based,
>> human-readable data interchange format for class-based object-oriented
>> languages like Smalltalk. It can be used to serialize domain level
>> objects, either for persistency or network transport. As its name
>> suggests, it is based on JSON (Javascript Object Notation). It adds
>> symbols as a primitive value, class tags for object values and
>> references.
>>
>> Please read the paper here:
>>
>> https://github.com/svenvc/ston/blob/master/ston-paper.md
>>
>> The project lives here:
>>
>> https://github.com/svenvc/ston
>>
>> The code can be found here as well:
>>
>> http://ss3.gemstone.com/ss/STON
>>
>> This implementation works on Pharo 1.3, 1.4 and 2.0 as well as on Squeak.
>>
>> Last week Dale Henrich helped me get started with filetree/git
>> (https://github.com/dalehenrich/filetree) and I like it. Check it out!
>> He also ported STON to Gemstone, and is working on Amber and Cuis ports
>> (https://github.com/dalehenrich/ston).
>
> Welcome on board ;-)
>
> Regards,
> --
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
> Every DSL ends up being Smalltalk
> http://doesnotunderstand.org/
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: STONtest-in-Squeak4.3-updated-to-12031-b.PNG
Type: image/png
Size: 64060 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20120505/8cb36fd1/STONtest-in-Squeak4.3-updated-to-12031-b-0001.png
More information about the Squeak-dev
mailing list
|