Lua is a viable alternative for JSON
2 by caligian | 3 comments on Hacker News.
So json parsing comes in all sizes - from being implemented in the host lang or being in C - from being blazingly fast™ to simply being slow. What is indeed comical is that json is just half arsed js with none of the benefits of the host language. Every time a new lang is invented, someone reinvents the wheel in both c and the host lang. I think lua's portability is great over here. I think that using lua C api for parsing data and then plugging into the host lang by remapping lua tables into serializable objects. You can also spawn several lua_threads and parallelize the conversion with all the benefits of lua and none of the restrictions. Is it possible that web servers run one or several long-running lua threads and perform table conversions on the fly and get better performance?

Post a Comment

Previous Post Next Post