Nimony

The road to Nim 3

vfs

nimony/src/lib/vfs.nim

Virtual filesystem abstraction for nimony, hexer, nifc, and nifmake.

Built on the relay pattern from https://nim-lang.org/blog/relays.rst — every file operation is a module-level proc variable initialized to a default that calls straight through to the OS. Drivers reassign at startup; adapters capture the previous relay and wrap it (logging, sandboxing, in-memory cache, build cache, …).

Day-zero behavior is identical to direct syncio/memfiles/os calls. The point is the swappable seam, not yet the swapping.