summaryrefslogtreecommitdiffstats
path: root/mpi-patches/mpi-to-double
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-06-20 20:54:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-06-20 20:54:43 -0700
commitc11c2304890a46073349d938b1d17a1e26b093d9 (patch)
tree08b4a99847293e9519f0032d15c01fe601199d11 /mpi-patches/mpi-to-double
parent6cd91580c3d709c21db40b919a9f1cce8ccd0675 (diff)
downloadtxr-c11c2304890a46073349d938b1d17a1e26b093d9.tar.gz
txr-c11c2304890a46073349d938b1d17a1e26b093d9.tar.bz2
txr-c11c2304890a46073349d938b1d17a1e26b093d9.zip
compiler: rewrite the rewrite function.
* stdlib/optimize.tl (rewrite): Rewrite. The function is begging to be rewritten. I mean, just look at its name! This is not just for shits and giggles. The rewrite makes it tail-recursive, so it makes a test case for TCO. Instead of using a list-builder object, it does the traditional thing: builds the output in reverse and then calls nreverse. The generated code is lovely. (rewrite-case): Pass a nil argument for the new accumulator parameter of rewrite.
Diffstat (limited to 'mpi-patches/mpi-to-double')
0 files changed, 0 insertions, 0 deletions