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?
Writing applications with Lua?
- madhan
- Admin Tonidoid
- Posts: 8617
- Joined: Tue Dec 30, 2008 12:13 am
- Location: Austin, TX, USA
- Contact:
Re: Writing applications with Lua?
I agree the documentation on Lua is a bit thin. Let me see if I can get something up.
Re: Writing applications with Lua?
Can you confirm that it is possible to write a Tonido app using just Lua + JavaScript?
Re: Writing applications with Lua?
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.
- madhan
- Admin Tonidoid
- Posts: 8617
- Joined: Tue Dec 30, 2008 12:13 am
- Location: Austin, TX, USA
- Contact:
Re: Writing applications with Lua?
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.
Once that is in place, everything else can be in LUA.
Re: Writing applications with Lua?
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.
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?
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
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
- madhan
- Admin Tonidoid
- Posts: 8617
- Joined: Tue Dec 30, 2008 12:13 am
- Location: Austin, TX, USA
- Contact:
Re: Writing applications with Lua?
I look forward to your contributions.
Return to “Tonido Platform Development”
Who is online
Users browsing this forum: No registered users and 0 guests