Skip to main content

Digital Library of Babel contains every book that has ever been (and ever could be) written

digital library of babel contains every possible book ever librarybabel
Roman Boed/Flickr
In his infamous short story The Library of Babel, author Jorge Luis Borges presents readers with an interesting thought experiment. The story is centered around fictional library that contains every possible combination of all the letters of in the alphabet, in a massive collection of 410-page novels. Because the collection contains every possible combination of characters, the library holds not only every book that has ever been written, but also every book that could ever be written.

The only problem is that, in addition to the complete works of Shakespeare, Voltaire, and every other author who has ever been born; the library also contains a staggeringly large amount of incomprehensible gibberish. Many of the permutations of alphabetic characters are totally random strings of letters, so a large portion of the library’s books are pure nonsense. There’s also no effective way to organize so many volumes of worthless dribble, so in the story, the librarians who maintain the collection quickly lose their minds trying to reign in the unfathomably large amount of nonsensical books.

Recommended Videos

It’s a fascinating story, but the thing is, a library of this size could never actually exist in the physical world. The Library of Babel would have contained 1.9×10^1834097 books, which is astronomical compared to the 22 million (2.18×10^6) found in some of the world’s biggest brick-and-mortar libraries. Clearly, a physical Library of Babel would be impossible to build — but what if the library could exist digitally?

This very idea is what inspired artist and programmer Jonathan Basile to create a digital version of the Library of Babel. His library contains a massive collection of digital novels (currently 10^4677 and counting), all of which are are 410 pages long, and contain a completely random arrangement of letters. The tricky part is that even this digital version of the Library of Babel has much too large a footprint for any practical storage or accessibility. Basile discovered that just one million books required almost two terabytes of space, so he quickly recalculated with a new approach.

Using random number generators and a reversible seed-style page generator similar to the ones used by search engines and library systems, visitors call up entries in the digital library using algorithms run backwards to search the database. In plain English, this means that any user who searches for a phrase or string of text in the library receives a freshly generated “copy” of that text from the seed that held its place on the digital shelves.

The system works the same way if a library visitor selects a random result from the site’s search function, although true to the story’s philosophy, much of what you’ll find is nonsensical strings of letters. Users more interested in browsing the library shelves can sort through a simple visualization of the Library of Babel’s hexagonal chamber system, selecting walls of books, specific shelves, and then names on the spines. Basile understands that the concept of a universal library has its dangers, and the site includes a forum where users and fans can discuss the library’s philosophical implications, as well as real-world legal issues like plagiarism, copyright laws, and the impact the library might have on the publishing industry.

If you’re less concerned with the legal and philosophical issues in play, you can still get a kick out of the library’s enormity. You can search for your own writing in the library, or even stories about your birth, your death (or someone else’s birth or death, regardless of whether or not those events have happened yet). It gets spooky fast.

Chloe Olewitz
Former Digital Trends Contributor
Chloe is a writer from New York with a passion for technology, travel, and playing devil's advocate. You can find out more…
Range Rover’s first electric SUV has 48,000 pre-orders
Land Rover Range Rover Velar SVAutobiography Dynamic Edition

Range Rover, the brand made famous for its British-styled, luxury, all-terrain SUVs, is keen to show it means business about going electric.

And, according to the most recent investor presentation by parent company JLR, that’s all because Range Rover fans are showing the way. Not only was demand for Range Rover’s hybrid vehicles up 29% in the last six months, but customers are buying hybrids “as a stepping stone towards battery electric vehicles,” the company says.

Read more
BYD’s cheap EVs might remain out of Canada too
BYD Han

With Chinese-made electric vehicles facing stiff tariffs in both Europe and America, a stirring question for EV drivers has started to arise: Can the race to make EVs more affordable continue if the world leader is kept out of the race?

China’s BYD, recognized as a global leader in terms of affordability, had to backtrack on plans to reach the U.S. market after the Biden administration in May imposed 100% tariffs on EVs made in China.

Read more
Tesla posts exaggerate self-driving capacity, safety regulators say
Beta of Tesla's FSD in a car.

The National Highway Traffic Safety Administration (NHTSA) is concerned that Tesla’s use of social media and its website makes false promises about the automaker’s full-self driving (FSD) software.
The warning dates back from May, but was made public in an email to Tesla released on November 8.
The NHTSA opened an investigation in October into 2.4 million Tesla vehicles equipped with the FSD software, following three reported collisions and a fatal crash. The investigation centers on FSD’s ability to perform in “relatively common” reduced visibility conditions, such as sun glare, fog, and airborne dust.
In these instances, it appears that “the driver may not be aware that he or she is responsible” to make appropriate operational selections, or “fully understand” the nuances of the system, NHTSA said.
Meanwhile, “Tesla’s X (Twitter) account has reposted or endorsed postings that exhibit disengaged driver behavior,” Gregory Magno, the NHTSA’s vehicle defects chief investigator, wrote to Tesla in an email.
The postings, which included reposted YouTube videos, may encourage viewers to see FSD-supervised as a “Robotaxi” instead of a partially automated, driver-assist system that requires “persistent attention and intermittent intervention by the driver,” Magno said.
In one of a number of Tesla posts on X, the social media platform owned by Tesla CEO Elon Musk, a driver was seen using FSD to reach a hospital while undergoing a heart attack. In another post, a driver said he had used FSD for a 50-minute ride home. Meanwhile, third-party comments on the posts promoted the advantages of using FSD while under the influence of alcohol or when tired, NHTSA said.
Tesla’s official website also promotes conflicting messaging on the capabilities of the FSD software, the regulator said.
NHTSA has requested that Tesla revisit its communications to ensure its messaging remains consistent with FSD’s approved instructions, namely that the software provides only a driver assist/support system requiring drivers to remain vigilant and maintain constant readiness to intervene in driving.
Tesla last month unveiled the Cybercab, an autonomous-driving EV with no steering wheel or pedals. The vehicle has been promoted as a robotaxi, a self-driving vehicle operated as part of a ride-paying service, such as the one already offered by Alphabet-owned Waymo.
But Tesla’s self-driving technology has remained under the scrutiny of regulators. FSD relies on multiple onboard cameras to feed machine-learning models that, in turn, help the car make decisions based on what it sees.
Meanwhile, Waymo’s technology relies on premapped roads, sensors, cameras, radar, and lidar (a laser-light radar), which might be very costly, but has met the approval of safety regulators.

Read more