PDA

View Full Version : Programming in Prolog




tuggy
Mar 21, 2005, 12:55 AM
Hi everyone!

I've been searching for something to allow me to create prolog programs, i need it for school.
Is there something as a prolog ide for mac os? In windows i used WinProlog which is really great... i would prefer to stay away from too many command lines :)

thank you



Loge
Mar 21, 2005, 01:49 PM
There are the following possibilities

http://www.cs.tcd.ie/open-prolog/

which runs in Classic, and

http://xgp.sourceforge.net/

I haven't used either I'm afraid; it's about 10 years since I fooled around with Prolog. :p

DaveP
Mar 22, 2005, 04:19 PM
A class I was in last year used the following program for prolog:
http://www.swi-prolog.org/

(It uses X11 though)

stevekir
Oct 4, 2009, 11:44 AM
Is there an implementation of Micro-Prolog for the Mac (PPC)?

I have tried OpenProlog which runs in Classic (OS 9) which I can run, which is a simple implementation of Prolog. But it comes with documentation of about only two pages long and mentions only the "member" clause and absolutely nothing else!! No syntax for rules or facts! So I can't even get started. It is also seems buggy.

I tried a GNU version but every time that I have tried a GNU software, or one that uses X11, I have found that it will not work. It seems that I cannot get on with it.

XGP is a full implementation of Prolog and too complex and unfriendly for my use.

Any ideas please?

Thanks

G5 PPC, OS 10.5.7, also 10.3.9 + Classic

mags631
Oct 4, 2009, 12:02 PM
A class I was in last year used the following program for prolog:
http://www.swi-prolog.org/

(It uses X11 though)

While SWI is a little clunky and old school, it was the best free Prolog environment at least a couple of years ago.

stevekir
Oct 4, 2009, 03:13 PM
Thanks. I'll try it.

stevekir
Oct 7, 2009, 03:30 PM
There is so little documentation with Open Prolog that it is impossible to get started the Quickstart simply tells how to consult the member clause (or whatever that sort of thing is called), deal with an error and a few lines on the debugger. I can write Facts likes(Tom, Mabel) but nothing more works. I can't even even write Rules, eg. (x likes z) if (x likes y) and (y likes z). This gives no response.

20 lines of documentation for a whole language is hopelessly inadequate. I have emailed Mike Brady who seems to be currently around but no response.

Any ideas about documentation? There must be more.

Thanks.

Bill McEnaney
Jan 16, 2011, 04:55 PM
GNU Prolog runs on my iMac. So does SWI Prolog, but SWI Prolog's "spy" predicate won't work on that computer. I just don't know why it won't do that. It does work on Solaris platforms and on Windows platforms.

Jan Burse
Apr 9, 2011, 04:17 AM
Hi tuggy

You could try Jekejeke Prolog. It is implemented 100% in Java and runs on macs that have 32-bit and 64-bit Java. It can be downloaded via www.jekejeke.ch .

Best Regards

Hi everyone!

I've been searching for something to allow me to create prolog programs, i need it for school.
Is there something as a prolog ide for mac os? In windows i used WinProlog which is really great... i would prefer to stay away from too many command lines :)

thank you

Sydde
Apr 9, 2011, 04:07 PM
Hi tuggy

You could try Jekejeke Prolog. It is implemented 100% in Java and runs on macs that have 32-bit and 64-bit Java. It can be downloaded via www.jekejeke.ch .

Best Regards

You should note that tuggy started this thread 6 years ago and last posted 5 years ago :eek:

SidBala
Apr 9, 2011, 08:44 PM
Yeah he probably graduated, got a job and worked up to the management level now.

He probably does not even have to write code any more.

Bill McEnaney
Apr 10, 2011, 02:57 PM
I downloaded this one, installed it. clicked on the icon, expected a GUI, and saw a window where the computer should have prompted me. It didn't didn't prompt me. Although I typed commands in that window, the machine didn't interpret them.
http://xgp.sourceforge.net/