Re: Prolog as a scripting language
- From: A.L. <fela@xxxxxxxx>
- Date: Tue, 27 Feb 2007 18:17:35 -0600
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.
.
- Follow-Ups:
- Re: Prolog as a scripting language
- From: Duncan Patton
- Re: Prolog as a scripting language
- References:
- Prolog as a scripting language
- From: ashley . fernandes
- Re: Prolog as a scripting language
- From: A . L .
- Re: Prolog as a scripting language
- From: Duncan Patton
- Prolog as a scripting language
- Prev by Date: Re: Prolog as a scripting language
- Next by Date: Re: Prolog as a scripting language
- Previous by thread: Re: Prolog as a scripting language
- Next by thread: Re: Prolog as a scripting language
- Index(es):
Relevant Pages
|
|