lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Martin Spernau wrote:
> 
> I agre with you on modularity.
> One of my goals is to have a distribution that can be as small and
> specialized or as full and complete as I choose.
> One example would be using the same core for GUI apps on the one side
> and 'faceless' server apps on the other, both using the same Databse,
> XML support etc. but being varied in size etc.
> 
> A dependancy checking system woul certainly be very nice for this. (Good
> documentation of the various modules is a big step in that direction)
> 
> On the other hand I would very strongly suggest that we try and keep the
> core as simple as possible as too not hinder this prolect by bogging it
> down with details. We need to try and find a good compromize between
> flexibility and simolicity.
> 
> -Martin
> 

Well, my idea is to have a tree-layer system.
In the core layer, there is the base Lua interpreter.
We only add to that one library, let's call it the 
LuaCheia library. This LuaCheia library is the second layer. 
It decides at runtime which modules are available, 
and loads dynamically them as needed. The third layer 
are the modules, which are (automatically generated?)
wrappers that take care of the C/C++ to Lua interfacing.
These modules can either extend Lua bythemselves, or further 
load dynamic libraries and extend them. How does that sound?


-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be