3 ms·
>> It's more like Prolog: sure, it's a programming language—but it's not the right tool for writing full-fledged software. Uh oh. That's dangerous talk. The p
by YeGoblynQueenne 10y ago
>> It's more like Prolog: sure, it's a programming language—but it's not the
right tool for writing full-fledged software.
Uh oh. That's dangerous talk.
The problem is that once you start writing the kind of program that Prolog is
best at, in Prolog, then you really, _really_ don't want to go back and write
the same thing in any other language. Because most of the time it's a huge
pain, and you'll probably have to implement Prolog in that other language
anyway (and it's going to be a slow and buggy Prolog, but without all the good
bits).
This has actually harmed the adoption of Prolog in a roundabout way, I think.
Programmers are (or, well, were ... in the distant past) worried they might be
stuck with it and unable to write the everyday stuff they need (REST APIs and
whatnot).
If PP languages are sold in the same way, as very niche products that
are only useful for a specific kind of programming, then I don't think they
are ever going to be widely adopted, not even from the people who could
benefit from them. Which is to say: eventually, everyone.
Instead of risking being stuck with very valuable software written in a
one-trick pony sort of language, much better to take the long road and write
it all in a language like C# or Java, where it may look attrocious, but at
least it's the same language as the rest of your application (and you can find
plenty of warm bodies to throw at it once it starts going south, to boot).
- juliangoldsmith 10y agoWhat sort of programs is Prolog good at expressing? I've looked at it a bit, but can't really think of any good use cases.
- YeGoblynQueenne 10y agoAnything that needs pattern matching or search. As a for instance, grammars (in Prolog, a grammar can be expressed as a first order logic theory, to be proved by the compiler; therefore, a program).