Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

     If you want to use it for complex things, sure, there's no end of potential features. If you need some logic with your data, I like Lua.
Say some more about this. I look at YAML as a way to do data exchange, like using JSON/SON. How does Lua fit into this?


Not TillE, but I suspect the point is you can exchange data with Lua tables just as easily as JSON and because you would do it by just embedding the Lua interpreter you can also send Lua functions around with the data and/or process the data in Lua before making it accessible from the actual program.


Lua was originally a configuration language. Its syntax is very human readable especially for just data use cases, but you can add functions etc too.


Thanks. I was looking at the process to process data sharing that you would use YAML or JSON for and how Lua would be used. It's never occurred to me to serialize a table and send it. I'll put that on the stack of things to research.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: