The Folders Programming Language

(danieltemkin.com)

165 points | by gurst 10 hours ago

17 comments

  • Hugsbox 2 hours ago
    "In Windows, folders are an even more extreme measure of emptiness: they take up no disk space at all. For proof, create 352,449 folders and get properties on it."

    I'm guessing this is a joke and I'm just taking it too seriously, but the only thing that "proves" is that Windows lies to you lol. It's obviously information that's stored _somewhere_.

    • pif 11 minutes ago
      > It's obviously information that's stored _somewhere_

      It's likely stored in the disk blocks reserved for the filesystem metadata. The disk may always appear empty, but available space will get lower and lower eventually.

    • killerstorm 16 minutes ago
      NTFS has MFT - Master File Table to store all meta-data, and it's pre-allocated to avoid fragmentation. So you won't see them taking more space until you fill the pre-allocated MFT.

      That's not really unique to NTFS, though, fairly typical to have separate storage for meta-data.

    • Zecc 1 hour ago
      > I'm guessing this is a joke

      How dare you accuse the creator of the Folders programming language of not being serious!

      • Hugsbox 1 hour ago
        You're right, I feel silly even suggesting there might be the slightest tomfoolery here.

        My deepest apologies to the author.

        • tough 33 minutes ago
          Now, look who folded.
  • TaLiTr 25 minutes ago
    Imagine being the guy trying to figure out why a Windows server is running out of space, and finding 23 million empty folders being used to define software for prod.
  • letharion 2 hours ago
    I can't decide if I'm in awe, or angry.

    At least it looks more useful than the flying Tesla.

  • nunodonato 7 hours ago
    This is so nuts and pointless... I love it!

    The kind of thing no AI would ever come up with :)

  • stronglikedan 52 minutes ago
    > The names of the folders are ignored

    Oh good, cuz naming things is hard!

  • anonymous908213 7 hours ago
    This is the most truly "WTF is wrong with you" esolang I've ever seen. When I got down to the syntax I imagined the amount of effort it would take to write a single statement and viscerally recoiled.
    • _kb 6 hours ago
      If you enjoy that, allow me to introduce you to the displeasure of WORST and Malbolge.

      https://esolangs.org/wiki/WORST https://esolangs.org/wiki/Malbolge

      They’re both a truly bottomless pit of malaise.

      • pell 6 hours ago
        > Warning: running this program at certain minute values will cause the interpreter to swap stdout and stderr.
      • FacelessJim 6 hours ago
        >The same program translated to normalized Malbolge for *clarity*

        The audacity

  • zzril 7 hours ago
    Oh, I remember that one from a CTF couple of years ago. Absolutely hilarious!
  • usrbinbash 5 hours ago
    This is...beautiful.
  • Surac 6 hours ago
    Reading the title I immediately thought of rust
  • jdw64 5 hours ago
    This idea is so good, though
  • jghn 3 hours ago
    s/directories/folders !
    • goncharow 3 hours ago
      I think you mean s/folders/directories
      • jghn 2 hours ago
        Uh yes I do! s/mypost/yourpost
  • fxwin 7 hours ago
    absolutely unhinged, i love it
  • tensility 4 hours ago
    Yes, file system metadata takes space. This is so incredibly inefficient.
    • deciduously 2 hours ago
      I don't even see a production-ready s3 client library, thank u next
  • jan_m_savage 2 hours ago
    noice!
  • elendilm 5 hours ago
    My first impression: beautiful and impressive.
  • customguy 2 hours ago
    I just mentioned it to Claude and it minus-one shotted (that's when you didn't even want to make anything, just talk about it) a Python script it called Folderol that compiles .fol scripts into folder structures, and it absolutely works. But I can't thank it yet or take it up on the offers on how to follow this up, because that one response put it over from 0% to 90% of the 5-hour usage limit. I'm sure someone with some credits to spend could make this baby sing.

    Just think of the applications! No seriously, can you please think of any applications and tell me?

    What are cool things that can contain other things, other than folders? One thing I could think of is hypertext documents, the number of links in them could be the number of folders, and bam, you can now put complex program on the web that take up no space. And rogue agents also have a whole new way to fuck with us, too: while you try to make sense of these weird files they put into these weird folder structures, it's only about the folder structure. Not meaingless data, but active code. Watching. Evolving.

    Another one is RAM compression, of course. You need some sort of JIT-compiler for the folder code -- which take up no space! -- but then you could make folder programs to store arbitrary data, and store the folder programs in RAM, using no RAM. And why shouldn't those strings themselves be .fol code that compiles to a zero footprint folder structure, right? and so on... yeah, I think you probably get it now.

    • kkijugtcjonugvh 2 hours ago
      Wow. This was exhausting to read.
      • customguy 1 hour ago
        Very easy to write though. That's the whole new paradigm! And now that you signed up, we have the last piece needed to actually make this work.
  • veexx103 2 hours ago
    [dead]