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

2000-08-05 Thread Chaim Frenkel
> "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, generational, and DS> refcount garb

Re: RFC: Foreign objects in perl

2000-08-05 Thread Dan Sugalski
At 03:29 AM 8/4/00 -0400, Ken Fox wrote: >Dan Sugalski wrote: > > Your extended way's cool too--RFC it and we can do that as well. > >I've been wanting to. It would be nice (at least for me) for you to >start suggesting more RFC "assignments" like this. Community is not >the same as "no ownership"

Re: Language RFC Summary 4th August 2000

2000-08-05 Thread Dan Sugalski
At 11:40 AM 8/5/00 +, Nick Ing-Simmons wrote: >Damian Conway <[EMAIL PROTECTED]> writes: > > > It definitely is, since formats do things that can't be done in > modules. > > > >Such as??? > >Quite. > >Even in perl5 an XS module can do _anything at all_. It can't access data the lexer's alr

Re: RFC: Foreign objects in perl

2000-08-05 Thread Dan Sugalski
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 > will never know it's done with the Lisp structure, neither Perl nor

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

2000-08-05 Thread Dan Sugalski
At 10:02 PM 8/5/00 -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. > >Likewise for D

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

2000-08-05 Thread Dan Sugalski
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. >There are a limited >number of valid combinations, the vtbl could alter the behavior and >trading space for speed,

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

2000-08-05 Thread Dan Sugalski
At 06:24 PM 8/5/00 -0400, Ken Fox wrote: >Nick Ing-Simmons wrote: > > I am tempted to turn that round - have the vtable pointer in the SV *, > > and the type code (if we need it) in the vtable - that saves a deref on > > dispatch - where we need speed - and still allows type code access for > > me

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

2000-08-05 Thread Chaim Frenkel
I was thinking of RFC'ing tri-state logic. Would it be worthwhile to make it seperate or to extend your RFC? 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 sta

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

2000-08-05 Thread Chaim Frenkel
Why waste space on flags? The vtbl should handle that. There are a limited number of valid combinations, the vtbl could alter the behavior and trading space for speed, no need to check flags. Alter the vtbl instead. (Perhaps a simple state machine.) And why waste the GC data. I suspect that most

Re: C--

2000-08-05 Thread Kevin Scott
John Tobey wrote: > > My quickie summary seems to be inaccurate. The lcc thing is not an > implementation, it's a C-- code generator (why??). The "lcc thing" is a C to C-- translator that serves two purposes: to demonstrate how one might employ C-- as a back-end, and to provide an abundant sourc

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

2000-08-05 Thread Jarkko Hietaniemi
On Sat, Aug 05, 2000 at 07:25:41PM -0700, Russ Allbery wrote: > > =head1 TITLE > > > Use features of portable, free compilers and libraries > > [...] > > > =head1 ABSTRACT > > > There is no sane reason why *nix vendors continue to push proprietary > > compilers and system libraries on their cu

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

2000-08-05 Thread Russ Allbery
> =head1 TITLE > Use features of portable, free compilers and libraries [...] > =head1 ABSTRACT > There is no sane reason why *nix vendors continue to push proprietary > compilers and system libraries on their customers when better, free > replacements could be had for little effort. Eventual

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

2000-08-05 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Use features of portable, free compilers and libraries =head1 VERSION Maintainer: John Tobey <[EMAIL PROTECTED]> Date: 5 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 46 =head1 ABST

RFC - Use features of portable, free compilers and libraries

2000-08-05 Thread John Tobey
I'm sending this to perl6-internals and BCC'ing it to perl6-rfc. Maybe that is a good compromise. -John =head1 TITLE Use features of portable, free compilers and libraries =head1 VERSION Maintainer: John Tobey <[EMAIL PROTECTED]> Date: 5 Aug 2000 Version: 1 Mailing List: [EMAIL PROTEC

Re: GC

2000-08-05 Thread Russ Allbery
Bennett Todd <[EMAIL PROTECTED]> writes: > If perl6 were to want to try and rise to the level of jwz's design > aesthetics, I'd say we oughta save ourselves a lot of work and abandon > it now. jwz (thanks for xemacs and netscape) is solidly in the "no > program can be gigantic enough, or slow eno

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

2000-08-05 Thread Ken Fox
Nick Ing-Simmons wrote: > I am tempted to turn that round - have the vtable pointer in the SV *, > and the type code (if we need it) in the vtable - that saves a deref on > dispatch - where we need speed - and still allows type code access for > meta ops. I was thinking about the case where someo

Re: GC

2000-08-05 Thread Bennett Todd
2000-08-02-19:43:57 Simon Cozens: > Ref counting isn't garbage collection. Ref counting is fine garbage collection. > http://www.jwz.org/doc/gc.html If perl6 were to want to try and rise to the level of jwz's design aesthetics, I'd say we oughta save ourselves a lot of work and abandon it now.

Re: RFC 43 (v1) Integrate BigInts (and BigRats) Support

2000-08-05 Thread Tim Jenness
On 5 Aug 2000, Perl6 RFC Librarian wrote: > This and other RFCs are available on the web at > http://tmtowtdi.perl.org/rfc/ > > =head1 TITLE > > Integrate BigInts (and BigRats) Support Tightly With The Basic Scalars > > Either include (if there is a bigint library with the appropriate > fea

RFC 43 (v1) Integrate BigInts (and BigRats) Support

2000-08-05 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://tmtowtdi.perl.org/rfc/ =head1 TITLE Integrate BigInts (and BigRats) Support Tightly With The Basic Scalars =head1 VERSION Maintainer: Jarkko Hietaniemi <[EMAIL PROTECTED]> Date: 05 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECT

RFC 38 (v2) Standardise Handling Of Abnormal Numbers

2000-08-05 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://tmtowtdi.perl.org/rfc/ =head1 TITLE Standardise Handling Of Abnormal Numbers Like Infinities And NaNs =head1 VERSION Maintainer: Jarkko Hietaniemi <[EMAIL PROTECTED]> Date: 05 Aug 2000 Version: 2 Mailing List: [EMAIL PROTECTED]

Re: RFC 35 v1, internal base format for perl variables

2000-08-05 Thread John Tobey
Hmm, somehow this slipped through the cracks as I was changing list subscription addresses. Oh, well. Below are my quickie, off-the-cuff reactions to Dan's RFC #35v1. Recipe cum grano salis. >The base variable structure looks like: > >struct { > IV GC_data; > void *variable_data;

RFC 42 (v1) Request For New Pragma: Shell

2000-08-05 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://tmtowtdi.perl.org/rfc/ =head1 TITLE Request For New Pragma: Shell =head1 VERSION Maintainer: Bryan C. Warnock <[EMAIL PROTECTED]> Date: 5 Aug 2000 Version: 1 Mailing List: perl6-language, [EMAIL PROTECTED] Number: 42

RFC 40 (v1) Module Scope Control

2000-08-05 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://tmtowtdi.perl.org/rfc/ =head1 TITLE Module Scope Control =head1 VERSION Maintainer: Bryan C. Warnock <[EMAIL PROTECTED]> Date: 5 Aug 2000 Version: 1 Mailing List: [EMAIL PROTECTED] Number: 40 =head1 ABSTRACT Modules

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

2000-08-05 Thread Larry Wall
Dan Sugalski writes: :my $foo :integer; I expect that would be my int $foo; If PI ends up being a "managed" Perl6, you might see things like this though: my int $foo : bits(16); Larry

Re: Stuff in core (was Re: date interface, on language (wasRe:perl6 requirements, on bootstrap))

2000-08-05 Thread Larry Wall
Ken Fox writes: : Dan Sugalski wrote: : > > there is a nice paper "The Structure and Performance : > > of Interpreters" by Romer, Lee, et al. that compares Java, Perl and Tcl. : > : > URL? : : Google had a bunch of references when I searched on "structure performance : interpreters", but none of

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

2000-08-05 Thread Dan Sugalski
At 09:45 AM 8/5/00 -0700, Nathan Wiger wrote: > > Probably not with tie, but with function calls in general, sure. We can do > > some flow control analysis on the subs and propagate it outwards so we > > might know, for example, that: > > > >sub foo { > > my (@vars) = @_; > > return

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

2000-08-05 Thread Dan Sugalski
At 12:51 PM 8/5/00 -0400, Ken Fox wrote: >Dan Sugalski wrote: > > but it's really not SVs that eat up all the space, it's arrays and hashes. > >And closures! If curried functions get added (and they're just sugar for >closures) we're going to have to optimize them a *lot* more than Perl 5. What,

Re: perl6-internals-gc sublist

2000-08-05 Thread Dan Sugalski
At 01:03 PM 8/5/00 -0400, John Tobey wrote: >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > and it will require > > jumping through a lot of hoops because of perl's profligate use of dynamic > > polymorphing. If it's needed, well, we'll do it, but I'd rather put the > > effort elsewhere to start. > >

Re: perl6-internals-gc sublist

2000-08-05 Thread John Tobey
Dan Sugalski <[EMAIL PROTECTED]> wrote: > That's going to complicate a lot of things, and it will mean perl will end > up doing all sorts of temp SV creation when these 'mini SVs' get passed to > subs. Plus it complicates life a lot for people writing the guts. (Which > would be us. :) The pro

Re: Perl6 Prject Plan / Roadmap

2000-08-05 Thread Dan Sugalski
At 06:04 PM 8/5/00 +0200, H.Merijn Brand wrote: >In the roadmap, there's lot of actions and shamelines as spoken of in the >camel herders association meeting. What was also talked about there, was an >early release of perl6 to the active CPAN authors, so they would be able to >try and implement th

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

2000-08-05 Thread Ken Fox
Dan Sugalski wrote: > but it's really not SVs that eat up all the space, it's arrays and hashes. And closures! If curried functions get added (and they're just sugar for closures) we're going to have to optimize them a *lot* more than Perl 5. > Three classes, which is why the three lines here. I

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

2000-08-05 Thread Nathan Wiger
> Probably not with tie, but with function calls in general, sure. We can do > some flow control analysis on the subs and propagate it outwards so we > might know, for example, that: > >sub foo { > my (@vars) = @_; > return scalar @vars; >} > > doesn't change its args or any gl

Re: Char encoding

2000-08-05 Thread Dan Sugalski
At 11:16 AM 8/5/00 +, Nick Ing-Simmons wrote: >Benjamin Stuhl <[EMAIL PROTECTED]> writes: > >It has also led to the perl5 internals being, to put it > >bluntly, a horrible mess. > >Agreed - but that is due to grafting it in late - and possibly >trying to be too clever intuiting whether existin

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

2000-08-05 Thread Dan Sugalski
At 02:45 PM 8/5/00 +, Nick Ing-Simmons wrote: >We currently (perl5) have the "token" being: > >struct sv { > void* sv_any; /* pointer to something */ > U32 sv_refcnt; /* how many references to us */ > U32 sv_flags; /* what we are */ >}; > >3

Re: perl6-internals-gc sublist

2000-08-05 Thread Dan Sugalski
At 08:12 AM 8/5/00 -0400, John Tobey wrote: >Nick Ing-Simmons <[EMAIL PROTECTED]> wrote: > > John Tobey <[EMAIL PROTECTED]> writes: > > >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > >> Yup, and I realized one of my big problems to GCs that move memory > > >> (references that are pointers and such)

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

2000-08-05 Thread Dan Sugalski
At 10:58 AM 8/5/00 +, Nick Ing-Simmons wrote: >Ken Fox <[EMAIL PROTECTED]> writes: > >For foreign objects, I'm not sure why you're forcing a two level > >dispatch. Why not let the foreign code register dispatches directly > >in the scalar's vtbl? If we did it that way, a foreign object > >is j

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

2000-08-05 Thread Dan Sugalski
At 12:07 PM 8/5/00 +, Nick Ing-Simmons wrote: >Perl6 Rfc Librarian <[EMAIL PROTECTED]> writes: > >=head1 IMPLEMENTATION > > > >The base variable structure looks like: > > > >struct { > > IV GC_data; > > void *variable_data; > > IV flags; > > void *vtable; > > void

Re: Perl6 Prject Plan / Roadmap

2000-08-05 Thread H.Merijn Brand
In the roadmap, there's lot of actions and shamelines as spoken of in the camel herders association meeting. What was also talked about there, was an early release of perl6 to the active CPAN authors, so they would be able to try and implement the new language for their modules. I cannot find thi

Re: PDL-P: Re: PDL request

2000-08-05 Thread Tuomas Lukka
> > Er - Tk has (compile time generated) tables of functions. > You can call into Tk (from C) by getting address of function table from > perl variable and then doing (*table->func)(x,y,z). > > Is this relevant to what was being discussed? Yes: what was being discussed that this problem is fai

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

2000-08-05 Thread Nick Ing-Simmons
John Tobey <[EMAIL PROTECTED]> writes: >Nick Ing-Simmons <[EMAIL PROTECTED]> wrote: >> John Tobey <[EMAIL PROTECTED]> writes: >> >Dan Sugalski <[EMAIL PROTECTED]> wrote: >> >> Yup, and I realized one of my big problems to GCs that move memory >> >> (references that are pointers and such) really i

Re: Char encoding

2000-08-05 Thread Bryan C . Warnock
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 could read the flag if it needed to differentiate by

Re: perl6-internals-gc sublist

2000-08-05 Thread John Tobey
Nick Ing-Simmons <[EMAIL PROTECTED]> wrote: > John Tobey <[EMAIL PROTECTED]> writes: > >Dan Sugalski <[EMAIL PROTECTED]> wrote: > >> Yup, and I realized one of my big problems to GCs that move memory > >> (references that are pointers and such) really isn't, if we keep the > >> two-level variabl

Re: C--

2000-08-05 Thread John Tobey
John Tobey <[EMAIL PROTECTED]> wrote: > Joshua N Pritikin <[EMAIL PROTECTED]> wrote: > > A few more clicks and I found: > > > > http://www.cminusminus.org/ > > Thanks, Joshua. Quickie summary. Implementations: one[1] semi-free > (non-DFSG-compliant) complete. Others in progress. My quickie

Re: C--

2000-08-05 Thread John Tobey
Nick Ing-Simmons <[EMAIL PROTECTED]> wrote: > John Tobey <[EMAIL PROTECTED]> writes: > >Joshua N Pritikin <[EMAIL PROTECTED]> wrote: > >> A few more clicks and I found: > >> > >> http://www.cminusminus.org/ > > > >Thanks, Joshua. Quickie summary. Implementations: one[1] semi-free > >(non-DFSG

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

2000-08-05 Thread Nick Ing-Simmons
Perl6 Rfc Librarian <[EMAIL PROTECTED]> writes: > >This is similar to the structure used in perl 5, with one major >difference. Rather than having all the intellegence needed to use a >variable separate from that variable, this RFC embeds that information >into the variable itself. This allows for

Re: PDL request

2000-08-05 Thread Nick Ing-Simmons
Tim Jenness <[EMAIL PROTECTED]> writes: >On Fri, 4 Aug 2000, Tuomas Lukka wrote: > >> > Both of these are language related. Is ther really nothing in the >> > internals that we need to make pdl better? >> >> One important thing that I don't have time to write an RFC for: allow XS >> to make dynam

Re: perl6-internals-gc sublist

2000-08-05 Thread Nick Ing-Simmons
John Tobey <[EMAIL PROTECTED]> writes: >Dan Sugalski <[EMAIL PROTECTED]> wrote: >> Yup, and I realized one of my big problems to GCs that move memory >> (references that are pointers and such) really isn't, if we keep the >> two-level variable structure that we have now. The 'main' SV structure

Re: Language RFC Summary 4th August 2000

2000-08-05 Thread Nick Ing-Simmons
Damian Conway <[EMAIL PROTECTED]> writes: > > It definitely is, since formats do things that can't be done in modules. > >Such as??? Quite. Even in perl5 an XS module can do _anything at all_. -- Nick Ing-Simmons

Re: RFC 27 (v1) Coroutines for Perl

2000-08-05 Thread Nick Ing-Simmons
Dan Sugalski <[EMAIL PROTECTED]> writes: >At 01:17 PM 8/4/00 +0500, Tom Scola wrote: >> >[I think this belongs on the language list, FWIW, Cc'd there] >> > >> >I like this, but I'd like to see this, inter-thread queues, and events >>all >> >use the same communication method. Overload filehandles t

Char encoding

2000-08-05 Thread Nick Ing-Simmons
Benjamin Stuhl <[EMAIL PROTECTED]> writes: >> No, that's the beauty of utf8: the C datatype is still >> char* and as long >> as you stick to 7-bits ASCII you won't know the >> difference. wchar_t >> comes from a totally different school of thought, where >> all your strings >> are instantly incomp

Re: RFC: Foreign objects in perl

2000-08-05 Thread Nick Ing-Simmons
Benjamin Stuhl <[EMAIL PROTECTED]> writes: >--- Dan Sugalski <[EMAIL PROTECTED]> wrote: >> actual work. The >> dispatch routine has a function signature like so: >> >> int status = dispatch(void *native_obj, sv >> *perl_scalar, char *method_called, >> int *num_args_in, perl

Re: C--

2000-08-05 Thread Nick Ing-Simmons
John Tobey <[EMAIL PROTECTED]> writes: >Joshua N Pritikin <[EMAIL PROTECTED]> wrote: >> A few more clicks and I found: >> >> http://www.cminusminus.org/ > >Thanks, Joshua. Quickie summary. Implementations: one[1] semi-free >(non-DFSG-compliant) complete. Others in progress. > >Why not specif

Ramblings on "base class" for SV etc.

2000-08-05 Thread Nick Ing-Simmons
Ken Fox <[EMAIL PROTECTED]> writes: >I'd like to see *minimal* overhead for simple scalars -- if we >could cram immediates (like small integers and booleans) directly >into the "SV *" that seems like a big win. Agreed. > >For foreign objects, I'm not sure why you're forcing a two level >dispatch

Re: PDL-P: PDL enhancements for Perl6

2000-08-05 Thread Tim Jenness
On Sat, 5 Aug 2000 [EMAIL PROTECTED] wrote: > Tim Jenness wrote: > > > > On Fri, 4 Aug 2000, Tuomas Lukka wrote: > > > > > > Both of these are language related. Is ther really nothing in the > > > > internals that we need to make pdl better? > > > > > > One important thing that I don't have tim