logoalt Hacker News

πFS

911 pointsby helterskelteryesterday at 6:54 PM198 commentsview on HN

Comments

jamwiseyesterday at 8:40 PM

Reminds me of when I tried to use the library of babel as a data compression tool. It led me down a fun rabbit hole and was my first introduction to information theory.

The conclusion being that you basically need the same amount of data to represent the address of your data as the data itself, so it's not really effective at compression, just a fun thought experiment.

The cool part of this in modern times is that LLMs are basically a form of lossy compression that actually achieves the gist of what these tools fail at. Although it is lossy, and requires a massive substrate. This is related to the idea of AI/LLMs being a form of language compression.

show 10 replies
dangyesterday at 9:08 PM

Related. Others?

πfs – A data-free filesystem - https://news.ycombinator.com/item?id=36357466 - June 2023 (107 comments)

πfs – A data-free filesystem - https://news.ycombinator.com/item?id=28699499 - Sept 2021 (30 comments)

PiFS – The Data-Free Filesystem - https://news.ycombinator.com/item?id=26208704 - Feb 2021 (1 comment)

Πfs: Never worry about data again - https://news.ycombinator.com/item?id=21359338 - Oct 2019 (1 comment)

The π Filesystem for FUSE: Store Your Data in π - https://news.ycombinator.com/item?id=19223032 - Feb 2019 (1 comment)

pifs - Avoid disk space usage by saving your files in the digits of Pi - https://news.ycombinator.com/item?id=18687275 - Dec 2018 (1 comment)

πfs – A data-free filesystem - https://news.ycombinator.com/item?id=13869691 - March 2017 (105 comments)

Πfs: Stores your data in π - https://news.ycombinator.com/item?id=10856108 - Jan 2016 (1 comment)

Πfs: Never worry about data again - https://news.ycombinator.com/item?id=10847693 - Jan 2016 (1 comment)

File system that stores location of file in Pi - https://news.ycombinator.com/item?id=8018818 - July 2014 (98 comments)

100% Compression Using Pi - https://news.ycombinator.com/item?id=6698852 - Nov 2013 (32 comments)

(Reposts are fine after a year or so; links to past threads are just to satisfy extra-curious readers)

show 1 reply
emptyroadsyesterday at 10:01 PM

Reminds me of nsafs, the National Security Agency Filesystem ("free" because the government pays for it) - https://github.com/freedomtools/nsafs

show 2 replies
adzmyesterday at 8:30 PM

It is worth noting that as the length of data increases it becomes extremely unlikely that the index and length of the sequence within pi would actually be smaller than the data.

show 8 replies
mkespertoday at 7:46 AM

Outdated! Should have linked directly to https://github.com/philipl/inferencefs/ obviously.

utopiahtoday at 10:12 AM

"This file doesn't look like what I remember.

Are you sure? It's been a while since you last opened it. Memory is funny like that. The file is fine — maybe take another look with fresh eyes."

from https://github.com/philipl/inferencefs/

Maybe I do not indeed remember properly. Anyway, back to watching "Eternal Sunshine of the Spotless Mind" for the first time, I think.

windwardyesterday at 10:31 PM

>One of the properties that π is conjectured to have is that it is normal

conjectured

Glad to see one of my pet points of pedantry come up. No non-constructed irrational number has never been proven to be normal or disjunctive.

show 4 replies
bobimyesterday at 8:23 PM

This is disturbing to realize that pi then contains all the past and future knowledge, including when I'll pass away.

show 16 replies
aidenn0yesterday at 8:59 PM

I vaguely remember an entry to a compression-benchmark that gamed the benchmark by treating the filename as part of the input to the decompression-algorithm, thus beating the metric that only measured the size of the file.

layer8yesterday at 11:29 PM

> In this implementation, to maximise performance, we consider each individual byte of the file separately, and look it up in π.

Considering each individual bit separately would be even more performant: you only need the indexes 2 and 33, and there is an efficient mapping of those to the bits in storage.

nyc_pizzadevyesterday at 10:21 PM

Just a heads up, this is writing 16 bits for every 8 bits of input:

https://github.com/philipl/pifs/blob/fded8bf7b8f4fc64233e37b...

vbarrielletoday at 8:04 AM

This would be easier using the Champernowne constant (https://en.wikipedia.org/wiki/Champernowne_constant) which is guaranteed to be normal, not just conjectured.

partschyesterday at 8:14 PM

Finally, someone is doing something about the rising prices of storage!

hnlmorgyesterday at 8:30 PM

This is probably a dumb question, but do we actually know that pi has an infinite number of decimal digits or are we assuming that it does because we haven’t developed a sufficiently powerful computer to calculate the last digit of pi?

I’m guessing this is something that could be formally proven?

show 4 replies
baalimagotoday at 6:44 AM

This got me thinking about the "simulation theory":

If our universe is simulated, it must be possible to snapshot the entire state for one iteration (however time now is quantized, open question). "... From here, it is a small leap to see that if π contains all possible files, why are we wasting exabytes of space storing those files, when we could just look them up in π!" (from pifs, above)

This means that not only does a singular snapshot of our universe exists in pi, but every single one does

The information for our entire universe's simulation is stored in pi (and every other number like it)

show 3 replies
Lalabadieyesterday at 8:04 PM

Love it! This feels very much in the spirit of Tom7's Harder Drive [1]

[1] https://www.youtube.com/watch?v=JcJSW7Rprio

jklimosktoday at 3:22 PM

Fascinating. Would this actually work?

thangalinyesterday at 8:37 PM

https://cs.stackexchange.com/a/53737/1704

> Matches that occur early enough in π to attain significant compression will not be varied. That is, it isn't possible to use π to compress interesting, real-world data because real-word strings are unlikely to arise early.

show 1 reply
giancarlostoroyesterday at 8:26 PM

I... I can't tell if this is an elaborate troll or pure genius. I love it.

show 1 reply
koolalayesterday at 8:37 PM

Short Storage Number - SSN

0x123456789ABCDEF0

use this number as a shorter nibble storage alternative...

notatyrannosaurtoday at 7:13 AM

Reminds me of https://en.wikipedia.org/wiki/MS_Fnd_in_a_Lbry

Meta: every single comment seems to start with some variation of "Reminds me of". Had to get mine in.

golem14today at 7:21 AM

This isn't really going far enough; the readme says - keep the metadata on a piece of paper or whatever. But: The metadata is data too, you can find it ALSO within \pi. So it's \pi all the way down.

Not even sure if there an interesting Collatz-like conjecture here.

torhtoday at 8:45 AM

No thanks, I have all the files I need right here in /dev/urandom.

adzmyesterday at 8:27 PM

I'm intrigued that π was capitalized to Π presumably automatically in the HN headline.

show 1 reply
outadoctoday at 7:59 AM

Reminded me of PortalRunner's latest video: https://www.youtube.com/watch?v=w6rkhvdAqHU

z3t4yesterday at 10:26 PM

Someone should make a service "where in the pi am I" then you could use it as a short link. Then there will be hardware accelerated pi chips. All computers will come with pi preinstalled.

keithnzyesterday at 11:31 PM

isn't this relying on properties that aren't proven about pi? it needs to be disjunctive or normal, and neither of those are proven

yasontoday at 9:15 AM

Where do you store the indices? Blockchain!

ameliustoday at 8:01 AM

I am curious what this means for copyright. I.e. if all music/songs were already encoded in Pi even before the universe started existing.

chris_snyesterday at 10:28 PM

Funnily enough I’m reading Service Model and just got to the bit in the Library Archive, which has a very similar vibe to this project. Love it

charles_fyesterday at 8:49 PM

Posted many times before: https://news.ycombinator.com/from?site=github.com/philipl

My favourite issue being about GDPR compliance https://github.com/philipl/pifs/issues/56

ameliustoday at 8:03 AM

Instead of using Pi wouldn't it be better to choose a number for which the conjecture is true?

And for which the index is easy to compute?

woahyesterday at 10:27 PM

I've simplified it and made it more flexible

3._1_415926535897932384626433832795_0_288419716939

hnbadtoday at 2:46 PM

So this is how I find out that in Verdana lowercase pi looks exactly like lowercase Cyrillic п (pe), i.e. like an open rectangle rather than a bit curvy.

mohsen1today at 8:07 AM

If you think about it, a piano has all the possible songs in it too!

show 1 reply
actusualyesterday at 9:37 PM

This is why I got pi tattooed. It's a tattoo of all tattoos.

show 1 reply
psadritoday at 4:20 AM

This is part of the plot in Murakamui's Hard Boiled Wonderland and the End of the World.

sam_goodytoday at 2:22 PM

Theoretically, if we had a GPU so fast it could instantly calculate billions of digits of Pi, and a small hard drive, could this actually be made to work?

Cache all the last lookups but otherwise just store the index within pi? And for larger files - split them into chunks of whatever size could be handled?

(I mean, I realize this is a joke and can't make sense - but GPUs can be really really fast, and am willing to make a fool of myself by asking.)

And if we had a quantum computer that stores all of pi on one qubit, that could make things even faster ;/

yassi_devyesterday at 10:22 PM

I built something with a similar spirit for Pi day: https://pi.yassi.dev/

markcollins05today at 7:29 AM

Technically π being normal is still unproven. So if the conjecture is false this whole thing falls apart. But that's what makes it a perfect nerd joke.

glitchcyesterday at 8:32 PM

At what point is the metadata larger than the actual file?

show 3 replies
bilsbieyesterday at 10:41 PM

I’d guess even the index in pi for my phone number would be more digits than the phone number.

So not really a compression scheme.

amlutoyesterday at 9:23 PM

> Why is this thing so slow? It took me five minutes to store a 400 line text file!

> Well, this is just an initial prototype, and don't worry, there's always Moore's law!

Seriously? They're only storing individual bytes in pi:

> In this implementation, to maximise performance, we consider each individual byte of the file separately, and look it up in π.

So the whole transformation should be trivially reducible to a 256-element lookup table from source byte to location in pi and a similar table used to convert back the other way. Maybe a fancy formula could be used for the (never actually encountered) case in which a byte is encoded by one of the infinite available noncanonical encodings.

liamYCtoday at 2:16 AM

Developed a UI with Claude here:

https://ljsimpkin.github.io/pi-compress

It really shows how inefficient such a compression would be. Haha nice idea

ctan4today at 1:53 AM

μῆνιν ἄειδε:

Sing, the wrath. Rendering in LaTeX.

[1]: https://news.ycombinator.com/item?id=48010729

0x1ceb00datoday at 8:27 AM

The design is very human

keyletoday at 2:41 AM

Note, this (2012)

🔗 View 18 more comments