Logtalk 2.30.7 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1973 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
6c3aee8c63
commit
42aabce1bb
@ -6,9 +6,27 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@inproceedings{pmoura07,
|
||||||
|
author = "Paulo Moura and Paul Crocker and Paulo Nunes",
|
||||||
|
title = "{Multi-threading programming in Logtalk}",
|
||||||
|
crossref = "ciclops07",
|
||||||
|
pages = "87--101",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@proceedings{ciclops07,
|
||||||
|
title = "7th Colloquium on Implementation of Constraint LOgic Programming Systems",
|
||||||
|
publisher = "University of Oporto",
|
||||||
|
address = "Oporto, Portugal",
|
||||||
|
editor = "Salvador Abreu and Vitor Santos Costa",
|
||||||
|
month = sep,
|
||||||
|
year = 2007
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@inproceedings{pmoura06,
|
@inproceedings{pmoura06,
|
||||||
author = "Paulo Moura and Vincent Marchetti",
|
author = "Paulo Moura and Vincent Marchetti",
|
||||||
title = "Logtalk Processing of STEP Part 21 Files",
|
title = "{Logtalk Processing of STEP Part 21 Files}",
|
||||||
crossref = "iclp06",
|
crossref = "iclp06",
|
||||||
pages = "453--454",
|
pages = "453--454",
|
||||||
}
|
}
|
||||||
@ -30,7 +48,7 @@
|
|||||||
@phdthesis{pmoura03,
|
@phdthesis{pmoura03,
|
||||||
author = "Paulo Moura",
|
author = "Paulo Moura",
|
||||||
title = "{Logtalk - Design of an Object-Oriented Logic Programming Language}",
|
title = "{Logtalk - Design of an Object-Oriented Logic Programming Language}",
|
||||||
school = "Department of Informatics, University of Beira Interior, Portugal",
|
school = "Department of Computer Science, University of Beira Interior, Portugal",
|
||||||
month = sep,
|
month = sep,
|
||||||
year = 2003,
|
year = 2003,
|
||||||
howpublished = "\url{http://logtalk.org/papers/thesis.pdf}"
|
howpublished = "\url{http://logtalk.org/papers/thesis.pdf}"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
@ -36,7 +36,7 @@ of the flags that are used by Logtalk when compiling source files. For a
|
|||||||
full description of these flags, consult the "Running and debugging Logtalk
|
full description of these flags, consult the "Running and debugging Logtalk
|
||||||
programs" section of the User Manual. Some of the default flags that you may
|
programs" section of the User Manual. Some of the default flags that you may
|
||||||
want to change include: "smart_compilation", "startup_message", "altdirs",
|
want to change include: "smart_compilation", "startup_message", "altdirs",
|
||||||
"tmpdir", "portability", "underscore_vars", and the documentation-related
|
"tmpdir", "portability", "underscore_variables", and the documentation-related
|
||||||
flags ("xmldocs", "xmldir", "xslfile", "xmlspec", and "xmlsref"). Be sure
|
flags ("xmldocs", "xmldir", "xslfile", "xmlspec", and "xmlsref"). Be sure
|
||||||
to read the "configs/NOTES.txt" file for Prolog specific notes; some Prolog
|
to read the "configs/NOTES.txt" file for Prolog specific notes; some Prolog
|
||||||
compilers do not support the whole range of compilation flag values.
|
compilers do not support the whole range of compilation flag values.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
@ -10,6 +10,195 @@ RELEASE NOTES
|
|||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
||||||
|
2.30.7 - November 5, 2007
|
||||||
|
|
||||||
|
Updated the multi-threading built-in predicates threaded_notify/1 and
|
||||||
|
threaded_wait/1 to accept lists of notifications.
|
||||||
|
|
||||||
|
Added a new read-only compiler flag, "context_switching_calls", allowing
|
||||||
|
context switching calls to be disabled (they are enabled by default).
|
||||||
|
|
||||||
|
Updated the B-Prolog config file to recognize eager_consume/1 directives.
|
||||||
|
Updated the XSB config file to recognize use_subsumptive_tabling/1,
|
||||||
|
use_variant_tabling/1, index/1, thread_private/1, and thread_shared/1
|
||||||
|
directives.
|
||||||
|
Updated the YAP config file to recognize thread_local/1 directives.
|
||||||
|
Updated the SICStus Prolog config files to recognize volatile/1 directives.
|
||||||
|
Updated the SWI-Prolog config file to recognize thread_local/1, index/1,
|
||||||
|
and hash/1 directives.
|
||||||
|
|
||||||
|
Changed the backup directory names generated by the "cplgtdirs.*" shell
|
||||||
|
scripts to not include whitespace characters.
|
||||||
|
|
||||||
|
Updated the "xsbmtlgt.sh" integration script to start XSB-MT using the
|
||||||
|
new command-line option "--shared_predicates" (requires current XSB CVS
|
||||||
|
version). Updated the Windows GUI installer to support running Logtalk
|
||||||
|
with XSB-MT.
|
||||||
|
|
||||||
|
Added a multi-threading example, "barriers", of barrier synchronization.
|
||||||
|
|
||||||
|
Updated the "functions" example sample queries for compatibility with the
|
||||||
|
ISO Prolog standard regarding representation of float numbers.
|
||||||
|
|
||||||
|
Added a workaround for a parsing bug in XSB while compiling the "sicstus"
|
||||||
|
example.
|
||||||
|
|
||||||
|
|
||||||
|
2.30.6 - October 21, 2007
|
||||||
|
|
||||||
|
Replaced calls to the proprietary current_thread/2 predicate in the
|
||||||
|
Logtalk runtime by calls to the thread_property/2 predicate as per
|
||||||
|
the ISO DTR on multi-threading predicates. Added a goal_expansion/2
|
||||||
|
clause to the SWI-Prolog config file to automatically switch between
|
||||||
|
the current_thread/2 and thread_property/2 predicates depending on
|
||||||
|
availability.
|
||||||
|
|
||||||
|
Changed handling of the encoding/1 directive by the Logtalk compiler in
|
||||||
|
order to improve compatibility with YAP and SICStus Prolog. Removed from
|
||||||
|
the config files the now obsolete '$lgt_set_stream_encoding'/2 predicate
|
||||||
|
definition. Renamed the compiler option "supports_encoding_dir" to
|
||||||
|
"encoding_directive" and changed its possible values to "unsupported",
|
||||||
|
"full" (used in both Logtalk source files and compiler generated Prolog
|
||||||
|
files), and "source" (used only in Logtalk source files).
|
||||||
|
|
||||||
|
Renamed compiler option "underscore_vars" to "underscore_variables".
|
||||||
|
Renamed compiler option "supports_break_predicate" to "break_predicate".
|
||||||
|
|
||||||
|
Improved the performance of recursive predicate definitions synchronized
|
||||||
|
by mutexes. Explicitly create all mutexes used by an entity at load time
|
||||||
|
for compatibility with XSB. Several changes to multi-threading support in
|
||||||
|
order to improve compatibility with current and forthcoming versions of
|
||||||
|
YAP, SWI-Prolog, and XSB.
|
||||||
|
|
||||||
|
Updated the Logtalk compiler for compatibility with both logical and
|
||||||
|
immediate update semantics when compiling synchronized predicates.
|
||||||
|
|
||||||
|
Updated the meta-predicate compilation sanity checks to verify the
|
||||||
|
existence of the minimum number of normal arguments in a clause head
|
||||||
|
required by the closure of maximum arity.
|
||||||
|
|
||||||
|
Added a workaround for the lack of built-in support for character
|
||||||
|
unbuffered input when using the Logtalk built-in debugger to the config
|
||||||
|
files of ALS Prolog, B-Prolog, Ciao, CxProlog, IF/Prolog, JIProlog,
|
||||||
|
Prolog II+, SICStus Prolog, XSB, and YAP. Thanks to Parker Jones for the
|
||||||
|
bug report.
|
||||||
|
|
||||||
|
Updated the YAP config file to auto-detect working Unicode support when
|
||||||
|
setting the "encoding_directive" compiler option.
|
||||||
|
|
||||||
|
Updated the XSB config file to auto-detect multi-threading support
|
||||||
|
when setting the "threads" compiler option. Added an integration script
|
||||||
|
(xsbmtlgt.sh) and supporting files for the multi-threaded version of XSB
|
||||||
|
(requires current development version, available from the XSB CVS server).
|
||||||
|
|
||||||
|
Added a MacPorts portfile for building MacOS X installer packages.
|
||||||
|
|
||||||
|
Added a BOM to the "babel.lgt" UTF-8 file in the "encodings" example in
|
||||||
|
order to improve compatibility with SICStus Prolog.
|
||||||
|
|
||||||
|
Updated the library object "random" by replacing the synchronized/0
|
||||||
|
directive by a synchronized/1 directive listing only the predicates
|
||||||
|
that modify the random number seed.
|
||||||
|
|
||||||
|
Added syntax coloring support for the GtkSourceView 2.x text widget
|
||||||
|
(used e.g. on the Gnome's Gedit text editor and on the MonoDevelop IDE).
|
||||||
|
Removed syntax coloring for the obsolete atomic/1 predicate directive
|
||||||
|
from the support files of Source-highlight, Emacs, SubEthaEdit, jEdit,
|
||||||
|
and Kate. Optimized the regular expressions used in most syntax coloring
|
||||||
|
configuration files of supported text editors.
|
||||||
|
|
||||||
|
|
||||||
|
2.30.5 - September 19, 2007
|
||||||
|
|
||||||
|
Added new multi-threading built-in predicates threaded_call/2,
|
||||||
|
threaded_once/2, threaded_exit/2, and threaded_peek/2. These new
|
||||||
|
predicates support the use of threaded call identifier tags in order to
|
||||||
|
link specific threaded_call/2 and threaded_once/2 calls to specific
|
||||||
|
threaded_exit/2 and threaded_peek/2 calls. Extended the "nondet" example
|
||||||
|
in order to illustrate the new functionality.
|
||||||
|
|
||||||
|
Changed the implementation of the built-in predicate threaded_exit/1 in
|
||||||
|
order to avoid blocking when its argument is subsumed by the argument of
|
||||||
|
the corresponding threaded_call/1 call instead of being a variant.
|
||||||
|
|
||||||
|
Updated the Logtalk compiler to encapsulate resource errors inside
|
||||||
|
error/2 exception terms (as specified in the ISO Prolog core standard).
|
||||||
|
|
||||||
|
Corrected a bug in the library object "lgtunit" (wrong arity on two
|
||||||
|
failed_test/2 predicate calls).
|
||||||
|
|
||||||
|
Corrected two problems with the "testing" example: a wrong call on the
|
||||||
|
object "dyn_tests" and a missing entry in the "libpaths.pl" file. Removed
|
||||||
|
two pointless dynamic predicate directives in the "buffer" example.
|
||||||
|
|
||||||
|
Improved documentation of multi-threading programming and predicate
|
||||||
|
properties. Corrected the reference manual page describing the threaded/0
|
||||||
|
directive.
|
||||||
|
|
||||||
|
Simplified installation scripts by moving shared distribution cleaning
|
||||||
|
code into the "cleandist.sh" script. Updated the "install.sh" script to
|
||||||
|
set the installation prefix to "/usr" on Debian systems. Updated the
|
||||||
|
Linux RPM spec file in order to clean the building directory after the
|
||||||
|
package creation.
|
||||||
|
|
||||||
|
|
||||||
|
2.30.4 - August 22, 2007
|
||||||
|
|
||||||
|
Allow the argument of {}/1 calls to be a variable at compile time.
|
||||||
|
|
||||||
|
Updated the Qu-Prolog config file to match and require version 8.1 and
|
||||||
|
added a "qplgt" integration script.
|
||||||
|
|
||||||
|
Updated the XSB config file to match and require version 3.1 and to
|
||||||
|
take advantage of the compiler option optimize/1 when loading Logtalk
|
||||||
|
generated Prolog intermediate files.
|
||||||
|
|
||||||
|
Added a new library object, "lgtunit", providing preliminary support for
|
||||||
|
writing and running unit tests. Added a new example, "testing", defining
|
||||||
|
sample unit tests.
|
||||||
|
|
||||||
|
Added a new multi-threading example, "threads/tak", implementing the
|
||||||
|
Takeuchi function (recursive arithmetic).
|
||||||
|
|
||||||
|
Updated the "threads/philosophers" example to use notifications instead
|
||||||
|
of a dynamic predicate for representing chopstick availability. Added an
|
||||||
|
alternative implementation using a parametric object. Improved example
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
Updated the "benchmarks" example to allow comparisons between calls to
|
||||||
|
imported category predicates and calls to local object predicates.
|
||||||
|
|
||||||
|
Updated Emacs support in order to fix problems with the syntax-coloring
|
||||||
|
of some Logtalk built-in predicates and applied a patch contributed by
|
||||||
|
Nicolas Pelletier to workaround a compatibility problem with XEmacs.
|
||||||
|
|
||||||
|
Updated jEdit support in order to fix a problem with the syntax-coloring
|
||||||
|
of the :/1 control construct.
|
||||||
|
|
||||||
|
|
||||||
|
2.30.3 - July 9, 2007
|
||||||
|
|
||||||
|
Updated the multi-threading built-in predicate threaded/1 to support
|
||||||
|
both conjunctions of goals (akin to and-parallelism) and disjunctions
|
||||||
|
of goals (akin to or-parallelism) as an argument.
|
||||||
|
|
||||||
|
Removed the experimental threaded_race/1 multi-threading built-in
|
||||||
|
predicate (its or-parallelism functionality is subsumed by the updated
|
||||||
|
threaded/1 predicate).
|
||||||
|
|
||||||
|
Corrected a bug in the implementation of the multi-threading built-in
|
||||||
|
predicate threaded_exit/1 when there are more than one thread running
|
||||||
|
the same non-deterministic goal (the fix ensures that all alternative
|
||||||
|
solutions per threaded_exit/1 call come from the same computing thread).
|
||||||
|
Thanks to Paul Crocker for the suggested bug fix solution.
|
||||||
|
|
||||||
|
Updated the sample queries in the "threads/buffer"/SCRIPT.txt" file to
|
||||||
|
match the updated entities in the example.
|
||||||
|
|
||||||
|
Updated the "threads/functions" example to use the new version of the
|
||||||
|
threaded/1 multi-threading built-in predicate.
|
||||||
|
|
||||||
|
|
||||||
2.30.2 - June 24, 2007
|
2.30.2 - June 24, 2007
|
||||||
|
|
||||||
Updated the Logtalk compiler to throw a compilation error when duplicated
|
Updated the Logtalk compiler to throw a compilation error when duplicated
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
@ -66,7 +66,7 @@ Logtalk version 2.15.3 changes the format of the runtime entity tables,
|
|||||||
implying recompilation of all objects, protocols, and categories.
|
implying recompilation of all objects, protocols, and categories.
|
||||||
|
|
||||||
Logtalk version 2.15.6 renamed the compiler flag "named_anonymous_vars" to
|
Logtalk version 2.15.6 renamed the compiler flag "named_anonymous_vars" to
|
||||||
"underscore_vars" and changed the possible option values form "on/off" to
|
"underscore_variables" and changed the possible option values form "on/off" to
|
||||||
"dont_care/singletons".
|
"dont_care/singletons".
|
||||||
|
|
||||||
Logtalk 2.16.0 improves support for the declaration and use of operators
|
Logtalk 2.16.0 improves support for the declaration and use of operators
|
||||||
@ -164,3 +164,12 @@ a per-project definition of directories for storing XML documenting files and
|
|||||||
for storing intermediate compilation files (e.g. Prolog files). Removed from
|
for storing intermediate compilation files (e.g. Prolog files). Removed from
|
||||||
the config files the predicate '$lgt_alt_directory'/2. Older config files are
|
the config files the predicate '$lgt_alt_directory'/2. Older config files are
|
||||||
incompatible with this new Logtalk version.
|
incompatible with this new Logtalk version.
|
||||||
|
|
||||||
|
Logtalk 2.30.6 renamed the compiler flags "supports_break_predicate",
|
||||||
|
"supports_encoding_dir", and "underscore_vars" to, respectively,
|
||||||
|
"break_predicate", "encoding_directive", and "underscore_variables". Changed
|
||||||
|
the possible values of the "encoding_directive" compiler option (see manual).
|
||||||
|
Older config files are not compatible with this new Logtalk version.
|
||||||
|
|
||||||
|
Logtalk 2.30.7 adds a new compiler flag "context_switching_calls".
|
||||||
|
Older config files are not compatible with this new Logtalk version.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
@ -197,6 +197,9 @@ symdiff
|
|||||||
tabling
|
tabling
|
||||||
simple example of using tabling directives within objects
|
simple example of using tabling directives within objects
|
||||||
|
|
||||||
|
testing
|
||||||
|
some examples of writing unit tests
|
||||||
|
|
||||||
threads
|
threads
|
||||||
several simple examples of multi-threading programming
|
several simple examples of multi-threading programming
|
||||||
(requires Logtalk to be run with either YAP or SWI-Prolog)
|
(requires Logtalk to be run with either YAP or SWI-Prolog)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(assignvars), [reload(skip)]),
|
logtalk_load(library(assignvars), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load([fsm3, rectangle3]))).
|
logtalk_load([fsm3, rectangle3]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
@ -38,6 +38,15 @@ Id = s1 ? ;
|
|||||||
Goal = object::length([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],_)
|
Goal = object::length([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],_)
|
||||||
Id = s2 ? ;
|
Id = s2 ? ;
|
||||||
|
|
||||||
|
Goal = leaf::obj_local
|
||||||
|
Id = c1 ? ;
|
||||||
|
|
||||||
|
Goal = leaf::ctg_direct
|
||||||
|
Id = c2 ? ;
|
||||||
|
|
||||||
|
Goal = leaf::ctg_self
|
||||||
|
Id = c3 ? ;
|
||||||
|
|
||||||
Goal = create_object(xpto,[],[],[]),abolish_object(xpto)
|
Goal = create_object(xpto,[],[],[]),abolish_object(xpto)
|
||||||
Id = d1 ? ;
|
Id = d1 ? ;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
% run all benchmarks the default number of times:
|
% run all benchmarks the default number of times:
|
||||||
run :-
|
run :-
|
||||||
run(1000000).
|
run(100000).
|
||||||
|
|
||||||
% run all benchmark tests N times:
|
% run all benchmark tests N times:
|
||||||
run(N) :-
|
run(N) :-
|
||||||
@ -77,8 +77,9 @@
|
|||||||
{generate_list(20, List)}.
|
{generate_list(20, List)}.
|
||||||
|
|
||||||
% some benchmark tests for category predicate calls:
|
% some benchmark tests for category predicate calls:
|
||||||
benchmark(c1, leaf::ctg_direct).
|
benchmark(c1, leaf::obj_local).
|
||||||
benchmark(c2, leaf::ctg_self).
|
benchmark(c2, leaf::ctg_direct).
|
||||||
|
benchmark(c3, leaf::ctg_self).
|
||||||
|
|
||||||
% some benchmark tests for dynamic code:
|
% some benchmark tests for dynamic code:
|
||||||
benchmark(d1, (create_object(xpto, [], [], []), abolish_object(xpto))).
|
benchmark(d1, (create_object(xpto, [], [], []), abolish_object(xpto))).
|
||||||
@ -111,16 +112,22 @@
|
|||||||
|
|
||||||
do_benchmark(c1, N) :-
|
do_benchmark(c1, N) :-
|
||||||
{my_repeat(N)},
|
{my_repeat(N)},
|
||||||
leaf::ctg_direct,
|
leaf::obj_local,
|
||||||
fail.
|
fail.
|
||||||
do_benchmark(c1, _).
|
do_benchmark(c1, _).
|
||||||
|
|
||||||
do_benchmark(c2, N) :-
|
do_benchmark(c2, N) :-
|
||||||
{my_repeat(N)},
|
{my_repeat(N)},
|
||||||
leaf::ctg_self,
|
leaf::ctg_direct,
|
||||||
fail.
|
fail.
|
||||||
do_benchmark(c2, _).
|
do_benchmark(c2, _).
|
||||||
|
|
||||||
|
do_benchmark(c3, N) :-
|
||||||
|
{my_repeat(N)},
|
||||||
|
leaf::ctg_self,
|
||||||
|
fail.
|
||||||
|
do_benchmark(c3, _).
|
||||||
|
|
||||||
do_benchmark(d1, N) :-
|
do_benchmark(d1, N) :-
|
||||||
{my_repeat(N)},
|
{my_repeat(N)},
|
||||||
create_object(xpto, [], [], []),
|
create_object(xpto, [], [], []),
|
||||||
|
@ -9,6 +9,16 @@
|
|||||||
|
|
||||||
:- public(ctg_pred/0).
|
:- public(ctg_pred/0).
|
||||||
|
|
||||||
ctg_pred.
|
ctg_pred :-
|
||||||
|
{generate_list(20, List)},
|
||||||
|
length(List, _).
|
||||||
|
|
||||||
|
length(List, Length) :-
|
||||||
|
length(List, 0, Length).
|
||||||
|
|
||||||
|
length([], Length, Length).
|
||||||
|
length([_| Tail], Acc, Length) :-
|
||||||
|
Acc2 is Acc + 1,
|
||||||
|
length(Tail, Acc2, Length).
|
||||||
|
|
||||||
:- end_category.
|
:- end_category.
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
length(Tail, Acc2, Length).
|
length(Tail, Acc2, Length).
|
||||||
|
|
||||||
:- public(ctg_self/0).
|
:- public(ctg_self/0).
|
||||||
|
|
||||||
% call an imported category predicate by sending a message to self;
|
% call an imported category predicate by sending a message to self;
|
||||||
% performance will depend on the distance between "self" and "this"
|
% performance will depend on the distance between "self" and "this"
|
||||||
% (always uses dynamic binding)
|
% (always uses dynamic binding)
|
||||||
@ -27,12 +26,18 @@
|
|||||||
::ctg_pred.
|
::ctg_pred.
|
||||||
|
|
||||||
:- public(ctg_direct/0).
|
:- public(ctg_direct/0).
|
||||||
|
|
||||||
% call an imported category predicate directly by using the :/1 control construct;
|
% call an imported category predicate directly by using the :/1 control construct;
|
||||||
% (static binding may be used, depending on how the category is compiled)
|
% (static binding may be used, depending on how the category is compiled)
|
||||||
ctg_direct :-
|
ctg_direct :-
|
||||||
:ctg_pred.
|
:ctg_pred.
|
||||||
|
|
||||||
|
:- public(obj_local/0).
|
||||||
|
% call a local object predicate directly; used for comparing performance with
|
||||||
|
% calls to category predicates using the ::/1 and :/1 control constructs
|
||||||
|
obj_local :-
|
||||||
|
{generate_list(20, List)},
|
||||||
|
length(List, _).
|
||||||
|
|
||||||
:- end_object.
|
:- end_object.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(hierarchies_loader), [reload(skip)]),
|
logtalk_load(library(hierarchies_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load([descriptors, birds, expert]))).
|
logtalk_load([descriptors, birds, expert]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(all_loader), [reload(skip)]),
|
logtalk_load(library(all_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(roots(loader), [reload(skip)]),
|
logtalk_load(roots(loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(relations(loader), [reload(skip)]),
|
logtalk_load(relations(loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(bricks, [events(on)]))).
|
logtalk_load(bricks, [events(on)]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- encoding(utf8). % this directive, when present, must be the first term in a source file
|
:- encoding(utf8). % this directive, when present, must be the first term in a source file
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
:- object(translator).
|
:- object(translator).
|
||||||
|
|
||||||
:- info([
|
:- info([
|
||||||
version is 1.0,
|
version is 1.1,
|
||||||
date is 2004/6/8,
|
date is 2007/10/13,
|
||||||
author is 'Paulo Moura',
|
author is 'Paulo Moura',
|
||||||
comment is 'Translator of logic propositions to clauses in conjunctive normal form.',
|
comment is 'Translator of logic propositions to clauses in conjunctive normal form.',
|
||||||
source is 'Code partially based on an example found on the Clocksin and Mellish Prolog book.']).
|
source is 'Code partially based on an example found on the Clocksin and Mellish Prolog book.']).
|
||||||
@ -20,6 +20,7 @@
|
|||||||
comment is 'Translates a proposition to a list of clauses, printing the result of each translation step.',
|
comment is 'Translates a proposition to a list of clauses, printing the result of each translation step.',
|
||||||
argnames is ['Propostion', 'Clauses']]).
|
argnames is ['Propostion', 'Clauses']]).
|
||||||
|
|
||||||
|
:- private(gensym_counter_/1).
|
||||||
:- dynamic(gensym_counter_/1).
|
:- dynamic(gensym_counter_/1).
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(hierarchies_loader), [reload(skip)]),
|
logtalk_load(library(hierarchies_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(faults))).
|
logtalk_load(faults))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(types_loader), [reload(skip)]),
|
logtalk_load(library(types_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load([timetable, forms, periods, subjects, teachers]))).
|
logtalk_load([timetable, forms, periods, subjects, teachers]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(types_loader), [reload(skip)]),
|
logtalk_load(library(types_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load([closures, metapredicates]))).
|
logtalk_load([closures, metapredicates]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(types_loader), [reload(skip)]),
|
logtalk_load(library(types_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load([hanoi, queens]))).
|
logtalk_load([hanoi, queens]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load(library(types_loader), [reload(skip)]),
|
logtalk_load(library(types_loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(msglog, [events(on)]))).
|
logtalk_load(msglog, [events(on)]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load([library(events_loader), library(types_loader), library(metapredicates_loader), library(hierarchies_loader)], [reload(skip)]),
|
logtalk_load(
|
||||||
logtalk_load(roots(loader), [reload(skip)]),
|
[library(events_loader), library(types_loader), library(metapredicates_loader), library(hierarchies_loader)],
|
||||||
logtalk_load(relations(loader), [reload(skip)]),
|
[reload(skip)]), % allow for static binding
|
||||||
|
logtalk_load(roots(loader), [reload(skip)]), % allow for static binding
|
||||||
|
logtalk_load(relations(loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(points))).
|
logtalk_load(points))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load([library(events_loader), library(types_loader), library(metapredicates_loader), library(hierarchies_loader)], [reload(skip)]),
|
logtalk_load(
|
||||||
logtalk_load(roots(loader), [reload(skip)]),
|
[library(events_loader), library(types_loader), library(metapredicates_loader), library(hierarchies_loader)],
|
||||||
logtalk_load(relations(loader), [reload(skip)]),
|
[reload(skip)]), % allow for static binding
|
||||||
|
logtalk_load(roots(loader), [reload(skip)]), % allow for static binding
|
||||||
|
logtalk_load(relations(loader), [reload(skip)]), % allow for static binding
|
||||||
logtalk_load(polygons, [events(on)]))).
|
logtalk_load(polygons, [events(on)]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
:- initialization((
|
:- initialization((
|
||||||
logtalk_load([library(dates_loader), library(events_loader), library(metapredicates_loader), library(types_loader)], [reload(skip)]),
|
logtalk_load(
|
||||||
|
[library(dates_loader), library(events_loader), library(metapredicates_loader), library(types_loader)],
|
||||||
|
[reload(skip)]), % allow for static binding
|
||||||
logtalk_load([timer, message_counter, stop_watch], [events(on)]))).
|
logtalk_load([timer, message_counter, stop_watch], [events(on)]))).
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
================================================================
|
================================================================
|
||||||
Logtalk - Open source object-oriented logic programming language
|
Logtalk - Open source object-oriented logic programming language
|
||||||
Release 2.30.2
|
Release 2.30.7
|
||||||
|
|
||||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||||
================================================================
|
================================================================
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user