delorie.com/archives/browse.cgi | search |
> On 7 Feb 2015, at 09:09, gedau AT igor2 DOT repo DOT hu wrote: > >> On Sat, 7 Feb 2015, Chris Smith wrote: >> 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. XML is a simple file format with an open spec. Would you write your own parser? I wouldn't, unless I had to. I'd first go looking for a library someone else had already written. The same goes for Lua. The syntax is easy enough that I could easily write my own parser if I wanted to, but why on earth would I? Chris
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |