Skip to content

Comment on One Major Difference Between Clojure and Common Lispparent

Comments

Most CL implementations will do more TCO than on self calls or mutual recursion. Most support full TCO, with language limitations.

The ones that don't provide any form of TCO are old Lisp Machine implementations and ABCL on the JVM.

SBCL, OTOH, provides full TCO.

Some older overview about Common Lisp implementations and their TCO support:

http://0branch.com/notes/tco-cl.html

I seem to recall it depending on compiler settings whether sbcl does tco. Which means you probably don't want to rely on it in general unless you are okay being locked to a specific implementation and specific optimization settings that may-or-may not seem magical to the uninformed user.

There is Common Lisp software which needs TCO and only runs in TCO supporting implementations.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.