[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Will Lua 6.0 have LPeg?
- From: Tim Hill <drtimhill@...>
- Date: Tue, 4 Mar 2014 01:48:18 -0800
On Mar 4, 2014, at 12:00 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Is LPeg useful enough to justify how very much larger
> Lua's C source code will become if it is included?
>
> IMHO, if the gain will merely be that the ordinary user
> would no longer need to build/download it separately
> (which LuaRocks can do for you) and require it (which
> takes one line of code), the answer is NO.
>
> On the other hand, if the Lua implementation itself exploits
> it for its lexer/parser/VM encoder and its string library,
> thus demonstrating how useful it can be while at the same
> time providing some highly instructive well-written LPeg
> code, the answer is YES!
>
I guess that depends on how much larger it is …
—Tim