delorie.com/archives/browse.cgi | search |
On Sat, 7 Feb 2015, Chris Smith wrote: > >> On 6 Feb 2015, at 18:44, gedau AT igor2 DOT repo DOT hu wrote: >> >> So the question is: what's the smallest C or python or awk or whatever non-lua program you can write that can parse the file _without_ depending on a lua interpreter? And how far can it go supporting the user exploiting lua features? > > What is the problem with depending on a Lua interpreter? Please bear in mind that we're not talking about a behemoth like Python or PERL here, with numerous dependencies and files scattered over the system. Lua is a single C library with a simple API, about 50kB in size that can be statically linked if you want. Bindings to other languages of choice are available. > > I think Lua is being skewed in people's minds by the terms 'script' and 'interpreter'. In use Lua behaves much more like an XML or YAML library. The point is simple: some people suggest to have a simple file format with an open spec so anyone can write his own parser. You suggest using an existing language and always link to a specific lib parsing it. I prefer to stick to formats/protocols over libs/implementations. I tend to believe a good protocol lives much longer than a good implementation. Especially when talking about interchange of data... Regards, Igor2
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |