Hi, all! Announcing: an embedded filesystem wrapper for JS.
http://code.google.com/p/v8-juice/wiki/PluginWhefs In brief: libwhefs (http://fossil.wanderinghorse.net/repos/whefs) is a C library implementing a very basic embedded filesystem, providing random read/ write access to virtual files stored within a virtual filesystem inside of a "real" file. This is conceptually similar to sqlite3's embedded database, except that the storage acts much like (but not identical to) a normal filesystem instead of like a database. That library is based upon the same i/o library which my v8 i/o classes are built on, so it was a trivial matter to build upon that and add a whefs wrapper (which is just a handful of functions and one class). Once some concurrency issues are resolved, so that a given whefs container file can be safely used across multiple processes, this will open up some flexible new options for server-side file i/o without the hassle of access rights getting hosed by the umask setting and things like that (all whefs i/o takes place inside of a virtual disk in an existing file). Some of the potential uses are covered on this page: http://fossil.wanderinghorse.net/repos/whefs/index.cgi/wiki/UsesForWHEFS Happy hacking! --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
