[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: best approach for scripting on Intel Mac OS X?
- From: "Ken Smith" <kgsmith@...>
- Date: Tue, 26 Dec 2006 04:34:23 -0800
On 12/26/06, Alex Queiroz <firstname.lastname@example.org> wrote:
On 12/25/06, Michael Manti <email@example.com> wrote:
> Is anyone out there using Lua as a standalone scripting language on Intel
> Mac OS X? If so, would you be willing to share tips on how to set up a
> workable system for doing so?
I don't know MacOS X, but I guess it's POSIX enough to support
ex. There is also lhf's lposix.
I actually did try using lposix and lfs. Ex looks similar enough that
I didn't bother with it as well. Python was simpy the better tool for
the job. It happened that I needed to compute SHA-1 sums and Python
had a module for it. The Python implementation ended up being faster,
probably owing to os.walk() being faster than explicit iteration with
the methods provided by lposix and lfs. The native SHA-1 support was
also certainly better than doing a popen to sha1sum. Although I find
Lua to be a fantastic language, I must say that it has not usurped the
other tools in my toolkit just yet.