lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thursday 03 February 2011 12:59:25 Chris Babcock wrote:
 
> YAML is a superset of JSON. ;)
> 
> Lua has safe quoting built in (See PIL 12.1.) so there's no security
> advantage to using YAML over raw Lua for data. The advantage of using
> YAML, JSON, XML or some other non-executable serialization format
> would be portability. The price for that portability is performance,
> which probably isn't too significant but may be depending on your
> hardware, your application and the serialization format/library.

I would think that another price would be you'd have to include a parser for 
the non-executable serialization format, and then you'd need to write 
application code to incorporate its data. With Lua as a serialization format, 
you need no parser and at least part of your application code is written 
already. So it would be easier and faster to develop, and the app's footprint 
would be smaller, I would think.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt