Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Lisp a virtual machine like JVM?

Why would someone refer to Lisp as a virtual machine like JVM?

like image 777
user705414 Avatar asked Nov 20 '11 14:11

user705414


1 Answers

Probably because that person refers to a specific implementation of Lisp which runs on top of a Virtual Machine? Various Lisp systems since atleast the 70s have been running on top of specialized virtual machines. Some current implementations like CLISP and CMUCL still have their own virtual machines.

Virtual machines for Lisp are usually specially tailored for the demands of Lisp. They provide the necessary primitive data types (like cons cells, symbols and large integers), instruction set (generic function calling, run-time data type checking, ...), memory management (garbage collection) and other services (dynamic loading of code). They often provide some kind of extended stack machine.

like image 174
Rainer Joswig Avatar answered Sep 19 '22 19:09

Rainer Joswig