There is no consensus for a core library, portable across Prolog systems, let alone a standard for such a library. Since SICStus Prolog 3 was first released, SICS has acquired Quintus Prolog, which has a rather rich library. For release 4, we have decided to make this asset be available to the SICStus community by providing a library that is a merger of the previous SICStus and Quintus libraries, which already overlap significantly.
The User's Manual documents the library of release 4. For the purposes of aiding code transition to release 4, the following is a list of the release 3 library modules, and their fate in release 4. See also Guide to Porting Code from Release 3.
attscomclientfdbggaugeheapslinda/clientlinda/serverpillowprologbeanstcltktimeouttreeswgraphsxmlarrayslibrary(logarr).
Also available is a deprecated compatibility module library(arrays3).
assoclibrary(avl),
reflecting the abstract data type, AVL trees, and with a modified,
richer API. Also available is a deprecated compatibility module
library(assoc3).
bdbcharsiolibrary(codesio) in release 4.
Likewise, the syllable `chars' has been renamed to `codes'
in predicate names.
clpqclprclpfdautomaton/8minimum/2maximum/2nvalue/2cumulative/[1,2]serialized/[2,3] and cumulative/[4,5].
table/[2,3]relation/3.
all_different/[1,2]all_distinct/[1,2]scalar_product/[4,5]knapsack/3.
global_cardinality/[2,3]count/4.
fd_copy_term/3copy_term/3.
jasperJasper module is not available in the current
release. An alternative for Java users is PrologBeans.
listslibrary(lists3).
ordsetsqueueslibrary(queues3).
randomlibrary(random3).
socketssocket_client_open/3 subsumes socket/2
and socket_connect/3.
socket_server_open/2 subsumes socket/2,
socket_bind/2 and socket_listen/2.
socket_select/7 can wait for any kind of stream, not just socket
streams. socket_select/7 waits until one unit (character for
text streams, byte for binary streams) can be transferred.
socket_select/7 can wait for streams ready to write.
socket_select/7 does not create streams, you need to explicitly
use socket_server_accept.
Socket streams are binary by default.
Blocking socket operations can be interrupted on both UNIX and Windows.
library(sockets) should work with IPv6.
systemlibrary(file_systems). Process primitives have been redesigned
and moved to a new module, library(process). The predicates for
creating temporary files, mktemp/2 and tmpnam/1, have been
removed. They used C library functionality that is broken by design and
insecure. Instead, to create and open a temporary file use something
like open(temp('foo'), write, S,
[if_exists(generate_unique_name)]), possibly together with
stream_property(S, file_name(Path)) if you need to know the path
to the generated file name.
The (little) remaining functionality is largely as in release 3.
Also available is a deprecated compatibility module library(system3).
termsterm_hash/2 is not guaranteed to compute the same hash values as in release 3.
ugraphsobjectslibrary(objects).
chrlibrary(chr),
based on the Leuven implementation.
clpbflinkagespaceoutvbspThe following is a list of library modules that are new in release 4.
aggregateassocbagsbetweenfile_systemsobjectslibrary(structs).
processremsamsortsetsstructslibrary(objects).
typesvarnumbersnumbervars/3.