Re: Ideas On what a SV is

2000-08-12 Thread Chaim Frenkel
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 10:26 PM 8/12/00 -0400, Chaim Frenkel wrote: >> If we are going to have pre-compiled modules (bytecode or machine) why >> bother with AUTOLOAD? >> >> The "registry" would handle the 'autoloading' DS> It can't, though. We don't know a

Re: Ideas On what a SV is

2000-08-12 Thread Dan Sugalski
At 10:26 PM 8/12/00 -0400, Chaim Frenkel wrote: >If we are going to have pre-compiled modules (bytecode or machine) why >bother with AUTOLOAD? > >The "registry" would handle the 'autoloading' It can't, though. We don't know at compile time (especially if we're compiling just a module) what AUTOL

Re: Ideas On what a SV is

2000-08-12 Thread Chaim Frenkel
If we are going to have pre-compiled modules (bytecode or machine) why bother with AUTOLOAD? The "registry" would handle the 'autoloading' > "DS" == Dave Storrs <[EMAIL PROTECTED]> writes: DS> On Fri, 11 Aug 2000, David L. Nicol wrote: DS> [...] >> Redefining a method during run time --

Re: Ideas On what a SV is

2000-08-11 Thread Dave Storrs
On Fri, 11 Aug 2000, David L. Nicol wrote: [...] > Redefining a method during run time --- is that even a feature that > needs to be supported? I think so. A couple of examples are the Memoize module, which works by rewriting your memoized function into something that uses caching, th

Re: Ideas On what a SV is

2000-08-11 Thread Chaim Frenkel
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> At 02:20 PM 8/11/00 -0500, David L. Nicol wrote: >> Redefining a method during run time --- is that even a feature that >> needs to be supported? DS> Yes. DS> Also, the problem with vtables holding object methods objects is that DS> vt

Re: Ideas On what a SV is

2000-08-11 Thread Dan Sugalski
At 02:20 PM 8/11/00 -0500, David L. Nicol wrote: >Redefining a method during run time --- is that even a feature that >needs to be supported? Yes. Also, the problem with vtables holding object methods objects is that vtable functions are at fixed, small offsets, while methods are named. This w

Re: Ideas On what a SV is

2000-08-11 Thread David L. Nicol
Dan Sugalski wrote: > > On Thu, 10 Aug 2000, David L. Nicol wrote: > > > Two fields. > > > > This'll cause issues both with GC and thread synchronization. (Besides, > don't skimp on fields in the base variable structure. Memory's reasonably > cheap, and shaving a few bytes off isn't worth it an

Re: Ideas On what a SV is

2000-08-11 Thread David L. Nicol
"Bryan C. Warnock" wrote: > > On Thu, 10 Aug 2000, David L. Nicol wrote: > > Within a perl instance, every object type must register itself on > > loading. At registration, a number is assigned, the jump table > > of common functions that that object type overloads is filled, and also > > a poin

Re: Ideas On what a SV is

2000-08-10 Thread Dan Sugalski
On Thu, 10 Aug 2000, David L. Nicol wrote: > Two fields. > > First is type, which is 0 for a double-precision FP > > 1 for a string and higher than that for a defined type in the > defined type table. > > Second is the number, for type 0, and a pointer to > the beginning of the object for ever

Re: Ideas On what a SV is

2000-08-10 Thread Bryan C . Warnock
On Thu, 10 Aug 2000, David L. Nicol wrote: > Within a perl instance, every object type must register itself on > loading. At registration, a number is assigned, the jump table > of common functions that that object type overloads is filled, and also > a pointer to the association for uncommon met

Re: Ideas On what a SV is

2000-08-10 Thread Chaim Frenkel
Why not a direct pointer to the vtbl? And not having a defined type table, one avoids the bookkeeping overhead of having to register each type. No need to play with assigning type numbers (no IANA needed.) Any object can alter its behavior to a non-defined type by simply creating a vtbl and usin