ositive and negative feedback is very welcome!
Chris
--
Chris Dolan, Software Developer, www.chrisdolan.net
Public key: http://www.chrisdolan.net/public.key
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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.
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).
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
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
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
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
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
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
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
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
:
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
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
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 -
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
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
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
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
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
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
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
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
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
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,
_ 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. -
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
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
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
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
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
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
--
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
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,
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
.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/)
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
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
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
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
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,
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
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
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
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
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
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 =
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
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
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
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
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
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
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
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,
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
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.
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
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
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
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
> 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
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
> 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
>
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
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
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
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...
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
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
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
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
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
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
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 - 100 of 116 matches
Mail list logo