storeOn: and literal limits

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

storeOn: and literal limits

Sean P. DeNigris
Administrator
Does anything exist to handle uses of #storeOn: that bump into the literal limit? E.g. that splits the offending constructor method into several methods? Thanks.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: storeOn: and literal limits

Thierry Goubier
Le 13/06/2015 16:06, Sean P. DeNigris a écrit :
> Does anything exist to handle uses of #storeOn: that bump into the literal
> limit? E.g. that splits the offending constructor method into several
> methods? Thanks.

There is some code in SmaCC to handle that.

Thierry

Reply | Threaded
Open this post in threaded view
|

Re: storeOn: and literal limits

Sean P. DeNigris
Administrator
Thierry Goubier wrote
There is some code in SmaCC to handle that.
Would it make sense to extract?
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: storeOn: and literal limits

Thierry Goubier
Reply | Threaded
Open this post in threaded view
|

Re: storeOn: and literal limits

stepharo
In reply to this post by Sean P. DeNigris
storeOn: is old because it will not handle cycles and other.
So I would simply use Ston.

Stef

Le 14/6/15 06:20, Sean P. DeNigris a écrit :

> Thierry Goubier wrote
>> There is some code in SmaCC to handle that.
> Would it make sense to extract?
>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/storeOn-and-literal-limits-tp4832255p4832324.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: storeOn: and literal limits

Sean P. DeNigris
Administrator
stepharo wrote
storeOn: is old because it will not handle cycles and other.
So I would simply use Ston.
I agree. I ran into two problems right away - internal references are not maintained and it's easy to hit the literal array limit. However, my use case is saving data in Pharo and loading it into Amber, and right now amber-ston is not in a usable state. So, #storeOn: has the unique advantage of saving as Smalltalk source code, and therefore requiring no external library support. So it's useful in simple cases/models where one won't hit those limits
Cheers,
Sean