Is Lisp a virtual machine like JVM?

Why does someone refer to Lisp as a virtual machine such as the JVM?

+6
source share
1 answer

Perhaps because this person refers to a specific Lisp implementation that runs on top of a virtual machine? Various Lisp systems since the 70s work on top of specialized virtual machines. Some current implementations, such as CLISP and CMUCL, still have their own virtual machines.

Virtual machines for Lisp are typically specifically designed for Lisp requirements. They provide the necessary primitive data types (for example, cons cells, characters and large integers), a set of commands (calling a universal function, checking data types at runtime ...), memory management (garbage collection) and other services (dynamic loading) the code). They often provide some extended stack machine.

+8
source

Source: https://habr.com/ru/post/901945/


All Articles