Folders: Code as Pure Nesting
Folders is an esoteric programming language that replaces text-based code with nested directory structures. Instead of writing commands, programmers create folders; the structure and order of folders encode the program logic, while folder names themselves are irrelevant except for alphabetical ordering. This non-textual approach was inspired by Whitespace and embodies the concept of “dematerialized code.”
Originally designed for Windows, where empty folders consume no disk space, Folders offers the promise of infinite storage capacity by encoding all data within folder hierarchies. The language treats temporary data as folders with names encoding values, and an optional Folders FS system lets programmers store everything in folder structures rather than traditional files. Commands are determined by counting child folders—the first directory’s subfolder count indicates the command type, with additional folders holding arguments.
Folders programs remain flexible in visualization: they can be rendered as contour maps, family trees, botanical branching patterns, or mazes. The interpreter avoids creating temporary files entirely, managing all runtime data as folder structures. This demonstrates that Folders represents data purely through structural containment, disconnecting code from the material realm of files altogether.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.