News for hackers. Stuff that matters.
Re:Set Based Filesystem idea by mjl on Friday July 17, 2009 @11:13AM (#710027)
luckily, you can implement the idea on top of existing systems. e.g. fuse or plan9/inferno's 9p/styx fs protocol.

"File indexing and searching for Plan 9", http://lsub.org/ls/export/tags.pdf describes mostly text indexing, but the interface to searching is through a file system (unfortunately not described in much detail at first glance).

only now do i remember that wrote something related once: attfs, http://www.ueber.net/code/r/attrfs. that's for inferno, using the styx/9p protocol. i never polished it, am not currently using it, and the interface the file system provides is not ready for casual file browsing, though that's mostly a detail (from an amount of code point of view). the things stored are strings though, not files. but the illusion that it stores files is easy to build.

Re:Set Based Filesystem idea by silentbicycle on Friday July 17, 2009 @11:19AM (#710041)
There's also libixp, a port of plan9's 9p to Unix. (http://libs.suckless.org/libixp)

I've only ever used it with wmii, but I've been looking for an excuse to write a Lua wrapper for it. :)

Re:Set Based Filesystem idea by uriel on Friday July 17, 2009 @05:33PM (#710838)
There are many 9P implementations (most of which run on *nix systems): http://9p.cat-v.org/implementations

I think somebody was working on one in lua, but I don't know if they finished it.

If you write a Lua implementation or a lua wrapper for an existing C implementation let me know.

Re:Set Based Filesystem idea by silentbicycle on Sunday July 19, 2009 @10:22AM (#712971)
I have a very early Lua client library for libixp up at http://silentbicycle.com/projects/lua-ixp-0.1.tar.gz now.

The walk function (which returns an iterator, successively returning tables with each file's stats in a directory) is not complete, it's terminating after the first file sometimes. I'll smooth that out once the server side of the library is together and testing can be self-contained.

I'd like to work on the server library sometime next week, but I'm pretty busy. Is there a better place to contact you with updates?

Re:Set Based Filesystem idea by silentbicycle on Friday July 17, 2009 @09:23PM (#711178)
Will do. (I'll probably wrap libixp.)
Re:Set Based Filesystem idea by dejan on Saturday July 18, 2009 @10:24AM (#711773)
Please let us know if you shoot some code. It could be a good open source project, according to the interest. I'd personally go for defining a community whitepaper / wiki maybe for the concept and solutions.

What do you think? In the mean time we can build some prototypes on different platforms.

The real reason why we don't know how and if this interaction model would work in practice - is the obvious absence of implementations.

Re:Set Based Filesystem idea by silentbicycle on Saturday July 18, 2009 @02:33PM (#712015)
I'm looking at it now. I'm working on OpenBSD, and just updated the port to libixp-0.5 - that'll get posted once I test it more.

A Lua client library for libixp should be pretty straightforward, looking at the source for ixpc. I might have that together this afternoon (particularly if my fiancee continues napping ;) ).

As for a server library, I'm still thinking about it, but passing an init function a table with callbacks for the various messages would be pretty straightforward - similar to LuaExpat's design (http://www.keplerproject.org/luaexpat/manual.html).

I'm silentbicycle on twitter, FWIW.

Re:Set Based Filesystem idea by mjl on Friday July 17, 2009 @12:16PM (#710181)
hah, and then i remembered hearing this talk at the iwp9 in madrid:

"ConcepOntoFs: A Semantic File System for Inferno", http://lsub.org/iwp9/cready/abheyshahplan9.pdf

this paper also has references to other papers on the topic.

Re:Set Based Filesystem idea by dejan on Friday July 17, 2009 @12:24PM (#710196)
Seems they make stuff just much more complicated there. I'll give it a better shot, but for now, new commands for the filesystem, it's just crazy. I want my grandparents to know how to use this, and I remember I always had to explain the concepts of cabinets, folders and files.

This is why I over stress the need for use cases.

The reasoning behind this idea is how I use my files, the intuitive processes to organize and later find, the flow of thought and command.