Re: Auto My?

2004-12-18 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer <[EMAIL PROTECTED]> Date: Saturday, December 18, 2004 4:16 pm Subject: Re: Auto My? > Rod Adams writes: > There are pros and cons, and it basically ends up being a design > choice. > > Well, at least when strictures are on. When they are off, the >

Re: Still about subroutines...

2004-09-16 Thread JOSEPH RYAN
- Original Message - From: Juerd <[EMAIL PROTECTED]> Date: Thursday, September 16, 2004 2:55 pm Subject: Re: Still about subroutines... > Jonathan Scott Duff skribis 2004-09-16 13:44 (-0500): > > Speaking of which ... why is it that $?foo and became > $<>> and <> respectively? > > per

Re: Current state?

2004-09-14 Thread JOSEPH RYAN
- Original Message - From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Tuesday, September 14, 2004 3:56 pm Subject: Re: Current state? > On Tue, Sep 14, 2004 at 12:42:59PM -0700, Larry Wall wrote: > > : Of course, this is really language design -- Larry, you listening? > > > > Sure, I'

Re: Current state?

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: Jared Rhine <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 5:22 pm Subject: Current state? > [Patrick == [EMAIL PROTECTED] on Wed, 8 Sep 2004 11:51:18 -0600] > > Patrick> ...in the immediate future we'll be wanting rules/grammar > Patrick> tests (to te

Re: multiple languages clarification - newbie

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: JOSEPH RYAN <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 8:58 pm Subject: Re: multiple languages clarification - newbie >macro prolog is parsed(/ > \: ([ > <[^p]>+ :: > | p >

Re: Current state?

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: Larry Wall <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 3:09 pm Subject: Re: Current state? > On Wed, Sep 08, 2004 at 02:47:24PM -0400, JOSEPH RYAN wrote: > : We tried that as an optimization in the prototype > : Perl6 compiler. It e

Re: multiple languages clarification - newbie

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: mAsterdam <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 8:31 pm Subject: Re: multiple languages clarification - newbie > Joseph Ryan wrote: > > >>Can someone provide clarification on what mixing languages will > >>look li

Re: multiple languages clarification - newbie

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: Richard Jolly <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 6:02 pm Subject: multiple languages clarification - newbie > Hi, > > > > Can someone provide clarification on what mixing languages will > look > like in practice, or point me to where its

Re: Current state?

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: "Patrick R. Michaud" <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 1:21 pm Subject: Re: Current state? > On Wed, Sep 08, 2004 at 09:56:12AM -0700, Larry Wall wrote: > > On Wed, Sep 08, 2004 at 07:33:45AM -0600, Patrick R. Michaud wrote: > > : We're in th

Re: Current state?

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: Dan Sugalski <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 1:56 pm Subject: Re: Current state? > At 11:21 AM -0600 9/8/04, Patrick R. Michaud wrote: > >On Wed, Sep 08, 2004 at 09:56:12AM -0700, Larry Wall wrote: > >> On Wed, Sep 08, 2004 at 07:33:45AM -

Re: Current state?

2004-09-08 Thread JOSEPH RYAN
- Original Message - From: Jared Rhine <[EMAIL PROTECTED]> Date: Wednesday, September 8, 2004 12:19 pm Subject: Current state? > [Herbert == [EMAIL PROTECTED] on Wed, 8 Sep 2004 15:18:27 +] > > Herbert> And any way for an overeager newbie to help? > > The classic answer is "write te

Re: Why do users need FileHandles?

2004-07-23 Thread JOSEPH RYAN
I define "outside the core" as "anything that isn't packaged with Perl itself". Things you'd define as "part of the language." I/O stuff, threading stuff, standard types, builtin functions, etc. And yeah, most of that stuff will be written natively in C, PIR, or be part of parrot itself. I thi

Re: Why do users need FileHandles?

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: Dan Hursh <[EMAIL PROTECTED]> Date: Thursday, July 22, 2004 3:07 pm Subject: Re: Why do users need FileHandles? > Luke Palmer wrote: > > > JOSEPH RYAN writes: > > > >>- Original Message - > >>From: David S

Re: xx and re-running

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: James Mastros <[EMAIL PROTECTED]> Date: Sunday, July 18, 2004 5:03 am Subject: xx and re-running > Recently on perlmonks, at > http://perlmonks.org/index.pl?node_id=375255, > someone (DWS, actually) brought up the common error of expecting x > (in > particula

Re: Why do users need FileHandles?

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer <[EMAIL PROTECTED]> Date: Thursday, July 22, 2004 2:48 pm Subject: Re: Why do users need FileHandles? >> JOSEPH RYAN writes: > > > > How would integrating this in the core make it more efficient? Core > > or not, I&#

Re: Why do users need FileHandles?

2004-07-22 Thread JOSEPH RYAN
- Original Message - From: David Storrs <[EMAIL PROTECTED]> Date: Monday, July 19, 2004 5:04 pm Subject: Re: Why do users need FileHandles? > Second, I would suggest that it NOT go in a library...this is > reasonably serious under-the-hood magic and should be integrated into > the core for

Re: push with lazy lists

2004-07-08 Thread JOSEPH RYAN
> On Wed, Jul 07, 2004 at 11:50:16PM -0400, JOSEPH RYAN wrote: > > To answer the latter first, rand (with no arguments) returns a number > greater than or equal to 0 and less than 1 which when used as an index > into an array gets turned into a 0. > > As to why the second p

Re: push with lazy lists

2004-07-07 Thread JOSEPH RYAN
- Original Message - From: Larry Wall <[EMAIL PROTECTED]> Date: Wednesday, July 7, 2004 11:25 pm Subject: Re: push with lazy lists > On Fri, Jul 02, 2004 at 09:32:07PM -0500, Dan Hursh wrote: > : how 'bout > : > : @x = gather{ > : loop{ > : take time > : } > : } # can

Re: push with lazy lists

2004-07-03 Thread JOSEPH RYAN
- Original Message - From: Dan Hursh <[EMAIL PROTECTED]> Date: Friday, July 2, 2004 10:32 pm Subject: Re: push with lazy lists >> Joseph Ryan wrote: > I guess that's true with X..Y lazy lists. I thought there were > other > ways to make lazy lists, like giv

Re: push with lazy lists

2004-07-02 Thread JOSEPH RYAN
- Original Message - From: Dan Hursh <[EMAIL PROTECTED]> Date: Friday, July 2, 2004 2:23 pm Subject: push with lazy lists > Hi, > > If I can assume: > > @x = 3..5; > say pop @x;# prints 5 > > @x = 3..5; > push @x, 6; > say pop @x;# prints 6 >

Re: if not C<,> then what?

2004-07-02 Thread JOSEPH RYAN
- Original Message - From: David Storrs <[EMAIL PROTECTED]> Date: Thursday, July 1, 2004 7:55 pm Subject: Re: if not C<,> then what? > On Thu, Jul 01, 2004 at 04:14:37PM -0700, Jonathan Lang wrote: > > Juerd wrote: > > > > If you're really enamoured with the infix operator syntax, > cons

Re: undo()?

2004-07-01 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer <[EMAIL PROTECTED]> Date: Tuesday, June 29, 2004 7:31 pm Subject: Re: undo()? > > Oh no! Someone doesn't understand continuations! How could this > happen?! :-) > > You need two things to bring the state of the process back to an > earlierstate:

Re: A stack for Perl?

2004-06-29 Thread JOSEPH RYAN
- Original Message - From: Luke Palmer <[EMAIL PROTECTED]> Date: Tuesday, June 29, 2004 6:13 am Subject: Re: A stack for Perl? > > 1; > > $_='foo bar baz'; > > split; > > # @STACK now is (1, 'foo', 'bar', 'baz'); > > > To boot, I can't think of a way to implement that in currently

Re: P6C: Parser Weirdness

2004-05-10 Thread Joseph Ryan
Steve Fink wrote: Neither of those seems right to me. The first keys off of the position of the binary, which could be anywhere with respect to the library module you're in; the second is relative to whatever the current directory is while you're running the script. I would think that something lik

Re: Ladies and gentlemen, I give you... objects!

2004-02-27 Thread Joseph Ryan
Larry Wall wrote: On Fri, Feb 27, 2004 at 09:08:31AM -0500, Dan Sugalski wrote: : Nope. If a language wants to provide get/set methods for class : attributes it needs to create those methods at compilation time. For Perl 6 it's a single method that might be lvaluable depending on the declaration

Fwd: Re: OO inheritance in a hacker style

2004-02-04 Thread Joseph Ryan
Woops, sent it to the wrong list! - Joe Joseph Ryan wrote: Luke Palmer wrote: Austin Hastings writes: Hmm. The text and examples so far have been about methods and this seems to be about multi-methods. Correct me if I'm wrong ... You're wrong. Consider my example, where

Re: OO inheritance in a hacker style

2004-02-03 Thread Joseph Ryan
Luke Palmer wrote: Austin Hastings writes: Hmm. The text and examples so far have been about methods and this seems to be about multi-methods. Correct me if I'm wrong ... You're wrong. Consider my example, where via single inheritance we reach a "layered" list of methods, each of which

Re: OO inheritance in a hacker style

2004-01-28 Thread Joseph Ryan
Dmitry Dorofeev wrote: Hi all. Sorry if this idea|question has been discussed or has name which i don't know about. I'd like to write Class myclass : a { forget method area; forget method move; method put; } so methods getX, getY, size will be 'inherited'. Methods 'area' and 'move' will be n

Re: How does perl handle HLL C?

2004-01-23 Thread Joseph Ryan
[EMAIL PROTECTED] wrote: The subject says it all. As parrot is designed to be targetted by many langauges, how will it handle 'eval' opcodes for those different languages? Shell out to a seperate process? As far as Perl6 (which will be written in Perl6) goes, an easy solution is to design the

Re: This week's summary

2003-11-25 Thread Joseph Ryan
The Perl 6 Summarizer wrote: Do Steve Fink's debugging for him Steve Fink had a problem with some generated code throwing a segfault when it was run and, having hit the debugging wall himself, posted the code to the list and asked help. Leo tracked down the bug in Parrot and fixed it.

Re: Control flow variables

2003-11-18 Thread Joseph Ryan
David Wheeler wrote: On Tuesday, November 18, 2003, at 06:11 PM, Joseph Ryan wrote: Not to be a jerk, but how about: my $is_ok = 1; for @array_of_random_values_and_types -> $t { if not some_sort_of_test($t) { $is_ok = 0; last; } } if $is

Re: Control flow variables

2003-11-18 Thread Joseph Ryan
Damian Conway wrote: Seiler Thomas wrote: So... lets call a function instead: my $is_ok = 1; for 0..6 -> $t { if abs(@new[$t] - @new[$t+1]) > 3 { $is_ok = 0; last; } } if $is_ok { yada() # has sideeffects... } That's just:

[Fwd: Re: Proposal: parrot-compilers list]

2003-11-18 Thread Joseph Ryan
--- Begin Message --- I Think this would be cool, and I will help. my research masters is retargetting gcj to parrot. I am only a month into it so I have not put up a project page yet. On Tuesday 18 November 2003 00:04, Joseph Ryan wrote: > Pete Lomax wrote: > >On Mon, 17 Nov 2003

Re: Proposal: parrot-compilers list

2003-11-17 Thread Joseph Ryan
Pete Lomax wrote: On Mon, 17 Nov 2003 11:35:51 -0800, Sterling Hughes <[EMAIL PROTECTED]> wrote: I think this would be a *very* cool thing. What he said. Ditto. - Joe

Re: Nested modules

2003-11-03 Thread Joseph Ryan
Damian Conway wrote: Larry wrote: This kind of behaviour is more useful for nested classes, I suspect, but it should certainly be available for nested modules as well. So, what's the difference between a module and a class, and why would you want dynamic namespaces? Isn't that something you'd

Re: Nested modules

2003-11-03 Thread Joseph Ryan
Luke Palmer wrote: So, we can have :: in names, but that doesn't represent any inherent relationship between the module before the :: and the one after. I think this is an important thing to keep. However, will it be possible to, for example, do: module Foo; module Bar { ... } And refer

Re: P5 "B" backend for languages/perl6 - quasi-announcement

2003-10-30 Thread Joseph Ryan
Sean O'Rourke wrote: [EMAIL PROTECTED] (Scott Walters) writes: I have work-related reason to add a "B" backend for Perl 5 to the perl6 compiler. I'm looking at creating an assembler for Perl 5's "B" bytecode along the lines of IMCC, and creating patches against languages/perl6/IMCC.pm and langu

Re: [PS] obsolete files

2003-10-23 Thread Joseph Ryan
Leopold Toetsch wrote: Here is a list of files that I consider to be unused: Hmmm... obsolete... unused... sounds a lot like languages/perl6 :-P - Joe

Re: Class metadata for PIR/assembly files

2003-10-21 Thread Joseph Ryan
Dan Sugalski wrote: Here's the scoop: Metadata for classes is simple. In PIR/assembly, they're noted with .things: .class Foo .is bar .is baz .does some_thing .member x .member y .member z .ssalc Unless someone tells me that ssalc is horribly obscene in some relatively common

"::" doesn't work inside an identifier.

2003-10-01 Thread Joseph Ryan
According to the CVS log for /languages/imcc/imcc.l, "::" is now allowed inside an identifier name. However, when I try to create an example like: .sub foo::bar end .end It gives the error: error:imcc:parse error, unexpected LABEL, expecting IDENTIFIER Is this a bug, or am I misu

Re: Namespace'd subs in IMCC?

2003-09-07 Thread Joseph Ryan
Leopold Toetsch wrote: Joseph Ryan <[EMAIL PROTECTED]> wrote: From what I understand from the IMCC documentation, the ".namespace" macro prepends the namespace name plus "::" to all names within it. It's for variables only, currently. I figu

Namespace'd subs in IMCC?

2003-09-06 Thread Joseph Ryan
From what I understand from the IMCC documentation, the ".namespace" macro prepends the namespace name plus "::" to all names within it. I figured that this would be handy in distinguishing which class a method belongs to without causing name clashes. For instance: .namespace foo .sub ba

Re: Is there any way to dynamically add a method to a class?

2003-09-04 Thread Joseph Ryan
Dan Sugalski wrote: On Mon, 25 Aug 2003, Joseph Ryan wrote: So, I know how to use find_method to get a method from an object; but is there any way to dynamically add a method to a class? Basically, I want to do something like this: newclass P2, "Foo" new P1, P2 add

Is there any way to dynamically add a method to a class?

2003-08-25 Thread Joseph Ryan
So, I know how to use find_method to get a method from an object; but is there any way to dynamically add a method to a class? Basically, I want to do something like this: newclass P2, "Foo" new P1, P2 addr I0, _Foo::somemethod setmethod P1, "somemethod", I0 findmethod P0, P1, "s

Re: Apocalypses and Exegesis...

2003-08-16 Thread Joseph Ryan
Jonathan Scott Duff wrote: On Thu, Aug 14, 2003 at 03:00:54PM +0100, Alberto Manuel Brand?o Sim?es wrote: On Thu, 2003-08-14 at 14:49, Simon Cozens wrote: [EMAIL PROTECTED] (Alberto Manuel Brandão simões) writes: The question is simple, and Dan can have the same problem (or him or L

Re: generic code generator? [was: subroutines and python status]

2003-08-14 Thread Joseph Ryan
Michal Wallace wrote: On Sun, 3 Aug 2003, K Stol wrote: What do you think? Want to try squishing pirate/python and pirate/lua together? :) Yeah, I like the idea. Let's try this out. Well, I finished reading your report[1] and posted some of my (rather unorganized) thoughts up at

JVM->PIR translator (was: Re: subroutines and python status)

2003-08-01 Thread Joseph Ryan
Leopold Toetsch wrote: Luke Palmer <[EMAIL PROTECTED]> wrote: You mind submitting a patch to put this in the languages/pirate I'd appreciate that very much. Pie-thon, here we come ... Speaking of adding new projects to languages, I have a partially complete JVM->PIR translator done. It's comp

Re: approaching python

2003-07-27 Thread Joseph Ryan
Benjamin Goldberg wrote: K Stol wrote: The register stuff, I presume, is register allocation and the like? When targeting IMCC, you can use an infinite amount of registers. Just keep a counter in the code generator, each time a new register is needed, just increment the counter and add a "${S|N|I

Re: Literal tests [was: Help with setting up Perl6]

2002-12-13 Thread Joseph Ryan
Sean O'Rourke <[EMAIL PROTECTED]> wrote: On Thu, 12 Dec 2002, Jared Rhine wrote: > On to some tests, although I'm curious to see how tests of literals > turn out. Probably a lot of comparisons between different > representations of the same thing. Warning: most of the tests won't work now becau

Re: String Literals, take 1

2002-11-30 Thread Joseph Ryan
(* Note: Please reply to [EMAIL PROTECTED] *) (* Don't reply to this hotmail address! I'm deleting it tomarrow! *) (* Fight the urge! *) : Jonathan Scott Duff <[EMAIL PROTECTED]> : Joseph Ryan <[EMAIL PROTECTED]> > Anyways, here's a first draft of the stri

Re: String Literals, take 1

2002-11-30 Thread Joseph Ryan
: Luke Palmer <[EMAIL PROTECTED]> : Joseph F. Ryan <[EMAIL PROTECTED]> > Perhaps only first level references should stringify nicely, and inner > references stringify perl5 style. I think that if Data::Dumper style > stringification is wanted, then a C<< use Data::Dumper; >> shouldn't > anger

Re: String Literals, take 1

2002-11-30 Thread Joseph Ryan
(* Note: Please reply to [EMAIL PROTECTED] *) : Arcadi Shehter <[EMAIL PROTECTED]> : "Joseph Ryan" <[EMAIL PROTECTED]> issue : * space is allowed (OR NOT ???) between qq ( and friends ) and following delimiter qq ( ... ) ; qq ) ... ( ; q

Re: String Literals, take 1

2002-11-30 Thread Joseph Ryan
From: James Mastros <[EMAIL PROTECTED]> On 11/29/2002 7:40 PM, Joseph Ryan wrote: (*Note: Please reply to [EMAIL PROTECTED], as this is only a temporary email address) - References and Object stringification hasn't been defined. I belive it goes somthing like this: All objec

Re: String Literals, take 1

2002-11-29 Thread Joseph Ryan
First, apologies for the typos; fixed. Do you mean \Q or \Q{}, or both ? \Q{}; \Q{} is different than \Q, at least according to the Apocalypse. \Q{}Escape all characters that need escaping from this point on in the current string (except "}") Yeah. Then print "@

String Literals, take 1

2002-11-29 Thread Joseph Ryan
First of all, apologies for sending through Hotmail; I'm home for the weekend, and have no access to email. However, I figured I should send this out as soon as I finished so that people have something to think about besides numbers :) Anyways, here's a first draft of the string documentation, I'