suburbia

Premshree's (品速力) Personal Weblog

etc.

Previous Entry Add to Memories Tell a Friend Next Entry
Lua API for Yahoo! Search Web Services
suburbia
[info]premshree

LuaLua is still very much an “academic” language—everyone seems to whip their own version to suit their needs. But it seems kinda interesting. Actually, I’m interested in taking a look at the C API. Later.

Anyway, not that I expect anyone to use it, but I whipped a Lua API for Yahoo! Search Web Services. Needs refactoring, I realize. Requires LuaSocket, and Roberto’s classic Lua-only XML parser.

Now, you can do stuff like this:

require "YahooSearch"
obj = YahooSearch.WebSearch('premshree')
print(obj[0]['Title']) -- title of first result
print(obj[2]['Url'])   -- url of third result

Maybe I’ll try doing some dumb-ass wxLua thingie later.

Tags: , , ,

(Leave a comment)
That must be the 25th language you can code in. :) What next? Haskell?

Have worked with Haskell in the past.

The best thing you can do now is write a review about all the programming languages you learned! For example, a Python programmer can find reasons behind the motivation to learn Ruby.

When I get some time, I’m going to find a way to do this. I was (and still do, some times) a Python guy myself, ya see, so that should help.

ah, you're only the second person I know who's even heard of Lua.

I use imapfilter for filtering my email, and it uses LUA. Makes me third? :-)

LUA is great

(Anonymous)

2005-06-04 06:22 am (UTC)

They use LUA for many programmable games. Like the #1 game of 2005,
World of Warcraft. It's used for the custom interfaces. I think
LUA is ok, being nice and small, but I think I prefer Ruby.

Rudi

(Leave a comment)