2 ms·
The title sums it up. Good ol' Perl text processing, plus awesome new list processing (will be useful for n-grams, etc.). My favorite is slide #85, though. Comm
by garfieldnate 11y ago
The title sums it up. Good ol' Perl text processing, plus awesome new list processing (will be useful for n-grams, etc.). My favorite is slide #85, though. Communication with other processes in Perl 5 is always a huge pain, and I can never get it to not hang; you have to unbuffer STDOUT via $|++, then you have to read from STDIN and maybe STDERR to keep it from blocking. The Java solution is similarly painful, requiring spinning up threads for reading each stream (see http://stackoverflow.com/questions/14165517/processbuilder-forwarding-stdout-and-stderr-of-started-processes-without-blocki http://stackoverflow.com/questions/14165517/processbuilder-f...).