DLLs in LISP ????
Does anyone here know how to convert lisp programs in to DLLs ???
Rewrite them in C++ :-)
I have written an AI program in LISP ( its much quicker to write it in LISP then in any other language i know of ) , and i want to use that program in a GUI developed in say C# or VB.NET ....
Could you use a .Net implementation of Lisp? Then, it should be as simple as having one assembly for your Lisp code, which you then integrate into your VB.Net or C# project. (No COM necessary.) Here's one:
www.cormanlisp.com is an Common Lisp native-code compiler for Win32 that can generate stand-alone executables and DLLs. (IIRC the Lisp core is itself a COM server). It has rich features for interfacing to C/C++ code.
Thank you all for your replies , but the problem is that I am a student and I cant afford to spend $250 on my semester project , does any one of you know of a free utility to do this conversion
Depends on the meaning of free (libre or gratis), and on whether or not the whole project is free (libre sense). E.g., if the GPL is acceptable, you can embed CLISP in your application and make into into a DLL with little (?) work. CormanLisp seems to offer what you want too.
Write a network interface to your Lisp code using a simple text-based protocol. Then, write a GUI that speaks this protocol. Assuming that you won't want to make very many round-trips per unit time, and you won't be moving huge amounts of data between the two programs, then this could be a neat solution. It even lets you run the back end on one computer and the GUI on another -- wherever they might be. If you send the protocol over HTTP, then you'd likely skip past firewalls OK.
Problem solved :)
Fog Creek Home