Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lisp as a Scripting Language in a C++ app [closed]

Hey, I've been looking at the possibility of adding a scripting language into my framework and I heard about Lisp and thought I would give it a go. Is there a VM for Lisp like Lua and Python or am I in the wrong mindset. I found CLISP here, http://clisp.cons.org/, but am not sure if this is what I am looking for.

Can anyone point me in the right direction?

like image 845
Orm Avatar asked Nov 11 '09 16:11

Orm


People also ask

Is Lisp a scripting language?

Further, Lisp dialects are used as scripting languages in many applications, with the best-known being Emacs Lisp in the Emacs editor, AutoLISP and later Visual Lisp in AutoCAD, Nyquist in Audacity, and Scheme in LilyPond.

Is Lisp written in C?

A simple Lisp implementation is built in C. This Lisp implementation is only intended to compile a special-purpose bootstrapping Lisp compiler; it is not intended for any other purpose and may not be suitable for general use. This implementation is then used to compile a full Lisp implementation, written in Lisp.

Can Lisp be as fast as C?

Contrary to popular belief, Lisp code can be very ef- ficient today: it can run as fast as equivalent C code or even faster in some cases. In this paper, we explain how to tune Lisp code for performance by introducing the proper type declarations, using the appropriate data structures and compiler information.

Is Lisp programming still used?

LISP. One of the old languages, LISP, has lost its fame and started its journey to death. The language is being rarely used by developers these days. LISP is a language of fully parenthesised prefix notation and is the second oldest high-level programming language, developed in 1960.


1 Answers

CLISP is just one implementation of Common Lisp. It's a very good implementation, and it does have some support for being embedded in other (C-based) programs, but that's not its focus and it's GPLed, which may or may not be a deal-breaker for you.

You might be interested in checking out ECL. This implementation is specifically designed to be embedded (indeed, the "E" stands for "Embeddable"!), and has numerous features that might be useful to you, including the ability to compile Common Lisp programs to C (as well as providing byte-code compilation and an interpreter).

like image 114
Pillsy Avatar answered Sep 19 '22 20:09

Pillsy