Talk:Unary Filesystem

From Esolang
Jump to navigation Jump to search

An example program please?

This language indeed made me laugh. But I could never understand anything without examples, care to program an example of Hello World, for example, and then explain it? --D (talk) 08:56, 11 June 2020 (UTC)

How are folders stored on disk?

The page suggests that folders take 0 bytes to represent, but that an empty folder can still be distinguished from a non-empty folder. I'd be curious to know how this filesystem is stored on disk. I rather expect magic is involved. --Chris Pressey (talk) 09:33, 11 June 2020 (UTC)

Yes, I see the problems with this now. But if each folder contains either a folder or an empty file, the interpreter can be passed the outermost folder and go down a level in the folders until it reaches the file. It can store an internal counter, but the file itself (which is how code golf usually scores) is 0 bytes. It's the way of passing it to the interpreter that matters. PythonshellDebugwindow (talk) 12:45, 11 June 2020 (UTC)
I guess this idea has already been implemented by Folders. Even if folders are stored as 0 bytes, the usual code golf scoring system isn't like that; the score is the number of folders plus the bytecount of all the names in each folder. --D (talk) 11:34, 12 June 2020 (UTC)