1 min read 0 Gist of the Day: Find Which List Items Make Up a Given Sum 2013-09-13 Here’s the scenario: you have two lists of integers, and you have a sum. Write an algorithm – in Perl, of course – to find…
1 min read 0 Gist of the Day: Re-Inventing Hashes… In Perl. 2013-09-12 Before you begin the well-deserved flaming, please understand that I do not intend on submitting this to CPAN. This is purely an academic exercise to demonstrate…
1 min read 0 Gist of the Day: Process Control with fork(), exec(), and kill() 2013-09-11 I feel really bad for leaving you all high and dry yesterday… really bad… okay, you’re right, I don’t really feel all that bad. I…
1 min read 0 Gist of the Day: Simple Tree in Python 2013-09-09 I biked a bunch tonight, and worked a bit late, and then watched Torchwood on Netflix… so, sorry for slacking. Here’s the Gist of the…
1 min read 0 Gist of the Day: Threading in Python with All the Trimmings 2013-09-08 Today I took on a rather ambitious Gist, and as a result the write-up is going to be rather minimal (I still have three miles…
1 min read 0 Gist of the Day: Ends in Four 2013-09-07 Sometimes we have a simple task to do and we over-think it. Such was the case when someone asked me an interview question one time.…
1 min read 0 Gist of the Day: Analyzing Performance with Benchmark.pm 2013-09-06 In my post on Inline::C a few days ago I mentioned The Rules of Optimization Club, and then I ranted a little bit about how if you…
1 min read 0 Gist of the Day: Some convenience macros for use with Perl C internals 2013-09-05 I feel awful. Like, really awful. The baby is sick, my partner is sick, I am sick. You still want something neat though, so I’m…
1 min read 0 Gist of the Day: Inline::C in Perl 2013-09-04 I like Perl and I like C (most of the time), and sometimes I like to mix the two. The two main reasons I might…
1 min read 0 Gist of the Day: Simple Threading in Perl 2013-08-26 So today’s gist is a simple example of how to do two different things with two separate threads. Threading in Perl is misunderstood and often…