In a recursive function call it is all about a implicit stack maintenance, so is it possible to replace all the recursive functions with an iterative one using a stack explicitly?
-
Are you asking if Lisp can be implemented in low-level language?John Coleman– John Coleman2015-08-04 08:36:34 +00:00Commented Aug 4, 2015 at 8:36
-
@ John Coleman no i'm asking for a generalized way.sb15– sb152015-08-04 14:23:36 +00:00Commented Aug 4, 2015 at 14:23
-
the point of my tangential comment was that the answer is obviously yes because languages like Lisp are routinely implemented in low-level languages which lack recursion. Recursion is a higher-order abstraction which is in practice almost always implemented in terms of lower level abstractions (such as stacks) which are themselves implemented in terms of even lower level abstractions.John Coleman– John Coleman2015-08-04 14:27:33 +00:00Commented Aug 4, 2015 at 14:27
Add a comment
|