Nuccio Raciti |
Hi,
I have a question related to elua built without the console but with a true http daemon inside it. It should be like the httpd example but wrote in native code. Also should be possible for the <?elua ... ?> code to access the file system (the SD Card). At the end I need it in order to implement a web server fast enough for AJAX (http://en.wikipedia.org/wiki/Ajax_%28programming%29) application. Do you think it could be feasible? We would love create web applications in order to manage domotic for example. Thanks for your time. Ciao, Nuccio _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
On Tue, Feb 22, 2011 at 9:07 PM, Nuccio Raciti <[hidden email]> wrote:
> Hi, > > I have a question related to elua built without the console but with a > true http daemon inside it. > > It should be like the httpd example but wrote in native code. > Also should be possible for the <?elua ... ?> code to access the file > system (the SD Card). > > At the end I need it in order to implement a web server fast enough for > AJAX (http://en.wikipedia.org/wiki/Ajax_%28programming%29) > application. > > Do you think it could be feasible? Yes, it could be feasible. You're missing some nice-to-have features though, for example the planned-but-not-implemented interrupt support for the networking module (being able to register to interrupt handlers for "pseudo-interrupts" like "new Ethernet packet received" (effectively events)). I think they'd make your daemon code much easier to write and also much easier to port between different architectures. I don't know much about AJAX besides the fact that it's an asychronous communication mechanism so I can't make any estimation on the kind of resources it needs. In the end the whole thing might prove to be quite slow. Not dead slow, but slow nevertheless. > We would love create web applications in order to manage domotic for > example. I can fully understand that :) Best, Bogdan _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Nuccio Raciti |
I think that in order to keep upgraded some numerical values to client
side, it could be fast enough. Of course the greater effort (eg. animations) should be managed from web browser (client side). Ciao, Nuccio Il giorno mar, 22/02/2011 alle 22.05 +0200, Bogdan Marinescu ha scritto: > On Tue, Feb 22, 2011 at 9:07 PM, Nuccio Raciti <[hidden email]> wrote: > > Hi, > > > > I have a question related to elua built without the console but with a > > true http daemon inside it. > > > > It should be like the httpd example but wrote in native code. > > Also should be possible for the <?elua ... ?> code to access the file > > system (the SD Card). > > > > At the end I need it in order to implement a web server fast enough for > > AJAX (http://en.wikipedia.org/wiki/Ajax_%28programming%29) > > application. > > > > Do you think it could be feasible? > > Yes, it could be feasible. You're missing some nice-to-have features > though, for example the planned-but-not-implemented interrupt support > for the networking module (being able to register to interrupt > handlers for "pseudo-interrupts" like "new Ethernet packet received" > (effectively events)). I think they'd make your daemon code much > easier to write and also much easier to port between different > architectures. I don't know much about AJAX besides the fact that it's > an asychronous communication mechanism so I can't make any estimation > on the kind of resources it needs. In the end the whole thing might > prove to be quite slow. Not dead slow, but slow nevertheless. > > > We would love create web applications in order to manage domotic for > > example. > > I can fully understand that :) > > Best, > Bogdan _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Hi Bogdan, all,
I'm studying the internals of "eLua"in order to change the eLua console with a http daemon. This is a quick and dirty approach, but I'm searching for answer about a server http performances in AJAX domotic applications. I think "lua_main" or "pmain" could be a good point, but all is so new for me :'(. Could you provide me some documentation or some skeleton of code about this? What do you think about the possibility for the future of having a new define (eg. #define BUILD_HTTP_SERVER)in order to dedicate the eLua board to Web/Embedded application? A sort of "Ethernet Of Things" http://en.wikipedia.org/wiki/Internet_of_Things Ciao, Nuccio _______________________________________________ eLua-dev mailing list [hidden email] https://lists.berlios.de/mailman/listinfo/elua-dev |
Free forum by Nabble | Edit this page |