News for hackers. Stuff that matters.
Re:Lua is a viable alternative for JSON by tpmx on Saturday November 04, 2023 @07:53AM (#38140186)
Lack of code execution is a strong feature in data transfer formats/encodings. (Did I misunderstand you?)
Re:Lua is a viable alternative for JSON by caligian on Saturday November 04, 2023 @10:07PM (#38147316)
If lua is used only as an adapter, that is an intermediary between the client and host converting objects to table and vice versa. You cannot dump function definitions (hence only serializable) except in bytecode. Who'd pass that around? You can store code as pure function strings and eval them as a module to provide a transformer module. Certainly a hash can be embedded in the code or sent over the server to prevent tampering with no security headaches
Re:Lua is a viable alternative for JSON by cxr on Monday November 06, 2023 @01:54PM (#38167015)
I'd wager that if the person you're responding to posted because they were unsure if they understood you correctly, then after this comment they're probably sure that they don't. (But I could be wrong.)
Re:Lua is a viable alternative for JSON by caligian on Sunday November 12, 2023 @08:45AM (#38240009)
My bad. What i meant is that code execution is alright rather than dealing with macro magic in yaml or excessively verbose nesting like in toml