Page 1 of 1

Writing applications with Lua?

Posted: Sun Oct 18, 2009 5:55 pm
by dcarrera
I've scanned through the developers guide and I could not find any information on how to build an application with Lua.

I don't want to write an application with C++. That's not my idea of a "web" application. I expect to write the app using HTML, CSS, JavaScript and some high-level server side language like Perl, PHP, Python or Ruby. In the case of Tonido, it seems like Lua would take the role of the server side language. I am happy to learn Lua in order to experiment with Tonido, but I do not want to learn C++. I like high level languages.

Are there plans to add some documentation for making Tonido apps with Lua as the server side language?

Re: Writing applications with Lua?

Posted: Sun Oct 18, 2009 7:07 pm
by madhan
I agree the documentation on Lua is a bit thin. Let me see if I can get something up.

Re: Writing applications with Lua?

Posted: Mon Oct 19, 2009 4:00 am
by dcarrera
Can you confirm that it is possible to write a Tonido app using just Lua + JavaScript?

Re: Writing applications with Lua?

Posted: Mon Oct 19, 2009 7:42 am
by dcarrera
Ok, I've been reading the Lua manual. It's actually very similar to JavaScript. Most of the difference seems to be a slightly different syntax. It should be easy to use Lua as a server side language if you already know JavaScript.

Re: Writing applications with Lua?

Posted: Mon Oct 19, 2009 9:06 am
by madhan
There needs to be C++ shell which gets the HTTP request and then invokes LUA.
Once that is in place, everything else can be in LUA.

Re: Writing applications with Lua?

Posted: Mon Oct 19, 2009 9:43 am
by dcarrera
Sounds good. I look forward to when the Lua documentation is available. In the developers guide, you could just re-copy section 3 ("your first Tonido app") and show how the same dummy application would be done with Lua. This could include the C++ shell so that a non-C++ developer can just copy it. So the developers guide could look like this:

1. Introduction.
2. Build System.
3. Writing your first Tonido Application (C++).
4. Writing your first Tonido Application (Lua).
5. Tonido Platform Overview.
6. Services and Messages Architecture.
...

This seems like the simplest way to get a reasonable amount of Lua documentation into the guide. What do you think? I don't know if you'll get a lot of developers from Lua. Maybe I'm just weird in that I'm not interested in C++ but I'm willing to use Lua.

Re: Writing applications with Lua?

Posted: Tue Dec 29, 2009 6:45 pm
by error
Hi,

Two questions:
1.- Is it not a contradiction to promote personal cloud and open source and at the same time choose Lua as the option to create application when Lua creators says things like this:
"Lua is not an open-source project, with code contributed by several people: all code is written by us"
"Lua is designed, implemented, and maintained by a team at PUC-Rio, the Pontifical Catholic University of Rio de Janeiro in Brazil"

2.- How this option (Lua) for create apps relate with Tonido mission:
"Empower customers in a connected world"

Thanks

Re: Writing applications with Lua?

Posted: Tue Dec 29, 2009 9:11 pm
by madhan

Re: Writing applications with Lua?

Posted: Wed Dec 30, 2009 11:58 am
by error

Re: Writing applications with Lua?

Posted: Wed Dec 30, 2009 1:30 pm
by madhan
I look forward to your contributions.