What it isQué es
A small mathematical experiment that renders millions of decimal digits of π so you can wander through its endless expansion.Un pequeño experimento matemático que muestra millones de dígitos decimales de π para pasear por su expansión infinita.
My partMi participación
Made entirely by me, front to back.Hecho por completo por mí, de principio a fin.
The challengeEl reto
Painting a billion characters on a page will freeze any browser. The interesting decision was to move the hard part offline — precompute the digits into static files, from 100k up to a billion places — and let the front-end simply stream in the chosen one. It is a lesson in doing the expensive work once, ahead of time, instead of on every visit.Pintar mil millones de caracteres en una página congela cualquier navegador. La decisión interesante fue mover la parte difícil fuera de línea — precalcular los dígitos en archivos estáticos, desde 100 mil hasta mil millones de cifras — y dejar que el front-end simplemente vuelque el elegido. Es una lección de hacer el trabajo costoso una sola vez, por adelantado, en vez de en cada visita.
Tech behind itTecnologías detrás
- Vanilla JS Fetch + render, nothing else.Fetch + render, nada más.
- Static digit files 100k · 1M · 10M · 100M · 1B places.100k · 1M · 10M · 100M · 1B cifras.
- Firebase Hosting Serves the heavy text assets.Sirve los pesados assets de texto.
HighlightsLo más llamativo
A wall of πUn muro de π
The whole page is π itself: a monospace grid of digits starting 3.14159… and running for as many places as you dare to load.Toda la página es π en sí: una grilla monoespaciada de dígitos que empieza en 3.14159… y sigue por tantas cifras como te atrevas a cargar.