9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bakul Shah <bakul@iitbombay.org>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Plan 9 applying to GSoC
Date: Sat, 19 Feb 2022 11:33:09 -0800	[thread overview]
Message-ID: <F60A3813-876C-431A-BA5E-CE5A644CDD02@iitbombay.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1967 bytes --]

On Feb 19, 2022, at 3:02 AM, sirjofri <sirjofri+ml-9fans@sirjofri.de> wrote:
> (4) A filesystem that filters a namespace, but the file contents and not the namespace.
> 
> The idea is to have a filesystem like exportfs, however, it doesn't just represent the files as is, but applies user-defined filters to the filenames/paths as well as the file contents.
> 
> Imagine you have a namespace which contains markdown files that end with .md. Using this overlay filesystem you can present the same namespace, but convert the filenames using sed (from .md to .html) and when reading, the file contents (from markdown syntax to html syntax).
> 
> The filesystem would be very powerful for exposing plain text data as html, encapsulating data into some predefined layout, and much more. It could essentially make any plain text filesystem available as regular web-friendly html files, convert troff source to postscript, convert plan 9 images to png, and much more. You can even present device files as json for modern web applications.

May be create a generic filter-fs that can be controlled with a script that can be updated via a control interface? Almost a mkfile like script so if a rule exists for .md -> .html, any listing will show foo.html instead of foo.md. Reading foo.html will transparently invoke a conversion program. You can get pretty clever and may be even install a src dir under /bin this way to build binaries on the fly! Or even just the presence of a mkfile in a filtered directory would be enough for this behavior. Taking this further, an installation of a new machine can be made instantaneous! Just use a local cache for all the binaries as they get built! Obviously this should be called mkfs :-)



------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T745cda5087701a0d-Me5af03b18c19111f8ced87fb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2950 bytes --]

             reply	other threads:[~2022-02-19 19:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19 19:33 Bakul Shah [this message]
2022-02-19 20:01 ` ori
  -- strict thread matches above, loose matches on Subject: below --
2022-02-18 20:03 Anthony Sorace
2022-02-19 10:21 ` Lucio De Re
2022-02-19 11:00 ` sirjofri
2022-02-20 17:45 ` ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F60A3813-876C-431A-BA5E-CE5A644CDD02@iitbombay.org \
    --to=bakul@iitbombay.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).