In my last post I talked about partial parsing of Perl using my new parsing algorithm, Marpa. This post explains how I do it. For those interested, the code for the example in my last post can be found in t/curly2.t in Marpa::R2 2.015_001 (a developer's version). For convenience, I've also pulled t/curly2.t out as a Github gist.
Introducing the problem
This technique will work for languages other than Perl. In fact, this technique could be used to look for several different target languages at once, for example, when searching a database of emails that might include code segments in Perl, HTML, C, etc.
For clarity, I will often refer to the Perl and C programs being sought as targets in text as "code segments". In the context of this blog post, a string is only considered to be a valid "code segment" if it is also a valid and complete program.
We don't have the schedule for the talks yet. To help you plan your travels, here is the rough plan into which the talks will fit:
Monday 20th, 9am to 10:30 registration
10:30 start of the conference, keynote
19pm - Social event at Depot 1899
Tuesday 21st, 10am start of the conference day 2
17:30 - end of last talk of day 2
Wednesday 22nd, 10am of the conference day 3
17:00 - end of last talk of day 3
We'll publish the more exact times once the schedule gets more solid and we've checked with the venue on the lunch times.
The Perl Foundation is having a Community Advocacy kick-off event in Chicago on August 7th. It’s going to be a fun, social event with talk about community. A “symposium” (check out the dictionary definition). It will be in a nice Irish pub with room for 72 people in a private upstairs area. Food and drink will be available, possibly some sponsored.
Contact Yaakov Sloman <firstname.lastname@example.org> with your questions.
As we have more details we’ll keep you informed.
[From the YAPC::NA Blog.]
After another busy month outside of the Perl world, I have gotten a little more time in the last week to work on Alien::Base. I must especially thank fellow WindyCity.pm member David Mertens for working with me on some of the Mac problems involved.
N.B. I also want to thank him for PDL::Graphics::Prima, which made the rest of my $work easier this month! If you need interactive plotting, give it a look! Also Chicagoans, WindyCity.pm is tomorrow, topic: Dancer.
Here's what I have been using in my ~/.bashrc for the past few months:
echo "UPCOMING TODOS:" list-org-todos --due-in 7 --group-by-tags ~/o/todo.org echo "UPCOMING ANNIVERSARIES:" list-org-anniversaries --has-tags '[remind_anniv]' --due-in 14 --max-overdue 7 ~/o/addressbook.org
todo.org contains all my todo items for most projects (a few projects are large enough to warrant their own todo files).
addressbook.org contains all my contacts and important addresses/numbers (some older contacts are still in .vcf files produced by kaddressbook). These two files have been steadily growing, but they are not large by any standard. In April, they weigh in at about 50K each. However, my slow Atom Eee laptop at home required around 10s to execute each command, for a total of 20s. This started to annoy me, even after I set so that both commands are only run once a day.
The Kephra rewrite is doing very well, expect some great revelations even for Wx programming in genereal. But today i just want to rant about bibucket, which hosts my hg repo for most of my projects. I mean i like mercurial better then git, or should I say liked. the more I learn about the raw awesome power of git the more I find it perlish. But surprisingly what bit me just today is that bitbucket doesn't have this nice graphs. I just underestimated how motivating they can be.
I've made Business::ISBN much more fresh, and allowed users to freshen it themselves without installing a new version.
A long time ago, I created the Business::ISBN to help me cleanse a publisher's database. That is, to help them cleanse the Excel workbook that they were using as their database. About 10% of their ISBN's were wrong in the file, and this little bit of Perl identified the problem (while an intern took those titles and looked them up online and corrected them in Excel). I think this was my second CPAN distribution.
To check an ISBN, there are several things to look at. The last digit is a checksum. If that doesn't check out, something else is wrong. The group code, the publisher code, or the book code might be wrong. These things move around slightly though.
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.