frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

πFS

https://github.com/philipl/pifs
208•helterskelter•2h ago

Comments

tptacek•1h ago
https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...
Lalabadie•1h ago
Love it! This feels very much in the spirit of Tom7's Harder Drive [1]

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

Levitating•1h ago
absolutely genius
partsch•1h ago
Finally, someone is doing something about the rising prices of storage!
bobim•1h ago
This is disturbing to realize that pi then contains all the past and future knowledge, including when I'll pass away.
skulk•1h ago
this statement is equivalent to "pi is a normal number." While most real numbers are normal and pi is suspected to be so, it isn't known.

https://en.wikipedia.org/wiki/Normal_number

mike_hock•1h ago
So does every other random infinite sequence of bits. The unintuitive part comes from infinity, not pi.

It also doesn't contain all past and future knowledge because it also contains all possible falsehoods about the past and future in a way that's indiscernible from the truth.

Encoding information as an offset into a pseudorandom sequence is no more storage efficient than storing the information directly.

sph•32m ago
Are you aware this is meant as a joke, right?
nosioptar•1h ago
The worst part is that it contains Star Wars 4-6 from an alternate timeline where Disney did a reboot casting Chris Pratt as Han Solo.

(Fun fact: "Chrispratt" is an ancient Californian word that means "Joel McHale didn't want the role.")

1attice
giancarlostoro•1h ago
I... I can't tell if this is an elaborate troll or pure genius. I love it.
pokstad•52m ago
Both.
MisterTea•1h ago
Reminds me of: https://www.spronck.net/sloot.html

Further reading: https://en.wikipedia.org/wiki/Sloot_Digital_Coding_System

giancarlostoro•1h ago
Never heard of that one, that's amazing! Love it.
Levitating•4m ago
> The SDCS is only possible if keys are allowed to become infinite, or the data store is allowed to become infinite (...) This would, of course, make the idea useless.

But Pi is infinite. And these genius contraption will work as long as we have Moore's law on our side :)

adzm•1h ago
I'm intrigued that π was capitalized to Π presumably automatically in the HN headline.
cbm-vic-20•1h ago

    jshell> "πfs".toUpperCase()
    $1 ==> "ΠFS"

    Welcome to Node.js v26.3.0.
    Type ".help" for more information.
    > "πfs".toUpperCase()
    'ΠFS'

    Python 3.14.5 (main, May 10 2026, 10:21:34) [Clang 21.0.0 (clang-2100.0.123.102)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> "πfs".upper()
    'ΠFS'

    echo 'πfs' | awk '{print toupper($0)}'
    ΠFS
noman-land•27m ago
Why does your Python terminal report May 10th? Today is June 10th.
danlitt•12m ago
Probably daylight savings
atvrager•11m ago
It's the build date of their Python binary
Yokohiii•5m ago
He prepared the comment a month ago.
hnlmorg•1h ago
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?

pixel_popping•1h ago
Well, that should get GPT-5.5 extended thinking going for a few weeks.
hasteg•1h ago
Here is a one page proof that pi is irrational - https://heuklyd.github.io/papers/pdf/Niven-1947.pdf
stackghost•1h ago
It's amazing how inscrutable calculus can be when you return to reading it after not doing so for a period of time, much like lisp or forth. I don't think I've actually done an integral or taken a derivative in years. I can see the elegance of that proof but I'll be damned if I can actually follow the mathematics from one step to the next.
partsch•1h ago
Thanks for the PDF. I feel like I understand even less now than I did before.
hnlmorg•1h ago
adzm•1h ago
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.
Aloisius•1h ago
That seems easy enough to solve. Simply record the index and length in pi of the index and length in pi.
awesome_dude•38m ago
See also: Recursion
12_throw_away•56m ago
yes I believe that's the joke
jwpapi•22m ago
He’s aware, he just added some curious information.
mondrian•18m ago
The index of your 20 line file is <20TB number>
glitchc•1h ago
At what point is the metadata larger than the actual file?
mike_hock•59m ago
Half the time it should be larger, right?
wavemode•43m ago
Part of the joke is that, in this implementation, the metadata is guaranteed to be larger than the file:

> Now, we all know that it can take a while to find a long sequence of digits in π, so for practical reasons, we should break the files up into smaller chunks that can be more readily found.

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

leephillips•1h ago
What a brilliant idea! Of course, of course, it’s not in the repository so I can’t apt-get install it. Debian...always so far behind.
koolala•1h ago
Short Storage Number - SSN

0x123456789ABCDEF0

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

thangalin•1h ago
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.

Levitating•18m ago
> Since the file is 128 bits long, one would expect this place to be around the 2*128th bit.

> Calculate the number of bits to encode that value using log2(938933556), which is ~29.8

Can someone explain these two statements to me?

jamwise•1h ago
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.

charles_f•50m ago
Posted many, 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

aidenn0•41m ago
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.
consumer451•33m ago
So, π has been Boltzmann's Brain, this whole time?
dang•31m ago
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)

j3th9n•21m ago
Why would anyone need πfs, since you can already build such a system yourself quite trivially on Linux.
amluto•17m ago
> 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.

•
1h ago
Thank you for this Prattfall
cadamsdotcom•1h ago
Fear not! It’s probably so deep in pi that you’d pass away listening to someone tell you where!
koolala•58m ago
It isn't actually proven true.
OkayPhysicist•56m ago
So does a calendar, if you you buy them enough years in advance.
nighthawk454•54m ago
And also all the days you don’t, so, by itself not very meaningful. Especially since you can’t tell which one is right in advance. In some sense, so does a calendar
anthonj•46m ago
So does a random number generator
thih9•23m ago
It also contains all possible falsehoods and comes with no way to distinguish what's true from what isn't.
xp84•13m ago
If it makes you feel better, consider that it also contains all plausible and implausible falsehoods about your demise as well.
Thanks for sharing. That’s a nice read. I’m glad I asked :)
mike_hock•1h ago
We definitely know that Pi is irrational, we just don't know if it's normal (i.e. if the PiFS joke even works).
Levitating•25m ago
How are you generating these lists
jwpapi•24m ago
He’s the mod hero from HN
programjames•23m ago
If you click the website's name to the right of the title, it pulls up all the submissions from the same site:

https://news.ycombinator.com/from?site=github.com/philipl

Levitating•17m ago
Even then I don't see a direct way to extract a list like this.
ChrisMarshallNY•4m ago
I think it's safe to assume that dang has access to tools that we mortals are unable to comprehend, without being driven to madness.

πFS

https://github.com/philipl/pifs
218•helterskelter•2h ago•66 comments

How JPL keeps the 13-year-old Curiosity rover doing science

https://spectrum.ieee.org/curiosity-rover-jpl-mars-science
115•pseudolus•4h ago•19 comments

I'm Eric Ries, author of "The Lean Startup" and new book "Incorruptible" – AMA

433•eries•6h ago•369 comments

PgDog is funded and coming to a database near you

https://pgdog.dev/blog/our-funding-announcement
331•levkk•7h ago•168 comments

What Is It Like to Be a Bat? [pdf] (1974)

https://www.sas.upenn.edu/~cavitch/pdf-library/Nagel_Bat.pdf
24•shadow28•1h ago•17 comments

L'Affaire Siloxane

https://mceglowski.substack.com/p/laffaire-siloxane
94•idlewords•1d ago•17 comments

GeoLibre 1.0

https://geolibre.app/
70•jonbaer•4h ago•5 comments

Farmer donates land for a park, city sells it for $10M as data center land

https://www.tomshardware.com/tech-industry/farmer-donates-land-for-a-park-city-sells-it-for-data-...
171•maxloh•2h ago•31 comments

Show HN: HelixDB – A graph database built on object storage

https://github.com/HelixDB/helix-db/tree/main
69•GeorgeCurtis•5h ago•28 comments

Authentication issues related to API requests

https://www.githubstatus.com/incidents/fcj3088jg1wx
145•Multicomp•6h ago•25 comments

Anthropic's Model Naming, Extrapolated

https://samwilkinson.io/posts/2026-06-09-anthropics-model-naming-extrapolated
213•sammycdubs•2h ago•58 comments

Mercedes‑Benz starts large‑scale production of electric axial flux motor

https://media.mercedes-benz.com/en/article/bebac2af-acdc-465a-9538-adb0bf3d8ccf
482•raffael_de•13h ago•296 comments

Building an HTML-first site doubled our users overnight

https://mohkohn.co.uk/writing/html-first/
915•edent•8h ago•416 comments

Show HN: Extend UI – open-source UI kit for modern document apps

https://www.extend.ai/ui
81•kbyatnal•5h ago•16 comments

Claude Desktop spawns 1.8 GB Hyper-V VM on every launch, even for chat-only use

https://github.com/anthropics/claude-code/issues/29045
270•tonyrice•4h ago•188 comments

Apache Burr: Build reliable AI agents and applications

https://burr.apache.org/
143•anhldbk•6h ago•82 comments

Show HN: Artie – Real-time data replication to your warehouse, now self-serve

https://www.artie.com
12•tang8330•16h ago•5 comments

Raspberry Pi 5 – 16 GB, $350

https://www.adafruit.com/product/6125?src=raspberrypi
78•akman•1h ago•90 comments

All 9,300 Japanese train station, animated by the year it opened (1872–2026)

https://jivx.com/eki
171•momentmaker•9h ago•59 comments

Show HN: Atlasphere – Live Infrastructure Diagrams

11•andreygrehov•1d ago•2 comments

A game's homemade crypto fell to a DIY supercomputer

https://www.ud2.rip/blog/towerunite/
5•vmfunc•1d ago•0 comments

Smudging the game disc to make speedrunning 'SpongeBob' faster

https://www.inverse.com/input/gaming/the-dirty-secret-that-makes-speedrunning-on-spongebob-a-lot-...
50•pncnmnp•19h ago•29 comments

Meta steals a tactic from Tesla and builds data centers in tents

https://techcrunch.com/2026/06/04/meta-steals-a-tactic-from-tesla-and-builds-data-centers-in-tents/
78•gnabgib•4h ago•79 comments

A €0.01 bank transfer could compromise a banking AI agent

https://blue41.com/blog/how-we-helped-bunq-secure-their-financial-ai-assistant/
146•tvissers•8h ago•124 comments

Pick and Place: Carbon Nanotube Nanoassembly Process

https://www.c12qe.com/news/pick-and-place-carbon-nanotube-quantum-chip-manufacturing
12•bpierre•2d ago•2 comments

DiffusionGemma: 4x Faster Text Generation

https://blog.google/innovation-and-ai/technology/developers-tools/diffusion-gemma-faster-text-gen...
236•meetpateltech•5h ago•52 comments

The Abundance Illusion

https://www.carlyle.com/carlyle-compass/the-abundance-illusion
53•cwal37•2h ago•21 comments

Why SpaceX 2040 Revenue FCST $4.3T in highly unlikely

https://www.matteast.io/spacex-escape-velocity.html
157•meast•3h ago•145 comments

Buy a train, bridge or tracks from the Swiss Railway

https://sbbresale.ch/
158•kisamoto•2d ago•86 comments

Who Runs Your Rust Future? Hands-On Intro to Async Rust

https://aibodh.com/posts/async-rust-chapter-1-hands-on-intro-to-async-rust/
89•febin•2d ago•17 comments