Puregrain.Internal.SelfCheck
- Package
- purescript-puregrain
- Repository
- roman-mkh/puregrain
The engine self-check's machinery: the fingerprint of the light curves and its stored reference. Internal: may change without notice. What it checks and why: docs/exact-arithmetic.md, "The engine self-check".
#EngineReport Source
newtype EngineReportThe result of Puregrain.SelfCheck.checkEngine: whether the
JavaScript engine computed the light curves exactly as the reference,
and if not, what differed.
Constructors
EngineReport { problems :: Array String }
#fingerprint Source
fingerprint :: Unit -> Array DigestEach computed curve's formulas, both ways, over fixed values and the
generator's, each folded into a digest, in referenceDigests' order.
Takes unit so that nothing is computed when the module loads.
#referenceDigests Source
referenceDigests :: Array DigestThe reference: the fingerprint as Node 22.14 computed it, the same in Node 26.13, Chromium 156, Firefox 157 and WebKit 27.2 (2026-11-14). It changes only when a curve changes on purpose, in the same commit and with a CHANGELOG line, since every picture dithered with that curve then changes too; never just to make a check pass.
- Modules
- Puregrain
- Puregrain.
Cells - Puregrain.
Dither - Puregrain.
Gamma - Puregrain.
Internal. Exact - Puregrain.
Internal. Fifo - Puregrain.
Internal. Gamma - Puregrain.
Internal. Image - Puregrain.
Internal. Kernel - Puregrain.
Internal. Quantize - Puregrain.
Internal. Row - Puregrain.
Internal. SelfCheck - Puregrain.
Internal. State - Puregrain.
Internal. Step - Puregrain.
Internal. Util - Puregrain.
Kernel - Puregrain.
Machine. C64 - Puregrain.
Machine. ZxSpectrum - Puregrain.
Ordered - Puregrain.
Palette - Puregrain.
Palette. Presets - Puregrain.
Pixel - Puregrain.
Quantize - Puregrain.
SelfCheck