Skip to content
/ babel-go Public

A Golang exploration of the Library of Babel, using big-integer encoding and modular arithmetic to deterministically generate text.

License

Notifications You must be signed in to change notification settings

c12i/babel-go

Repository files navigation

The Library of Babel

The library of Babel contains every possible 410 page book with 40 lines per page and 80 characters per line, Using 29 characters (space, a-z, comma and period). Each book has a unique location (hexagon, wall, shelf, volume). The core algorithm converts text to location coordinates using base conversion.

Context

The Library of Babel is a short story by Jorge Luis Borges about an infinite library containing every possible book. Not just books that exist, but every combination of characters that could exist.

  • Your biography (that hasn't been written yet)
  • This exact documentation
  • Complete nonsense
  • Shakespeare's works

Inspiration

Usage

Core API allows a user to:

  • Text Search -> Search for locations where user text exists in the library
  • Browse -> View the page contents of a given location
  • Random -> View a page from a random location in the library

You can interact with the program via web app and a very simple CLI

contact: [email protected]

About

A Golang exploration of the Library of Babel, using big-integer encoding and modular arithmetic to deterministically generate text.

Topics

Resources

License

Stars

Watchers

Forks

Languages