Re: Prolog as a scripting language



On Tue, 27 Feb 2007 21:22:39 GMT, Duncan Patton <campbell@xxxxxxxxxx>
wrote:

On Mon, 26 Feb 2007 21:48:58 -0600
A.L. <fela@xxxxxxxx> wrote:

On 26 Feb 2007 19:34:24 -0800, ashley.fernandes@xxxxxxxxx wrote:

Hi. I've been looking at the use of Prolog as a scripting language in
the situations Perl is used --- to try & replace Perl.

For what?... What is missing in Perl that Prolog could provide?...

A.L.

Recursive lists. Completeness. Declarative semantics.
Mebbe I don't know enough about Perl,
but it also seems much finer-grained.

What "finer-grained"?... Perl or Prolog?...

Then see "Higher Order Perl: Transforming Programs With Programs",
book by Mark Jason Dominus. Chapter 9 is about declarative
programming.

Table of content and more information you can find here:

http://hop.perl.plover.com/

Among other things, Perl has very powerull regular expression system
that is part of the language
(http://www.perl.com/doc/manual/html/pod/perlre.html), recursive lists
(http://www.perl.com/doc/manual/html/pod/perllol.html) associative
arrays (http://www.comp.leeds.ac.uk/Perl/associative.html) and many
features that definitely can be programmed in Prolog if you invest
enough time... And by the way, it has also CPAN (Comprehensive Perl
Archive Network, http://www.cpan.org/) with hundreds of modules that
also could be programmed in Prolog if you have enough time

About logic programming in Perl vs. Prolog see here

http://www.perl.com/lpt/a/967

and Prolog in Perl is here (well.. sort of...)

http://search.cpan.org/~ovid/AI-Prolog-0.734/lib/AI/Prolog.pm

A.L.

P.S. I am not fan of Perl, actually I hate Perl, but hate or not, I am
using the best tool to do the job. I have written substantially more
lines of code in Perl than in Prolog.
.



Relevant Pages

  • Re: Does natural language skill translate to programming skill?
    ... was written entirely in Perl. ... If Spamassassin does language processing, then Google also does. ... I switched from Prolog to Perl, because Perl is powerful and fast. ... natural language processing applications written in Prolog or Lisp that have ...
    (sci.lang)
  • Re: list argument problem
    ... My application is actually combination of perl and prolog, ... would call the prolog code and then get the result back from the ... predicate arguments. ...
    (comp.lang.prolog)
  • Re: Prolog as a scripting language
    ... What is missing in Perl that Prolog could provide?... ... About logic programming in Perl vs. Prolog see here ... I am not fan of Perl, actually I hate Perl, but hate or not, I am ...
    (comp.lang.prolog)
  • Generating Puzzle Solutions
    ... I've been writing a Prolog implementation in Perl ... shake out some of the bugs. ... challenge to see how people would write a Perl program which would ...
    (comp.lang.prolog)
  • Re: Does natural language skill translate to programming skill?
    ... was written entirely in Perl. ... If Spamassassin does language processing, then Google (and any other search ... reasoning with it, I would use Prolog. ... in Prolog or Lisp that have served a useful purpose beyond a) absorbing ...
    (sci.lang)