The Joy of Refactoring Legacy Code

Leave a Comment
I've spent the last few weeks rehabbing PhiloLogic's low-level search engine, and I thought I'd write up the process a bit.PhiloLogic is commonly known as being a rather large Perl/CGI project, but all of the actual database interactions are done by our custom search engine, which is in highly optimized C. The flow of control in a typical Philo install looks something like this:--CGI script search3t accepts user requests, and parses them.--CGI passes requests off to a long-running Perl daemon process, called nserver.--nserver...
Read More

Reclassifying the Encyclopédie

Leave a Comment
Diderot and D'Alembert's Encyclopédie might almost have been designed as a document classification exercise. For starters, it comes complete with a branching, hierarchical ontology of classes of knowledge. Out of the 77,000+ articles contained therein, 60,000 are classified according to this system, while 17,000 were left unclassified, providing a ready-made training set and evaluation set, respectively. To make it challenging, within the classified articles, the editors have chosen to apply some classifications with obfuscatory...
Read More

using the JSON perl mod

2 comments
I just thought I'd make a quick blog post on how to use the JSON perl mod. Why use JSON when we have XML, I'll leave that to Russ or Richard, but to make a long story short, easier object handling for the projected javascript driven DVLF. So, the perl JSON module is actually very easy and nice to use, it will convert your perl data structure into JSON without a sweat. Here's a quick example which I hope will be useful : #!/usr/bin/perluse strict;use warnings;use JSON; my %hash;foreach my $file (@list_of_files)  {  ...
Read More
Next PostNewer Posts Previous PostOlder Posts Home