Skip to content

Instantly share code, notes, and snippets.

@ahl
Last active August 8, 2016 21:35
Show Gist options
  • Save ahl/164c548bb981338cdf687447d6ce0b93 to your computer and use it in GitHub Desktop.
Save ahl/164c548bb981338cdf687447d6ce0b93 to your computer and use it in GitHub Desktop.
nomsfs blog: initial (bad) schema
struct Filesystem {
inodes: Map<Number, 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, Number> }
}
}>
rootInode: Number
maxInode: Number
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment