The Folders Programming Language
Recorded: Oct. 16, 2026, 2:07 p.m.
| Original | Summarized |
Daniel Temkin | Folders Language HelloWorld 209 directories, 0 files The Folders Language About Folders is a non-textual language, where code is expressed in containment and order alone. The names of the folders are ignored, apart from alphabetical ordering. In other words, they are pure ordered trees. Inspired by the Whitespace language, Folders is devoted to the idea of dematerialized code. It began with the question What is more empty than a file with no visible text? The empty folder is clutter, an appendage with no purpose. In git, it is ignored entirely (for this reason, it is suggested that Folders programs put .gitignore files in their deepest reaches). Folders began as a Windows language. In Windows, folders are an even more extreme measure of emptiness: they take up no disk space at all. The original implementation can be found on github. Encoding Each command folder has at least one child folder. The number of subfolders in the first Temporary data is stored as folders; unlike Folders code, it is the name of the folder that stores the data. Folders FS The Folders interpreter does not create temp files; anything not held Temp folders from several Folders programs Visualizations [[[[],[]],[],[[]]],[[[],[]],[],[[],[]]],[[[],[]],[],[[],[],[]]],[[[],[]],[],[[],[],[],[]]],[[[],[],[]],[[]],[[[],[],[],[],[]],[],[[[],[],[],[]]]]],[[[],[],[]],[[],[]],[[[],[],[],[],[]],[],[[[],[],[],[[]]]]]],[[[],[],[]],[[],[],[],[]],[[[],[],[],[],[]],[],[[[],[],[],[]]]]],[[[]],[[[],[],[],[],[],[],[],[]],[[],[[],[],[],[]]],[[[],[],[],[],[]],[],[[[],[],[],[[]]],[[[]],[[]],[[]],[]]]]],[[[[],[],[],[]],[[],[[]]]],[[[],[],[],[]],[[[],[],[],[],[]],[[],[],[]],[[[[]],[],[[]],[]]]]],[[[],[],[]],[[],[],[]],[[[]],[[],[[]]],[[],[[],[]]]]],[[[],[],[]],[[]],[[],[[],[]]]],[[[],[],[]],[[],[]],[[],[[],[],[]]]],[[[],[],[]],[[],[],[],[]],[[[]],[[],[[],[],[],[]]],[[[],[],[],[],[]],[],[[[],[],[],[[]]]]]]]]]] That is also how the JS emulator saves/reads Folders programs. Truth Machine Truth Machine (Detail) Other visualizations might be a family tree (with all single parents), a botanical branching structure (like a splitting stalk of wheat), or the paths through a maze. Truth Machine Simple Echo The red dots indicate a threshhold from a container to a single child. Language Spec The language itself is a very simple imperative language with a short list of semantic rules. For Commands and Expressions, the number of folders in their first child folder determines their use. Types are used directly. Command # of Folders Details if 0 folders Second sub-folder holds expression, third holds list of commands while 1 folder Second sub-folder holds expression, third holds list of commands declare 2 folders Second sub-folder holds type, third holds var name (in number of folders) let 3 folders Second holds var name (in number of folders), third holds expression print 4 folders Second sub-folder holds expression input 5 folders Second sub-folder holds var name Expressions Type # of Folders Details variable 0 folders Second sub-folder holds var name add 1 folder Second sub-folder holds first expression to add, third holds second expression subtract 2 folders Second sub-folder holds first expression to subtract, third holds second expression multiply 3 folders Second sub-folder holds first expression to multiply, third holds second expression divide 4 folders Second sub-folder holds first expression to divide, third holds second expression literal value 5 folders equal to 6 folders Second and third folders hold expressions to compare greater than 7 folders Second and third folders hold expressions to compare less than 8 folders Second and third folders hold expressions to compare Types Type # of Folders float 1 folder string 2 folders char 3 folders The reference compiler on github: https://github.com/rottytooth/Folders Daniel Temkin |
The Folders Language is a non-textual language designed to express code entirely through the concept of containment and order, operating as pure ordered trees where the names of the folders are the sole carriers of information, disregarding their textual content except for alphabetical ordering. This system is inspired by the Whitespace language and is rooted in the philosophy of dematerialized code, questioning the necessity of visible text by treating empty folders as clutter, contrasting this with systems like git which ignore superfluous data. The language originated as a Windows language, aiming to achieve a dematerialized approach to code while simultaneously offering infinite storage capacity by utilizing folder structures instead of traditional files. Folders distinguishes itself by treating directories as code and drive space as infinite, allowing data to be encoded within folder names, thereby eliminating concerns about running out of storage. This approach is further realized through Folders FS, which is dedicated to data storage and bypasses the material realm of files entirely, promoting the encoding of all data within the folder structure. The structure of a Folders program is fundamentally a nil-terminated nested list. Its simplest form represents pure containment and order. Various visualizations exist to represent this structural information, including all-array JSON structures, a Truth Machine providing a contour map where lines indicate containment hierarchy, family trees, botanical branching structures, and maze paths. The language specification defines the semantic rules through the number of folders in nested structures. Commands and expressions are categorized based on the hierarchy of folders they occupy. For instance, conditional commands like if require zero folders, while iterative commands like while require one folder in the first sub-folder, and declarative commands like declare require two folders. Arithmetic operations are specified by the count of folders, such as addition requiring one folder, subtraction requiring two, multiplication requiring three, and division requiring four. Type definitions are also quantified by folder count, with string requiring two folders and character requiring three folders. Similarly, operations on expressions such as addition, subtraction, multiplication, and division specify the required folder count to define the order of operands. Furthermore, literal values are specified using five folders, where the second sub-folder denotes the type of the value and the third sub-folder holds the actual value. This system establishes a compact, rule-based mechanism where the structural organization of the information dictates its meaning within the language framework. |