literal thoughts

August 17, 2009

More docs added

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 11:52 pm

I’ve added Jonathan Scott Duff’s introduction to Perl 6 regexes to Perl6-Doc as perlreintro. In addition I put in a first draft of a perlobjintro. Neither of these correspond to names from the set of Perl 5 man pages, which is fitting since they are not directly based on them. So, Perl6-Doc now has 4 man pages, the aforementioned two as well as perlintro and perlsyn. I’ll be carefully adding to and polishing these in the near future. I’m hesitant to start on man pages relating to modules, IO, laziness/iterators, and other very important features, as the specs (and implementation) for those are still shifting heavily from month to month.

I’ve been thinking about using the Perl Table Index as initial source material for the magical syntax recognition feature, the implementation of which has remained elusive for a while. The current implementation is just a proof-of-concept with only a few terms as of yet. However, Damian Conway just published a significant update to Synopsis 26 on Perl documentation, focused on tying docs to code, so it might be time to figure out some Pod-ish source format for the terms to be stored in. Writing Pod is a breeze, so it should be easy to contribute new terms.

grok also needs more love. I’m not as happy as I’d like to be with some of its implementation details, most notably how it picks out functions from Synopses 29 and 32, using simple regexes (to be fair, this is exactly what good ol’ perldoc -f does). It should parse the Pod and pick out parts of the document tree instead, I think. There are also still a few visual differences between textual output of Pod 5 and Pod 6 that I have to address. Pod 5 textual output is pleasingly indented (gradually depending on the current heading level), which makes it very easy to follow, while Pod 6 is not.

As a sidenote, I believe I’ve found what was causing intermittent FAIL reports from CPAN testers. Some machines had a pretty old version of Pod::Simple which didn’t take well to subclassing. Another failure was caused by an old Pod::Parser (deprecated, but relied on by Pod::Xhtml) version which didn’t recognize =encoding directives. The relevant distributions now depend on newer versions of those troublesome modules.

July 29, 2009

Tagging, FAIL, regexes

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 7:03 pm

I’m currently working on making grok index all X<> (and maybe C<>) tags in Pod documents. The user will then be able to look them up and see which docs contain the search term in question.
(more…)

July 24, 2009

Grok refactor

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 1:30 pm

As the title suggests, I reorganized the grok a bit, in addition to adding a few new features.
(more…)

July 22, 2009

On to the man pages

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 6:31 pm

This week I’ve been working on the perlintro document found in the pugs repository, as well as porting Perl 5’s perlsyn. These are the most “basic” man pages about the language, and should be ported first (especially since many of the more specific bits in Perl 6 are still in flux).
(more…)

July 16, 2009

Lucky 0.13

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 6:42 am

I just uploaded grok 0.13 to PAUSE. It has the things I mentioned in my last post, plus some bug fixes.
(more…)

July 11, 2009

Half way there

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 1:54 am

With Summer of Code’s mid-term evaluations coming up, some interesting things are about to happen to grok. I was contacted by Herbert Breunung, author of Perl6::Doc (formerly Perl6::Bible), which is a project that shares some of grok’s goals.
(more…)

July 1, 2009

grok 0.09 is out

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 7:33 pm

The code is starting to take a more stable form. I’ve prepended an underscore to all private/internal subroutines and documented the rest. Perl authors wishing to use grok’s functionality will now have an easier time doing so.
(more…)

June 26, 2009

grok update

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 5:54 am

Some things have kept me very busy lately and I’m a bit behind on my GSoC schedule. I’m starting to catch up now, though.
(more…)

May 27, 2009

First GSoC post

Filed under: english — Tags: , , — Hinrik Örn Sigurðsson @ 5:25 pm

I officially started on my Google Summer of Code project (project details here) last weekend.

I’ve been tasked with writing a perldoc equivalent for Perl 6. I’ve decided to write it in Perl 5 for now, since it’s already got Perl6::Perldoc, which is a fast and feature-complete parser for the Perl 6 version of Pod (see specification), as well as lots of other useful CPAN modules which I won’t have to rewrite in Perl 6 (yet).
(more…)

Powered by WordPress