Re:Tiobe: Lua enters the top 10 for the first time in history
by palish on Monday June 06, 2011 @08:19PM
(#2627371)
Use LuaRocks. http://luarocks.org/repositories/rocks/
Very easy to use, and has a lot of modules.
lua-xmlreader is the one that I used for a project. It's a wrapper over libxml2.
Re:Tiobe: Lua enters the top 10 for the first time in history
by jbk on Monday June 06, 2011 @09:07PM
(#2627470)
Great to know, thx, but that shows exactly what one issue is: there are at least 5 json modules... How are people supposed to know which one to pick?
Re:Tiobe: Lua enters the top 10 for the first time in history
by palish on Monday June 06, 2011 @11:37PM
(#2627792)
Eh, just pick one. I actually did use a lua JSON module, but I forgot which one. It had a simple interface, though. They probably all do.
Re:Tiobe: Lua enters the top 10 for the first time in history
by jbk on Tuesday June 07, 2011 @03:43AM
(#2628257)
JSON was just an example.
The point is that it would be welcome to have a sanctioned list of common extensions (xml, json, oauth...) from the core team.
Re:Tiobe: Lua enters the top 10 for the first time in history
by pyre on Monday June 06, 2011 @09:45PM
(#2627562)
Probably by testing them all out. Though it would probably help if there were more reviews of the options out there.
Re:Tiobe: Lua enters the top 10 for the first time in history
by jbk on Tuesday June 07, 2011 @03:42AM
(#2628255)
That is indeed what we did.
My above point (mis-interpreted, since I got voted down) is that an official set of extensions approved the core lua team would help quite a bit in those choices.
It is fast, simple, close to the C or C++, quite portable and quite portable. I just wished they had a set of official extensions, like for xml or json parsing; because now they are a few competing around...