Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Call for p6ification: Algorithm::Dependency

3 views
Skip to first unread message

Adam Kennedy

unread,
Mar 13, 2005, 9:09:05 AM3/13/05
to perl6-c...@perl.org
At the request of Autrijus, I've just checked the P5 current version of
Algorithm::Dependency into pugs, and now we need volunteers to P6ify it.

Why this module as the next "porting a module"

1. Genuinely useful (for many things)
2. Very heavily tested, with tests accumulated for corner cases and
weirdities
3. No non-core dependencies
4. Not too big, not too small

But really, autrijus just wants an implementation of Test::Inline 2.00
at the same time as it ends up in CPAN for P5.

=begin testing method after othermethod Needed::Class 25

... the 25 tests for method 'method'

=end testing

It handles method and class-level ordering and will do entire trees of
code in one pass.

Any response, please also CC as I'm not on the list. Thanks

Adam K

Darren Duncan

unread,
Mar 14, 2005, 12:32:52 AM3/14/05
to perl6-c...@perl.org, Adam Kennedy
I can't promise a fully correct solution, since I'm not familiar with
this module yet, but I can at least do a large chunk of the
translation on this module, and do it quickly. -- Darren Duncan

Autrijus Tang

unread,
Mar 14, 2005, 2:01:55 AM3/14/05
to Darren Duncan, perl6-c...@perl.org, Adam Kennedy
On Sun, Mar 13, 2005 at 09:32:52PM -0800, Darren Duncan wrote:
> I can't promise a fully correct solution, since I'm not familiar with
> this module yet, but I can at least do a large chunk of the
> translation on this module, and do it quickly. -- Darren Duncan

Wonderful, you++! :)

Thanks,
/Autrijus/

Darren Duncan

unread,
Mar 14, 2005, 3:16:07 PM3/14/05
to perl6-c...@perl.org, Adam Kennedy
At 1:09 AM +1100 3/14/05, Adam Kennedy wrote:
>At the request of Autrijus, I've just checked the P5 current version
>of Algorithm::Dependency into pugs, and now we need volunteers to
>P6ify it.

As a reminder to those of you for whom it isn't common sense, the
standard way to distribute code on the internet involves having all
of your files encoded using UNIX line-breaks (not DOS/Windows, not
MAC OS 9).

All of the Algorithm::Dependency files had DOS linebreaks, and my
first commit of them mainly involved changing them to UNIX
linebreaks. They should have been UNIX at the initial checkin of the
Perl 5 code.

I made very few other changes in this commit (just #! and etc), and I
made them prior to discovering the linebreak problems. Since any
further changes will be a separate commit, it will be easier to see
what changes were made between versions.

-- Darren Duncan

Autrijus Tang

unread,
Mar 15, 2005, 12:30:32 AM3/15/05
to Darren Duncan, perl6-c...@perl.org, Adam Kennedy
On Mon, Mar 14, 2005 at 12:16:07PM -0800, Darren Duncan wrote:
> At 1:09 AM +1100 3/14/05, Adam Kennedy wrote:
> >At the request of Autrijus, I've just checked the P5 current version
> >of Algorithm::Dependency into pugs, and now we need volunteers to
> >P6ify it.
>
> As a reminder to those of you for whom it isn't common sense, the
> standard way to distribute code on the internet involves having all
> of your files encoded using UNIX line-breaks (not DOS/Windows, not
> MAC OS 9).

Actually, as we are using Subversion, there is a good way to solve this:

svn ps -R svn:mime-type "text/plain; charset=UTF-8" modules
svn ps -R svn:eol-style native modules

This way, everyone will be able to checkout the files with the
local encoding. I have previously done so for lib/, t/, src/ and ext/,
and I've just committed a change that sets them to modules/ too. :)

Thanks,
/Autrijus/

Adam Kennedy

unread,
Mar 14, 2005, 6:42:14 PM3/14/05
to Darren Duncan, perl6-c...@perl.org
You are right, they _SHOULD_ have been Unix line-breaks. I'm not sure
how or why they ended up going in as Win32. But I'll look into it.

Thanks.

Adam

0 new messages