English 中文(简体)
I am trying to build an Expert system and my UI is prepared in .Net and now I am willing to connect it to LISP
原标题:

I am trying to write an Expert System from scratch. I am a beginner at this and need some help with my project.

My UI is a .NET Windows application and now I want to connect to it to LISP to prepare the knowledge base.

Okay, so this is my plan... what do you guys think? Any ideas or suggestions will help.

Thanks.

问题回答

I think the best system would be to embed something like IronScheme into your program.

These allow Scheme code to interface with .NET. You can supply functions to it which can be executed from Scheme, which supplement the standard .NET ones.

Otherwise, there isn t much you can do. Are you using any LISP-specific features which require LISP? Otherwise just put the rules into a file and parse it.

There are several ways. If you want to use non-toy lisps, then you have to use some kind of IPC to Lisp program because almost all lisp implementation run in their own processes (with the exception of ECL and possibly Allegro CL). So there are several options:

  • SWANK which is the protocol to control Lisp runtime and implementations of it for several Lisps. However, it is tailored for IDE needs so may or may not be very useful to you.
  • FOIL which is the interface between Lisp and .NET/Java.

PS. Lisp nowadays means Common Lisp , so I assumed that you are talking about it.

You could look at Slime (the Emacs mode) and how connects to a Lisp process. You could build your UI to communicate using the same RPC protocol to the Swank back-end that Slime talks to.

There is an overview of Slime by Bill Clementson. For even more details see Tobias Rittweiler s excellent SLIME presentation





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签