Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Jarkko Hietaniemi
On Sat, Aug 12, 2000 at 10:27:17PM -0400, Dan Sugalski wrote: > At 10:24 PM 8/12/00 -0400, Chaim Frenkel wrote: > > > "NW" == Nathan Wiger <[EMAIL PROTECTED]> writes: > > > > > >NW> just deal with filenames universally this would be a big win (leave > >NW> acls, permissions, versions, etc to s

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: Ramblings on "base class" for SV etc.

2000-08-12 Thread Dan Sugalski
At 10:47 PM 8/12/00 -0400, Chaim Frenkel wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > >> Er, you still have to think about whether something could be tied and > >> tainted at the same time. > >DS> Yeah, that's an issue. We need to hammer out how much is the >responsibility

Re: Imrpoving tie() (Re: RFC 15 (v1) Stronger typing through tie.)

2000-08-12 Thread Dan Sugalski
At 12:48 PM 8/13/00 +1000, Jeremy Howard wrote: >Dan Sugalski writes: > > I don't mind if someone overrides the vtable functions for a variable of a > > built-in type--a standard declaration of: > > > > my $foo; > > > > is really shorthand for: > > > >my generic_scalar $foo; > > > > more o

Re: Imrpoving tie() (Re: RFC 15 (v1) Stronger typing through tie.)

2000-08-12 Thread Jeremy Howard
Dan Sugalski writes: > I don't mind if someone overrides the vtable functions for a variable of a > built-in type--a standard declaration of: > > my $foo; > > is really shorthand for: > >my generic_scalar $foo; > > more or less. If a variable gets its vtable functions messed with, well, >

Re: Ramblings on "base class" for SV etc.

2000-08-12 Thread Chaim Frenkel
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: >> Er, you still have to think about whether something could be tied and >> tainted at the same time. DS> Yeah, that's an issue. We need to hammer out how much is the responsibility DS> of the vtable functions, and how much is the responsib

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-12 Thread Chaim Frenkel
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes: LW> : =item vtable LW> : LW> : The vtable field holds a pointer to the vtable for a variable. Each LW> : variable type has its own vtable, holding pointers to functions for LW> : the variable. Vtables are shared between variables of the same L

Re: Method call optimization.

2000-08-12 Thread Chaim Frenkel
> "NI" == Nick Ing-Simmons <[EMAIL PROTECTED]> writes: NI> But how do we tell that "I am never going to be inherited by something" NI> so I can compile this code to use index. Let try this one. HOw about if we flip the indexing. We assign indices only to methods that are statically _seen_. I

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: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Dan Sugalski
At 10:24 PM 8/12/00 -0400, Chaim Frenkel wrote: > > "NW" == Nathan Wiger <[EMAIL PROTECTED]> writes: > > >NW> just deal with filenames universally this would be a big win (leave >NW> acls, permissions, versions, etc to something else). > >The VMS (and TOPS20) advocates will scream here. Versio

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: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Chaim Frenkel
> "NW" == Nathan Wiger <[EMAIL PROTECTED]> writes: NW> just deal with filenames universally this would be a big win (leave NW> acls, permissions, versions, etc to something else). The VMS (and TOPS20) advocates will scream here. Versions are part of the file name. The default is the latest

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-12 Thread Dan Sugalski
At 04:26 PM 8/12/00 -0700, Larry Wall wrote: >[EMAIL PROTECTED] writes: >: This way perl doesn't, for example, have to know how to access an >: individual element of an array of integers--it just asks the array to >: return it a particular element. Code MUST use the vtable functions to >: get or s

Re: Imrpoving tie() (Re: RFC 15 (v1) Stronger typing through tie.)

2000-08-12 Thread Dan Sugalski
At 12:23 PM 8/12/00 -0700, Larry Wall wrote: >Dan Sugalski writes: >: Yup. It's an issue for things that implement any non-standard semantics for >: existing ops, especially if those ops are overridden at runtime so the >: optimizer doesn't know. It's one thing to mess with tied variables, its >:

Re: Ramblings on "base class" for SV etc.

2000-08-12 Thread Dan Sugalski
At 03:11 PM 8/12/00 -0700, Larry Wall wrote: >Nick Ing-Simmons writes: >: Chaim Frenkel <[EMAIL PROTECTED]> writes: >: >Hmm, will vtbl get rid of all the magic hacks? >: >: The "mg.c" 'magic hacks' are in essence applying vtable semantics (they >: are even called vtables in the sources) to a subse

Re: sorted sparse containers (was Re: PDL-P: Re: Hooks for array notation (was Re: Ramblings on "baseclass" for SV etc.)

2000-08-12 Thread Dan Sugalski
At 12:14 PM 8/12/00 -0400, Bryan C. Warnock wrote: >On Fri, 11 Aug 2000, David L. Nicol wrote: > > Dan Sugalski wrote: > > > > > Strong typing and sparse arrays are orthogonal--no reason we > shouldn't use > > > them if someone does: > > > > > >$foo[time] > > > > > > or something of the sort.

Re: RFC 35 (v1) A proposed internal base format for perl

2000-08-12 Thread Larry Wall
[EMAIL PROTECTED] writes: : This way perl doesn't, for example, have to know how to access an : individual element of an array of integers--it just asks the array to : return it a particular element. Code MUST use the vtable functions to : get or set values from variables. They MUST NOT directly a

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Jarkko Hietaniemi
> > Splitting apart or putting together either one of these paths is trivial > > I think it's far from trivial, especially if you want to take into > account network names, file versions, protection attributes and ACLs, ... Access details like this are largely independent of the logical manipula

Re: Ramblings on "base class" for SV etc.

2000-08-12 Thread Larry Wall
Nick Ing-Simmons writes: : Chaim Frenkel <[EMAIL PROTECTED]> writes: : >Hmm, will vtbl get rid of all the magic hacks? : : The "mg.c" 'magic hacks' are in essence applying vtable semantics (they : are even called vtables in the sources) to a subset of "values". Well, yes, but there's a linked l

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Johan Vromans
Nathan Wiger <[EMAIL PROTECTED]> writes: >$fo = open "C:\Windows\System\IOSUBSYS\RMM.PDR"; >$fo->pathdrive = "C:" ; I think the drive is "C", not "C:". >$fo->patharray = [ Windows, System, IOSUBSYS, RMM.PDR ]; I think the patharray is [ Windows, System, IOSUBSYS ]. The file name is

Re: Internal Filename Representations (was Re: Summary of I/O related RFCs)

2000-08-12 Thread Nathan Wiger
> I think it's far from trivial, especially if you want to take into > account network names, file versions, protection attributes and ACLs, ... Sure, this all depends on what we're going to do with this data and at what level. The biggest problem that modules like CGI.pm have to deal with is jus

Re: Imrpoving tie() (Re: RFC 15 (v1) Stronger typing through tie.)

2000-08-12 Thread Larry Wall
Dan Sugalski writes: : Yup. It's an issue for things that implement any non-standard semantics for : existing ops, especially if those ops are overridden at runtime so the : optimizer doesn't know. It's one thing to mess with tied variables, its : another entirely to make + behave differently.

Re: RFC: Foreign objects in perl

2000-08-12 Thread Larry Wall
Benjamin Stuhl writes: : --- Bart Schuller <[EMAIL PROTECTED]> wrote: : > Larry knew what he was doing when he decided on utf8. : : It has also led to the perl5 internals being, to put it : bluntly, a horrible mess. And forget about the regex : engine. That's a vast oversimplification. It has v

Re: sorted sparse containers (was Re: PDL-P: Re: Hooks for array notation (was Re: Ramblings on "baseclass" for SV etc.)

2000-08-12 Thread Bryan C . Warnock
On Fri, 11 Aug 2000, David L. Nicol wrote: > Dan Sugalski wrote: > > > Strong typing and sparse arrays are orthogonal--no reason we shouldn't use > > them if someone does: > > > >$foo[time] > > > > or something of the sort. (People like huge arrays with few scalars in > > them too... :) >

Re: Method call optimization.

2000-08-12 Thread Nick Ing-Simmons
David L . Nicol <[EMAIL PROTECTED]> writes: > >One assumes that if you redefine (@ISA) perl5 throws away this cache? Not all at once. It increments a "generation number". When perl finds it is about to use a cached method it checks to see if the value post-dates the current generation number, or

Re: Method call optimization.

2000-08-12 Thread Nick Ing-Simmons
Chaim Frenkel <[EMAIL PROTECTED]> writes: >> "NI" == Nick Ing-Simmons <[EMAIL PROTECTED]> writes: > >>> Well, we could preload the vtbl with a _replace_me_ stub to do the >>> cacheing. > >NI> Just leave vtable blank and fill it when we need it - that part of perl's >NI> mechanism is not the pr

Re: Method call optimization.

2000-08-12 Thread Nick Ing-Simmons
Chaim Frenkel <[EMAIL PROTECTED]> writes: >> "NI" == Nick Ing-Simmons <[EMAIL PROTECTED]> writes: > >NI> If it has to be static then name => index has to be global across all classes >NI> as ISA tree adds leaves and reconverges. > >Run this one by me again. Why isn't it enough to have the inte