Wow, this is my first entry. I feel enlightened already :)
Well, it is yet another weekend for me without my car. It
has been in the shop now for two weeks. Being trapped in my
house forces me to concentrate on code even harder.
Today I began working on some skeleton code for a simple
filesystem for BSD. Right now it doesn't do much, but there
are greater plans afoot! It is not a file storing file
system, but rather a proc style file
system concept.
A month or so ago I wrote a quick and dirty language that
had a pretty impressive symbol table system. my hopes and
dreams are to integrate that language
with this filesystem. essentially what this would give you
is a programming environment which could be debugged and or
interacted with from an outside process via a simple file
system interface. Imagine this senario:
The Following lines of code could be executed by the mangle
interpreter (The little language I mentioned earlier).
def string mystring;Now, at the same time, a seperate process inspects the programs symbol table via the file system:
mystring="Hello World!";
# cd /mangle/$MANGLE_PID/symboltable/Now, returning back to the mangle interpreter, the session continues without a burp:
# ls
mystring
# cat mystring
Hello World!
# echo "Smello World" > mystring
# cat mystring
Smello World
#
print mystring; #the program prints out "Smello World"Now back to the file system, we see the new changes:
undef mystring;
def number foo;
def ref bar;
foo = 5;
bar -> foo;
# ls -l /mangle/$MANGLE_PID/symboltable/
rw-r---- root wheel foo
rw-r---- root wheel bar
# cat foo
5
# cat bar
->foo
#
This is how pathetic I am, I really have nothing better to do with my time. I actually love this stuff. Needless to say, I am still single.