pugs-commits | 1 Mar 09:48 2009
Picon

r25645 - docs/Perl6/Spec

Author: lwall
Date: 2009-03-01 09:48:35 +0100 (Sun, 01 Mar 2009)
New Revision: 25645

Modified:
   docs/Perl6/Spec/S02-bits.pod
   docs/Perl6/Spec/S28-special-names.pod
Log:
doc tweaks.  $?OSVER should be $?OS.ver or some such

Modified: docs/Perl6/Spec/S02-bits.pod
===================================================================
--- docs/Perl6/Spec/S02-bits.pod	2009-03-01 08:43:49 UTC (rev 25644)
+++ docs/Perl6/Spec/S02-bits.pod	2009-03-01 08:48:35 UTC (rev 25645)
 <at>  <at>  -2123,9 +2123,6  <at>  <at> 
     &?ROUTINE   Which routine am I in?
     &?BLOCK     Which block am I in?

-All the nested C< <at> ?> variables are ordered from the innermost to the
-outermost, so C< <at> ?BLOCK[0]> is always the same as C<&?BLOCK>.
-
 The following return objects that contain all pertinent info:

     $?OS        Which operating system am I compiled for?

Modified: docs/Perl6/Spec/S28-special-names.pod
===================================================================
--- docs/Perl6/Spec/S28-special-names.pod	2009-03-01 08:43:49 UTC (rev 25644)
+++ docs/Perl6/Spec/S28-special-names.pod	2009-03-01 08:48:35 UTC (rev 25645)
 <at>  <at>  -86,7 +86,6  <at>  <at> 
(Continue reading)

TSa (Thomas Sandlaß | 1 Mar 21:56 2009
Picon

Re: Range and continuous intervals

On Friday, 27. February 2009 07:42:17 Darren Duncan wrote:
> I was thinking that Perl 6 ought to have a generic interval type that is
> conceptually like Range, in that it is defined using a pair of values of an
> ordered type and includes all the values between those, but unlike Range
> that type is not expected to have discrete consecutive values that can be
> iterated over.

Hmm, it might not be a bad idea to make Interval a subtype of Range
and allow for iteration if that is requested. This allows an Interval
where Range is expected.

The benefit of a dedicated Interval type comes from supporting set
operations (&), (|) etc. which are still unmentioned in S03. BTW,
what does (1..^5).max return? I think it should be 4 because this
is the last value in the Range. Only in 4.7 ~~ 1..^5 does the five
matter. How does ~~ retrieve that information? For open intervals
the .min and .max methods should return the bound outside. Or better,
we should introduce infimum and supremum as .inf and .sup respectively.

> I'm thinking of a Range-alike that one could use with Rat|Num or Instant
> etc, and not just Int etc.  There would be operators to test membership of
> a value in the interval, and set-like operators to compare or combine
> intervals, such as is_inside, is_subset, is_overlap, union, intersection,
> etc.  Such an interval would be what you use for inexact matching and would
> be the result of a ± infix operator or % postfix operator.  Also, as Range
> has a .. constructor, this other type should have something.

Since the Interval type shall be an addition to the Set subsystem I
propose the (..) Interval creation operator together with the open
versions. Admittedly that leaves (^..^) at a lengthy six chars. But
(Continue reading)

Jon Lang | 1 Mar 22:37 2009
Picon

Re: Range and continuous intervals

Thomas Sandlaß wrote:
> The benefit of a dedicated Interval type comes from supporting set
> operations (&), (|) etc. which are still unmentioned in S03.

Have set operations been implemented in either Rakudo or Pugs?

> BTW,
> what does (1..^5).max return? I think it should be 4 because this
> is the last value in the Range. Only in 4.7 ~~ 1..^5 does the five
> matter. How does ~~ retrieve that information? For open intervals
> the .min and .max methods should return the bound outside. Or better,
> we should introduce infimum and supremum as .inf and .sup respectively.

No offense, but I've noticed a tendency on your part to suggest highly
technical names for things.  "Infimum" and "supremum" may be
technically accurate; but I wouldn't know, since I don't know for
certain what they mean.  "Min" and "max" may be misleading in terms of
the specifics; but they get the general point across.

>> I'm thinking of a Range-alike that one could use with Rat|Num or Instant
>> etc, and not just Int etc.  There would be operators to test membership of
>> a value in the interval, and set-like operators to compare or combine
>> intervals, such as is_inside, is_subset, is_overlap, union, intersection,
>> etc.  Such an interval would be what you use for inexact matching and would
>> be the result of a ± infix operator or % postfix operator.  Also, as Range
>> has a .. constructor, this other type should have something.
>
> Since the Interval type shall be an addition to the Set subsystem I
> propose the (..) Interval creation operator together with the open
> versions. Admittedly that leaves (^..^) at a lengthy six chars. But
(Continue reading)

Timothy S. Nelson | 2 Mar 01:54 2009
Picon

Re: pod variables?

On Fri, 27 Feb 2009, Darren Duncan wrote:

> Jon Lang wrote:
>> Under the section about twigils in S02, "$=var" is described as a "pod
>> variable".  I'm not finding any other references to pod variables;
>> what are tey, and how are they used?  (In particular, I'm wondering if
>> they're a fossil; if they aren't, I'd expect further information about
>> them to be in S26.)
>
> The principle of pod variables as I recall them discussed a few years ago is 
> that it is a way for code to programmatically access its own documentation, 
> such as, for example code introspecting a routine could also print out the 
> documentation for that routine, I suppose.  Whatever it was, it sounded 
> useful at the time. -- Darren Duncan

 	To further clarify, I put this exact question to Larry, and he 
basically said that the clarification of POD variables will happen as Damian 
continues work on S26-Documentation.

 	:)

---------------------------------------------------------------------
| Name: Tim Nelson                 | Because the Creator is,        |
| E-mail: wayland <at> wayland.id.au    | I am                           |
---------------------------------------------------------------------

----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- 
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
(Continue reading)

Timothy S. Nelson | 2 Mar 02:24 2009
Picon

Re: r25541 - docs/Perl6/Spec

On Fri, 27 Feb 2009, Henry Baragar wrote:

> I am starting to get overwhelmed by the number of special names and I am 
> wondering why we need to have a flat naming space?
>
> For example, wouldn't it be easier to remember (and to introspect) the 
> following?

 	I vote in favour of the general idea, although I disagree with some 
aspects of this.  I think there are many things that could be grouped 
together, but I think we should be careful not to go too far.  Larry wanted to 
Huffmanise many of these too, hence the great number.  I think we could 
probably reduce the number by maybe 1/3.  If I get around to doing this before 
someone else does, I'll certainly refer to your groupings below for ideas.

>
>   $*SYSTEM.uid
>   $*SYSTEM.euid
>   $*SYSTEM.pid
>   $*SYSTEM.perl
>   $*SYSTEM.env
>   $*SYSTEM.program_name
>   $*SYSTEM.error_handle
>
>   $?COMPILER.vm
>   $?COMPILER.svm
>   $?COMPILER.perl
>   $?COMPILER.parser
>   $?COMPILER.setting
>   $?COMPILER.os_distro
(Continue reading)

Hinrik Örn Sigurðsson | 2 Mar 02:26 2009
Picon

Google's Summer of Code 2009

Google has announced this year's Summer of Code[1]. The Perl
Foundation accepted one project (mentored by Moritz) related to Perl 6
last year[2]. I was wondering if there are any developers interested
in mentoring students on Perl 6-related projects this year. I for one
would like to apply (as a student) for some Perl 6 work.

1. http://code.google.com/soc/
2. http://code.google.com/soc/2008/perl/about.html

jerry gay | 2 Mar 05:31 2009
Picon

Re: Google's Summer of Code 2009

On Sun, Mar 1, 2009 at 17:26, Hinrik Örn Sigurðsson
<hinrik.sig <at> gmail.com> wrote:
> Google has announced this year's Summer of Code[1]. The Perl
> Foundation accepted one project (mentored by Moritz) related to Perl 6
> last year[2]. I was wondering if there are any developers interested
> in mentoring students on Perl 6-related projects this year. I for one
> would like to apply (as a student) for some Perl 6 work.
>
> 1. http://code.google.com/soc/
> 2. http://code.google.com/soc/2008/perl/about.html
>
i'm glad your interest is building, based on last year's successes.
this year, the perl foundation will again apply as a mentoring
organization for google summer of code.  leading the effort will be
jonathan leto, one of last year's mentors, stepping up to fill eric
wilhelm's role as organization administrator.  like last year, tpf
will encourage applications for both perl 5 and perl 6 projects, and
parrot projects as well (as long as they're perl-related).

last year, if i recall correctly, 44 mentors applied for tpf, and 25
student applications were received (of which 16 met the tpf standard
for acceptance).  google allocated 6 slots to tpf, and 5 projects were
completed.  this year, i expect more organizations and more students
will apply, and i know both fewer organizations and fewer students
will be accepted into the program.  if the perl foundation is accepted
again (i have high hopes), you should know that the perl community is
extremely generous.  i have no doubt tpf will again see more
volunteers show interest in mentoring students than students
applicants, and i expect there will be many more project applications
than acceptances.
(Continue reading)

pugs-commits | 2 Mar 06:29 2009
Picon

r25650 - docs/Perl6/Spec

Author: wayland
Date: 2009-03-02 06:29:37 +0100 (Mon, 02 Mar 2009)
New Revision: 25650

Added:
   docs/Perl6/Spec/S21-calling-foreign-code.pod
Log:
Wrote this a few days ago, but forgot to svn add.  

Added: docs/Perl6/Spec/S21-calling-foreign-code.pod
===================================================================
--- docs/Perl6/Spec/S21-calling-foreign-code.pod	                        (rev 0)
+++ docs/Perl6/Spec/S21-calling-foreign-code.pod	2009-03-02 05:29:37 UTC (rev 25650)
 <at>  <at>  -0,0 +1,52  <at>  <at> 
+
+=encoding utf8
+
+=head1 Title
+
+DRAFT: Synopsis 21: Calling Foreign Code
+
+=head1 Version
+
+ Author:        Tim Nelson <wayland <at> wayland.id.au>
+ Maintainer:    Larry Wall <larry <at> wall.org>
+ Contributions: Tim Nelson <wayland <at> wayland.id.au>
+                Larry Wall <larry <at> wall.org>
+ Date:          27 Feb 2009
+ Last Modified: 27 Feb 2009
+ Version:       1
(Continue reading)

pugs-commits | 2 Mar 06:51 2009
Picon

r25651 - docs/Perl6/Spec

Author: wayland
Date: 2009-03-02 06:51:23 +0100 (Mon, 02 Mar 2009)
New Revision: 25651

Modified:
   docs/Perl6/Spec/S28-special-names.pod
Log:
S28:
-	Did more heading changes to make it "Special Names" instead of "Special	Variables"
-	Added lots of spec cross-references
-	Added a	$*DISTRO variable (hopefully this was just an omission)
-	Added a	SoftwarePackage	class that represents the name and version of the software 
        mentioned, whether this be Perl, and OS, or a Distro.  

Modified: docs/Perl6/Spec/S28-special-names.pod
===================================================================
--- docs/Perl6/Spec/S28-special-names.pod	2009-03-02 05:29:37 UTC (rev 25650)
+++ docs/Perl6/Spec/S28-special-names.pod	2009-03-02 05:51:23 UTC (rev 25651)
 <at>  <at>  -11,8 +11,10  <at>  <at> 
  Last Modified: 25 Feb 2009
  Version:       5

-=head1 Introduction
+=head1 Special Variables

+=head2 Introduction
+
 This document serves as a collection point 
 for what is known about special variables 
 in Perl 6 and correlates them with the changes from Perl 5. 
(Continue reading)

pugs-commits | 2 Mar 07:00 2009
Picon

r25652 - docs/Perl6/Spec

Author: wayland
Date: 2009-03-02 07:00:47 +0100 (Mon, 02 Mar 2009)
New Revision: 25652

Modified:
   docs/Perl6/Spec/S28-special-names.pod
Log:
Should've looked first -- $*DISTRO is documented in S02 :)

Modified: docs/Perl6/Spec/S28-special-names.pod
===================================================================
--- docs/Perl6/Spec/S28-special-names.pod	2009-03-02 05:51:23 UTC (rev 25651)
+++ docs/Perl6/Spec/S28-special-names.pod	2009-03-02 06:00:47 UTC (rev 25652)
 <at>  <at>  -78,7 +78,7  <at>  <at> 
   <at> =DATA           (S26)  Array        # Same as above, but array
  %?DEEPMAGIC       S13   Hash of XXX  # Controls the mappings of magical names to sub definitions
  $?DISTRO          S02   SoftwarePackage # Which OS distribution am I compiling under
- $*DISTRO                SoftwarePackage # Which OS distribution am I running under
+ $*DISTRO          S02   SoftwarePackage # Which OS distribution am I running under
  $*EGID                  Int          # effective group id
  %*ENV             S02   Hash of Str  # system environment variables
  $*ERR             S16   IO           # Standard error handle


Gmane