storeOn: and literal limits
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 -- View this message in context: http://forum.world.st/storeOn-and-literal-limits-tp4832255.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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.
Le 14/06/2015 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?
I'd try if it works for you first :) Code is there: https://github.com/ThierryGoubier/SmaCC/blob/d5371fbf3298fcf8a0053d5c122db76... https://github.com/ThierryGoubier/SmaCC/blob/90257788f495cc8bb3900f64115cca8... https://github.com/ThierryGoubier/SmaCC/blob/90257788f495cc8bb3900f64115cca8... Thierry
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.
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 -- View this message in context: http://forum.world.st/storeOn-and-literal-limits-tp4832255p4832337.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (3)
-
Sean P. DeNigris -
stepharo -
Thierry Goubier