Private tests

2005-11-14 Thread Chris Dolan
ositive and negative feedback is very welcome! Chris -- Chris Dolan, Software Developer, www.chrisdolan.net Public key: http://www.chrisdolan.net/public.key

Private tests

2005-11-14 Thread Chris Dolan
le system where authors publish the results of private tests with their distributions as a trust- based kwalitee system. http://www.chrisdolan.net/talk/index.php/2005/11/14/private- regression-tests/ Both positive and negative feedback is very welcome! Chris -- Chris Dolan, Software De

Re: Private tests

2005-11-15 Thread Chris Dolan
implicit request for help from other developers. Chris On Nov 15, 2005, at 4:12 AM, Tels wrote: -BEGIN PGP SIGNED MESSAGE- Moin, On Monday 14 November 2005 18:21, Chris Dolan wrote: Hello all, I've just published an article about public vs. private regression tests. I

Re: Private tests

2005-11-15 Thread Chris Dolan
has a recursive mode for finding tests. It's set by the author, so you should be safe in this case, but it's a point worth remembering. *light bulb* And in fact, that could be the run-time trigger. Hmmm Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 60

Re: How to use Devel::Cover?

2005-12-26 Thread Chris Dolan
uot; and then open cover_db/coverage.html in your browser. If you are using a version of M::B older than 0.27_02, you may wish to manually delete the whole cover_db directory between runs. Later M::B versions auto- detect when cover_db files are out of date. Chris -- Chris Dolan, Softwa

punie.g observation

2006-01-17 Thread Chris Dolan
It seems to me that the gprint rule should instead contain "cexpr": rule gprint { (print) \s* } Sorry if these are dumb questions. I've been following Parrot for a while, but I'm new to the code... Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Pu

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Chris Dolan
On Jan 27, 2006, at 12:01 PM, Tels wrote: On Friday 27 January 2006 18:48, Chris Dolan wrote: On Jan 27, 2006, at 11:23 AM, Tels wrote: Basically something like CPAN, but with much less network traffic and much less hassle for a user. Bonus points if it gives you stuff pre- compiled for

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Chris Dolan
ckage Manager (PPM). http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/ Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creato

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Chris Dolan
On Jan 27, 2006, at 12:30 PM, Tyler MacDonald wrote: Chris Dolan <[EMAIL PROTECTED]> wrote: * for windows only * only includes Foo-Bar, but not it's dependecies It will auto-install dependencies just like CPAN, I believe. And, yes, it's currently Windows-only. Didn't y

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-28 Thread Chris Dolan
odgate.com/tels.asc or per email. This email violates EU patent EP0394160: [ ## 66% ] -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho A

Re: Kwalitee in your dependencies (was CPAN Upload: etc etc)

2006-01-30 Thread Chris Dolan
used. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-landscape.com/) and partne

Re: YAML and Makefile.PL (was various topics)

2006-01-31 Thread Chris Dolan
aries correctly, M::B just entered core in 5.9.3. There has long been hope that M::B and CPANPLUS will be in core for 5.10. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDola

Re: YAML and Makefile.PL (was various topics)

2006-01-31 Thread Chris Dolan
do is have Andreas or Jos increment the CPAN.pm/CPANPLUS.pm version and just about everyone would be prompted to upgrade the next time they tried to install something. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 5

Re: TODO test paradox: better TODO test management?

2006-01-31 Thread Chris Dolan
both those passing and those failing. You could try: make test verbose=1 > out and then search the output for "TODO" Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net

Re: [Module::Build] [RFC] author tests

2006-02-02 Thread Chris Dolan
On Feb 1, 2006, at 10:35 PM, Tyler MacDonald wrote: Chris Dolan <[EMAIL PROTECTED]> wrote: There is a class of tests that module authors perform that end users are not expected to run. For example code coverage tests, spelling tests, coding style tests, etc. These tests are

Re: [Module::Build] [RFC] author tests

2006-02-02 Thread Chris Dolan
test". Presently, I simply include them all in my MANIFEST.SKIP so they are not included in my uploaded package. That's why I call these "author tests" and not "release tests" or "exhaustive tests". Chris -- Chris Dolan, Software Developer, Clotho Advanced

Re: Default tests, beta testing, etc.

2006-02-05 Thread Chris Dolan
be a good way to motivate new authors to put more attention into testing. I recommend Test::Distribution for this type of "default" tests. It looks for .pm files in blib and performs a bunch of tests on them -- POD, compile, version, etc. [snip] Chris -- Chris Dolan, Sof

Re: Default tests, beta testing, etc.

2006-02-06 Thread Chris Dolan
t makes sure it still works as Perl is upgraded and your dependencies evolve. Since I've got a terribly bad habit of inventing things that have existing names, I'm sure someone will correct my on the two above namings. I think those are great names. Very clear. Chris -- Chris

Re: OS.pmc patch to add 'ls'

2006-02-13 Thread Chris Dolan
rk for the languages. It's kind of a CISC vs. RISC argument. Again, this is an outsider opinion. Apologies in advance if I'm off- base or misunderstood the proposal. Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/pu

Re: OS.pmc patch to add 'ls'

2006-02-13 Thread Chris Dolan
On Feb 13, 2006, at 1:20 PM, Joshua Hoblitt wrote: On Mon, Feb 13, 2006 at 09:28:40AM -0600, Chris Dolan wrote: On Feb 12, 2006, at 6:52 PM, Joshua Hoblitt wrote: It would also be 'really nice' have a glob(3) like method that is implemented as a wrapper around *dir methods so the

Re: [perl #38604] m4.pm vs. M4.pm causes problems in case-insensitive filesystems

2006-02-21 Thread Chris Dolan
On Feb 21, 2006, at 1:30 PM, Bernhard Schmalhofer wrote: Chris Dolan (via RT) schrieb: # New Ticket Created by Chris Dolan # Please include the string: [perl #38604] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id

Surprising use_ok false positive

2006-03-05 Thread Chris Dolan
e this example is contrived, the "eval { require ... }" idiom is used often in the wild, so this is not a wholly unrealistic scenario. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: ht

Re: Surprising use_ok false positive

2006-03-05 Thread Chris Dolan
On Mar 5, 2006, at 3:55 PM, David Wheeler wrote: On Mar 5, 2006, at 13:52, Chris Dolan wrote: Advice? While this example is contrived, the "eval { require ... }" idiom is used often in the wild, so this is not a wholly unrealistic scenario. Of course it should be eval { r

Re: early draft of I/O PDD

2006-03-06 Thread Chris Dolan
lly, I speculate that the latter would make it easier to write the Parrot equivalent of Safe.pm's sandbox later. It would likely be easier to disable a PMC class than a diverse collection of opcodes. Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/

Re: Best Practice for testing compilation of scripts

2006-03-15 Thread Chris Dolan
lcome). However, Adam Kennedy wrote one: http://search.cpan.org/src/ADAMK/ThreatNet-Bot-AmmoBot-0.10/t/ 01_compile.t That function should probably be changed to use FindBin instead of updir() calls. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294

Re: Upgrading core modules on Windows

2006-03-16 Thread Chris Dolan
this, although that would be a huge addition to the dependency list. With PAR, you could employ a whole separate .exe and probably even do the core updates. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard

Re: [PATCH] Forking tests with Test::More

2006-03-28 Thread Chris Dolan
ication for adding this feature to Test::More itself. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Softw

Re: Module requirements

2006-04-05 Thread Chris Dolan
nd was first released with perl 5 Memoize was first released with perl 5.007003 Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc.

Re: CPANTS is not a game.

2006-05-23 Thread Chris Dolan
I think that's a price worth paying -- at least until we rewrite the metric to actually test POD coverage (which is a decent proxy for POD quality) instead of just checking for the presence of a t/ pod_coverage.t file (which is a weak proxy for POD quality, but dramatically easier to measure).

Re: CPANTS is not a game.

2006-05-23 Thread Chris Dolan
On May 23, 2006, at 10:34 AM, David Golden wrote: Chris Dolan wrote: ... just checking for the presence of a t/pod_coverage.t file (which is a weak proxy for POD quality, but dramatically easier to measure). It doesn't check for the existence of a t/pod_coverage.t file. It checks

Re: CPANTS is not a game.

2006-05-23 Thread Chris Dolan
like incorporating cpanratings into CPANTS (I do NOT advocate that!) or getting download stats from CPAN (never gonna happen) or adding voluntary "Someone installed module X" pings from CPAN.pm. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294

Re: 3 Good Reasons...

2006-05-26 Thread Chris Dolan
future where Perl and Ruby are bytecode compatible, perhaps I would have just interfaced with the Ruby library directly instead of having to reinvent it, saving a couple of days of coding and debugging. [1] http://inlet-media.de/flvtool2 [2] http://search.cpan.org/dist/FLV-Info/ Chris -- C

Re: Relationship between pugs and parrot/language/perl6

2006-05-29 Thread Chris Dolan
ude toward testing is what has kept me so excited about the Perl community over the last few years, even after the initial love for the language wore off. So instead of "Only Perl can parse Perl" we get "Only Perl regression tests can specify Perl". I can be happy wit

Re: Continuous testing tools

2006-06-08 Thread Chris Dolan
the server. Is there any interest in such a package? Best wishes, Tels That sounds very similar to Adam Kennedy's PITA project. Yes, there is great interest! Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI

Re: TAP Grammar

2006-07-05 Thread Chris Dolan
t the first line of the Makefile to specify the path to PARROT_DIR and run "make". My tests found a few bugs in Jerry's grammar. My fixed version of that grammar is here: https://svn.clotho.com/public/parrot-experiments/TAP/grammars/TAP.pg Chris -- Chris Dolan, Software

Re: Old and broken versions of Module::Install

2006-07-06 Thread Chris Dolan
http://plasmasturm.org/> IMHO it likely counts as a CPANTS pass for now, but it may be a fail in the future unless you update the Makefile.PL with a newer M::B as bugs are discovered. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main S

Re: Old and broken versions of Module::Install

2006-07-06 Thread Chris Dolan
using out-of-date Module::Build::Compat boilerplate). If the CPANTS "game" gets any M::I-using authors to upgrade, then it has served its purpose. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 537

Re: Cage Cleaning for dummies? Re: Call for Parrot Janitors

2006-07-06 Thread Chris Dolan
: http://bugs6.perl.org/ Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media

Re: Old and broken versions of Module::Install

2006-07-06 Thread Chris Dolan
On Jul 6, 2006, at 10:18 AM, A. Pagaltzis wrote: * Chris Dolan <[EMAIL PROTECTED]> [2006-07-06 16:30]: IMHO it likely counts as a CPANTS pass for now, but it may be a fail in the future unless you update the Makefile.PL with a newer M::B as bugs are discovered. To make sure we’re on th

Re: [perl #39743] [PATCH] change perl6-internals to parrot-porters in docs

2006-07-06 Thread Chris Dolan
Oops, I missed a couple of instances of perl6-internals in the previous patch (notably, in parrotbug). This updated patch obsoletes the previous one. % diffstat parrot-porters2.patch README |4 ++-- README.win32.pod |2 +- RELEASE_INSTRUCTIONS |8 -

Re: [Slightly OT] Understanding Software Licences [was Re: Proposal Suggestion - Test::Run [was Re: [Israel.pm] Fwd: Call for proposals -- Perl Foundation Grants]]

2006-07-07 Thread Chris Dolan
ird parties with less dedication to Perl, thereby decreasing the attractiveness of the language. After all, software engineering is largely about reducing the exposed complexity of a project. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 143

Re: Java Script in Parrot

2006-07-10 Thread Chris Dolan
approach. Is there some help I can get? I did look at your YAPC 2006 presentation. Are there any code examples? Take a look at parrot/languages/punie/lib/{punie.pg,PunieGrammar.pir} which has both bottom up and top down parsing. I found it very educational. Chris -- Chris Dolan, Software

Re: [perl #39809] PGE crash on parrot;PGE::Exp::Quant;reduce

2006-07-12 Thread Chris Dolan
On Jul 12, 2006, at 10:53 PM, Patrick R. Michaud wrote: On Wed, Jul 12, 2006 at 08:04:01PM -0700, Chris Dolan wrote: As simple token containing ":i" causes PGE to crash with an attempted method call on Undef. Steps to reproduce: 1) Create a grammar file called "foo.pg&quo

Re: [perl #39829] [PATCH] accept() always fails

2006-07-14 Thread Chris Dolan
it, then it sounds like a compiler bug that needs to be reported, or at least documented. Chris P.S. I've been working on some small improvements to httpd.pir, including better failure diagnostics. Please contact me off-list for a patch if you are interested. -- Chris Dolan, Software Develo

Re: Time for a Revolution

2006-07-14 Thread Chris Dolan
u thinking?) Whoa, this is becoming an unexpectedly educational thread... Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

ICU advantages? was Re: Problems Installing Parrot

2006-07-21 Thread Chris Dolan
lates to Parrot somewhere that I missed? 2) How important is ICU? 3) If I build Parrot without ICU, what repercussions should I expect? This would be a good entry for the FAQs for a cage cleaner. Thanks, Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-70

Re: FAQ Questions (WAS: ICU advantages? was Re: Problems Installing Parrot)

2006-07-21 Thread Chris Dolan
On Jul 21, 2006, at 1:12 PM, Mr. Shawn H. Corey wrote: Chris Dolan wrote: This would be a good entry for the FAQs for a cage cleaner. If you're collect questions for the FAQ, here are some Andy Lester answered for me: I'm not, actually. :-( Could you do one of the following, i

Re: Questions

2006-08-01 Thread Chris Dolan
int Module::Build->VERSION' 0.2801 This also works: my $mb = Module::Build->new( ... ); $mb->blib('foobar'); $mb->create_build_script; Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 5

Re: Perl6 "style-guide"

2006-09-25 Thread Chris Dolan
l6? :-) Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Re: [CAGE] perl coding standards...

2006-10-02 Thread Chris Dolan
ayout::UseParrotCoda to use current P::C conventions. lib/Perl/Critic/Policy/CodeLayout/UseParrotCoda.pm | 41 +++-- t/codingstd/perlcritic.t | 88 +++ +- 2 files changed, 51 insertions(+), 78 deletions(-) Chris -- Chris Dolan, Software Developer,

Re: Emacs/vim code coda placement

2006-10-02 Thread Chris Dolan
_ spec change, I'll be happy to code that up in CodeLayout::UseParrotCoda. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. -

Re: [perl #40482] [PATCH] Perl::Critic policy for perl -w, and unix-specific shebang lines

2006-10-09 Thread Chris Dolan
mment = $doc->find_first('PPI::Token::Comment'); return if !$first_comment; return if $first_comment->location()->[0] != 1; return $first_comment =~ m{ \A \#\! }mx; } Now that I'm talking about it, I should write a Perl::Critic::Utils::get_shebang() funct

Re: [perl #40482] [PATCH] Perl::Critic policy for perl -w, and unix-specific shebang lines

2006-10-09 Thread Chris Dolan
on "#!perl -Tw" and is a false positive on "package main; #!!! my co-worker provided this non-Perl- licensed code to Parrot!!!". Yes, that's a highly contrived example. :-) But the false positive would be avoidable by checking the line and column number of the el

Re: [perl #40482] [PATCH] Perl::Critic policy for perl -w, and unix-specific shebang lines

2006-10-10 Thread Chris Dolan
we'd love to have the help with Perl::Critic. But Parrot is a worthy cause too! :-) If you don't provide a P::C patch, I'll probably do it myself eventually. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Ma

Re: [perl #40482] [PATCH] Perl::Critic policy for perl -w, and unix-specific shebang lines

2006-10-10 Thread Chris Dolan
have to ensure it's a PPI::Token::Comment and not a PPI::Token::Quote, for example. Perhaps further discussion should move to the perlcritic.tigris.org dev mailing list or to http://rt.cpan.org/Dist/Display.html?Queue=perl-critic Chris -- Chris Dolan, Software Developer, Clotho Advance

Re: [perl #40564] [TODO] fix perlcritic Subroutines::RequireFinalReturn policy

2006-10-19 Thread Chris Dolan
in the next release of Perl::Critic. Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Re: [perl #40544] [NEW] Test for DOS line endings in Parrot text files

2006-10-23 Thread Chris Dolan
On Oct 23, 2006, at 7:39 AM, Paul Cochrane wrote: BEGIN { eval { use SVN::Client; }; if ($@) { plan skip_all => 'SVN::Client not installed'; } } Paul, This should be eval {require SVN::Client; }; use() is a compile-time directive, not runtime. Chris --

Re: [perl #40596] [CAGE] modify perl coding standard test format

2006-10-25 Thread Chris Dolan
On Oct 25, 2006, at 1:24 PM, Jerry Gay (via RT) wrote: modify perl coding standard test format to match the c tests--one test per standard, rather than one test per file. coding standard tests are designed to test maintainability, not functionality. testing parrot functionality is much more imp

Re: [perl #40596] [CAGE] modify perl coding standard test format

2006-10-25 Thread Chris Dolan
ng::RequireUseStrict] Code before strictures are enabled at 235,1" If you want to see fewer errors, add -top => 5 after the -format to only show the first 5 violations per .pm file. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025,

Re: [perl #40598] [PATCH] Make perlcritic.t barf more nicely when Test::Perl::Critic not installed

2006-10-26 Thread Chris Dolan
On Oct 26, 2006, at 5:21 AM, Paul Cochrane (via RT) wrote: this patch ensures that when t/codingstd/perlcritic.t can't find Test::Perl::Critic, that instead of exiting with a "Can't locate Test/Perl/Critic.pm in @INC" compile-time error, it reports that it is skipping the test with the message d

Re: [perl #40861] [CAGE] - add a Perl::Critic policy to look for FIXME|TODO|XXX

2006-11-13 Thread Chris Dolan
.22/ ProhibitFlagComments.pm Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-landscape.com/)

Re: [perl #40361] [PATCH] #40278 [CAGE] perl coding standards coda. (cont.)

2006-12-17 Thread Chris Dolan
ee Perl::Critic::Policy::Editor::RequireEmacsFileVariables policy for more details: http://search.cpan.org/~cdolan/Perl-Critic-More-0.12/lib/Perl/Critic/ Policy/Editor/RequireEmacsFileVariables.pm Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www

Re: [perl #40361] [PATCH] #40278 [CAGE] perl coding standards coda. (cont.)

2006-12-18 Thread Chris Dolan
ther way without crufting up the top of the file or requiring that you de-cruft everywhere. Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Re: Kwalitee and Perl::Critic

2005-10-05 Thread Chris Dolan
uld be very hard to judge without parsing the module. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-landscape.com/) and part

Re: Kwalitee and Perl::Critic

2005-10-05 Thread Chris Dolan
nd so I’ve got about 20 file-scoped lexical hashes. But that doesn’t at all mean the code is really full of globals. My fault for sloppy terminology -- I did not mean to include lexicals. I meant 'use vars qw(...)' and 'our ...' variables specifically. Chris -- Chris

Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-10-31 Thread Chris Dolan
opyright" in README, *pm and *.pod. 2) has_meta_yml_license -- check for a META.yml field named "license". Module::Build supports this. These tests should not care which license is claimed, just that there is a license present. Chris -- Chris Dolan, Software Developer,

Re: Devel::Cover not DWIMming on upgraded Perl -- but problem solved

2005-11-02 Thread Chris Dolan
l UNINSTALL=1'.) This solved the problem. The message described above went away, and 'cover' reported only the results for the module under development. Jim Keenan -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St

Re: Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-11-02 Thread Chris Dolan
On Nov 2, 2005, at 10:19 AM, David Landgren wrote: Chris Dolan wrote: In the last year as a Fink maintainer (Mac OS X debian-like package manager), I've come across a couple CPAN modules that have no license information at all. It's very frustrating. I've submitted RT

Re: Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-11-02 Thread Chris Dolan
is P.S. On a marginally-related note, I released Module::License::Report yesterday. Unfortunately, it's not immediately useful for Kwalitee because it eval()s code from Makefile.PL and/or Build.PL, and makes use of Module::Depends::Intrusive which does more of the same. -- Chris Dol

Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Chris Dolan
t; http://module-build.sourceforge.net/META-spec-new.html#recommends Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-la

Re: [perl #39738] [BUG] bind fails with errno EADDRNOTAVAIL on darwin and FreeBSD

2008-07-22 Thread Chris Dolan
On Jul 22, 2008, at 6:35 PM, Christoph Otto via RT wrote: On Thu Jul 06 09:21:34 2006, [EMAIL PROTECTED] wrote: With parrot r13181, binding to a non-privileged port on localhost consistently fails with EADDRNOTAVAIL on Mac OS X and FreeBSD boxes for Intel and PPC platforms. The same command s

Assigning and passing $/

2008-10-23 Thread Chris Dolan
I'm learning about Match objects today. I can't assign $/ to a variable or pass it to a method. Is this a bug, or am I just confused? I get the following results. In both cases, $/ gets stringified instead of remaining as a Match instance. % ./perl6 -e 'if ("f" ~~ m/f/) { my Match $m =

Argument scoping error or bug?

2008-10-24 Thread Chris Dolan
I stumbled across this issue while descending into a recursive Match structure. Consider the following reentrant subroutine: sub f($n) { for 0..$n -> $i { say "$i of 0..$n"; if ($i == 4) { f(0); } } }; f(6); The value of the argument, $n, gets overwritten

Precompilation to PIR

2008-10-26 Thread Chris Dolan
How safe is it today to pre-compile Rakudo code to PIR and expect that to behave identically to as if I compiled from .pm at runtime? I believe PCT is just generating PIR anyway, so my initial guess is that there should be no differences. Are there any gotchas, like compile-time dependenc

Why {{}} for regexp closures instead of just {}?

2008-10-26 Thread Chris Dolan
S05 always uses single curlies for closures, but throughout Parrot, code seems to use double curlies in PGE regexps. Why is that? That is, why this: m/ foo {{ say "found foo" }} / and not this: m/ foo { say "found foo" } / The latter complains about "Statement not terminated properly". C

Re: Precompilation to PIR

2008-10-27 Thread Chris Dolan
On Oct 27, 2008, at 3:07 AM, Carl Mäsak wrote: Chris (>): How safe is it today to pre-compile Rakudo code to PIR and expect that to behave identically to as if I compiled from .pm at runtime? I believe PCT is just generating PIR anyway, so my initial guess is that there should be no diffe

Invoking PGE closures as Rakudo code

2008-10-27 Thread Chris Dolan
Earlier, I sent in a patch for PGE to support S05-style single-curly closures (RT#60186). The next thing I'm trying to do is to get this to work: ./perl6 -e '"" ~~ m/:lang(Perl6) { say "hi" }/' The PIR version works perfectly: ./perl6 -e '"" ~~ m/:lang(PIR) { say "hi" }/' Out of the b

Re: Invoking PGE closures as Rakudo code

2008-10-28 Thread Chris Dolan
On Oct 28, 2008, at 10:06 AM, Patrick R. Michaud wrote: On Tue, Oct 28, 2008 at 01:50:42AM -0500, Chris Dolan wrote: My goal is to build arbitrarily complex data structures from closures fired in my grammar. Specifically, I'm trying to write a PDF parser -- my grammar is parsing corr

Re: Invoking PGE closures as Rakudo code

2008-10-28 Thread Chris Dolan
On Oct 28, 2008, at 10:06 AM, Patrick R. Michaud wrote: On Tue, Oct 28, 2008 at 01:50:42AM -0500, Chris Dolan wrote: My goal is to build arbitrarily complex data structures from closures fired in my grammar. Specifically, I'm trying to write a PDF parser -- my grammar is parsing corr

Re: Argument scoping error or bug?

2008-11-02 Thread Chris Dolan
On Oct 27, 2008, at 2:07 PM, Patrick R. Michaud wrote: On Sat, Oct 25, 2008 at 10:52:13AM +0200, Moritz Lenz wrote: You have just experienced this bug: http://rt.perl.org/rt3/Ticket/Display.html?id=58392 "Recursion and for loops interact badly in Rakudo". Patrick is working on it. That said,

"::" in namespaces

2008-11-04 Thread Chris Dolan
Thanks to Jonathan for working on the :: bug. I'm still having problems, however. The code below worked before I switched all of my "__" class separators to "::". I'm not sure how to tell whether it's failing to find my .pm (I moved the .pm from lib/ PDF__Grammar__Actions.pm to lib/PDF/Gr

Re: "::" in namespaces

2008-11-04 Thread Chris Dolan
ing" :method So, does that mean teaching PGE/Exp.pir about double-colon separators? Or does namespace separator need to be some sort of compreg flag? Chris On Nov 4, 2008, at 9:10 PM, Chris Dolan wrote: Thanks to Jonathan for working on the :: bug. I'm still having problems, however.

Re: "::" in namespaces

2008-11-05 Thread Chris Dolan
Aha, this was already reported as [perl #60358] Rakudo doesn't recognize grammars with :: in the name I added my thoughts to that ticket. Chris On Nov 5, 2008, at 12:36 AM, Chris Dolan wrote: Replying to myself: I think the flaw is in my use of "PDF::Grammar::literal_string&qu

Re: "::" in namespaces

2008-11-05 Thread Chris Dolan
On Nov 5, 2008, at 9:41 PM, Patrick R. Michaud wrote: On Tue, Nov 04, 2008 at 09:10:02PM -0600, Chris Dolan wrote: The Perl6 code that triggers that looks like this: method is_string(Str $src, Str $expected, Str $msg) { my $method = PDF::Grammar::literal_string; ... just a point of

Numify

2008-11-05 Thread Chris Dolan
In "[perl #60350] [TODO] default __get_string method", Patrick added a default Object.Str() that classes can override to get custom stringification. Formerly, you could do that only by defining a method named __get_string(). Currently, you can overload number context by creating a __get_nu

flagging compiler-generated code

2008-11-11 Thread Chris Dolan
I'm thinking ahead to the Parrot equivalent of Perl::Critic, which I hope will someday be able to analyze arbitrary .pbc files. One problem I foresee is that there seems to be no way to distinguish anonymous subs ("my $f = sub { 1 };") from inner blocks. Both compile down to something lik

Re: flagging compiler-generated code

2008-11-12 Thread Chris Dolan
> On Tue, Nov 11, 2008 at 11:03:09PM -0600, Chris Dolan wrote: >> I'm thinking ahead to the Parrot equivalent of Perl::Critic, which I >> hope will someday be able to analyze arbitrary .pbc files. One problem >> I >> foresee is that there seems to be no way to di

PGE HLLMapping

2008-11-17 Thread Chris Dolan
I've been thinking a lot about how PGE implements closures. Right now, the closures are a bit rough -- PGE does heuristic look-ahead to find the end of the closure, saves off the code as a string, and compiles it at runtime like an eval. To make the heuristic look- ahead work, PGE insists

Re: [perl #60674] sign($x) always returns 1 when $x ~~ Complex

2008-11-20 Thread Chris Dolan
> Mark (>): >> I think the most sensible thing is to be consistent. sgn() fails for >> non-real input as long as sqrt() returns NaN for negative input. >> Change the latter behavior (via a pragma or whatever) so that sqrt() >> returns complex numbers, and then sgn() should start behaving on such >

bytes, lazy strings and zlib

2008-11-21 Thread Chris Dolan
In my ongoing quest to create a PDF parser in Perl6, I have some Rakudo/PGE/parrot questions. These are low-urgency and some of these may not be implemented yet... 1) byte orientation PDF's syntax is inherently an 8-bit ASCII superset. Some subsections may be interpreted as some multi-by

Re: [perl #61308] rule's capture ws

2008-12-14 Thread Chris Dolan
On Dec 13, 2008, at 3:44 AM, Moritz Lenz wrote: Martin Kjeldsen (via RT) wrote: # New Ticket Created by Martin Kjeldsen # Please include the string: [perl #61308] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61308 > Whe

Re: [perl #63086] [BUG] can't declare class after deeper-namespace class declared

2009-02-07 Thread Chris Dolan
Ahh, It looks like my report below is a duplicate of [perl #62898] Rakudo can't handle A declared after A::B was declared in an included module Sorry about that... Chris On Feb 7, 2009, at 4:10 PM, perl6 via RT wrote: Consider the following two files: --- Foo/Bar/Baz.pm --- class Foo::Ba

Re: [perl #62898] Rakudo can't handle A declared after A::B was declared in an included module

2009-02-08 Thread Chris Dolan
The following reproduces the bug more simply: perl6 -e 'BEGIN {class Foo::Bar::Baz {}}; class Foo::Bar {}' I'm working on a patch at the Frozen Perl hackathon now...

Re: [perl #62898] Rakudo can't handle A declared after A::B was declared in an included module

2009-02-08 Thread Chris Dolan
I wrote a simple solution that works, but I'd like someone more PIR- savvy to improve it. http://github.com/chrisdolan/rakudo/tree/package-redeclaration (5d6cec9) --- a/src/parser/methods.pir +++ b/src/parser/methods.pir @@ -30,8 +30,11 @@ Registers a type in the namespace. # Check if the

{*} and actions

2009-02-10 Thread Chris Dolan
1) Will the "{*}" syntax to invoke an external action method from within a grammar be an official part of the language, or an implementation hack? 2) If it becomes official, how should people specify the action class/ instance to be used with a grammar? Currently in Rakudo, I use the follo

PCT via Perl6: success!

2009-02-12 Thread Chris Dolan
I just finished converting Perk (a Java compiler targeting Parrot) from PCT+NQP/PIR to PCT+Rakudo. That is, the main entry point and actions.pm for my compiler are written in Perl 6. http://github.com/chrisdolan/perk/tree/master I had to make a few little hacks along the way: * PCT::HL

Re: PCT via Perl6: success!

2009-02-13 Thread Chris Dolan
On Feb 13, 2009, at 9:54 AM, Patrick R. Michaud wrote: On Fri, Feb 13, 2009 at 12:58:13AM -0600, Chris Dolan wrote: * I couldn't figure out how to call 'compreg' from Rakudo, so I used inline PIR If using PCT, it shouldn't be necessary to call 'compreg' a

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Chris Dolan
Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 minutes before you sent this... http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Chris On Feb 13, 2009, at 11:21 PM, pugs-comm...@feather.perl6.nl wrote: Author: lwall Date: 2009-02-14 06:21:13 +0100 (Sat, 14 Feb 2

Re: r25325 - docs/Perl6/Spec

2009-02-13 Thread Chris Dolan
On Feb 13, 2009, at 11:50 PM, Larry Wall wrote: On Fri, Feb 13, 2009 at 11:34:03PM -0600, Chris Dolan wrote: Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally 5 minutes before you sent this... http://rt.perl.org/rt3/Ticket/Display.html?id=63228 Indeed, why do you

Implementing $?LINE and other S02 compile-time vars

2009-02-15 Thread Chris Dolan
I've been considering how to inject compile-time values ($?VAR) into Rakudo. I was thinking about how to implement $?LINE and came up with two ways to do it: on the fly and post processing. On the fly would require some significant work in PGE, I think, to keep the line count correct in t

  1   2   >