[Klone-users] recommended source code reading order
Steven Dorigotti
dorigotti at koanlogic.com
Tue Dec 1 07:02:40 EST 2009
Dear Patrick,
for starters, have you taken a look at the APIs for an overview of
klone's core objects?
http://koanlogic.com/klone/api/html/index.html
Now, coming to your specific Lua application, which of the following
is your precise requirement?
(1) using lua to modify web content dynamically / at runtime?
(2) embed lua code into kl1 files to execute lua code via klone?
(3) other?
(1) sounds very powerful but would require executing the lua
interpreter as a separate CGI and performance might be rather poor...
otherwise you could look at building an engine (separate daemon)
though which the interpreter would communicate with kloned (quite a
substantial extension to klone's architecture).
(2) requires recompilation of the your web application for each lua
code modification but performance should be surprising. It should
require only a few code extensions to link kloned to the interpreter
library and to handle lua code embedded in kl1 pages.
Let us know - cheers,
sd
ps: interesting link for other lua intergration projects:
http://members.chello.nl/~w.couwenberg/
you could use a similar approach to create lua wrappers around klone's
io_t, request_t, response_t and session_t object methods which provide
the interface to the kl1 execution engine.
2009/12/1 Patrick <spell_gooder_now at spellingbeewinnars.org>:
> There is really quite a bit of code "under the hood". I would love to know
> more about how the application is put together but I am not a great C
> programmer.
>
> Any hints about what directories comprise most of klone the functionality?
> Which might be the best place to start?
>
> Thanks in advance-Patrick
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
More information about the Klone-users
mailing list