Re:Common Lisp: Numbers
by pfdietz on Friday June 14, 2019 @05:44PM
(#20186908)
A nice thing about Common Lisp's unlimited precision integer is it made testing a Common Lisp compiler much easier.
One can easily generate random integer-valued lisp forms without having to do much checking that integers are in range. In C or other languages with bounded integer size it's much tougher (see Regehr et al.'s Csmith). It's also tough to reduce a failing test case without introducing bad behavior in C; in Lisp it's straightfoward.
One can easily generate random integer-valued lisp forms without having to do much checking that integers are in range. In C or other languages with bounded integer size it's much tougher (see Regehr et al.'s Csmith). It's also tough to reduce a failing test case without introducing bad behavior in C; in Lisp it's straightfoward.