Re: scheme-pairs?

2002-01-25 Thread Uri Guttman
> "PC" == Piers Cawley <[EMAIL PROTECTED]> writes: PC> Uri Guttman <[EMAIL PROTECTED]> writes: >> >> but lisp dotted pair actually only can hold scalars in each node >> too. each node could be a pointer to other stuff or a value. that is >> classic lisp data structures, all things

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Uri Guttman
> "DL" == David Leeper <[EMAIL PROTECTED]> writes: DL> If I know what I want to destroy and when, can I just turn off Parrot's DL> automatic garbage collector/memory compactor and send it instructons on DL> what I want deleted? i have to jump in here because i am seeing the classic dis

RE: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Melvin Smith
>This is exactly the right way to do things in Java. In Java, you >can open hundreds of files, and never trigger any gc, since each >file object is very small. Unless you explicit close file, you >will be dead very quickly. Although your point is taken, I think in this case it is the programmer

Re: Apoc4: The loop keyword

2002-01-25 Thread Melvin Smith
At 11:40 AM 1/25/2002 -0600, Jonathan Scott Duff wrote: >On Fri, Jan 25, 2002 at 11:57:25AM +0100, Bart Lateur wrote: > > On Mon, 21 Jan 2002 15:43:07 -0500, Damian Conway wrote: > > > > >What we're cleaning up is the ickiness of having things declared outside > > >the braces be lexical to the bra

RE: Config police

2002-01-25 Thread Melvin Smith
At 07:40 PM 1/25/2002 -0800, Brent Dax wrote: >Melvin Smith: ># HAS_HEADER_ERRNO does not exist and errno.h is not wrapped ># in this ifdef. Hopefully the Config police can fix this, I ># ran into this ># while working on an embedded compile and Configure is not a ># module I am useful with. > >Th

RE: Config police

2002-01-25 Thread Brent Dax
Melvin Smith: # HAS_HEADER_ERRNO does not exist and errno.h is not wrapped # in this ifdef. Hopefully the Config police can fix this, I # ran into this # while working on an embedded compile and Configure is not a # module I am useful with. That's odd. Does your Perl 5 have i_errno defined in Co

Re: Apocalypse 4 : The Strange Case of the STRANGE CASE

2002-01-25 Thread Me
I would not be appalled if Perl 6 were to assume use of caps for catcher block labels, but I would still like to see Larry et al reconsider this design choice. One suggestion is use of label syntax for catcher blocks (suggests "come-from"). If catch and CATCH were defined as synonyms, then one co

Re: What can be hyperoperated?

2002-01-25 Thread Simon Cozens
On Fri, Jan 25, 2002 at 06:03:55PM -0800, Larry Wall wrote: > Do they need to? In the simple case, the hyperoperator provides list > context to its arguments, but just calls the scalar operation repeatedly > to fake up the list operation. Cool. So as far as the parser cares, ^ is simply a flag

Re: What can be hyperoperated?

2002-01-25 Thread Larry Wall
Simon Cozens writes: : I'm trying to answer the question "what does ^ mean?". : Can anything be hyperoperated, or just a built-in set of operations? Probably anything that is sufficiently "scalar" in its typology. : If "anything", can user's subroutines be hyperoperated? Why not? (Provided the

Re: string interpolation

2002-01-25 Thread Simon Cozens
On Fri, Jan 25, 2002 at 05:07:48PM -0800, Dew-Jones, Malcolm MSER:EX wrote: > Lets add an .interpolate method. The parameter(s) are rules that control > the interpolation, and the returned value is the interpolated string using > those rules. > > $result = 'scalar $vars (only) will be inte

string interpolation

2002-01-25 Thread Dew-Jones, Malcolm MSER:EX
Hello, I was reading stuff on the perl6 web site, and had some ideas about string interpolation rules. Is this a place to send this? String interpolation should be controlled by the programmer on a string by string basis, or on more global quote-type by quote type basis. --- scenar

Config police

2002-01-25 Thread Melvin Smith
HAS_HEADER_ERRNO does not exist and errno.h is not wrapped in this ifdef. Hopefully the Config police can fix this, I ran into this while working on an embedded compile and Configure is not a module I am useful with. -Melvin

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Melvin Smith
At 11:55 PM 1/25/2002 +, Simon Cozens wrote: >On Fri, Jan 25, 2002 at 01:56:20PM -0500, Bryan C. Warnock wrote: > > If anything, it's largely our fault, for allowing, through our silence, > > Simon to speak on our behalf in those situations. > >Hey, if my speaking on behalf of Perl 6 is such a

Parrot FAQ in repository

2002-01-25 Thread Melvin Smith
I'm not the author but I checked the FAQ into the repository. Its in HTML format, which seems fine to me, I guess if people have gripes that its not a POD then talk to Adam Turoff. :) -Melvin

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Simon Cozens
On Fri, Jan 25, 2002 at 01:56:20PM -0500, Bryan C. Warnock wrote: > If anything, it's largely our fault, for allowing, through our silence, > Simon to speak on our behalf in those situations. Hey, if my speaking on behalf of Perl 6 is such a problem, someone else is very welcome to this maintaine

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Dan Sugalski
At 5:01 PM -0500 1/25/02, Melvin Smith wrote: > >At 1:56 PM -0500 1/25/02, Bryan C. Warnock wrote: >>>Dan is cleverly aloof in is answers. There's not many folks who >flippantly >>>hand-wave and still come across as knowing exactly what he's talking >about. >> >>I really do need to work on the f

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Dan Sugalski
At 10:21 PM + 1/25/02, Piers Cawley wrote: >"Melvin Smith" <[EMAIL PROTECTED]> writes: >> I also could care less about reinventing the wheel, if I get >> to own my own wheel and put my name on it.. and paint it yellow... > >No mate, you want to paint it purple. You know it makes sense. Just

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Piers Cawley
"Melvin Smith" <[EMAIL PROTECTED]> writes: > I also could care less about reinventing the wheel, if I get > to own my own wheel and put my name on it.. and paint it yellow... No mate, you want to paint it purple. You know it makes sense. -- Piers "It is a truth universally acknowledged that

Re: scheme-pairs?

2002-01-25 Thread Piers Cawley
Uri Guttman <[EMAIL PROTECTED]> writes: >> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: > > >> Correct, especially a list is nothing but a pair with another pair or > >> an end-of-list-marker in its second element. To implement set-car! and > >> set-cdr! both elements of this pair m

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Melvin Smith
-Melvin Smith IBM :: Atlanta Innovation Center [EMAIL PROTECTED] :: 770-835-6984 Dan Sugalski

Re: CPP Namespace pollution

2002-01-25 Thread Bryan C. Warnock
On Friday 25 January 2002 16:55, Andy Dougherty wrote: > Sounds like a good plan. Perhaps something like the following patch is in > order then, more as a reminder for the future than anything actually > useful for now? (Note the changed file names: parrot/parrot_e*.h is > apparently redundant

Re: CPP Namespace pollution

2002-01-25 Thread Andy Dougherty
On Fri, 25 Jan 2002, Dan Sugalski wrote: > At 10:14 AM -0500 1/25/02, Andy Dougherty wrote: > >For parrot, we'd ideally like to make it a lot safer to > > > > #include > Nope--we'd ideally like to smack anyone writing non-core code that > does that. :) > Embedders will include parrot/pa

regarding cpp namespace pollution

2002-01-25 Thread Jarkko Hietaniemi
I think the following would work. * At the beginning of each parrot source code file there must be at least two Parrot-specific defines, e.g. #define PARROT_SOURCE #define PARROT_SOURCE_REGEXEC_C These would declare both being part of Parrot, and being a particular file. If some ki

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Dan Sugalski
At 3:48 PM -0500 1/25/02, [EMAIL PROTECTED] wrote: > > In neither case do you have any control over the order that memory is >> compacted, or dead objects with destructors have their destructors >> called. If you must force some sort of order you need to do so within >> the objects destructor.

RE: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Hong Zhang
> This changes the way a programmer writes code. A C++ class > and function that uses the class looks like this: > > class A > { > public: > A(){...grab some resources...} > ~A(){...release the resources...} > } > > void f() > { > A a; > ... use a's resources ... > } > > ..

Re: Apoc4: The loop keyword

2002-01-25 Thread Erik Steven Harrison
>>Besides no one has commented on Steve Fink's (I think it was him) idea >>to store the result of the most recently executed conditional in $?. I >>kinda like that idea myself. It makes mnemonic sense. H . . . I could grow used to that. A couple of thoughts. 1) It doesn't seem to buy us muc

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
> In neither case do you have any control over the order that memory is > compacted, or dead objects with destructors have their destructors > called. If you must force some sort of order you need to do so within > the objects destructor. Alternately if your program knows what order > objects sh

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Dan Sugalski
At 1:56 PM -0500 1/25/02, Bryan C. Warnock wrote: >Dan is cleverly aloof in is answers. There's not many folks who flippantly >hand-wave and still come across as knowing exactly what he's talking about. I really do need to work on the flippant bit when I'm not in front of a roomful of Lisp folk

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Dan Sugalski
At 2:46 PM -0500 1/25/02, [EMAIL PROTECTED] wrote: > > Parrot supports deterministic destruction at the language level. If your >> language wants 'o' to be destroyed at the exit from f2(), then 'o' will >be >> destroyed in whatever manner MyClass destruction means to your language. >> Resourc

RE: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
> That is exactly the case for C++. In your above code f1(), the C++ compiler > already (behind the scene) inserts finally block for "o" destructor. That > is why the destructor of stack allocated objects is called even when > exception > happens. The only difference is that the memory deallocati

Re: Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Jonathan Scott Duff
On Fri, Jan 25, 2002 at 01:56:20PM -0500, Bryan C. Warnock wrote: [ rather interesting ramble about people, Perl, and personality ] Someone needs to add this stuff to http://dev.perl.org/perl6/people or perhaps start a Perl6-personality guidebook :-) -Scott -- Jonathan Scott Duff [EMAIL PROTEC

RE: CPP Namespace pollution

2002-01-25 Thread Dan Sugalski
At 11:19 AM -0800 1/25/02, Wizard wrote: > > See the FAQ. >This really isn't a very good answer for several reasons (I know the answer, >but that doesn't matter): >1.> There is no link to the FAQ on the Perl6 page (that I could find >anyway). > (http://www.panix.com/~ziggy/parrot.html - I th

Re: CPP Namespace pollution

2002-01-25 Thread Dan Sugalski
At 10:14 AM -0500 1/25/02, Andy Dougherty wrote: >One problem noted recently on the p5p list is that if you do > > #include > >in your program, it exposes a *lot* of CPP #defines to your program, >whether you want them or not. This is particularly a problem if you wish >to embed perl or us

RE: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Hong Zhang
> I believe the main difficulty comes from heading into uncharted waters. For > example, once you've decided to make garbage collection optional, what does > the following line of code mean? > > delete x; If the above code is compiled to Parrot, it probably equivalent to x->~Destructor()

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
> Parrot supports deterministic destruction at the language level. If your > language wants 'o' to be destroyed at the exit from f2(), then 'o' will be > destroyed in whatever manner MyClass destruction means to your language. > Resources allocated strictly by the internal representation respons

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Bryan C. Warnock
On Friday 25 January 2002 13:50, [EMAIL PROTECTED] wrote: > > Thanks for the nice example, except I understand the issue you > > are speaking of, I was basically asking what parts of it do you think > > are more "difficult" to implement than any other major construct? > > I believe the main diffic

Comm. Unity - (was Re: CPP Namespace pollution)

2002-01-25 Thread Bryan C. Warnock
On Friday 25 January 2002 14:19, Wizard wrote: > > See the FAQ. > > This really isn't a very good answer for several reasons (I know the > answer, but that doesn't matter): > 1.> There is no link to the FAQ on the Perl6 page (that I could find > anyway). > (http://www.panix.com/~ziggy/parrot.

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
> Thanks for the nice example, except I understand the issue you > are speaking of, I was basically asking what parts of it do you think > are more "difficult" to implement than any other major construct? I believe the main difficulty comes from heading into uncharted waters. For example, once y

Re: Apoc4: The loop keyword

2002-01-25 Thread Buddha Buck
At 11:40 AM 01-25-2002 -0600, Jonathan Scott Duff you wrote: >On Fri, Jan 25, 2002 at 11:57:25AM +0100, Bart Lateur wrote: > > On Mon, 21 Jan 2002 15:43:07 -0500, Damian Conway wrote: > > > > >What we're cleaning up is the ickiness of having things declared outside > > >the braces be lexical to th

Re: 123_456

2002-01-25 Thread Austin Hastings
Falling back on the "numbers is strings, too" legacy: $a = 100; $b = "000"; $c = ($a _ $b) + 1; # I'd expect $c == 11. If I say: $a = 1 _ 000 _ 000; or $a = 1_000_000; DWIM (In scalar context, coerce arguments to strings). (Frankly, I think this is unlikely. But who knows?) If course,

RE: 123_456

2002-01-25 Thread Hong Zhang
> Should we be allowed to use _ to group numbers, now that _ is concat? > If not _, then what? (if anything?) Sure. In Perl 5, we have 123.456 and a . b, but in Perl 6, we will have 123_456 and 123 _ 456. People have to put space around '_' anway. Hong

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Melvin Smith
Thanks for the nice example, except I understand the issue you are speaking of, I was basically asking what parts of it do you think are more "difficult" to implement than any other major construct? There are several ways to address the example you just gave (my computer science is getting rusty

Re: 123_456

2002-01-25 Thread Aaron Sherman
On Fri, 2002-01-25 at 12:38, Bryan C. Warnock wrote: > On Friday 25 January 2002 12:34, Simon Cozens wrote: > > Should we be allowed to use _ to group numbers, now that _ is concat? > > If not _, then what? (if anything?) > > Sure, why not? '_' is still a valid character in an identifier. You'd

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
> >From what I've seen, supporting both garbage collection and true stack > >variables is a difficult task. > Why is that? Because stack variables can refer to heap variables and heap variables can refer to stack variables. The garbage collector needs to be smart enough to handle all cases corr

What can be hyperoperated?

2002-01-25 Thread Simon Cozens
I'm trying to answer the question "what does ^ mean?". Can anything be hyperoperated, or just a built-in set of operations? If "anything", can user's subroutines be hyperoperated? How will they know that they're being called in "hyper context"? If a built-in set of operations, which ones? -- You

Re: 123_456

2002-01-25 Thread Bryan C. Warnock
On Friday 25 January 2002 12:34, Simon Cozens wrote: > Should we be allowed to use _ to group numbers, now that _ is concat? > If not _, then what? (if anything?) Sure, why not? '_' is still a valid character in an identifier. You'd still simply need disambiguating whitespace for concatenation

Re: Apoc4: The loop keyword

2002-01-25 Thread Jonathan Scott Duff
On Fri, Jan 25, 2002 at 11:57:25AM +0100, Bart Lateur wrote: > On Mon, 21 Jan 2002 15:43:07 -0500, Damian Conway wrote: > > >What we're cleaning up is the ickiness of having things declared outside > >the braces be lexical to the braces. *That's* hard to explain to beginners. > > But it's handy.

123_456

2002-01-25 Thread Simon Cozens
Should we be allowed to use _ to group numbers, now that _ is concat? If not _, then what? (if anything?) -- Hanlon's Razor: Never attribute to malice that which is adequately explained by stupidity.

Re: Apoc4: The loop keyword

2002-01-25 Thread Bart Lateur
On Mon, 21 Jan 2002 15:43:07 -0500, Damian Conway wrote: >What we're cleaning up is the ickiness of having things declared outside >the braces be lexical to the braces. *That's* hard to explain to beginners. But it's handy. And that was, until now, what mattered with Perl. -- Bart.

Re: CPP Namespace pollution

2002-01-25 Thread Melvin Smith
>Hm, the FAQ would be not linked from either of dev.perl.org or >www.parrotcode.org. That's a bummer. >Ask, could we move this to dev.perl.org please? Dare I suggest we check it into the repository and have a script update the site from the repository. At least then we can tell people to check

Parrot FAQ location

2002-01-25 Thread Melvin Smith
>1.> There is no link to the FAQ on the Perl6 page (that I could find anyway). > (http://www.panix.com/~ziggy/parrot.html - I think this it) This really should be stored or linked in the Perl6 Parrot area. -Melvin Smith IBM :: Atlanta Innovation Center [EMAIL PROTECTED] :: 770-835-6984

Re: CPP Namespace pollution

2002-01-25 Thread Simon Cozens
On Fri, Jan 25, 2002 at 11:15:15AM -0500, [EMAIL PROTECTED] wrote: > > See the FAQ. > Where would the FAQ be? Hm, the FAQ would be not linked from either of dev.perl.org or www.parrotcode.org. That's a bummer. Thankfully, a quick google for Parrot FAQ (once you get past the avine entries ;) gets

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Melvin Smith
>From what I've seen, supporting both garbage collection and true stack >variables is a difficult task. Why is that? -Melvin Smith IBM :: Atlanta Innovation Center [EMAIL PROTECTED] :: 770-835-6984

RE: CPP Namespace pollution

2002-01-25 Thread Wizard
> See the FAQ. This really isn't a very good answer for several reasons (I know the answer, but that doesn't matter): 1.> There is no link to the FAQ on the Perl6 page (that I could find anyway). (http://www.panix.com/~ziggy/parrot.html - I think this it) 2.> "See the FAQ" for what? Not using

Re: CPP Namespace pollution

2002-01-25 Thread David . Leeper
> > This requires the use of C++, rather than C. > See the FAQ. Where would the FAQ be? Dave Simon Cozens

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
Thanks Simon I haven't used Perl since its pre-inhertance days, so I was unaware it supported multiple inheritance. Most languages I'm familar with that have garbage collection don't have true stack variables. For example, the code void f() { int x = 0; ... } creates x on th

Re: CPP Namespace pollution

2002-01-25 Thread Simon Cozens
On Fri, Jan 25, 2002 at 10:30:01AM -0500, [EMAIL PROTECTED] wrote: > This requires the use of C++, rather than C. See the FAQ. -- The most effective debugging tool is still careful thought, coupled with judiciously placed print statements. -Kernighan, 1978

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread Simon Cozens
On Fri, Jan 25, 2002 at 10:18:56AM -0500, [EMAIL PROTECTED] wrote: > 1) Does Parrot support multiple inheritance? > 2) Does Parrot support stack variables or is everything allocated on the > heap? There's an easy way to answer these questions for yourself. "Does Parrot support X?" == "Does any la

Re: CPP Namespace pollution

2002-01-25 Thread David . Leeper
> I don't have a specific proposal at the moment, but would invite > others to think creatively about ways to minimize cpp pollution while > still keeping the source readable and maintainable. One possibility would be to change code like this #define XYZ 123 to this... namespace _PARR

Re: CPP Namespace pollution

2002-01-25 Thread Shlomi Fish
On Fri, 25 Jan 2002, Andy Dougherty wrote: > One problem noted recently on the p5p list is that if you do > > #include > > in your program, it exposes a *lot* of CPP #defines to your program, > whether you want them or not. This is particularly a problem if you wish > to embed perl or use

Re: How Powerful Is Parrot? (A Few More Questions)

2002-01-25 Thread David . Leeper
Thanks to everyone for their information on Parrot. A couple more questions have come to mind. 1) Does Parrot support multiple inheritance? 2) Does Parrot support stack variables or is everything allocated on the heap? Thanks again. Dave

CPP Namespace pollution

2002-01-25 Thread Andy Dougherty
One problem noted recently on the p5p list is that if you do #include in your program, it exposes a *lot* of CPP #defines to your program, whether you want them or not. This is particularly a problem if you wish to embed perl or use it with an extensive 3rd-party library. For parrot,

Re: Apoc4: The loop keyword

2002-01-25 Thread Steve Fink
On Mon, Jan 21, 2002 at 12:50:38PM -0800, Larry Wall wrote: > In most other languages, you wouldn't even have the opportunity to put > a declaration into the conditional. You'd have to say something like: > > my $line = <$in>; > if $line ne "" { ... } > > Since > > if my $line = <$