Elua with a web server (wrote in true 'C') inside.

classic Classic list List threaded Threaded
4 messages Options
Nuccio Raciti Nuccio Raciti
Reply | Threaded
Open this post in threaded view
|

Elua with a web server (wrote in true 'C') inside.

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
BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: Elua with a web server (wrote in true 'C') inside.

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 Nuccio Raciti
Reply | Threaded
Open this post in threaded view
|

Re: Elua with a web server (wrote in true 'C') inside.

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
Nuccio Raciti Nuccio Raciti
Reply | Threaded
Open this post in threaded view
|

Elua as embedded Web Server.

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