larry | 1 Apr 2007 03:59
Picon

[svn:perl6-synopsis] r14367 - doc/trunk/design/syn

Author: larry
Date: Sat Mar 31 18:59:24 2007
New Revision: 14367

Modified:
   doc/trunk/design/syn/S05.pod

Log:
quoting braino noticed by moritz++

Modified: doc/trunk/design/syn/S05.pod
==============================================================================
--- doc/trunk/design/syn/S05.pod	(original)
+++ doc/trunk/design/syn/S05.pod	Sat Mar 31 18:59:24 2007
 <at>  <at>  -14,9 +14,9  <at>  <at> 
    Maintainer: Patrick Michaud <pmichaud <at> pobox.com> and
                Larry Wall <larry <at> wall.org>
    Date: 24 Jun 2002
-   Last Modified: 26 Mar 2007
+   Last Modified: 31 Mar 2007
    Number: 5
-   Version: 55
+   Version: 56

 This document summarizes Apocalypse 5, which is about the new regex
 syntax.  We now try to call them I<regex> rather than "regular
 <at>  <at>  -3064,7 +3064,7  <at>  <at> 
 For example:

      if $text ~~ mm:g/ (\S+:) <rocks> / {
(Continue reading)

pmichaud | 3 Apr 2007 16:20
Picon

[svn:perl6-synopsis] r14368 - doc/trunk/design/syn

Author: pmichaud
Date: Tue Apr  3 07:19:57 2007
New Revision: 14368

Modified:
   doc/trunk/design/syn/S05.pod

Log:
Add leading whitespace to lines so that the table
actually ends up looking like a table instead
of wrapping the text onto a single line.

Modified: doc/trunk/design/syn/S05.pod
==============================================================================
--- doc/trunk/design/syn/S05.pod	(original)
+++ doc/trunk/design/syn/S05.pod	Tue Apr  3 07:19:57 2007
 <at>  <at>  -110,11 +110,11  <at>  <at> 

 Here is a table that summarizes the distinctions:

-                Alphanumerics        Non-alphanumerics         Mixed
+                 Alphanumerics        Non-alphanumerics         Mixed

-Literal glyphs   a    1    _        \*  \$  \.   \\   \'       K\-9\!
-Metasyntax      \a   \1   \_         *   $   .    \    '      \K-\9!
-Quoted glyphs   'a'  '1'  '_'       '*' '$' '.' '\\' '\''     'K-9!'
+ Literal glyphs   a    1    _        \*  \$  \.   \\   \'       K\-9\!
+ Metasyntax      \a   \1   \_         *   $   .    \    '      \K-\9!
+ Quoted glyphs   'a'  '1'  '_'       '*' '$' '.' '\\' '\''     'K-9!'

(Continue reading)

Leon Brocard | 4 Apr 2007 21:13
Favicon
Gravatar

Second Perl 6 Microgrant - Phil Crow on Java to Perl 6 declaration converter

We're pleased to announce that we've selected Phil Crow as the recipient of the
second Perl 6 microgrant. Phil is the hacker behind the Java::Swing module
which allows Perl programmers to put a Java Swing GUI on their application
without writing any Java and he'll be using this knowledge to convert Java
declarations to Perl 6. You can find details of the project he's
planning in the
text of his grant application:

Tim Bunce has suggested that it would be nice to have a general purpose
declaration translator from Java to Perl.  In particular, he is interested
in leveraging this tool to create a JDBC API for Perl 6 from the
Java JDBC classes and interfaces. The result would then provide a strong
foundation for the Perl 6 DBI.

I propose to write that translator. It would have two pieces:

* One would use the Java deparser (part of its standard development
   kit) to turn Java classes or interfaces into an internal structure

* The other half would turn that structure into valid Perl 6. Note that it would
   only translate class, interface, and method declarations, not code.

Success for this project will be a working translator that generates method
declarations in Perl 6 from compiled Java .class files. While all cases
might not be covered, at least the final product should not die when faced
with the unexpected. The generated files will be tested using the then current
version of Pugs.

This project is new and has only recently been discussed in response to the
call for proposals. I'm sure I will have questions to direct to various
(Continue reading)

Jonathan Lang | 5 Apr 2007 01:38
Picon

Re: [svn:perl6-synopsis] r14359 - doc/trunk/design/syn

larry <at> cvs.perl.org wrote:
> +Arrays may also be defined with a mixture of fixed and autoextending
> +dimensions:
> +
> +    my  <at> calendar[12;*;24];     # "Month" dimension unlimited
> +
> +

Move this out of the section on fixed-length arrays and into the
section on multidimensional arrays; it fits most naturally as the
second paragraph of the latter section.

--

-- 
Jonathan "Dataweaver" Lang

larry | 5 Apr 2007 02:43
Picon

[svn:perl6-synopsis] r14369 - doc/trunk/design/syn

Author: larry
Date: Wed Apr  4 17:43:14 2007
New Revision: 14369

Modified:
   doc/trunk/design/syn/S09.pod

Log:
Reorganization suggested by Jonathan Lang++

Modified: doc/trunk/design/syn/S09.pod
==============================================================================
--- doc/trunk/design/syn/S09.pod	(original)
+++ doc/trunk/design/syn/S09.pod	Wed Apr  4 17:43:14 2007
 <at>  <at>  -12,9 +12,9  <at>  <at> 

   Maintainer: Larry Wall <larry <at> wall.org>
   Date: 13 Sep 2004
-  Last Modified: 28 Mar 2007
+  Last Modified: 4 Apr 2007
   Number: 9
-  Version: 19
+  Version: 20

 =head1 Overview

 <at>  <at>  -221,13 +221,6  <at>  <at> 

     my  <at> library[1_000_000 --> Book];

(Continue reading)

Jonathan Lang | 6 Apr 2007 04:08
Picon

[S03] typo

 <at>  <at>  -749,7 +749,7  <at>  <at> 
 These operators compare their operands using numeric, string,
 or C<eqv> semantics respectively, and depending on the order return
 one of C<Order::Increase>, C<Order::Same>, or C<Order::Decrease>
-(which numerify to -1, 0, or +1).  See L</Comparion semantics>.
+(which numerify to -1, 0, or +1).  See L</Comparison semantics>.

 =item *

Jonathan Lang | 6 Apr 2007 07:17
Picon

[S03] Range Semantics

Inspired by the new array indexing syntax from S09.

Modify S03 (under "Range Semantics") so that if a Range is operating
in a bounded space, a 'whatever' star as the starting or ending point
maps to the lower or upper bound:

    my enum Months «:Jan(1) Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec»
    Mar..*    # same as Mar..Dec
    *..Mar    # same as Jan..Mar

This makes Ranges in an array index a natural outgrowth of the
standard Range semantics, rather than being an exceptional case.

--
Jonathan "Dataweaver" Lang
Jonathan Lang | 6 Apr 2007 08:07
Picon

[S03] Negation metaoperator

Generalize the negated relational operators to apply to any infix
operator that returns a boolean.  In terms of the standard operators,
this will add <&& || ^^ // and or xor err> to the family that is
implicitly equipped with logical negations.

For consistency's sake, you may also want to define junctive operators
<!& !| !^>.  '!|' corresponds with the list-op 'none', although I can
think of no intuitive list-ops for the other two; we might have to
settle for '!all' and '!one'.  If so, consider '!any' as a synonym for
'none', much like '!eq' and 'ne' are synonyms for each other.

Or just reduce the operators: [!&] and [!^].  Personally, I find
'!all' and '!one' to be more legible; but YMMV.

--

-- 
Jonathan "Dataweaver" Lang

Shlomi Fish | 11 Apr 2007 03:51
Picon
Gravatar

Re: Working on punie + rindolf (the implementation) Reloaded

On Monday 02 April 2007, Marc Lehmann wrote:
> On Sat, Mar 31, 2007 at 05:06:34AM +0300, Shlomi Fish <shlomif <at> iglu.org.il> 
wrote:
> > Hi Marc!
> >
> > May I forward my reply to the list?
>
> Yes, you may. Sorry for replying probably too late, thanks for asking
> first!
>

OK. Replying to two different list (which I'm not subscribed to).

> > > Well, to me, that very much sounds like "we do not openly admit it, but
> > > we want to have Perl 5+1 working now, not whatever the Perl 6 people
> > > claim they will deliver 5 years ago".
> >
> > Heh. Well, I don't expect to be able to duplicate the Pugs functionality
> > in a short time. :-). However, if you look at:
> >
> > http://www.shlomifish.org/rindolf/
>
> I wasn't clear then. Many peopel do not want a completely
> different-in-spirit language called "Perl6", but many people atcually want
> a language very much in spirit as Perl 5, just with a few important changes
> done.

You're right. I used to be very opposed to Perl 6. Now understand that it has 
some nice improvements over Perl 5, but still find looking at its code to be 
quite a bit of a future shock. "Perl 6 is a nice language. Too bad it's not 
(Continue reading)

chromatic | 11 Apr 2007 10:31
Favicon

Re: Working on punie + rindolf (the implementation) Reloaded

On Tuesday 10 April 2007 18:51, Shlomi Fish wrote:

> > (Although it seems the most interesting promises made by parrot - fast
> > typeless code for example - are not going to be delivered, too).

> Hmmm.... I haven't been closely following Parrot.

Despite this mention, this thread is off-topic for the Parrot list, and 
probably the Perl 6 Language list too.

The Parrot list is happy to discuss implementations and languages targeting 
Parrot.  Complaints are welcome only in the form of bug reports sent to 
parrotbug <at> parrotcode.org.  Neither flames nor whining are welcome at all.

-- c


Gmane