Real Life intervened but I am now retired and have time to look at Prolog
again. I am reasonably competent in C Sharp and have got used to, and
like, the Visual Studio IDE.
I have installed Visual Prolog and have modified one of the sample apps to
use my own family data and it works reasonably well. However, I would be
much more comfortable writing the GUI in Visual Studio then
calling/consulting the Prolog app and returning the results to the C Sharp
app to display.
Is this possible? If so can anybody recommend a flavour of Prolog that
would facilitate this way of working?
Many thanks.
--
Jeff Gaines Dorset UK
You can't tell which way the train went by looking at the tracks
>
>Many years ago I used Turbo Prolog and wrote a family tree type program
>which had rules for working out siblings, cousins etc.
>
>Real Life intervened but I am now retired and have time to look at Prolog
>again. I am reasonably competent in C Sharp and have got used to, and
>like, the Visual Studio IDE.
>
>I have installed Visual Prolog and have modified one of the sample apps to
>use my own family data and it works reasonably well. However, I would be
>much more comfortable writing the GUI in Visual Studio then
>calling/consulting the Prolog app and returning the results to the C Sharp
>app to display.
>
>Is this possible? If so can anybody recommend a flavour of Prolog that
>would facilitate this way of working?
SICstus Prolog has interface to Java and .NET
http://www.sics.se/isl/sicstuswww/site/index.html
Here is P#, Prolog for .NET
http://www.dcs.ed.ac.uk/home/stg/Psharp/
A.L.
Amzi! Prolog has has what they call the
"Logic Server API", which basically replaces
a listener interface with calls from C/C++.
For .NET they supply a managed interface:
[Amzi! Prolog]
http://www.amzi.com/
{Amzi! Prolog Logic Server API]
http://www.amzi.com/manuals/amzi7/ls/lsfrtop.htm
[Amzi! Prolog Forums]
http://forum.amzi.com/
NB: In particular, Logic Server -- .NET and ASP.NET
Disclosure: I have no pecuniary interest in
Amzi!, but I've helped out voluntarily in their
forums for several years.
Amzi! Prolog is supplied with an Eclipse IDE,
although there are command line utilities for
compiling and linking. I found the Eclipse
environment a little strange and hard to
grasp when I first tried it several years ago,
coming from a Visual Studio (among others)
experience, but there are a lot of tutorial
resources online. If initially you only use
it for Prolog, I think you'll find Eclipse
pretty straightforward. Eclipse was originally
a Java platform, but handles all kinds of
languages via plugins.
[Eclipse IDE]
(not to be confused with the Prolog-like
ECLiPSe constraint logic programming platform)
http://www.eclipse.org/
The Windows download for Amzi! Prolog & LSAPI
includes the Eclipse IDE, so the above is just
for reference. You don't have to download the
IDE and install it separately (though it can
be done).
regards, chip
[snipped]
Many thanks AL & Chip :-)
I'll give Amzi a try to start with and see how I get on with it. It looks
like I must have got it working once as there is a pretty ancient
contribution from me on their website :-)
--
Jeff Gaines Dorset UK
All things being equal, fat people use more soap
Hi Jeff,
I have never tried it myself, but you could take a look at Yield
Prolog. I believe it implements backtracking by making use of the C#
'yield' keyword, hence its name. Probably not a full implementation of
Prolog, but it may be good enough for your purposes and easily
integrate with other C# code?
http://yieldprolog.sourceforge.net/
Rupert