comp.lang.prolog
  Home FAQ Contact Sign in
comp.lang.prolog only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.prolog Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  comp.lang.prolog Frequently Asked Questions         


Author: Markus Triska
Date: Jul 16, 2008 14:42

Frequently Asked Questions - comp.lang.prolog

Last-modified: 2008-02-15
Last-changes: Add Planet Prolog

Markus Triska (Mar. 2 2007 - ... )

Remko Troncon (Jan. 6 2002 - Mar. 2 2007)

Dirk-Jan Faber (Feb. 1 1999 - Jan. 6 2002)

Jamie Andrews (Aug 26 1992 - Oct. 16 1997)
__________________________________________________________________

General Information: This article contains the answers to some
Frequently Asked Questions (FAQ) often seen in
news://comp.lang.prolog/. It is posted (twice a month, currently on
the 2nd and 16th) to help reduce volume in this newsgroup and to
provide hard-to-find information of general interest.

The World Wide Web URL for this FAQ is:
http://www.logic.at/prolog/faq/

Questions about the FAQ and updates ought to be submitted to
.

1. What is the Association for Logic Programming?
2. Where can I get a free Prolog for system X (PC, Mac, Unix or other)?
Show full article (28.94Kb)
no comments
  canonical alternative to assert and retract         


Author: Simon Strobl
Date: Jul 15, 2008 03:44

Hello,

is there something like a canonical alternative to assert and retract?
In other words, are there algorithms for translating any Prolog
program that uses assert and retract into an equivalent program that
does without these predicates? And, if so, will the "compiled" (i.e.
the static) programs be, in general, equally or more or less
efficient? Do you know good articles about this issue?

Apart from aesthetical aspects, an obvious advantage of avoiding
assert and retract would be that one's programs are compatible with
more compilers. Thus, one could have Mercury or Yield Prolog compile
one's code.

The Mercury documentation is quite abstract about how to avoid assert
and retract: "The use of assert and retract should be replaced with a
collection data structure threaded through the relevant part of the
program."

Simon
18 Comments
  Amazon: "Clause and Effect: PROLOG Programming for the Working Programmer" by William F. Clocksin         


Author: Dave U. Random
Date: Jul 14, 2008 10:50

5 Comments
  Re: Translate SWI Code Fragment to Sicstus         


Author: Jan Wielemaker
Date: Jul 14, 2008 08:03

On 2008-07-14, Michael Igler wrote:
> I need to translate the following code, that prints out the SLD tree,
> from SWI-Prolog to Sictsus. It is part of the graphviz.pl file that can
> be found at :
>
> http://www.cs.bris.ac.uk/Teaching/Resources/COMS30106/graphviz/
>
>
> The problem are these two lines when I try to load it in Sicstus 4.0.4:
>
> writes(:-A) :- !,write(':-'),writes(A).
> writes(?-A) :- !,write('?-'),writes(A).

This should run on any Prolog system:

writes(:-(A)) :- !,write((:-)),writes(A).

--- Jan
no comments
  Translate SWI Code Fragment to Sicstus         


Author: Michael Igler
Date: Jul 14, 2008 06:32

I need to translate the following code, that prints out the SLD tree,
from SWI-Prolog to Sictsus. It is part of the graphviz.pl file that can
be found at :

http://www.cs.bris.ac.uk/Teaching/Resources/COMS30106/graphviz/

The problem are these two lines when I try to load it in Sicstus 4.0.4:

writes(:-A) :- !,write(':-'),writes(A).
writes(?-A) :- !,write('?-'),writes(A).

Sicstus is telling me:
Show full article (0.85Kb)
no comments
  con predicate         


Author: simes
Date: Jul 14, 2008 06:12

Hi,

I'm trying to update some old prolog (18 years or more old!). I've
come across a predicate con/3, but can't find any documentation on
it. Can anyone help with a definition?

Thanks

Simon
4 Comments
  2008 election to the Executive Committee of the ACP ...         


Author: Jimmy H.M. Lee
Date: Jul 11, 2008 06:11

----------------------------------------------------------------------
2008 election to the Executive Committee of the
Association of Constraint Programming (ACP)

Call for candidates
Deadline: August 10, 2008
----------------------------------------------------------------------

We seek nominations for candidates for election to the Executive Committee
(EC) of the ACP. Candidates must be nominated by a member of the ACP or a
member of the Election Committee. Nominated persons must agree to be a
candidate and must write an election statement that will be posted on the
ACP election site.

Please send your nominations to Jimmy Lee cse.cuhk.edu.hk> to
arrive by midnight (California time) on August 10th, 2008.
Show full article (2.76Kb)
no comments
  Identify words         


Author: giantpassos
Date: Jul 10, 2008 15:10

Anyone already done a prolog program which identify the word when i
insert the beginning of the word:
?- Example: identify( 'bec',L).
?- L='because'

Please send me.

Thanks,

Diego Passos.
5 Comments
  Re: Making Prolog programs visual         


Author:
Date: Jul 8, 2008 07:58

Michael Igler wrote:
> I am on search for some tools that can visualize prolog programs
> like presenting the proof tree or so.

Here you can find a metainterpreter that shows the SLDNF tree in LaTeX:

http://www.ing.unife.it/docenti/MarcoGavanelli/sldnfDraw/

Cheers,
Marco

no comments
  Re: Making Prolog programs visual         


Author: Michael Igler
Date: Jul 8, 2008 00:43

Michael Igler wrote:
> I am on search for some tools that can visualize prolog programs
> like presenting the proof tree or so.
>
> I know Vis for SPASS output and Snarks for Satchmo output.
> Alloy from the MIT can also...
Show full article (1.57Kb)
no comments
 
1 2 3 4 5 6 7 8 9