[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Proposal: Virtualization of Filesystem Operations for Lua 5.2.
- From: Sean Conner <sean@...>
- Date: Thu, 3 Nov 2011 13:21:44 -0400
It was thus said that the Great Timm S. Mueller once stated:
> I have once written a vfs in the shape of a filesystem and device
> driver architecture for some kind of embedded operating system. It
> supported mounting, multiple roots, loops, asynchronous I/O, locking,
> automounting etc. Lua was adapted to this and part of the distribution.
> The result was fully transparent, in that require, dofile, module
> loading, and even stdin and stdout went through the vfs layer, and
> modules could be loaded from mountable loop devices such as zip files.
> Stdio was shielded completely, not just a little here and there. 
At one point, I had written my own replacement for C's stdio.h mechanism
since I found it limiting . The first implementation was buggy and hard
to use. The second implmentation was less buggy and a bit easier to use.
The third implementation was better still, but then I found out about the
various extentions that the GNU C library provides, thought hard about where
my code was going to run (the particular program had run exclusively on
Linux) and being realistic about things, decided to scrap all that code and
go with the GNU extentions (since it provided everything I felt missing from
Sure, it's less portible now, but it's also less code I have to maintain.
Six of one, half-dozen the other.
-spc (Likes that Lua is small ... )
 Not my footnote.
 The biggest limitation---you can't treat an arbitrary region of
memory as a FILE *.