Re: dLoo releases peer-to-peer programming language

2001-07-11 Thread stéphane Payrard
- Original Message - From: "Dan Sugalski" <[EMAIL PROTECTED]> To: "Nathan Torkington" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 6:59 PM Subject: Re: dLoo releases peer-to-peer programming language > At 10:16 AM 7/11/2001 -0600, Natha

Re: dLoo releases peer-to-peer programming language

2001-07-11 Thread stéphane Payrard
- Original Message - From: "Cameron Laird" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 8:43 PM Subject: Re: dLoo releases peer-to-peer programming language > > From [EM

Re: What's the latest on Iterators?

2005-11-12 Thread Stéphane Payrard
Larry Wall a écrit : | On Fri, Nov 11, 2005 at 08:42:44AM -0500, Joe Gottman wrote: | : Do functions like map and grep, which in Perl5 return lists, return | : Iterators in Perl6? | | A list may contain iterators. Lists don't eagerly flatten in Perl 6. | | : Can an Iterator be passed to a functi

Re: type sigils redux, and new unary ^ operator

2005-11-23 Thread Stéphane Payrard
Larry Wall a écrit : | On Wed, Nov 23, 2005 at 07:10:39PM +0100, Juerd wrote: | : Ruud H.G. van Tol skribis 2005-11-23 19:03 (+0100): | : > > Doesn't ^5 encourage [EMAIL PROTECTED] too much? | : > Can you explain when that creates a problem? | : | : It's not about problems in execution, it's about

values of undef and JavaScript

2006-04-29 Thread Stéphane Payrard
In Perl5, the meaning of the undef value is overloaded. It can mean either the value an uninitialized variable or it may indeed mean a genuine undefined value. Perl5 is biased toward the first meaning: in string context, the value behaves as an empty string; In integer and float context, it respe

error messages now with file name and line number

2006-05-01 Thread Stéphane Payrard
..with same format as gcc and grep. It is used by compiler-mode in emacs for example. $ diff -u compilers/imcc/debug.c.old compilers/imcc/debug.c --- compilers/imcc/debug.c.old 2006-05-01 20:44:34.0 +0200 +++ compilers/imcc/debug.c 2006-05-02 00:03:03.0 +0200 @@ -11,7 +11,8

[PATCH] [perl #15267] Re: [perl fix rot in pxs and Qt example broken

2002-07-22 Thread Stéphane Payrard
On Sun, Jul 21, 2002 at 02:05:42PM +, s. payrard @ wanadoo. fr wrote: > # New Ticket Created by [EMAIL PROTECTED] > # Please include the string: [perl #15267] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt2/Ticket/Display.html?id=15267 > >

Re: <( .... )> vs <{ .... }>

2002-09-23 Thread Stéphane Payrard
On (22/09/02 10:37), Me wrote: > From: "Me" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: <( )> vs <{ }> > Date: Sun, 22 Sep 2002 10:37:59 -0500 > > In several forms of courier, and some other text fonts > I view code in, I find it hard to visually distinguish the > pattern e

Re: [RFC] Perl6 Operator List, Take 5

2002-11-02 Thread Stéphane Payrard
On (02/11/02 11:18), Philippe 'BooK' Bruhat wrote: > Date: Sat, 2 Nov 2002 11:18:22 +0100 (CET) > From: Philippe 'BooK' Bruhat <[EMAIL PROTECTED]> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: Re: [RFC] Perl6 Operator List, Take 5 > > On Thu, 31 Oct 2002, Damian Conway wrote: > > > Lar

Re: Glossary?

2002-11-14 Thread Stéphane Payrard
On (14/11/02 14:29), Garrett Goebel wrote: > From: Garrett Goebel <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Glossary? > Date: Thu, 14 Nov 2002 14:29:38 -0600 > > It is interesting that no one has yet taken the time to start defining the > terms we're using. > > For instance what is a

Re: Glossary?

2002-11-14 Thread Stéphane Payrard
On (14/11/02 16:21), Garrett Goebel wrote: > From: Garrett Goebel <[EMAIL PROTECTED]> > To: 'Stéphane Payrard' <[EMAIL PROTECTED]>, > Garrett Goebel <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: RE: Glossary? > Date: Thu, 14 Nov 2

trait and properties thru getter/setters

2005-05-13 Thread Stéphane Payrard
There is syntax to define trait and properties but is there an API? my $b = eval '$a but true'; # setting a true property # API to do it without an eval? A trait setter probably does not make sense but for the implementer because it should not be set at run time. Incidentally, in a interacti

Re: trait and properties thru getter/setters

2005-05-13 Thread Stéphane Payrard
On Fri, May 13, 2005 at 06:37:50PM +, [EMAIL PROTECTED] wrote: > > > > There is syntax to define trait and properties > > but is there an API? > > > > my $b = eval '$a but true'; # setting a true property > > # API to do it without an eval? > I don't understand why you think you need the

Re: trait and properties thru getter/setters

2005-05-13 Thread Stéphane Payrard
On Fri, May 13, 2005 at 12:31:09PM -0700, Larry Wall wrote: > On Fri, May 13, 2005 at 12:26:22PM -0700, Brent 'Dax' Royal-Gordon wrote: > : Well, the value's pretty easy--just pass in a variable: > : > : my $b = $a is foo($bar); > > As we currently have it, that is not legal syntax. "is" may

Re: Mr. Clean vs. Perl 6

2005-06-30 Thread Stéphane Payrard
On Thu, Jun 30, 2005 at 06:17:14AM -, David Formosa (aka ? the Platypus) wrote: > On Thu, 30 Jun 2005 05:17:56 +0300, Yuval Kogman > <[EMAIL PROTECTED]> wrote: > [...] > > > I gave Perl 6 to Mr. Clean, and he said that if type inferrence was > > formalized, and used always, except that it's

right-to-left pipelines

2002-12-08 Thread Stéphane Payrard
[snipped] > so it's easy to build up more complex right-to-left pipelines, like: > > (@foo, @bar) := > part [/foo/, /bar/], > sort { $^b <=> $^a } > grep { $_ > 0 } > @data; > > I wo

Re: right-to-left pipelines

2002-12-09 Thread Stéphane Payrard
On (09/12/02 06:00), Stéphane Payrard wrote: > Date: Mon, 9 Dec 2002 06:00:40 +0100 > From: Stéphane Payrard <[EMAIL PROTECTED]> > To: Damian Conway <[EMAIL PROTECTED]> > Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: right-to-left pipelines &g

Ordering is not what distinguish array from associative tables

2003-01-29 Thread Stéphane Payrard
On Wed, Jan 29, 2003 at 09:44:27AM -0500, Aaron Sherman wrote: > > Yes, I would expect that. In my opinion there is no difference between > an array and a hash other than the underlying storage and the > type-management of the key. I'm increasingly of the opinion that a) > there should be no @ vs

Re: arrays, hashes unified indexing syntax impact on future variation s on other collection types

2003-01-30 Thread Stéphane Payrard
On Thu, Jan 30, 2003 at 09:11:10AM -0800, Damian Conway wrote: > >What was the reason again which Larry rejected unifying the syntax for > >array > >and hash indexing? > > Because some things have both, and do different things with each. > And because some built-in redundancy is useful for error

newline as statement terminator

2003-02-03 Thread Stéphane Payrard
In the tradition of Perl concision, I would like newline to be a statement terminator everywhere it can: that is when a) the parser expects an operator _and_ b) we are not in the middle of a parenthesised expression. Accessorily, it would also help people to switch back and forth betwee

Re: newline as statement terminator

2003-02-03 Thread Stéphane Payrard
> > Multiline atomic statements just have to be broken at the right > place to avoid to break them: Sorry about my English. Let me reformulate. When folding an atomic statement, it becomes two statements or its meaning is unchanged depending if an operand is expected or not at the position of th

Re: newline as statement terminator

2003-02-03 Thread Stéphane Payrard
On Mon, Feb 03, 2003 at 06:11:23PM -0700, Luke Palmer wrote: [snip] > > See, this is the main, unPerlish thing you're doing. You're enforcing > particular styles upon people, something Perl is proud of *not* doing. > > Let's not forget the often occurence of: > > $fh = open 'foobar' >

Re: newline as statement terminator

2003-02-03 Thread Stéphane Payrard
On Mon, Feb 03, 2003 at 08:19:29PM -0500, Miko O'Sullivan wrote: > On Tue, 4 Feb 2003, [iso-8859-1] Stéphane Payrard wrote: > > > In the tradition of Perl concision, I would like newline to be a > > statement terminator everywhere it can: that is when > >a) t

Re: Arrays vs. Lists

2003-02-07 Thread Stéphane Payrard
On Fri, Feb 07, 2003 at 02:30:47PM -0500, Mark J. Reed wrote: > On 2003-02-07 at 14:26:42, Mark J. Reed wrote: > > Not really, though. A list can be an lvalue, provided it is a list > > of lvalues: Note that to avoid the burden of writing an explicit slice, 'undef' is considered as a lvalue in su

Re: File operators don't dwim

2003-02-12 Thread Stéphane Payrard
On Wed, Feb 12, 2003 at 09:17:22AM +0100, Stéphane Payrard wrote: > On Tue, Feb 11, 2003 at 11:42:27PM -0800, Brent Dax wrote: > > Stéphane Payrard: > > # I was so sure that, in case of success, the file operators > > # would return the filename that I wrote the following

Re: File operators don't dwim

2003-02-12 Thread Stéphane Payrard
On Tue, Feb 11, 2003 at 11:42:27PM -0800, Brent Dax wrote: > Stéphane Payrard: > # I was so sure that, in case of success, the file operators > # would return the filename that I wrote the following code to > # print where are the perl interpretors in the PATH. But, in > #

Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Stéphane Payrard
On Wed, Mar 26, 2003 at 09:49:38AM +0100, Kay Roepke wrote: > > On Wednesday, March 26, 2003, at 04:29 AM, Adam Turoff wrote: > > >I've never come across a programmer who wishes he could do this > >in C and have the compiler magically know what's what: > > > > int spam (int spam, char **spam

Re: [perl #21668] APL doesn't use sigils

2003-03-26 Thread Stéphane Payrard
On Wed, Mar 26, 2003 at 02:21:52PM +0100, Stéphane Payrard wrote: > On Wed, Mar 26, 2003 at 09:49:38AM +0100, Kay Roepke wrote: > > > > On Wednesday, March 26, 2003, at 04:29 AM, Adam Turoff wrote: > > > > >I've never come across a programmer who wishes he c

Re: Perl and *ML

2003-03-26 Thread Stéphane Payrard
On Wed, Mar 26, 2003 at 05:40:56PM +0100, Robin Berjon wrote: > Dan Sugalski wrote: > >At 4:47 PM +0100 3/26/03, Robin Berjon wrote: > >>Fast and efficient graphs of all sorts would be very useful. A way to > >>define a complex graph of interlinked arbitrary objects while being > >>reasonable on

Re: An experimental Wiki for parrot development

2003-05-27 Thread Stéphane Payrard
On Tue, May 27, 2003 at 06:35:12PM -0400, Mitchell N Charity wrote: > I've long wondered whether having a wiki, a place to put things, might > aid parrot development. A place to easily collaborate on documentation. > To record thoughts which might help others. To point at resources. > > So, to h

yapc::eu Parrot BOF

2003-07-03 Thread Stéphane Payrard
Brian Ingerson and Éric Cholet have kindly set up a k?wiki for yapc::eu. There will be a BOF Saturday July 26 starting a 10 pm and probably running until 13pm. I have created an entry for the Parrot BOF. It's up to you to add material, like the issues you want to be discussed. http://yapc.eu.kwik

yapc::eu Parrot BOF

2003-07-03 Thread Stéphane Payrard
Bcc: Subject: Re: yapc::eu Parrot BOF Reply-To: [EMAIL PROTECTED] In-Reply-To: <[EMAIL PROTECTED]> On Thu, Jul 03, 2003 at 06:26:10PM -0400, Dan Sugalski wrote: > At 12:12 AM +0200 7/4/03, Stéphane Payrard wrote: > >Brian Ingerson and Éric Cholet have kindly set up a k?wi

problem with register allocation

2003-08-01 Thread Stéphane Payrard
Hi everybody, That was nice to meet many of you in person at YAPC::EU, I am trying to learn about continuations and Parrot. I hit a problem of register allocation. I don't know if it is a miscomprehension from me or a bug. Probably the former. Apparently P16 is used both for my Perlhash and the S

Re: Perl 6 Summary for 2004-10-23 through 2004-11-01

2004-11-07 Thread Stéphane Payrard
Rereading this excellent summary, I note that I did not keep people posted on my problem. > Stephane Payrard asked about some problems he had encountered creating > the magical all in one Siva PMC. Leo provided a helpful prod towards > LVALUE_CAST. The other problems may or may not rel

Re: [perl #32356] AutoReply: [PATCH] update to embed.pod

2004-11-07 Thread Stéphane Payrard
I apparently forgot to attach the file > > > There is now a call to set the core and another to set the other > flags. I updated the code and the doc to reflect that. > > -- > stef > --- docs/embed.pod.orig 2004-09-16 15:11:55.0 +0200 +++ docs/embed.pod 2004-11-07 23:51:59.998632

Re: [perl #32356] AutoReply: [PATCH] update to embed.pod

2004-11-08 Thread Stéphane Payrard
No need to modify embed.h. Patch attached to get a snipped that compileds without the #include "parrot/parrot.h" -- stef--- docs/embed.pod.orig 2004-11-08 10:48:59.0 +0100 +++ docs/embed.pod 2004-11-08 20:42:57.209202168 +0100 @@ -7,7 +7,6 @@ =head1 SYNOPSIS -#include

[PATCH] Re: [perl #32393] [BUG] IMCC - empty subs are not boss

2004-11-09 Thread Stéphane Payrard
On Tue, Nov 09, 2004 at 07:14:27PM -0800, Will Coleda wrote: > # New Ticket Created by Will Coleda > # Please include the string: [perl #32393] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org:80/rt3/Ticket/Display.html?id=32393 > > > > - the pars

Re: [PROPOSAL] for a new calling scheme

2004-11-16 Thread Stéphane Payrard
On Tue, Nov 16, 2004 at 08:52:10AM -0500, Dan Sugalski wrote: > At 11:43 AM +0100 11/16/04, Leopold Toetsch wrote: > >Below inline/attached is a proposal for new calling conventions - > >for the archive as Dan doesn't like changes now, but I haven't to > >backup it, when its out ;) > > Alright,

Re: [PROPOSAL] for a new calling scheme

2004-11-16 Thread Stéphane Payrard
On Tue, Nov 16, 2004 at 10:48:18AM -0500, Dan Sugalski wrote: > At 4:48 PM +0100 11/16/04, Stéphane Payrard wrote: > >Putting your architect hat, Dan, can you spell a policy in this matter? > > Sure. > > The calling conventions are fixed. They are not going to change

Re: Arglist I/O [Was: Angle quotes and pointy brackets]

2004-12-04 Thread Stéphane Payrard
On Fri, Dec 03, 2004 at 06:38:42PM -0800, Larry Wall wrote: > On Fri, Dec 03, 2004 at 06:43:05PM +, Herbert Snorrason wrote: > : This whole issue kind of makes me go 'ugh'. One of the things I like > : best about Perl is the amazing simplicity of the <> input construct. > > Hmm. > > while

slight discrepancy between S2 and S7

2004-12-06 Thread Stéphane Payrard
S2: my $foo = 42; say %MY::<$foo>;# prints "42" S6: Perl5ish subroutine declarations ... sub say { print qq{"@_"\n}; } # args appear in @_ Because C has no final newline, I would expect C will have one. Final newline or not. What is your say? -- stef

spaces for alignement

2004-12-20 Thread Stéphane Payrard
On Sun, Dec 19, 2004 at 06:44:33PM -0800, chromatic wrote: > On Sun, 2004-12-19 at 20:25 -0600, Rod Adams wrote: > > [snipped] > > > > $x = 4; > > $y = 7; > > $z = 12; > > $r = 4543; > > $q = 121; > > > > With a fixed width font, like all code editors use, all the =' like up, > > and I can quick

thoughts about types, and possible syntax for code as comment

2005-01-06 Thread Stéphane Payrard
I expect Perl6 to be a language with a mix of dynamically typed and statically typed variables. In a purely statically typed language like OCAML, you generally don't need to declare the type of variables when it can be inferred. So one can benefit from the speed of static typing (no type info must

Re: Hi, it's me / yet another student trying to write a compiler targetting Parrot ;-)

2005-01-07 Thread Stéphane Payrard
On Fri, Jan 07, 2005 at 05:11:18PM +0100, Sven Schubert wrote: > Hi all, > > I've been reading the internals list for a while more > or less regularly and as this is me first post, it is > about time, that I introduce myself: > > My name is Sven Schubert, I am studying information > systems and b

Possible syntax for code as comment

2005-01-07 Thread Stéphane Payrard
On Fri, Jan 07, 2005 at 10:28:32AM -0800, Larry Wall wrote: > On Thu, Jan 06, 2005 at 11:07:47PM +0100, Stéphane Payrard wrote: > : To get an huffmanized name and a clear one, I would like some support > syntax: > : > : sub canon( $subjet as $s , $complement as $c ) { >

Re: Possible syntax for code as comment

2005-01-08 Thread Stéphane Payrard
On Fri, Jan 07, 2005 at 09:55:39PM +0100, Juerd wrote: > Stéphane Payrard skribis 2005-01-07 21:23 (+0100): > > > my $s := $subjet; > > > my $c := $complement; > > That's what I wanted to avoid. > > Why? Do you expect to use lots of one letter alia

Re: Possible syntax for code as comment

2005-01-10 Thread Stéphane Payrard
On Sun, Jan 09, 2005 at 06:31:24AM -0600, Luke Blanshard wrote: > David Storrs wrote: > >Out of curiosity, why are we all spelling 'subject' without a 'c'? > >Or is 'subjet' a word I'm not familiar with? (Honest question.) > > I assume it's a spelling error on the part of the original poster. > F

Re: FP6: Types

2005-02-03 Thread Stéphane Payrard
On Thu, Feb 03, 2005 at 11:17:50AM -0500, Mark J. Reed wrote: > > On 2005-02-03 at 11:13:30, Autrijus Tang wrote: > >Today I've started implementing typing relations for value types in > >FP6. ... > > Shouldn't this have gone to perl6-internals, not perl6-language? > perl6-compiler@per

scoping functions as list operators?

2005-02-24 Thread Stéphane Payrard
Giving scoping functions the status of list operators would allow to drop parentheses when not used in conjunction with initializer so one could write: my $a, $b, $c; instead of my ($a, $b, $c); Most people use scoping functions as the top most function of the corresponding statement AST s

Re: scoping functions as list operators?

2005-02-24 Thread Stéphane Payrard
On Fri, Feb 25, 2005 at 03:56:06AM +0100, Stéphane Payrard wrote: > > Giving scoping functions the status of list operators > would allow to drop parentheses when not used in conjunction > with initializer so one could write: > > my $a, $b, $c; > > instead of > &g

Re: How are types related to classes and roles?

2005-02-24 Thread Stéphane Payrard
On Thu, Feb 24, 2005 at 09:42:30AM -0800, Larry Wall wrote: > > Anyway, I don't profess to have thought deeply about type inferencing. > But I do know that I don't want to turn Perl 6 into ML just yet... > > Larry > Speaking of ML, it appears to me that Perl6 rules are a mechanism that can act

Re: scoping functions as list operators?

2005-02-24 Thread Stéphane Payrard
On Thu, Feb 24, 2005 at 11:09:24PM -0500, Uri Guttman wrote: > >>>>> "SP" == Stéphane Payrard <[EMAIL PROTECTED]> writes: > > SP> On Fri, Feb 25, 2005 at 03:56:06AM +0100, Stéphane Payrard wrote: > >> > >> Giving scoping func

Re: Blocks, continuations and eval()

2005-04-22 Thread Stéphane Payrard
On Fri, Apr 22, 2005 at 09:32:55AM -0700, Larry Wall wrote: Thank you for your detailled answer. I still don't get what you mean by "[] pattern matching arguments". Do you mean smart pattern matching on composite values? > > A lot of features are making it into Perl 6 that have historically

delaying promotion to pmc

2004-04-10 Thread Stéphane Payrard
Hi, I am writing a PerlPair PMC and I have a problem with an optimization. BTW: probably a modified PerlPair could be used to implement lisp cons pairs and the optimization will be even more useful because of the widespread use of pairs. The optimization: I want to avoid storing a key or or value

Re: Build problems in i386 linux

2004-04-10 Thread Stéphane Payrard
Le Sat, Apr 10, 2004 at 08:33:04PM +0100, le valeureux mongueur Alberto Manuel Brandao Simoes a dit: > Hi > > I am not needing parrot (just checking its state) but compilation > failed. Don't know if it is expected or not. In any case, this might be > useful: > > ../data/locales/ja.txt:15: par

Re: delaying promotion to pmc

2004-04-10 Thread Stéphane Payrard
On Sat, Apr 10, 2004 at 09:08:22PM -0400, Stéphane Payrard wrote: > Hi, > > I am writing a PerlPair PMC and I have a problem with an > optimization. BTW: probably a modified PerlPair could be used > to implement lisp cons pairs and the optimization will be even > more use

semantic and implementation of pairs

2004-04-10 Thread Stéphane Payrard
My understanding of the semantic of pairs as in A6: A pair in a given scalar context should return its first element coerced to match the said context. This seems to be a prerequisite to use pairs as function arguments. Example with the boolean context: bool $b = a => 10; # $b == 1

Re: semantic and implementation of pairs

2004-04-13 Thread Stéphane Payrard
I have confused assignement and initialisation in my previous mail. Because they are two different operations, there is no problem they have different semantics. A6 described both operations. It described pairs as arguments used to initialize parameters and pairs in assignement. -- stef

Re: A12: on inheriting wrappers

2004-04-30 Thread Stéphane Payrard
On Fri, Apr 30, 2004 at 11:14:55AM +0200, Aldo Calpini wrote: > let's suppose I want to build a class that keeps track of the objects it > creates. > > let's suppose that I want this class to be the base for a variety of > classes. > > let's suppose that I decide, rather than fiddling with the

Re: C style conditional statements

2004-05-12 Thread Stéphane Payrard
Le Wed, May 12, 2004 at 02:00:42AM +0200, le valeureux mongueur Pedro Larroy a dit: > Hi > > Is there any chance that in perl6 there will be the possibility to write > if/else statements without {}s with the condition at the beginning? > > Like > > if (condition) > statement; > > In orde

idiom for filling a counting hash

2004-05-18 Thread Stéphane Payrard
I use over and over this idiom in perl5: $a{$_}++ for @a; This is nice and perlish but it gets easily pretty boring when dealing with many list/arrays and counting hashes. I thought overloading the += operator %a += @a; Probably that operator should be smart enough to be fed with a mixed

Re: PerlHash using PMCs for keys?

2004-05-21 Thread Stéphane Payrard
Le Thu, May 20, 2004 at 12:03:52PM -0700, le valeureux mongueur TOGoS a dit: > Should aggregate PMCs (like PerlHash) be able to take > PMCs as keys? I mean so that: > > $P0 = $P1[$P2] > > where $P1 is a PerlHash, would work. The way it works > now is that it complains that you can't use a PMC a

Re: Periodic Table of the Operators

2004-05-27 Thread Stéphane Payrard
Le Thu, May 27, 2004 at 12:34:32AM +0200, le valeureux mongueur Gabriel Ebner a dit: > Hello, > > Mark Lentczner wrote: > > http://www.ozonehouse.com/mark/blog/code/PeriodicTable.html > > What's periodic about it? We hope it will be periodically updated. :) > Otherwise, _nice_ table. indee.d

Re: Layering PMCs

2004-05-29 Thread Stéphane Payrard
You are considering read-ony PMC versus others. Another issue is properties. Many PMCs "classes" will support properties that will alter their behavior. But most PMC instances will have no property attached to them. Or just default values of them if you see it that way. To avoid to go back the sl

Re: more than one modifier

2004-06-25 Thread Stéphane Payrard
On Fri, Jun 25, 2004 at 03:38:51PM +0200, [EMAIL PROTECTED] wrote: > > >Hello, > > I have a wish for Perl6. I think it would be nice to have the possibility > for more than one modifier after a simple statement. > > For example: > >print $a+$b if $a if $b for 1..3; > > > Gerd P

Re: Perl script to .so file

2004-07-16 Thread Stéphane Payrard
RAD On Wed, Jul 14, 2004 at 10:03:43PM +0800, RaghavendraK 70574 wrote: > Hi, > > Am a hardcore C++ guy and don;t know much abt the Perl. But one > of my friend has proved that the fastest way to RAD is Perl. I > need to know if we can convert a Perl script to a dynamic link > library under unix

Re: This week's summary

2004-07-26 Thread Stéphane Payrard
On Mon, Jul 26, 2004 at 10:29:15AM -0700, Brent 'Dax' Royal-Gordon wrote: > The Perl 6 Summarizer wrote: > > The infinite thread > >Pushing onto lazy lists continued to exercise the p6l crowd (or at > >least, a subset of it). Larry said that if someone wanted to hack > >surreal numbers

Pragma @LOAD is not always honored

2004-09-12 Thread Stéphane Payrard
When routines declared with the @LOAD pragma are in the main segment, they are not executed. This is probably not a problem because the code of these routines could be easly moved in the main routine but that should be either fixed or documented. Example: .sub foo @LOAD print "foo executed

Updated doc and some code to reflect new Parrot_new() interface

2004-09-15 Thread Stéphane Payrard
--- ./src/test_main.c.old 2004-01-29 15:49:44.0 +0100 +++ ./src/test_main.c 2004-09-15 14:47:07.113244016 +0200 @@ -72,7 +72,7 @@ char *filename; Parrot_PackFile pf; -interpreter = Parrot_new(); +interpreter = Parrot_new(NULL); if (!interpreter) {

Re: Why lexical pads

2004-09-24 Thread Stéphane Payrard
On Fri, Sep 24, 2004 at 04:03:46PM +0200, KJ wrote: > Hello, > > I've been wondering for some time about this, so I thought, why not ask. > > The thing is, I've been playing a few times with (Parrot, but also .NET) > compilers, and my conclusion was that the most difficult part is getting > assi

Re: [perl #31938] [PATCH] add missing get_repr() op

2004-10-12 Thread Stéphane Payrard
On Tue, Oct 12, 2004 at 12:14:29PM -, Leopold Toetsch via RT wrote: > Stephane Payrard <[EMAIL PROTECTED]> wrote: > > +++ ./ops/pmc.ops 2004-10-11 22:30:10.819391992 +0200 > > > +op get_repr(out STR, in PMC) { > > +$1 = $2->vtable->get_repr(interpreter, $2); > > +goto NEXT(); > > To

spurious assembleur directives get in the way of oneliner return implementation

2004-10-14 Thread Stéphane Payrard
Hi, Juste like I added the possibility of declaring many registers variables with one .sym directive, I am working on returning or yielding in one line so one can write: .return -1, name instead of: .pcc_begin_return .return -1 .return name .pcc_end_return Sadly, the .ret

Re: [pid-mode.el] cannot edit

2004-10-01 Thread Stéphane Payrard
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: > > (24) (warning/warning) Error caught i

Re: [perl #32117] [PATCH] new multifacetted pmc: siva

2004-10-24 Thread Stéphane Payrard
I am currently stuck because I get the error parrot: src/string.c:269: string_init: Assertion `p' failed. on the second string_init of a parrot run using the last vanilla cvs It may be a problem with mandrake cooker. Jérôme Quelin uses a older mandrake cooker and it works there. Comparing our co

analogy pmc/content with inode/file

2004-10-26 Thread Stéphane Payrard
I want to make an loose analogy between pmc/their_content and Unix inodes/files which I use as a mnemonic. PMCs are the equivalent of inodes, each one reference some content which is the equivalent of a file. C, when the source and the destination pmcs are of the same type, is like creating a har

Re: pmc_type

2004-10-26 Thread Stéphane Payrard
[snipped] > 1: What does pmc_type return if it fails to find a PMC? > 2: If that answer is 0, is it safe to document that 0 is a failure return, >which happens to map to the PMC type for "default", but as they can't be >instantiated looking up "default" is "not supported" (or words to that

Re: Perl 6 and byte code

2004-10-27 Thread Stéphane Payrard
On Wed, Oct 27, 2004 at 12:00:33PM +0100, Peter Hickman wrote: > Presently Python compiles it's py files to pyc files that can then be > run without access to the source (the py). > > Would Perl 6 be able to do this? Compile the pl to plc and pm to pmc and > load the ??c version if it was availa

Re: pmc_type

2004-10-27 Thread Stéphane Payrard
On Wed, Oct 27, 2004 at 12:19:22PM +0200, Leopold Toetsch wrote: > Stéphane Payrard <[EMAIL PROTECTED]> wrote: > > > A related but different issue is that abstract pmcs like (Scalar > > and PerlScalar) have no pmc_type. I understand that pmc_type are > > an offset i

Re: pmc_type

2004-10-27 Thread Stéphane Payrard
On Wed, Oct 27, 2004 at 06:24:59PM +0200, Leopold Toetsch wrote: > Stéphane Payrard <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 27, 2004 at 12:19:22PM +0200, Leopold Toetsch wrote: > > >> Having a type enum for these abstract types would imply to install a > >&

Re: pmc_type

2004-10-27 Thread Stéphane Payrard
On Wed, Oct 27, 2004 at 01:19:29PM -0600, Luke Palmer wrote: > Stéphane Payrard writes: > > That would allow to implement typechecking in imcc. > > > > .sym Scalar a > > a = new .PerlInt # ok. Perlint is derived from Scalar > > Ugh, yeah, but what does th

Re: Does Parrot have "True coroutines"?

2004-11-04 Thread Stéphane Payrard
On Thu, Nov 04, 2004 at 10:11:07PM +0100, Klaas-Jan Stol wrote: > > I hadn't seen ".yield(x)" > Is >.yield(x) > > the same as: > >.pcc_begin_yield >.return x >.pcc_end_yield > ? > Yes. This alternative syntax has been checked in yesterday and is documented in the updated callin

Jitted array access [was: Next Apocalypse]

2003-09-16 Thread Stéphane Payrard
On Mon, Sep 15, 2003 at 03:30:06PM -0600, Luke Palmer wrote: [snipped] > > No, I think Parrot will still only JIT I&N registers. Optimization > includes way more than just JIT. > Do you mean that array accesses will not be jitted? If an array is declared exact type (not subclassable) and that

Re: Next Apocalypse

2003-09-19 Thread Stéphane Payrard
On Thu, Sep 18, 2003 at 02:12:31PM -0700, chromatic wrote: > On Thursday, September 18, 2003, at 12:33 PM, Gordon Henriksen wrote: > > >Ah, shouldn't optimization be automatic? Much preferrable to provide > >opt-out optimizations instead of opt-in optimizations. > > No. That's why I tend to opt-

Re: The Pumpking is dead, long live the Pumpking!

2003-10-17 Thread Stéphane Payrard
On Fri, Oct 17, 2003 at 06:13:24PM -0600, Jim Cromie wrote: > > 1st the PatchMonster, now the Pumpking. > we watch in awe as the World Domination Plan unfolds. > > whats next, the WhiteHouse ? Schwarzenegger, now Tötsch... there is a pattern here, but AEIOU is more ambitious than merely occupyi

error in rx.ops example

2003-10-21 Thread Stéphane Payrard
rx_popindex signature is incorrect in the pre-patch example. --- rx.ops.old 2003-06-06 18:27:00.0 +0200 +++ rx.ops 2003-10-20 23:08:24.0 +0200 @@ -108,7 +108,7 @@ rx_literal S0, I1, "b", $next branch $top $backtrack: - rx

regular expressions

2003-11-07 Thread Stéphane Payrard
I have started working on Perl6 regular expressions. Nothing usable yet but I post the code to get feedback. The code is attached to the present mail. Currently, I use perl5 code to parse very simple regexps using Parse::Yapp and generate imcc code. I have written an infrastructure to "weave" basi

Review of a book about VM

2003-11-13 Thread Stéphane Payrard
Disclaimer: Pardon my French :) I have bought "Virtual Machine Design and Implementation in C++" by Bill Blunden. This book has very positive reviews (see slashdot or amazon.com). It seems to impress people by the apparent width of covered topics. Most of it is off topic. The book gives to the mod

Re: Review of a book about VM

2003-11-14 Thread Stéphane Payrard
On Fri, Nov 14, 2003 at 11:49:51AM -, Peter Cooper wrote: > "Stéphane Payrard" <[EMAIL PROTECTED]> wrote: > > I have bought "Virtual Machine Design and Implementation in C++" > > by Bill Blunden. This book has very positive reviews (see > > slas

Re: Review of a book about VM

2003-11-17 Thread Stéphane Payrard
On Sat, Nov 15, 2003 at 02:10:35PM -, Peter Cooper wrote: > "Stéphane Payrard" <[EMAIL PROTECTED]> wrote: > > You posted your mini-review to London.pm: > > Thanks for that, that demonstrates my memory! > > > on virtual machines: "No, there&

s/// in string context should return the string

2003-11-18 Thread Stéphane Payrard
s/// in string context should return the string after substituion. It seems obvious to me but I mention it because I can't find it in the apocalypses. -- stef

Re: Proposal: parrot-compilers list

2003-11-18 Thread Stéphane Payrard
On Mon, Nov 17, 2003 at 08:58:17PM +, Pete Lomax wrote: > > >I think this would be a *very* cool thing. > > What he said. > > Pete idem -- stef

enums and bitenums

2003-12-11 Thread Stéphane Payrard
Hi, I don't remember anything about enums and bitenums in the apocalypses. This is probably not very difficult to roll out something using macros but I feel that should belong to the standard language. -- stef

Re: Vocabulary

2003-12-12 Thread Stéphane Payrard
> > A role can also supply one or more attributes. > > : inheritance (and maybe some other stuff, too). Used with C. The smalltalk paper you mentionned which talked about roles (under the name of traits) said that roles were stateless. What are the consequences of using stateful roles?

splatting a reference

2003-12-13 Thread Stéphane Payrard
On Sat, Dec 13, 2003 at 12:12:59PM -0800, Larry Wall wrote: > > print $ref > > it doesn't do what you want, but > > print $ref.as(Array) > > might work a lot better, though of course > > print @$ref > What is supposed to do the splat operator in this context? My understanding is

patch to support nums, strings and pmcs as attributes

2004-01-10 Thread Stéphane Payrard
--- classes/parrotobject.pmc.orig 2003-12-06 01:00:29.0 +0100 +++ classes/parrotobject.pmc2004-01-10 21:09:08.0 +0100 @@ -87,7 +87,12 @@ } INTVAL get_integer_keyed (PMC* attr) { - return SELF.get_integer_keyed_str(key_string(interpreter, attr)); +

additional test file for parrotobject.pmc

2004-01-10 Thread Stéphane Payrard
I have not figured out how to change the mime type of the attached file in mutt. :( -- stef

Re: additional test file for parrotobject.pmc

2004-01-10 Thread Stéphane Payrard
retry

Re: patch to support nums, strings and pmcs as attributes

2004-01-11 Thread Stéphane Payrard
On Sun, Jan 11, 2004 at 12:33:16PM +0100, Leopold Toetsch wrote: > Stéphane Payrard <[EMAIL PROTECTED]> wrote: > > Thanks, applied - plus ... > > > INTVAL get_integer_keyed (PMC* attr) { > > - return SELF.get_integer_keyed_str(key_string(interpreter,

Questions about abstract pmcs

2004-01-11 Thread Stéphane Payrard
Abstract pmcs should appear in core_pmcs.h and pmctypes.pasm because one needs them as base pmcs so as to declare pseudo-registers. This is a prerequisite to add pmc type checking to imcc. Working on a patch to fix that, I got some questions to be answered. Unlike other pmcs, abstract pmcs have na

Re: Questions about abstract pmcs

2004-01-12 Thread Stéphane Payrard
On Mon, Jan 12, 2004 at 10:05:51AM +0100, Leopold Toetsch wrote: > Stéphane Payrard <[EMAIL PROTECTED]> wrote: > > Abstract pmcs should appear in core_pmcs.h and pmctypes.pasm > > because one needs them as base pmcs so as to declare > > pseudo-registers. This is a p

  1   2   >