bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallelism a la make -j <n> / GNU parallel


From: Linda Walsh
Subject: Re: Parallelism a la make -j <n> / GNU parallel
Date: Sat, 12 May 2012 00:34:48 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666



Ole Tange wrote:

Can you explain how that idea would differ from sem (Part of GNU Parallel)?

----
        Because gnu parallel is written in perl?  And well, writing it in
perl.... that's near easy... did that about ... 8 years ago? in perl...
to encode albums in FLAC or LAME -- about 35-45 seconds/album...on my old machine. But perl broke the script, multiple times .. (upgrades in perl)...

So am rewriting it...

        Doing it in shell... that would be a 'new' challenge... ;-)

        And people called me masochistic for trying to write complex
progs in shell ...

        Actually my first parallel encode was about 20 lines of shell...
but it just delayed launch of each job by some constant 'k', Wasn't too
efficient, as it usually ran too many jobs at once.

        I think I switched one using job control and keeping track of
the outstanding jobs using the jobs command. With arrays and hashes (assoc arrays), it would be easier to be more flexible...

        maybe 'par' or something similar needs to be ported into a
"dll", that could be dropped into bash as an extension..?

        Hey... for that matter... um.. perl.dll... hmmmm...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]