lua-users home
lua-l archive

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


On Fri, 2009-12-18 at 19:55 +0100, Michal Kolodziejczyk wrote:
> Lua is a dynamic (not strongly typed) language, so you would need to
> write lots of check to see if the parameters are still valid...
> 
Well, that's true of all Lua programs, so yes, that's also part of the
Lua spirit.  :)

> Well, I can see 2 different ways:
> - reimplement some already existing OS (which is probably C biased)
> - design something completely new (in Lua spirit, but quite different
> than anything we know)
> 
> Anyways, it is going to be hard... You could start playing with FUSE to
> write a filesystem driver in lua.

I was thinking of the second option, something from scratch. For
example, get rid completely of the file system. Instead of explicitly
writing data down from RAM to disk, just use the swapping. Your programs
would create tables to store data, and put them in a global "storage
table". The OS would then swap them to disk/flash automatically when
running out of RAM, as needed. From program's point of view, they just
create tables and they are always available. When you shutdown, all the
data is swapped down to disk, and when you switch on the the data is
right there and state is maintained.

Crazy stuff like that.

Jorge