Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-06 Thread Ken Fox
Tom Hughes wrote: > In message <[EMAIL PROTECTED]> > Chaim Frenkel <[EMAIL PROTECTED]> wrote: > > > I'd like to be able to mimic what the rules for nulls are in databases. > > > NULL == NULL : false > > Always true surely? NULL to a database means unknown not undefined or uniti

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-06 Thread Jeremy Howard
Tom Hughes wrote: > In message <[EMAIL PROTECTED]> > Chaim Frenkel <[EMAIL PROTECTED]> wrote: > > > I'd like to be able to mimic what the rules for nulls are in databases. > > (I only know sybase's rules, so there may be differences between vendors. > > Could somone that is aware of the

Re: Language RFC Summary 4th August 2000

2000-08-06 Thread Bart Lateur
On Sun, 06 Aug 2000 01:38:13 -0400, Dan Sugalski wrote: >>Even in perl5 an XS module can do _anything at all_. > >It can't access data the lexer's already tossed out. That's where the >current format format (so to speak) runs you into trouble. Only if you insist on the identical syntax as it ha

Re: RFC 46 (v1) Use features of portable, free compilers

2000-08-06 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Perl6 RFC Librarian <[EMAIL PROTECTED]> wrote: > GNU CPP supports > varargs macros, so why not ship GNU CPP with perl? There is no GPL > issue if it is only used in the build. C99 supports them as well, so you're likely to see other compilers start to su

Re: RFC 38 (v1) Standardise Handling Of Abnormal Numbers

2000-08-06 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Chaim Frenkel <[EMAIL PROTECTED]> wrote: > I'd like to be able to mimic what the rules for nulls are in databases. > (I only know sybase's rules, so there may be differences between vendors. > Could somone that is aware of the ANSI standard chime in.) Are

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

2000-08-06 Thread Dan Sugalski
At 09:11 PM 8/6/00 +, Nick Ing-Simmons wrote: >Dan Sugalski <[EMAIL PROTECTED]> writes: > > > >The rest is also there to optimize the common case. (Though I do think it's > >overkill in many circumstances if all variables share the same base > >structure--arrays don't really need an integer po

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

2000-08-06 Thread Nick Ing-Simmons
Dan Sugalski <[EMAIL PROTECTED]> writes: > >The rest is also there to optimize the common case. (Though I do think it's >overkill in many circumstances if all variables share the same base >structure--arrays don't really need an integer portion, neither do hashes) So you re-use the space for A

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Nick Ing-Simmons
Chaim Frenkel <[EMAIL PROTECTED]> writes: > >And why carry around IV/NV and ptr? Make it into a union, to allow room. _my_ original "ramblings" posting did. I kept the triple to pad the thing to 8 words. Partly as devil's advocate against the "squeeze it all into one word" camp ;-) Essentially

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

2000-08-06 Thread Dan Sugalski
At 08:51 PM 8/6/00 +, Nick Ing-Simmons wrote: >Ken Fox <[EMAIL PROTECTED]> writes: > > > >This got me thinking about whether it's necessary to define exactly what > >an SV struct is. The following seems over-specified: > > > > > >Dan's struct that includes thread sync stuff is also over-specif

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

2000-08-06 Thread Dan Sugalski
At 08:35 PM 8/6/00 +, Nick Ing-Simmons wrote: >Ken Fox <[EMAIL PROTECTED]> writes: > >(And if > >we say something like "this is fast" people will ignore all the warnings.) > >As one of the worst offenders I certainly will ;-) Works for me. :) People have always had the capability to fundament

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

2000-08-06 Thread Nick Ing-Simmons
Ken Fox <[EMAIL PROTECTED]> writes: > >This got me thinking about whether it's necessary to define exactly what >an SV struct is. The following seems over-specified: > > >Dan's struct that includes thread sync stuff is also over-specified. > >I think the only thing we have to standardize on is the

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

2000-08-06 Thread Nick Ing-Simmons
Ken Fox <[EMAIL PROTECTED]> writes: > >When we document this, can we move the low level interfaces out of the >pod directory? It would be a shame to have people accidentally start using >the internal interfaces just because they're well documented. ;) If they are well documented then the risks t

Re: Char encoding

2000-08-06 Thread Nick Ing-Simmons
Bryan C . Warnock <[EMAIL PROTECTED]> writes: >Perhaps string promotion a la SV promotion? > >You could have each string carry around an extra byte or two of >overhead, and encode ASCII vs UTF8 (vs UTF32 vs FOO). > >Line disciplines would set the appropriate flag, and any string >handling function

help writing RFC

2000-08-06 Thread John Tobey
Hi guys, I'm in the middle of writing an RFC regarding Perl's use of the C stack. If any of you has the time, please take a look at what I've written below and send me any comments or corrections. I haven't got to the implementation section yet, but it will involve smallish, fixed-size stack fr

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread John Tobey
Dan Sugalski <[EMAIL PROTECTED]> wrote: > > ``Abundant macros, inline functions, and API functions will be > > used wherever possible so as to allow fundamental changes to the > > internal representation.'' > > That belongs in a different RFC, the one roughing out the embedding, > ex

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

2000-08-06 Thread Dan Sugalski
At 10:13 AM 8/6/00 -0400, Ken Fox wrote: >Dan Sugalski wrote: > > >IMHO it would be a lot easier to read the > > >code if we clearly differentiated between what's now called SV and the > > >collection of xpv*'s. > > > > I agree. That's why I yanked in the PMC designation. :-) > >PMC isn't any easi

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Dan Sugalski
At 10:30 AM 8/6/00 -0400, John Tobey wrote: >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > At 08:33 AM 8/6/00 -0400, John Tobey wrote: > > >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > > At 11:44 PM 8/5/00 -0400, Chaim Frenkel wrote: > > > > >Why waste space on flags? The vtbl should handle that. >

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Ken Fox
John Tobey wrote: > Sorry, I fail to see why. To upgrade or destroy an object: > > 1. lock the object > 2. lock the source arena > 3. lock the destination arena > 4. move bits > 5. unlock the destination arena > 6. unlock the source arena > 7. unlock the object Arena

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread John Tobey
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 08:33 AM 8/6/00 -0400, John Tobey wrote: > >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > > At 11:44 PM 8/5/00 -0400, Chaim Frenkel wrote: > > > >Why waste space on flags? The vtbl should handle that. > > > > > > Because some flags are universal, and if t

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

2000-08-06 Thread Ken Fox
Dan Sugalski wrote: > >IMHO it would be a lot easier to read the > >code if we clearly differentiated between what's now called SV and the > >collection of xpv*'s. > > I agree. That's why I yanked in the PMC designation. :-) PMC isn't any easier than SV. I think we should call it a binding. Bin

Re: RFC: Foreign objects in perl

2000-08-06 Thread Dan Sugalski
At 07:54 AM 8/6/00 -0400, John Tobey wrote: >On Sun, Aug 06, 2000 at 01:24:10AM -0400, Dan Sugalski wrote: > > John Tobey wrote: > > > Picture this. A Lisp (or Java, ...) structure holds a Perl > > > interpreter. A Perl variable holds a reference to the Lisp structure. > > > Structure and int

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Dan Sugalski
At 08:33 AM 8/6/00 -0400, John Tobey wrote: >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > At 11:44 PM 8/5/00 -0400, Chaim Frenkel wrote: > > >Why waste space on flags? The vtbl should handle that. > > > > Because some flags are universal, and if they're not, this field > > gets tossed. > >Flags tha

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Dan Sugalski
At 08:40 AM 8/6/00 -0400, John Tobey wrote: >Chaim Frenkel <[EMAIL PROTECTED]> wrote: > > >> If the sync data is in the SV, I believe there is a race > > >> condition between the destruction and grabbing a lock. > > > > DS> Nope. If the variable is shared, the lock will need to be taken > > DS> to

Re: RFC 46 (v1) Use features of portable, free compilers

2000-08-06 Thread Dan Sugalski
At 07:13 AM 8/6/00 -0400, John Tobey wrote: >However, I believe I still have a strong case for encouraging adoption >of the good features of GNU CC and Libc as new standards and getting >vendors to contribute their optimizations. No one I know really wants >to maintain portability code such as Co

Re: RFC - Use features of portable, free compilers and libraries

2000-08-06 Thread Ken Fox
John Tobey wrote: > Use features of portable, free compilers and libraries As special optimization cases identified by Configure? Sure. I don't want to hurt portability though and I sure don't want to be unfriendly to vendors. IMHO this RFC is not in the spirit of the Artistic license. - Ken

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Ken Fox
Chaim Frenkel wrote: > > "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > DS> Most of what gets flag-checked now will probably do this, yes. > > >> And why waste the GC data. I suspect that most variables will not be shared. > > DS> Doesn't matter whether they're shared. Mark & sweep, gene

Re: RFC 46 (v1) Use features of portable, free compilers

2000-08-06 Thread Nathan Torkington
John Tobey writes: > I am furthermore *not* suggesting dropping support for non-Unix or > non-GCC platforms. I am merely saying that that is not where our > focus should be. Is there some problem with the current perl5 treatment of gcc that you're trying to address? If not, then I don't see the

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread Ken Fox
Dan Sugalski wrote: > I agree with this, though I'm pretty sure most scalars end up with multiple > types. I'm up for either way, though--I think some test code is in order > once things get a bit more hammered out. (I'd like to get some sample > variable code put together in a few weeks, once the

Re: RFC: Foreign objects in perl

2000-08-06 Thread Ken Fox
John Tobey wrote: > But if we anticipate possibly implementing mark-and-sweep We're definitely going to have some sort of traversing collector. It might only augment the ref count collector. The ref count might be 5 bits at the bottom of flags and we can do this: enum gc_flags { sticky = 16 };

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread John Tobey
On Sun, Aug 06, 2000 at 08:33:52AM -0400, John Tobey wrote: > If the stuff lives in an arena, have one mutex-init lock per page of > the arena. I imagine every arena page will be aligned on 4k or so and > will have a structure at the beginning containing the interpreter > pointer and stuff like t

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread John Tobey
On Sun, Aug 06, 2000 at 08:40:51AM -0400, John Tobey wrote: > Chaim Frenkel <[EMAIL PROTECTED]> wrote: > > >> If the sync data is in the SV, I believe there is a race > > >> condition between the destruction and grabbing a lock. > > > > DS> Nope. If the variable is shared, the lock will need to b

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread John Tobey
Chaim Frenkel <[EMAIL PROTECTED]> wrote: > >> If the sync data is in the SV, I believe there is a race > >> condition between the destruction and grabbing a lock. > > DS> Nope. If the variable is shared, the lock will need to be taken > DS> to destroy it. If it's not shared it's not an issue. >

Re: RFC 35 / Re: perl6-internals-gc sublist

2000-08-06 Thread John Tobey
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 11:44 PM 8/5/00 -0400, Chaim Frenkel wrote: > >Why waste space on flags? The vtbl should handle that. > > Because some flags are universal, and if they're not, this field > gets tossed. Flags that vary only when the vptr varies could go in a field of

Re: RFC: Foreign objects in perl

2000-08-06 Thread John Tobey
On Sun, Aug 06, 2000 at 01:24:10AM -0400, Dan Sugalski wrote: > John Tobey wrote: > > Picture this. A Lisp (or Java, ...) structure holds a Perl > > interpreter. A Perl variable holds a reference to the Lisp structure. > > Structure and interpreter become inaccessible to all threads. Perl >

Re: RFC 46 (v1) Use features of portable, free compilers

2000-08-06 Thread John Tobey
Your have a powerful argument for supporting argument standards and avoiding use of features that are ill-conceived or differently specified by a standard. I will add these points to the document. However, I believe I still have a strong case for encouraging adoption of the good features of GNU

Re: RFC 46 (v1) Use features of portable, free compilers

2000-08-06 Thread Russ Allbery
John Tobey <[EMAIL PROTECTED]> writes: > I am furthermore *not* suggesting dropping support for non-Unix or > non-GCC platforms. I am merely saying that that is not where our focus > should be. I think our focus should be on portable, standards-compliant code that will run on any platform that

Re: RFC 46 (v1) Use features of portable, free compilers

2000-08-06 Thread John Tobey
On Sat, Aug 05, 2000 at 10:02:23PM -0500, Jarkko Hietaniemi wrote: > On Sat, Aug 05, 2000 at 07:25:41PM -0700, Russ Allbery wrote: > > libraries and tools are better than the vendor counterparts; Sun's > > compilers and linkers are considerably better than GNU's for SPARC C code, > > for example.