Re: item and slurpy

2005-09-09 Thread Brent 'Dax' Royal-Gordon
On 9/9/05, Juerd <[EMAIL PROTECTED]> wrote: > I am glad "item" is as official as it gets, but I have no personal > favourite between "list" and "slurpy". Please, list members, start a > flame w^W^Wdiscussion about this so that it can be settled. I'll fire the first shot: type names should be nouns

Re: item and slurpy

2005-09-09 Thread Juerd
Larry Wall skribis 2005-09-09 16:45 (-0700): > It's item and list, I think. Pugs uses CxtItem and CxtSlurpy. I am glad "item" is as official as it gets, but I have no personal favourite between "list" and "slurpy". Please, list members, start a flame w^W^Wdiscussion about this so that it can be s

Re: item and slurpy

2005-09-09 Thread Larry Wall
On Sat, Sep 10, 2005 at 12:36:26AM +0200, Juerd wrote: : Are "item context" and "slurpy context" official terms yet? (Note that : "official" is temporary, not permament, and has nothing to do with : things being set in stone.) : : If so, then are the keywords for forcing context also "item" and :

Re: Sub::Uplevel

2005-09-09 Thread Adrian Howard
On 9 Sep 2005, at 21:55, David Golden wrote: At least one of the culprits may be Test::Exception, for any version before 0.20. The problem is that CPANPLUS doesn't currently play well with Module::Build and doesn't respect the "build_requires" parameter, but only looks at the "requires"

item and slurpy

2005-09-09 Thread Juerd
Are "item context" and "slurpy context" official terms yet? (Note that "official" is temporary, not permament, and has nothing to do with things being set in stone.) If so, then are the keywords for forcing context also "item" and "slurpy", rather than "scalar" and "list"? Juerd -- http://convo

Re: kwalitee: drop Acme?

2005-09-09 Thread chromatic
On Fri, 2005-09-09 at 22:28 +0100, Nicholas Clark wrote: > For search results quite the opposite. I'd really like if if the default > way people got search results back for CPAN modules at least attempted > to order at some level based on citations. (ie number of pre-requisites) +1

Re: Accessing a list literal by key?

2005-09-09 Thread Larry Wall
On Fri, Sep 09, 2005 at 08:02:32PM +0200, Ingo Blechschmidt wrote: : Hi, : : # Should this work? : say (a => 1, b => 2); # 2 or error? : : # Similarily: : my @array = (a => 1, b => 2); : say @array; : : my $arrayref = [ a => 1, b => 2 ]; : say $arrayref; : : FWIW, I

Re: kwalitee: drop Acme?

2005-09-09 Thread Nicholas Clark
On Fri, Sep 09, 2005 at 10:37:01PM +1000, Adam Kennedy wrote: > Or make is_prereq SO easy to game that it's a nonissue? Why should a > module depended upon by another author be ranked any higher than one > that isn't. For CPANTS I see no reason. For search results quite the opposite. I'd really

Re: Sub::Uplevel

2005-09-09 Thread David Golden
At least one of the culprits may be Test::Exception, for any version before 0.20. The problem is that CPANPLUS doesn't currently play well with Module::Build and doesn't respect the "build_requires" parameter, but only looks at the "requires" parameter. So you'll get unexpected failures for t

Sub::Uplevel

2005-09-09 Thread Ovid
Hi all, Guess what the following modules all have in common (aside from the fact that I wrote them)? AI::NeuralNet::Simple AI::Prolog Games::Maze::FirstPerson All of them have failed at one time or another because the target computer didn't have Sub::Uplevel installed. I'm going to have t

Re: kwalitee: drop Acme?

2005-09-09 Thread Ovid
--- Adam Kennedy <[EMAIL PROTECTED]> wrote: > Ditch the CPANTs elements that a fail-by-default. By that I mean > has_test_pod_coverage, is_prereq and possibly also has_test_pod. The is_prereq is the only one that really annoys me. If folks start using module-starter, they'll likely pass the pod

Re: Why are we adding more kwalitee tests?

2005-09-09 Thread Nik Clayton
Chromatic wrote: Maybe the problem is that CPANTS as it exists now measures some metrics better measured on the developer side, not the installer side. It's handy to run the POD coverage tests as the developer of a module, but it's not that interesting for the person installing the module to run

Re: Why are we adding more kwalitee tests?

2005-09-09 Thread Robert
"Andy Lester" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, Sep 06, 2005 at 10:07:02AM -0400, Christopher H. Laco ([EMAIL PROTECTED]) wrote: > > Why would they stop uploading? How would they, the new uploaders, even > > know about CPANTS? It's not like uploaded files automat

Re: kwalitee: drop Acme?

2005-09-09 Thread David Golden
Adam Kennedy wrote: Ditch the CPANTs elements that a fail-by-default. By that I mean has_test_pod_coverage, is_prereq and possibly also has_test_pod. Or make is_prereq SO easy to game that it's a nonissue? Why should a module depended upon by another author be ranked any higher than one that

Accessing a list literal by key?

2005-09-09 Thread Ingo Blechschmidt
Hi, # Should this work? say (a => 1, b => 2); # 2 or error? # Similarily: my @array = (a => 1, b => 2); say @array; my $arrayref = [ a => 1, b => 2 ]; say $arrayref; FWIW, I think accessing arrays and arrayrefs by key should probably not work, but I'm unsure on (...

Re: kwalitee: drop Acme?

2005-09-09 Thread Adam Kennedy
David Cantrell wrote: Tels wrote: If I were to run CPANTS, I would drop that module like a hot potato at a summer campfire. Oh, and reduce everyone's K rating involved in the little prank by one :) I thought the whole point of CPANTS was to be useful to authors, not useful to the CPANTS

Re: HLL Namespace Design

2005-09-09 Thread Larry Wall
On Tue, Sep 06, 2005 at 10:49:32AM -0400, Matt Diephouse wrote: : That's what I'll eventually be getting to. But in order to design : those methods well, we need to know what tasks we need to accomplish. : What's even more important, I think, is the storage slots for the : necessary information. Wh

Re: \(...)?

2005-09-09 Thread Juerd
Larry Wall skribis 2005-09-09 8:58 (-0700): > The decision to copy is made by the =, not by @a. This also copies: > ($a,$b) = ($b,$a) > This is how Perl 5 assignment works, and we're trying not to break that... This is all true. However, back to the scalar case, assuming the comma/alias thi

Re: \(...)?

2005-09-09 Thread Larry Wall
On Fri, Sep 09, 2005 at 04:58:37PM +0200, Ingo Blechschmidt wrote: : Hi, : : Juerd wrote: : > Infix? Infix operators are binary, comma is not. That infix operators are always binary is just a cultural assumption based on the historical restriction to right-associative and left-associative operato

Re: \(...)?

2005-09-09 Thread Larry Wall
On Fri, Sep 09, 2005 at 05:35:42PM +0200, Ingo Blechschmidt wrote: : my @a = (1,2,3); # @a's STORE method recognized that the RHS : # is an aggregate, so it created new containers. The decision to copy is made by the =, not by @a. This also copies: ($a,$b) = ($b,$a

Re: Packages, Modules and Classes

2005-09-09 Thread Larry Wall
On Fri, Sep 09, 2005 at 08:46:06AM -0700, Larry Wall wrote: : If these are really postfix operators, then we can also write : : Foo .::{} : Foo .::<> : Foo .::() But I don't think they can really be postfix. At least, ::() isn't, since $Foo .::($bar) would not be the same as we

Re: Packages, Modules and Classes

2005-09-09 Thread Larry Wall
On Thu, Sep 08, 2005 at 07:41:52PM -0400, Stevan Little wrote: : So it would be Foo::.keys() then? : : Would this be possible? The more I think about it, the more I'm leaning toword postfix operators ::{} and ::<>, essentially in same syntactic niche as ::(). Which means you'd have to write that

Re: \(...)?

2005-09-09 Thread Ingo Blechschmidt
Hi, Larry Wall wrote: > On Fri, Sep 09, 2005 at 04:40:11PM +0200, Juerd wrote: > : Ingo Blechschmidt skribis 2005-09-09 15:12 (+0200): > : > I agree that the comma operator creates an anonymous array, but I > : > do not agree that it behaves as if it has [] around it. > : > > : > Creating an anon

Re: [svn:parrot] r9165 - in branches/leo-ctx5: languages/tcl/lib/commands src

2005-09-09 Thread Leopold Toetsch
Will Coleda wrote: Why the change to array.pir here? How was the original way broken? - push_eh catch + push_eh bad_args subcommand_proc = find_global "_Tcl\0builtins\0array", subcommand_name -resume: clear_eh 1) The catch branched to resume, which branched to bad_args (not an

Re: \(...)?

2005-09-09 Thread Ingo Blechschmidt
Hi, Juerd wrote: > Ingo Blechschmidt skribis 2005-09-09 15:12 (+0200): >> I agree that the comma operator creates an anonymous array, but I do >> not agree that it behaves as if it has [] around it. >> >> Creating an anonymous array does not require creating new containers >> -- > > So comma in

Re: \(...)?

2005-09-09 Thread Larry Wall
On Fri, Sep 09, 2005 at 04:40:11PM +0200, Juerd wrote: : Ingo Blechschmidt skribis 2005-09-09 15:12 (+0200): : > I agree that the comma operator creates an anonymous array, but I do not : > agree that it behaves as if it has [] around it. : > : > Creating an anonymous array does not require creati

Re: \(...)?

2005-09-09 Thread Juerd
Ingo Blechschmidt skribis 2005-09-09 15:12 (+0200): > I agree that the comma operator creates an anonymous array, but I do not > agree that it behaves as if it has [] around it. > > Creating an anonymous array does not require creating new containers -- So comma in scalar context creates an array

Re: [svn:parrot] r9165 - in branches/leo-ctx5: languages/tcl/lib/commands src

2005-09-09 Thread Will Coleda
Why the change to array.pir here? How was the original way broken? On Sep 9, 2005, at 10:08 AM, [EMAIL PROTECTED] wrote: Author: leo Date: Fri Sep 9 07:08:21 2005 New Revision: 9165 Modified: branches/leo-ctx5/languages/tcl/lib/commands/array.pir branches/leo-ctx5/src/inter_call.c Log:

Re: A PMC class for reference counting

2005-09-09 Thread Nicholas Clark
On Thu, Sep 08, 2005 at 09:19:43PM +0200, Leopold Toetsch wrote: > > On Sep 8, 2005, at 18:59, Nicholas Clark wrote: > > > > >Would it make sense if it returned 0 rather than -1 on "not found"? > >The implementation can never return a reference count of 0, because > >keys > >are automatically de

Re: [perl #31980] Factorial example gives incorrect result

2005-09-09 Thread Will Coleda
Switching to Integer doesn't help unless you have a bigint lib, at least on my box: The first 15 factorials are: 1 2 6 24 120 720 5040 40320 362880 3628800 39916800 479001600 no bigint lib loaded current instr.: '(null)' pc 16 ((unknown file):-1) To address the other point, I'll reorganize the

Re: \(...)?

2005-09-09 Thread Ingo Blechschmidt
Hi, Juerd wrote: > Ingo Blechschmidt skribis 2005-09-09 11:59 (+): >> > > > \(@array,) is [ @array ], NOT map { \$_ } @array >> > > I'm not sure of the []s, remember &postcirumfix:<[ ]> creates >> > > *new* containers: >> > That was the point. >> > > [EMAIL PROTECTED] = $bar; >> > > (@

Re: Call for B0rked

2005-09-09 Thread Andy Dougherty
On Fri, 9 Sep 2005, Leopold Toetsch wrote: > Andy Dougherty <[EMAIL PROTECTED]> wrote: > > On Wed, 31 Aug 2005, Chromatic wrote: > > >> Hi all, > >> > >> In a recent discussion with Chip and Leo, the idea came up to ask for a > >> list of very specific TODO items -- specifically things that shoul

Re: Parrot on MacOS X -> OK on Japh

2005-09-09 Thread Leopold Toetsch
Alberto Simões <[EMAIL PROTECTED]> wrote: > The previous crashing test is now passing: > t/examples/japhok > 1/15 unexpectedly succeeded I have fixed one of the JAPHs in Braga ;-) Anyway a lot of these JAPHs depend on a specific opcode enumeration, which changed some tim

Re: HLL Namespace Design

2005-09-09 Thread Leopold Toetsch
Tim Bunce <[EMAIL PROTECTED]> wrote: > See this thread, especially message 16 (and then 13,14,15 :) > http://groups.google.com/group/perl.perl6.internals/browse_frm/thread/678fbfc5a14813b5 > How close is Parrot to supporting that functionality now? >From a technical POV namespaces are working in

Re: Parsing indent-sensitive languages

2005-09-09 Thread Peri Hankey
Many apologies for triple posting - short-circuit between ears. Peri Hankey -- http://languagemachine.sourceforge.net - The language machine

Re: [perl #31980] Factorial example gives incorrect result

2005-09-09 Thread Leopold Toetsch
Bernhard Schmalhofer via RT <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] - Di 19. Okt 2004, 19:49:44]: >> Is it the intended operation of the 'factorial' program on the Parrot >> examples page to >> truncate the results? Looks like a bug to me... > I have checked the factorial example on > ht

Re: Call for B0rked

2005-09-09 Thread Leopold Toetsch
Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > For splitting on regular expressions, PGE can then provide its own > split method or function ^^ Sic. C shouldn't be an opcode at all. It's a library function or more specifically a method inside some namespace. E.g. String.split Ru

Re: [perl #36252] [TODO] cleanup editor

2005-09-09 Thread Will Coleda
I would agree. I don't expect "make" to touch anything outside of the local sandbox... As for tying it to install/uninstall... I would lean towards not using those targets, or at least not running them when running the top level targets of the same name. On Sep 8, 2005, at 11:20 PM, Josh

Re: \(...)?

2005-09-09 Thread Juerd
Ingo Blechschmidt skribis 2005-09-09 11:59 (+): > > > > \(@array,) is [ @array ], NOT map { \$_ } @array > > > I'm not sure of the []s, remember &postcirumfix:<[ ]> creates *new* > > > containers: > > That was the point. > > > [EMAIL PROTECTED] = $bar; > > > (@array,)[0] = $bar; >

Re: Call for B0rked

2005-09-09 Thread Leopold Toetsch
Andy Dougherty <[EMAIL PROTECTED]> wrote: > On Wed, 31 Aug 2005, Chromatic wrote: >> Hi all, >> >> In a recent discussion with Chip and Leo, the idea came up to ask for a >> list of very specific TODO items -- specifically things that should work >> but don't. > It should be possible to Configure

Re: make - to recurse or not?

2005-09-09 Thread Leopold Toetsch
Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > My confusion is in the correct way of running the 'clean' target to > clean ./editor. Most of the 'clean' targets in the root Makefile do not > invoke make recursively. We are building 'all' recursively. This implies that all subdirectory Makefile shou

Re: Parsing indent-sensitive languages

2005-09-09 Thread Peri Hankey
Dave Whipp wrote: If I want to parse a language that is sensitive to whitespace indentation (e.g. Python, Haskell), how do I do it using P6 rules/grammars? The way I'd usually handle it is to have a lexer that examines leading whitespace and converts it into "indent" and "unindent" tokens. The

Re: GMC release

2005-09-09 Thread Leopold Toetsch
Nattfodd <[EMAIL PROTECTED]> wrote: > Hi, > today is the deadline for the google summer of code projects, and it's > time anyway for a "release" of GMC. [ two additional remarks, rest sent in PM ] 1) docs Some recent changes, like reversing the scavenge direction isn't yet synced to documentati

Re: \(...)?

2005-09-09 Thread Ingo Blechschmidt
Hi, Juerd convolution.nl> writes: > Ingo Blechschmidt skribis 2005-09-06 21:24 (+0200): > > > \(@array,) is [ @array ], NOT map { \$_ } @array > > I'm not sure of the []s, remember &postcirumfix:<[ ]> creates *new* > > containers: > > That was the point. > > > [EMAIL PROTECTED] =

Re: Branch Review

2005-09-09 Thread Leopold Toetsch
Chip Salzenberg <[EMAIL PROTECTED]> wrote: [ sorry for the delayed answer ] > I've looked over over the diffs between trunk and leo-ctx5, and here > are my notes. >{{ OVERALL }} > A significant improvement. Good work, y'all. Thanks. >{{ USER-VISIBLE }} > * optional parameter interface: ":op

Re: kwalitee: drop Acme?

2005-09-09 Thread David Cantrell
Tels wrote: If I were to run CPANTS, I would drop that module like a hot potato at a summer campfire. Oh, and reduce everyone's K rating involved in the little prank by one :) I thought the whole point of CPANTS was to be useful to authors, not useful to the CPANTS cabal. So if I want to

Re: Parsing indent-sensitive languages

2005-09-09 Thread Peri Hankey
Dave Whipp wrote: If I want to parse a language that is sensitive to whitespace indentation (e.g. Python, Haskell), how do I do it using P6 rules/grammars? The way I'd usually handle it is to have a lexer that examines leading whitespace and converts it into "indent" and "unindent" tokens. T

Re: Parsing indent-sensitive languages

2005-09-09 Thread Peri Hankey
Dave Whipp wrote: If I want to parse a language that is sensitive to whitespace indentation (e.g. Python, Haskell), how do I do it using P6 rules/grammars? The way I'd usually handle it is to have a lexer that examines leading whitespace and converts it into "indent" and "unindent" tokens. The

Parrot on MacOS X -> OK on Japh

2005-09-09 Thread Alberto Simões
The previous crashing test is now passing: t/examples/japhok 1/15 unexpectedly succeeded These are failing, but seem to be expected as they are not counted as failed. t/p6rules/ws...ok 15/21# Failed (TODO) test (lib/Parrot/Test/PGE.pm at line 73

[perl #37116] t/pmc/timer.t fails with MinGW

2005-09-09 Thread François
# New Ticket Created by François PERRAD # Please include the string: [perl #37116] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37116 > t/pmc/timer.t contains the remainder failure on Win32 with MinGW : $ perl t/harness

[perl #37115] [TODO] document Parrot's requirements

2005-09-09 Thread via RT
# New Ticket Created by Joshua Hoblitt # Please include the string: [perl #37115] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37115 > Parrot's top level requirements and perhaps it's 1st-order derived requirements need

Re: [perl #37100] [PATCH] Pod tests + fixes

2005-09-09 Thread Joshua Hoblitt
On Thu, Sep 08, 2005 at 12:12:18PM -0700, Bernhard Schmalhofer via RT wrote: > 't/doc/pod.t' also make a lot of sense. However could you comment on the > relation to t/perl/Parrot_Docs.t ? It looks like it checks the same > things as 'pod.t'. > I wonder whether it is worthwile to maintain Parrot::D

Re: kwalitee: drop Acme?

2005-09-09 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Friday 09 September 2005 03:08, David Golden wrote: > It can't be by the same author, though, to count for is_prereq, right? > > So someone needs to create a new CPAN ID, and release a module under > that ID that prereqs all of CPAN. Then we'd all get