Re: [RFC/PATCH 0/3] git log --pretty=lua
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Sep 30, 2012, 04:31 UTC
- Message-ID
- <CACsJy8AvC9=6owwzMByZq2Wv1P_YS5xCUXRHH_Lr4qHA1BXyRQ@mail.gmail.com>
- In-Reply-To
- <20120925002325.GA19560@sigill.intra.peff.net>
On Tue, Sep 25, 2012 at 7:23 AM, Jeff King <peff@peff.net> wrote:
> Why Lua? I don't especially like it as a language. But it's designed for > this purpose, which makes it very lightweight and relatively simple to > embed.
Another option is tcl. String-based approach feels more natural for pretty.c and shell users. >=8.1 supports utf-8. We might be able to share some routines between the embedded tcl interpreter and gitk/git-gui. The drawback is we won't get the speed of luajit if we ever need to (I'm looking at filter-branch, but I assume eliminating fork() should already give decent speedup).
-- Duy