59 points · by swannodette · 16y ago · 23 comments
Also, for anyone curious about Prolog, I found experimenting with Erlang made many aspects of Prolog make more sense, and vice versa. Erlang was originally a Prolog DSL, and many minor details carried over.
The level of density in such a short text as well the ability to work through it without having to sit in front of a computer is invigorating (I've had to reread the first 80 pages or so about 5 times now, of course it might just be that I'm slow ;). It certainly succeeds at showing the beauty of a system that elegantly intertwines FP w/ LP.
Oleg (of Haskell fame) has some excellent further resources, http://kanren.sourceforge.net/ and William Byrd's thesis is a treasure trove of things to consider: http://gradworks.umi.com/33/80/3380156.html
* check whether a piece of source code matches a certain pattern
* find all pieces of source code that match a pattern
* search for all occurrences of a given pattern that were
used to program a piece of source code
* detect violations of the usage of a pattern
* enforce the consistent use of some pattern throughout a program
* generate code that matches a certain pattern
More about Logic Meta Programming here, http://soft.vub.ac.be/SOUL/I posted the 99 Prolog Problems link about a year ago and got no response whatsoever, but I'm guessing that the (somewhat weak, IMHO) chapter on Prolog in _Seven Languages in Seven Weeks_ has created a bit more interest.
[1] A few years ago I read a study that concluded that there's a lot of randomness in what songs become hits. They ran some experiments with tagged music and listeners. But despite trying to find the study again several times, I can never seem to find it again. If anyone does, I'd greatly appreciate it.
would make for a hilarious music video