Writing applications with Lua?

Questions related to developing on the Tonido Platform
dcarrera
Regular Tonidoid
Regular Tonidoid
Posts: 15
Joined: Sun Oct 18, 2009 10:13 am

Writing applications with Lua?

Postby dcarrera » Sun Oct 18, 2009 5:55 pm

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?

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Writing applications with Lua?

Postby madhan » Sun Oct 18, 2009 7:07 pm

I agree the documentation on Lua is a bit thin. Let me see if I can get something up.

dcarrera
Regular Tonidoid
Regular Tonidoid
Posts: 15
Joined: Sun Oct 18, 2009 10:13 am

Re: Writing applications with Lua?

Postby dcarrera » Mon Oct 19, 2009 4:00 am

Can you confirm that it is possible to write a Tonido app using just Lua + JavaScript?

dcarrera
Regular Tonidoid
Regular Tonidoid
Posts: 15
Joined: Sun Oct 18, 2009 10:13 am

Re: Writing applications with Lua?

Postby dcarrera » Mon Oct 19, 2009 7:42 am

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.

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Writing applications with Lua?

Postby madhan » Mon Oct 19, 2009 9:06 am

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.

dcarrera
Regular Tonidoid
Regular Tonidoid
Posts: 15
Joined: Sun Oct 18, 2009 10:13 am

Re: Writing applications with Lua?

Postby dcarrera » Mon Oct 19, 2009 9:43 am

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.

error
Rookie Tonidoid
Rookie Tonidoid
Posts: 2
Joined: Tue Dec 29, 2009 6:26 pm

Re: Writing applications with Lua?

Postby error » Tue Dec 29, 2009 6:45 pm

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

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Writing applications with Lua?

Postby madhan » Tue Dec 29, 2009 9:11 pm


error
Rookie Tonidoid
Rookie Tonidoid
Posts: 2
Joined: Tue Dec 29, 2009 6:26 pm

Re: Writing applications with Lua?

Postby error » Wed Dec 30, 2009 11:58 am


User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Writing applications with Lua?

Postby madhan » Wed Dec 30, 2009 1:30 pm

I look forward to your contributions.


Return to “Tonido Platform Development”

Who is online

Users browsing this forum: No registered users and 3 guests