[Rd] modifying a persistent (reference) class

2014-08-01 Thread Ross Boylan
I saved objects that were defined using several reference classes. Later I modified the definition of reference classes a bit, creating new functions and deleting old ones. The total number of functions did not change. When I read them back I could only access some of the original data. I asked

Re: [Rd] modifying a persistent (reference) class

2014-08-01 Thread Brian Lee Yung Rowe
Ross, This is generally a hard problem in software systems. The only language I know that explicitly addresses it is Erlang. Ultimately you need a system upgrade process, which defines how to update the data in your system to match a new version of the system. You could do this by writing a scr

Re: [Rd] modifying a persistent (reference) class

2014-08-01 Thread Ross Boylan
On Fri, 2014-08-01 at 14:42 -0400, Brian Lee Yung Rowe wrote: > Ross, > > > This is generally a hard problem in software systems. The only > language I know that explicitly addresses it is Erlang. Ultimately you > need a system upgrade process, which defines how to update the data in > your syste

Re: [Rd] modifying a persistent (reference) class

2014-08-01 Thread Brian Lee Yung Rowe
Ross, Ah I didn't think about Smalltalk. Doesn't surprise me that they supported upgrades of this sort. That aside I think the question is whether it's realistic for a language like R to support such a mechanism automatically. Smalltalk and Erlang both have tight semantics that would be hard to

Re: [Rd] modifying a persistent (reference) class

2014-08-01 Thread Ross Boylan
On Fri, 2014-08-01 at 16:06 -0400, Brian Lee Yung Rowe wrote: > Ross, > > > Ah I didn't think about Smalltalk. Doesn't surprise me that they > supported upgrades of this sort. That aside I think the question is > whether it's realistic for a language like R to support such a > mechanism automatic

Re: [Rd] modifying a persistent (reference) class

2014-08-01 Thread Gábor Csárdi
On Fri, Aug 1, 2014 at 4:47 PM, Ross Boylan wrote: [...] > First, I'd like to understand more about exactly what is saved to disk > for reference and other classes, in particular how much meta-information > they contain. And my mental model for reference class persistence is > clearly wrong, beca

Re: [Rd] modifying a persistent (reference) class

2014-08-01 Thread Winston Chang
R6 objects are basically just environments, so they're probably pretty simple to save and restore (I haven't tested it out, though). -Winston On Fri, Aug 1, 2014 at 4:00 PM, Gábor Csárdi wrote: > On Fri, Aug 1, 2014 at 4:47 PM, Ross Boylan wrote: > [...] >> First, I'd like to understand more ab