Re: Namespaces again

2004-10-04 Thread Jeff Clites
On Sep 29, 2004, at 9:01 PM, Brent 'Dax' Royal-Gordon wrote: [Argh...] Chip Salzenberg [EMAIL PROTECTED] wrote: parrot_alias(a, 'b', # dest: Python is unified, no need for a category here a, 'b', 'scalar') # src: Perl is not unified, so source category is

Re: Namespaces again

2004-10-04 Thread martin
On Thu, 30 Sep 2004, TOGoS wrote: With this method, the *only* place you'll run into trouble is in a language where any string can be a variable identifier. [...] You could solve this by declaring that *all* variables in a namespace must begin with some sort of sigil, but then you can't

Re: Namespaces again

2004-10-04 Thread Jeff Clites
On Oct 1, 2004, at 5:45 AM, Leopold Toetsch wrote: Jens Rieks [EMAIL PROTECTED] wrote: On Friday 01 October 2004 08:42, Leopold Toetsch wrote: sucks a lot less than making python programmers say import Foo.ns.Bar.scalar.baz But OTOH I can imagine that finally standard modules are present in

Re: What is PAST?

2004-10-04 Thread Leopold Toetsch
Sam Ruby wrote: Leopold Toetsch wrote: - I've started the AST interface, the unimplemented is not quite true. Just compiling an AST string isn't supported. But compiling an AST source file (e.g. ast/hello.past) basically works. What command does one use to compile ast/hello.past? $ ./parrot

Re: Parakeet 0.3

2004-10-04 Thread Leopold Toetsch
Michel Pelletier [EMAIL PROTECTED] wrote: Parakeet is an object-oriented Forth-like stack language for the Parrot VM. Is that a new error? $ ../../parrot parakeet.imc test.pk Welcome! [ ... ] Passed! Goodbye! No entries on IntReg_Stack!

Re: [perl #31726] [PATCH] non-branching compare opcodes - JIT

2004-10-04 Thread Leopold Toetsch
Stephane Peiry [EMAIL PROTECTED] wrote: These two patches add jit support for iscompare style ops (isgt, isge, isle, islt, iseq, isne) on integers for the sun/sparc platform. Thanks, applied. leo

Re: Parakeet 0.3

2004-10-04 Thread Matt Diephouse
On Mon, 4 Oct 2004 14:06:00 +0200, Leopold Toetsch [EMAIL PROTECTED] wrote: Is that a new error? [ ... ] No entries on IntReg_Stack! That means there's no end opcode in the PIR that's being dynamically compiled. The compile opcode expects a return value (success/failure) -- an int. --

Re: Namespaces, part 1 (new bits)

2004-10-04 Thread Paul Seamons
I'll delurk here for a moment, I am of the opinion that there is not that much of a need to allow for simultaneous access to similarly named Perl data types in python. I am not aware of any CPA modules that export two or more of the same name but for different data types - such as $foo, @foo,

Namespaces, part 2

2004-10-04 Thread Dan Sugalski
Okay, since we've got the *basic* semantics down (unified namespace, namespace entries get a post-pended null character) it's time for the ops to handle them, as well as some extended semantics. We already have find_global and store_global. These work fine, we're going to keep them, though I

Re: Parakeet 0.3

2004-10-04 Thread Dan Sugalski
At 1:12 PM -0700 9/29/04, Michel Pelletier wrote: Parakeet is an object-oriented Forth-like stack language for the Parrot VM. It is written in PIR and compiled its code directly to PIR. Parakeet lets you do logical, numeric and string operations and comparisons, conditionals and loops, define

Metaclasses

2004-10-04 Thread Dan Sugalski
Okay, color me officially confused. I'm working on the assumption that metaclasses are needed, but I don't, as yet, understand them. So, with this bit of ignorance exposed, could someone point me to a good explanation of what they are and how they work? Theory's fine (possibly better than fine

Re: Metaclasses

2004-10-04 Thread Michael Walter
http://members.rogers.com/mcfletch/programming/metaclasses.pdf On Mon, 4 Oct 2004 11:45:50 -0400, Dan Sugalski [EMAIL PROTECTED] wrote: Okay, color me officially confused. I'm working on the assumption that metaclasses are needed, but I don't, as yet, understand them. So, with this bit of

Re: Parakeet 0.3

2004-10-04 Thread Michel Pelletier
On Mon, 2004-10-04 at 08:37, Dan Sugalski wrote: At 1:12 PM -0700 9/29/04, Michel Pelletier wrote: Parakeet is an object-oriented Forth-like stack language for the Parrot VM. It is written in PIR and compiled its code directly to PIR. Parakeet lets you do logical, numeric and string

Re: Parakeet 0.3

2004-10-04 Thread Michel Pelletier
On Mon, 2004-10-04 at 06:50, Matt Diephouse wrote: On Mon, 4 Oct 2004 14:06:00 +0200, Leopold Toetsch [EMAIL PROTECTED] wrote: Is that a new error? [ ... ] No entries on IntReg_Stack! That means there's no end opcode in the PIR that's being dynamically compiled. The compile

Comparing Pythons

2004-10-04 Thread Sam Ruby
Comparison of various Python implementations for conformance: http://www.intertwingly.net/blog/2004/10/04/Comparing-Pythons - Sam Ruby

Re: Metaclasses

2004-10-04 Thread Dan Sugalski
At 12:09 PM -0400 10/4/04, Michael Walter wrote: http://members.rogers.com/mcfletch/programming/metaclasses.pdf I do have that one. Unfortunately it's the PDF of slides and, while it looks like if I was at the talk it'd all make sense, without the talk that goes with 'em... not so much sense.

Re: Parakeet 0.3

2004-10-04 Thread Jens Rieks
On Monday 04 October 2004 18:00, Michel Pelletier wrote: Restricted CVS access would be great. Do you need an ssh key or something? You just need a perl.org account. You can create it here: http://auth.perl.org/auth/account Then, just send your username to the list. jens

Re: Metaclasses

2004-10-04 Thread Sam Ruby
Dan Sugalski wrote: At 12:09 PM -0400 10/4/04, Michael Walter wrote: http://members.rogers.com/mcfletch/programming/metaclasses.pdf I do have that one. Unfortunately it's the PDF of slides and, while it looks like if I was at the talk it'd all make sense, without the talk that goes with 'em...

Re: Metaclasses

2004-10-04 Thread Aaron Sherman
On Mon, 4 Oct 2004 13:24:58 -0400, Dan Sugalski [EMAIL PROTECTED] wrote: On Mon, 4 Oct 2004 11:45:50 -0400, Dan Sugalski [EMAIL PROTECTED] wrote: Okay, color me officially confused. I'm working on the assumption that metaclasses are needed, but I don't, as yet, understand them. At 12:09

Re: Plain ole Hash

2004-10-04 Thread Dan Sugalski
At 9:56 AM -0400 10/2/04, William Coleda wrote: Are there any plans to make a Hash (as oppposed to a PerlHash, or an OrderedHash (which is really a PerlHash) ? D'oh! Knew there was something that was getting forgotten. Yes, there should be plans. If someone wants to throw a basic Hash.pmc

Re: [pid-mode.el] cannot edit

2004-10-04 Thread Piers Cawley
Stéphane Payrard [EMAIL PROTECTED] writes: On Fri, Oct 01, 2004 at 06:09:37PM +0200, Jerome Quelin wrote: Hi, I tried the pir-mode provided in the editor/ subdir. And when opening a .imc file (I've associated .pir with pir-mode + font-lock-mode), I cannot type spaces or carriage returns:

Re: Namespaces, part 2

2004-10-04 Thread Tim Bunce
On Mon, Oct 04, 2004 at 11:25:47AM -0400, Dan Sugalski wrote: Okay, since we've got the *basic* semantics down (unified namespace, namespace entries get a post-pended null character) it's time for the ops to handle them, as well as some extended semantics. I agree with Larry when he said But

Privilege implementation

2004-10-04 Thread Felix Gallo
(suggested reading: PDD 18) I am starting work on the implementation of privileges. There are a couple of open issues I'd like to bounce before I start typing in earnest. 1. Privs take several forms. Privs can be per-interpreter (no computed goto), per set-of-ops (e.g., deny everything,

Re: Namespaces, part 2

2004-10-04 Thread Brent 'Dax' Royal-Gordon
Tim Bunce [EMAIL PROTECTED] wrote: Now, with that out of the way, let's talk about overlaid namespaces. I don't think I ever read a description of what the purpose of this was. I get the what but not the why. Without the why it's hard to critique the how. Clearly I'm not Dan, but I think