Skip to content

Instantly share code, notes, and snippets.

View davisjam's full-sized avatar

James C. (Jamie) Davis davisjam

View GitHub Profile
@davisjam
davisjam / distributed-map.pl
Created January 5, 2018 18:17
Distribute an embarrassingly-parallel workload across a worker cluster. Dependency-free!
#!/usr/bin/env perl
# Author: Jamie Davis <[email protected]>
# Description:
# - Perform a bunch of operations, using a cluster of worker nodes.
# - To cleanly exit early, check the first few lines of stderr for a file to touch.
# Dependencies.
use strict;
use warnings;