3 ms·
Since I don't know Prolog (except for it being mentioned in some computer history subject in school), I search for a crash course and found this: http://www.le
by profalseidol 8y ago
Since I don't know Prolog (except for it being mentioned in some computer history subject in school), I search for a crash course and found this:
http://www.learnprolognow.org/lpnpage.php?pagetype=html&pageid=lpn-htmlse1 http://www.learnprolognow.org/lpnpage.php?pagetype=html&page...
Good fast tutorial for it.
Side-note: The tutorial calls the condition the 'body' and the resulting facts as 'head' took me awhile to absorb since my brain can't stop thinking of the common syntax: if(conditions){body}
- tom_mellior 8y agoThat tutorial is fast, but it's a pretty bad tutorial that will teach you terrible habits and a very incomplete understanding of Prolog. Unfortunately there are no good free ones. Many people seem to like https://www.metalevel.at/prolog https://www.metalevel.at/prolog (featured here several times). Although I don't think it's very good from a didactic point of view, many disagree, and at least the author really knows what they are talking about. I have a PDF of the fifth edition of "Programming in Prolog" by Clocksin and Mellish lying around here. I could swear it was available for free as open access for a while, though a very quick web search doesn't confirm this.
- profalseidol 8y agoThanks. Looks like a good proper learning material for Prolog. However, I just needed to get a feel or taste of what Prolog is without spending too much time reading concepts. Thanks for the book suggestion. Quick duckduck for it gives me this pdf: http://www2.cs.arizona.edu/classes/cs372/spring15/ProgrammingInProlog5eC-M.pdf http://www2.cs.arizona.edu/classes/cs372/spring15/Programmin...
- tom_mellior 8y agoThat's the one, thanks for digging it up!