syntactic, static and dynamic type

2005-09-19 Thread Thomas Sandlass
HaloO, I'm still trying to understand the concept of context in Perl6 from a typing perspective. My current interpretation let me to coin three levels of typing in Perl6: syntactic, static and dynamic. I guess the latter two are well known but the syntactic type is new---at least do I hope so. Ple

Re: Plugging CPANTS

2005-09-19 Thread Thomas Klausner
Hi! On Sun, Sep 18, 2005 at 08:18:17PM -0500, Andy Lester wrote: > > For all the activity going on with CPANTS, we have nothing on > qa.perl.org that refers to it. > > Can someone please write up a paragraph and a link that I can put up > on qa.perl.org's front page? I'll wirte up something

CPANTS: has_license ?

2005-09-19 Thread Gábor Szabó
What do you think about adding a has_license kwalitee to CPANTS ? Checking if the META.yml has that entry ? For extra points you might also parse the module file to see if there is copyright and license information and if they are the same as in META.yml This will encourage people state clearly w

Re: CPANTS new

2005-09-19 Thread Thomas Klausner
Hi! On Sun, Sep 18, 2005 at 12:24:26PM +0200, Tels wrote: > > The cpants analysis fails to recognise this as valid. What is it > > looking for and/or could it be taught to look for this? I thought that > > it was only looking for a string eval of "use Test::Pod". > > I would like to know the sam

Re: CPANTS new

2005-09-19 Thread Thomas Klausner
Hi! On Sun, Sep 18, 2005 at 11:48:02AM +0200, David Landgren wrote: > Seriously though, I have a module whose test suite includes Test::Pod > and Test::Pod::Coverage, except that I use the following construct: > > SKIP: { > skip( 'Test::Pod not installed on this system', 1 ) > unles

Re: CPANTS new

2005-09-19 Thread Thomas Klausner
Hi! On Sun, Sep 18, 2005 at 09:30:03PM +0200, David Landgren wrote: > Yeah, but I'm loathe to dedicate two separate test files merely to score > two points of Kwalitee. As it is, I'd just much rather bundle both tests > in a 00_basic.t file along with all the other standard no-brainer tests. I

Re: CPANTS new

2005-09-19 Thread David Landgren
Thomas Klausner wrote: [...] The cpants analysis fails to recognise this as valid. What is it looking for and/or could it be taught to look for this? I thought that it was only looking for a string eval of "use Test::Pod". It does, but the qq{} you're using isn't recognised by the regex. I'l

Re: CPANTS new

2005-09-19 Thread David Landgren
Thomas Klausner wrote: Hi! On Sun, Sep 18, 2005 at 09:30:03PM +0200, David Landgren wrote: Yeah, but I'm loathe to dedicate two separate test files merely to score two points of Kwalitee. As it is, I'd just much rather bundle both tests in a 00_basic.t file along with all the other standard

Re: CPANTS: has_license ?

2005-09-19 Thread David Landgren
Gábor Szabó wrote: What do you think about adding a has_license kwalitee to CPANTS ? Checking if the META.yml has that entry ? This will penalise all the modules that use ExtUtils::MakeMaker, which, last time I looked, does not generate the license metadata, even though the module may clearly

Re: \(...)?

2005-09-19 Thread chromatic
On Mon, 2005-09-19 at 13:01 +0200, TSa wrote: > Why shouldn't there be a lvalue traversal that > in the end makes > >($x, $y) = \($a, $b); > > actually mean > >$x = \$a; $y = \$b; Does this not go from one sequence point (evaluate the rhs sufficiently, then perform the lvalue assignmen

Re: \(...)?

2005-09-19 Thread TSa
HaloO, Ingo Blechschmidt wrote: [EMAIL PROTECTED];# Ref to array \(@array); # List of refs to @array's elements, i.e. same as map { \$_ } @array; # Weird (violating the "parens are only for grouping" rule), but # consistent with Perl 5. Correct? I opt for 'no'. () sh

Re: \(...)?

2005-09-19 Thread TSa
HaloO Larry, you wrote: We can do whatever we like with \ since it's really a *macro* that Could you explain me the rational why \ and other ops like =, := are not normal overloadable, possibly MMD operators? imposes lvalue context (or at least, indirection in the abstract, if we were ever

Lazy lists and optimizing for responsiveness

2005-09-19 Thread Yuval Kogman
One thing that is extraordinarily hard to do with the facilities we have today is finding the responsive optimum between laziness and eagerness. Let's use an example. WWW::Mechanize comes with a nice example script for mailing list moderation. This script can be rather easily hacked to work on s

Re: \(...)?

2005-09-19 Thread Juerd
TSa skribis 2005-09-19 18:16 (+0200): > sub &*prefix:<\> (Item *$to_enref --> Ref ^ List[Ref]) {...} > # For the type inferencer it were a great thing to leave > # the hint that Item --> Ref and List --> List, but how do > # I write that? Is it (*$t, [EMAIL PROTECTED] --> @rest ?? List !! R

[perl #37197] [PATCH] optimize with MinGW

2005-09-19 Thread François
# New Ticket Created by François PERRAD # Please include the string: [perl #37197] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37197 > This patch allows Configure.pl --optimize and Configure.pl --optimize=flags with M

Re: [perl #37197] [PATCH] optimize with MinGW

2005-09-19 Thread Jonathan Worthington
François PERRAD (via RT)" <[EMAIL PROTECTED]> wrote: This patch allows Configure.pl --optimize and Configure.pl --optimize=flags with MinGW. (And typo in CREDITS) Thanks, applied (r9210). I think it was me that got your name wrong when I added it to the CREDITS too - sorry about that. Jo

Re: CPANTS: has_license ?

2005-09-19 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Monday 19 September 2005 11:33, David Landgren wrote: > Gábor Szabó wrote: > > What do you think about adding a has_license kwalitee to CPANTS ? > > Checking if the META.yml has that entry ? > > This will penalise all the modules that use ExtUtils::Make

Re: Lazy lists and optimizing for responsiveness

2005-09-19 Thread TSa
HaloO, Yuval Kogman wrote: One thing that is extraordinarily hard to do with the facilities we have today is finding the responsive optimum between laziness and eagerness. Good, that you remind me to this subject! I wanted to ask the "same" question starting from more theoretical grounds. I kn

Re: \(...)?

2005-09-19 Thread Ingo Blechschmidt
Hi, TSa orthogon.com> writes: > Ingo Blechschmidt wrote: > > [EMAIL PROTECTED];# Ref to array > > > > \(@array); # List of refs to @array's elements, i.e. same as > > map { \$_ } @array; > > # Weird (violating the "parens are only for grouping" rule), but > > # consisten

Re: \(...)?

2005-09-19 Thread Jonathan Scott Duff
On Mon, Sep 19, 2005 at 02:21:43PM +, Ingo Blechschmidt wrote: > So...: > > [EMAIL PROTECTED]; # Reference to array, of course > \(@array); # same > \(((@array))); # same > > \(1,2,3);# Reference to a list promoted to an array (!) > \(((1,2,3)));

Re: \(...)?

2005-09-19 Thread TSa
HaloO, Ingo Blechschmidt wrote: So...: [EMAIL PROTECTED]; # Reference to array, of course \(@array); # same \(((@array))); # same \(1,2,3);# Reference to a list promoted to an array (!) \(((1,2,3)));# same The thing that is unclear to me here a

Re: \(...)?

2005-09-19 Thread TSa
HaloO, Ingo Blechschmidt wrote: [EMAIL PROTECTED];# List of references to @array's elements \*(((@array))); # same Yes, and of course \((*((@array; # same \ (* (@array)); # same Well, until someone invents &infix:<(*> :) -- $TSa.greeting := "HaloO"; # mind

Re: \(...)?

2005-09-19 Thread Juerd
Ingo Blechschmidt skribis 2005-09-19 14:21 (+): > \(1,2,3);# Reference to a list promoted to an array (!) > \(((1,2,3)));# same Except that it has to be a reference to a reference, because (1,2) (in scalar context) already evaluates to a reference, because it can't be a pur

Re: \(...)?

2005-09-19 Thread TSa
HaloO, Juerd wrote: Could you think of a formal specification of \ the way you want it, that doesn't exist of only examples? I can't speak for Ingo, but here's mine. What context does it give its RHS? I still have difficulties to understand this concept but I think that \ is simply sub

Re: [perl #37197] [PATCH] optimize with MinGW

2005-09-19 Thread François PERRAD
At 06:22 19/09/2005 -0700, you wrote: François PERRAD (via RT)" <[EMAIL PROTECTED]> wrote: > > This patch allows Configure.pl --optimize and > Configure.pl --optimize=flags > with MinGW. > (And typo in CREDITS) > Thanks, applied (r9210). I think it was me that got your name wrong when I added

Re: #34394: [TODO] implement the splice vtable in *PMCArrays

2005-09-19 Thread Nicholas Dronen
On Sun, Sep 18, 2005 at 11:48:08PM +0100, Jonathan Worthington wrote: [ snip ] > I guess if I could offer any advice, it'd be don't be afraid of asking > questions and also expect to have to look at the source to figure some > stuff out, because the docs aren't always as great or up to date as y

Re: #34394: [TODO] implement the splice vtable in *PMCArrays

2005-09-19 Thread Jonathan Worthington
"Nicholas Dronen" <[EMAIL PROTECTED]> wrote: On Sun, Sep 18, 2005 at 11:48:08PM +0100, Jonathan Worthington wrote: [ snip ] I guess if I could offer any advice, it'd be don't be afraid of asking questions and also expect to have to look at the source to figure some stuff out, because the docs a

About multithreading

2005-09-19 Thread Leopold Toetsch
Nearby at python-dev I found this: http://www.gotw.ca/publications/concurrency-ddj.htm The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software Herb Sutter Nice article IMHO, leo - STM to the rescue

Re: About multithreading

2005-09-19 Thread Jonathan Worthington
"Leopold Toetsch" <[EMAIL PROTECTED]> wrote: Nearby at python-dev I found this: http://www.gotw.ca/publications/concurrency-ddj.htm The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software Herb Sutter Nice article IMHO, leo - STM to the rescue Yup, and it's encouraging to see

Re: #34394: [TODO] implement the splice vtable in *PMCArrays

2005-09-19 Thread Matt Fowles
Jonathan~ On 9/19/05, Jonathan Worthington <[EMAIL PROTECTED]> wrote: > "Nicholas Dronen" <[EMAIL PROTECTED]> wrote: > > On Sun, Sep 18, 2005 at 11:48:08PM +0100, Jonathan Worthington wrote: > > [ snip ] > > > >> I guess if I could offer any advice, it'd be don't be afraid of asking > >> questions

[PROPOSED PATCH lib/Parrot/Vtable.pm] Generate src/extends.c

2005-09-19 Thread chromatic
Hi all, Here is a patch I promised Nicholas a while ago to generate src/extends.c automatically. It's not complete and it's not perfect, but it's a good first step that someone (including potentially myself) can refine as we see where and how it fails. -- c Index: lib/Parrot/Vtable.pm

Re: tcl, exceptions in leo-ctx5

2005-09-19 Thread Andy Dougherty
On Thu, 15 Sep 2005, Will Coleda wrote: > Done. All tests pass for tcl in leo-ctx5. (And with leo's recent fixes, > hopefully this means on all platforms for real this time. =-) > > This should also fix the problem on windows, as the missing functions have > been uncommented, and are now availabl

Re: tcl, exceptions in leo-ctx5

2005-09-19 Thread Will Coleda
Good! [inline] isn't real Tcl, it's specific to partcl. That test consists of the code: inline PASM { print "ok\n" } which should do the obvious thing. Odd that it's squawking about MMD_add. Can you 1) try this PIR, and 2) if that *works*, copy that tcl snippet to "examples/foo.tcl"

Perl 6 Summary for 2005-09-12 through 2005-09-19

2005-09-19 Thread Matt Fowles
Perl 6 Summary for 2005-09-12 through 2005-09-19 All~ Welcome to another Perl 6 Summary, this time brought to you with a shorter pause (::grumble:: $WORK ::grumble::) and assisted by cookies. Perl 6 Compilers Circular Preludes for Fun and Confusion Yuval Kogman posted a reall

Re: Sub::Uplevel

2005-09-19 Thread Michael G Schwern
On Sat, Sep 10, 2005 at 01:09:55PM +, Smylers wrote: > Sounds like a cunning plan by the Sub::Uplevel author to get you to add > that module as a prereq for all yours, thereby increasing his kwalitee. I have no idea what you're talking about. [adjusts monocle, strokes white cat, smiles villain

Re: Devel::Cover problem with Apache::Test

2005-09-19 Thread Geoffrey Young
Hilary Holz wrote: Okay - here's what I've figured out - D::C is not recording any coverage info when I run a test in t/apache. D::C is recording coverage for all the tests that are in the t/ directory - and the reports are in the realm of the reasonable. Have you had D::C collect coverage sta

Re: Devel::Cover problem with Apache::Test

2005-09-19 Thread Hilary Holz
>> Have you had D::C collect coverage stats for tests in the t/apache, >> t/response/TestApache format? > > yes. when I run the skeleton I pointed you toward last time I get this > > Filestmt bran condsub time total > - -- --

Re: Devel::Cover problem with Apache::Test

2005-09-19 Thread Geoffrey Young
> No, not when I run the example out of the box - I had to move the > PerlPassEnv directives to extra.conf.in and rebuild (this makes sense, > though, as extra.conf is processed before modperl_extra.pl, while > extra.last.conf is processed after - perhaps you fixed your local copy and > haven't up

Re: ENV problems with testing

2005-09-19 Thread Michael G Schwern
On Thu, Sep 15, 2005 at 01:32:47PM -0500, Comrade Burnout wrote: > But, some of the test fail because the previously installed version of > EU::MM ends up being used in the tests, and not the version in my local > dir (that I'm trying to test) Do your tests run another copy of Perl? ie... system

Re: ENV problems with testing

2005-09-19 Thread Comrade Burnout
Michael G Schwern wrote: >On Thu, Sep 15, 2005 at 01:32:47PM -0500, Comrade Burnout wrote: > > >>But, some of the test fail because the previously installed version of >>EU::MM ends up being used in the tests, and not the version in my local >>dir (that I'm trying to test) >> >> > >Do your t

Re: CPANTS: has_license ?

2005-09-19 Thread Michael G Schwern
On Mon, Sep 19, 2005 at 11:33:07AM +0200, David Landgren wrote: > This will penalise all the modules that use ExtUtils::MakeMaker, which, > last time I looked, does not generate the license metadata, even though > the module may clearly state the license used in the documentation. The latest alp

Re: ENV problems with testing

2005-09-19 Thread Michael G Schwern
On Mon, Sep 19, 2005 at 06:55:12PM -0500, Comrade Burnout wrote: > i upgraded to 5.8.2 (i think that's the minor version number .. don't > recall), and that "magickally" fixed everything. > > i was running 5.6.1 at the time. Oh. Did you chdir() at all in the tests? Earlier versions of MakeMake

Re: ENV problems with testing

2005-09-19 Thread James E Keenan
Michael G Schwern wrote: On Mon, Sep 19, 2005 at 06:55:12PM -0500, Comrade Burnout wrote: i upgraded to 5.8.2 (i think that's the minor version number .. don't recall), and that "magickally" fixed everything. i was running 5.6.1 at the time. Oh. Did you chdir() at all in the tests? Earl

Re: ENV problems with testing

2005-09-19 Thread Comrade Burnout
James E Keenan wrote: > snip > > The thing that puzzled me about Burnout's test failures was that they > seemed to happen at places where the code was very mundane. We've > been communicating on this list, Perlmonks, and off-list about it for > weeks. We did confirm that the tests were

Re: [perl #801] [PATCH] PerlArray in scalar context

2005-09-19 Thread Sean O'Rourke
"Joshua Hoblitt via RT" <[EMAIL PROTECTED]> writes: > Isn't this a semantics issue that needs to be resolved via p6l? It is > however a design issue so I'm passing the buck to Chip to make a call > about this. Parrot/perl6 was completely different then, so this bug should be marked "irrelevant"

Re: [perl #16935] [PATCH] more regex stack manipulation

2005-09-19 Thread Sean O'Rourke
"Joshua Hoblitt via RT" <[EMAIL PROTECTED]> writes: > Since the rx_* ops are on the chopping block is there any objection to > closing this bug? No objection from me. Actually, I'm not an active Parrot developer now, and don't see myself becoming one again in the near future, so you can probably

Re: Junctions, patterns, and fmap again

2005-09-19 Thread Stuart Cook
On 19/09/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > Part 1: fmap > > I have a plan for the $x »+« $y form (and also foo(»$x«, »$y«, »$z«)), > but I don't want to go into that right now. It basically involves > zipping the structures up into tuples and applying the function to the > tuples. Doe

Re: Junctions, patterns, and fmap again

2005-09-19 Thread Luke Palmer
On 9/19/05, Stuart Cook <[EMAIL PROTECTED]> wrote: > On 19/09/05, Luke Palmer <[EMAIL PROTECTED]> wrote: > > Part 1: fmap > > > > I have a plan for the $x »+« $y form (and also foo(»$x«, »$y«, »$z«)), > > but I don't want to go into that right now. It basically involves > > zipping the structures

Re: ENV problems with testing

2005-09-19 Thread Michael G Schwern
On Mon, Sep 19, 2005 at 09:42:52PM -0400, James E Keenan wrote: > Schwern: Do you think it's worthwhile accounting for this MakeMaker > anachronism in writing test files, i.e., providing an absolute path to > every chdir call? I think you misunderstand. The problem is not using relative paths

Re: Junctions, patterns, and fmap again

2005-09-19 Thread Luke Palmer
On 9/19/05, Luke Palmer <[EMAIL PROTECTED]> wrote > Well, I've written up the details in a 40 line Haskell program to make > sure it worked. I think I deleted the program, though. Nope. Here it is. And it was 22 lines. :-) http://svn.luqui.org/svn/misc/luke/work/code/haskell/hyper.hs Luke