Skip to content

Instantly share code, notes, and snippets.

@ahl
Last active August 8, 2016 21:33
Show Gist options
  • Save ahl/c249e7180de1e6cecd5554290f745422 to your computer and use it in GitHub Desktop.
Save ahl/c249e7180de1e6cecd5554290f745422 to your computer and use it in GitHub Desktop.
nomsfs blog: final schema
struct Filesystem {
root: struct Inode {
attr: struct Attr { /* e.g. permissions, modification time, etc. */ }
contents: Union {
struct File { data: Ref<Blob> /* Noms pile of bytes */ } |
struct Directory: { contents: Map<string, Cycle<1>> }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment