Re: STON question
Posted by
Stéphane Ducasse on
Jun 28, 2020; 10:24am
URL: https://forum.world.st/STON-question-tp5119083p5119093.html
Hi russ,
I do not if you know but based on Ston I built chrysal
to manage applications configuration:
The basic idea is that you describe the possible fields of your configuration (i.e. how user can edit JSON files) and
it generates a converter from STON to your pharo objects.
You ship just the converter and its textual description so that you understand what you did.
But this is probably not what you need but more a textual serializer.
S.
Good morning all from stormy Ohio/USA. Hope everyone is well and sheltering effectively from COVID, etc.
I have a STON question. FIrst off, I LOVE STON. It has been the answer to my (minimal) persistence needs. I'm writing two different applications, both of which I hope to distribute someday, and I struggled with what would work to save configurations, templates, status, etc. STON was the answer for me - it's very easy to install and simple to use.
But as I add the next feature/function in my code - sort blocks - as soon as I tried to save them (a collection of them in an instvar)... I get an error on the writeToSTON, and the target file is now corrupt - at the point where it tried to write the blocks. I have looked in the documentation and it plainly states the version I'm using does not yet address blocks - but I was hoping someone out there has developed a workaround, or perhaps has STON been updated to handle blocks?
I could make the jump to a more sophisticated storage mechanism (i.e. Fuel?), but I'd rather spend my time working on features and figuring out the Spec2 GUI. :)
Any advice is welcome and appreciated.
Thanks!
--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France