Conway's surreal numbers were aptly named by Knuth. This note examines how far one can get towards implementing surreals and the arithmetic operations on them so that they execute efficiently. Lazy evaluation and recursive data structures yield a considerable speed up.
翻译:康威的超现实数被克努特恰如其分地命名。本文探讨了在实现超现实数及其算术运算时,能高效执行到何种程度。惰性求值与递归数据结构带来了显著的加速效果。