How patashu/break_eternity.js works
break_eternity.js is a JavaScript arbitrary-range Decimal library. Users construct Decimal values from numbers, strings, or other Decimals, then call arithmetic, logarithmic, and hyperoperator methods to obtain new Decimal results. Its runtime is concentrated in src/index.ts; src/lru-cache.ts provides a supporting cache. The excerpts show construction and string parsing, but not the full implementation, so the capability nodes reflect README documentation rather than claims about unsampled internal call paths.
Main entry points: index.ts Decimal API · lru-cache.ts LRU cache
Components 7
Decimal runtime
- Decimal API
src/index.ts - Input parsing
src/index.ts - Numeric operations
src/index.ts - Hyperoperators
src/index.ts - Layered representation
src/index.ts
Runtime support
- LRU cache
src/lru-cache.ts
Other components
- Library user
Connections 7
- Library user → Decimal API: constructs and calls
README.md - Decimal API → Input parsing: parses strings
src/index.ts - Library user → Input parsing: supplies input
README.md - Library user → Numeric operations: calls operations
README.md - Library user → Hyperoperators: calls hyperoperators
README.md - Library user → Layered representation: creates components
README.md - Decimal API → LRU cache: imports
src/index.ts