Jump to content
  • Advertisement
Sign in to follow this  
speciesUnknown

c++ embedded LISP interpreter

This topic is 3882 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is this possible? I've been trying to find it but my search engine foo fails me. Does anybody know of some articles on the subject or some better search terms? I want to embed a LISP interpreter in my AI code to allow them to process lists of data more easily. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by speciesUnknown
Is this possible? I've been trying to find it but my search engine foo fails me.
PLT MzScheme is embeddable.

Quote:
I want to embed a LISP interpreter in my AI code to allow them to process lists of data more easily.
The association of Lisp with AI and list processing is mostly historical. Do you already know Lisp?

Not that I don't recommend using PLT Scheme anyway, it's a great language.

Share this post


Link to post
Share on other sites
My interest in lisp is purely recreational, as is my entire reason for programming, but I am interested in seeing if LISP allows me to better handle lists of enemies and objects than using c++ and STL containers.

Share this post


Link to post
Share on other sites
By all means give lisp a try, but I would think most dynamic languages would let you write AI quickly. Python and Lua both come to mind, and both are embeddable. If you're adventurous(sp?) you might try embedding the parrot virtual machine, which would let you run ai written in any number of languages, all with the same embedding code, which is extremely convenient.

Plus with parrot you could eventually try lisp as well see: http://www.parrotcode.org/languages/

(note there is a Common Lisp compiler, though it seems to be incomplete) Scratch that there's at least 2 lisp implementations and one scheme implementation, a cursory glance suggests that the scheme implementation is more complete than either of the common lisp implementations. Anyways, the point is with parrot you could setup the embedding code, and be able to embed multiple languages as you please.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!