2 ms·
Some solutions are very elegant and intuitive. It's probably the right tool for a number of jobs and the wrong one obviously for others. When you get pretty f
by imglorp 13y ago
Some solutions are very elegant and intuitive. It's probably the right tool for a number of jobs and the wrong one obviously for others.
When you get pretty far into it, you start to get into several real-world realities. First is side effects. You have to decide how pure you want to be.
Another question is efficiency. The first few chapters of most books will be about look how cool this stuff is. Then much of the rest will be exposing inner workings so you can word your solution to skirt problems or give the interpreter hints. Red and green cuts come to mind.
One thing I'd really like to know is how well can the unification algorithm be split across multiple cores/processors.
Erlang takes many features from Prolog, such as the syntax, and also solves a number of questions such as side effects and distribution, but I'm pretty sure they've omitted the unifier. It might be neat that was in there too.