|
Home
News
Information
Documentation
Mailing Lists
Back-ends
Download
Current Release
Info
Source
Binaries
Snapshot
Old Releases
Related
Contact
Search
Bug Database
|
New in release 0.12.2 of the Mercury distribution
This release fixes some bugs with `mmc --make' and `--smart-recompilation'.
New in release 0.12.1 of the Mercury distribution
This release is primarily a bug-fix release.
It fixes a problem with predicates that have existentially typed
arguments, makes sure that I/O tabling does not inadvertently
inline predicates that have a `:- pragma no_inline' declaration
attached to them, and makes various improvements to the MS-Windows
ports.
New in release 0.12 of the Mercury distribution
HIGHLIGHTS
Changes to the Mercury language:
- Infix `.' is now accepted as a module name separator.
- Field access syntax can now be used at the top-level in func and mode
declarations and in the head of a clause for a user-defined field access
function.
- We now support impure higher-order code.
- We now allow user-defined comparison predicates.
- User-defined equality and comparison predicates for a type are now
required to be defined in the same module as the type.
- Experimental support for user-defined constrained types has been added.
- We now support the use of `..' as an infix operator.
Changes to the Mercury standard library:
- We've added several new modules: cord, for sequences with O(1) consing and
concatenation, array2d, for two-dimensional arrays, and version_array,
version_array2d, version_bitmap, version_hash_table, and version_store,
implementing non-unique versions of these types supporting O(1) access for
non-persistent use. A new module term_to_xml has been added for converting
arbitrary terms to XML documents. Two new modules, set_tree234 and
set_ctree234, have been added to provide operations on sets with better
worst-case behavior (but worse constant factors) than the current
implementation. Ten new modules, svarray, sveqvclass, svmap, svmulti_map,
svbimap, svset, svbag, svqueue, svrelation and svvarset now provide more
convenient ways to update arrays, equivalence classes, maps, multi_maps,
bimaps, sets, bags, queues, relations and varsets in code that uses state
variables.
- New procedures have been added to many of the existing standard library
modules. Most notably, these include procedures for creating
directories and symbolic links, for checking file types and file
accessibility, for detecting floating point infinities and NaNs.
- The dir module now handles Microsoft Windows pathnames correctly.
Changes to the Mercury compiler:
- We have added optional support for a new type-accurate garbage collector
as an alternative to using the Boehm et al conservative collector.
- Better support for incremental program development:
there's two new compiler options, `--allow-stubs' and `--no-warn-stubs',
to support execution of incomplete programs.
- There's a new warning option `--warn-dead-procs' for detecting unreachable
code.
- It's now easier to use shared libraries on Linux/x86 systems
with `mmc --make'.
- A new analysis: `--analyse-exceptions'.
The compiler can use the results of this analysis to try and improve
some optimizations.
Portability improvements:
- We have made the implementation compatible with gcc 3.4.
- Shared libraries now work on Mac OS X.
Changes to the Mercury debugger:
- Users can now arrange to have the goal and/or some variables printed
every time execution arrives at a breakpoint.
- Users can now arrange to associate a condition with a breakpoint.
Execution won't stop at the breakpoint if the condition is false.
- Users can now limit the output from stack traces.
- Users can now put breakpoints on unify and compare predicates.
- Users can now save runtime values to files.
- Users can now tell the declarative debugger to trust entire modules or
individual predicates or functions.
- The declarative debugger can track the origins of subterms.
- The declarative debugger can now use the divide-and-query search strategy.
Changes to the compiler back-ends:
- Improvements to the .NET CLR back-end.
- Improvements to the Java back-end.
- The cost in disk space of enabling debugging is now much smaller.
Numerous minor improvements to the Mercury standard library.
Changes to the extras distribution:
- Added easyx, a new Xlib based graphics library suitable for implementing
simple interactive graphical applications.
- Major improvements to the OpenGL binding.
- We've added a binding to GLUT (the GL utility toolkit).
- The OpenGL, GLUT and Tcl/Tk bindings have been ported to Mac OS X.
DETAILED LISTING
Changes to the Mercury language:
- The deprecated support for NU-Prolog style `when' declarations has been
removed.
- We have experimental support for user-defined constrained types, as
documented in the reference manual section on "Solver types". Variables
of a constrained type can have constraints placed upon them before they
are instantiated, allowing for various styles of constraint logic
programming.
- We now allow user-defined comparison predicates, using the syntax
:- type t ---> t where equality is unify_t, comparison is compare_t.
See the "User-defined equality and comparison" chapter of the
Mercury Language Reference Manual for details.
- User-defined equality and comparison predicates for a type are now
required to be defined in the same module as the type.
- Infix `.' is now accepted as a module name separator. Hence it is
now possible to write io.write_string and list.member to mean the
same thing as io__write_string and list__member, for instance. This
has required changing the associativity of `.' from xfy to yfx and
from precedence 600 to 10.
- Field access notation can now be used at the top-level in func and
mode declarations and in the head of a clause for a user-defined
field access function. That is, one can now write
:- func a ^ f(b) = c.
:- mode a ^ f(b) = c is .
A ^ f(B) = ...
- Mercury's support for impure code now also includes support for
impure higher-order code.
Specifically, impurity annotations can be used on higher-order types,
lambda expressions, and higher-order calls; higher-order terms are
permitted to call impure or semipure code provided that they are
appropriately annotated as such.
For details, see the "Higher-order impurity" section of the "Impurity"
chapter of the Mercury Language Reference Manual.
- `..' is now accepted as an infix operator. That means a list of
successive integers can now be written as X .. Y. For example:
1 .. 5 = [1, 2, 3, 4, 5]
Changes to the Mercury standard library:
Changes to the Mercury compiler:
- We have added optional support for a new type-accurate garbage collector
as an alternative to using the Boehm et al conservative collector.
The new collector is enabled by `--grade hlc.agc'.
For details about how it works, see the paper
"Accurate garbage collection in an uncooperative environment"
which is available via our web page.
Note that the new collector is a very naive copying collector, and still
has a number of serious limitations which may make it undesirable for
most applications. It only works with `--high-level-code'. The heap
size is fixed at program startup; the collector does not attempt to
resize the heap. It does not do cheap heap reclamation on backtracking.
There is no support for passing terms on the Mercury heap to C code.
In most cases, the Boehm et all conservative collector will perform better.
- There's a new warning option `--warn-dead-procs' which can be used
for detecting unreachable code.
This is not yet enabled by default, because it can cause some spurious
warnings in modules containing code which mixes Mercury clauses and
`pragma foreign_proc' declarations for the same procedure.
- `mmc --make' now works correctly with Microsoft Visual C++.
- It's now easier to use shared libraries on Linux/x86 systems with
`mmc --make'. See the documentation for the `--mercury-linkage'
and `--linkage' options and the `MERCURY_LINKAGE' Mmake variable
in the Mercury User's Guide.
- The behaviour of the `--pre-link-command' and `--extra-init-command'
options has changed. They now take a command which will be passed
the names of all source files in the program or library, with the
name of the main module's source file passed first.
See the "Build system options" section of the "Invocation" chapter
of the Mercury User's Guide for details.
- It is now possible to reconfigure an existing Mercury installation
to use a different C compiler. See the "C compilers" chapter
of the Mercury User's Guide for details.
- Inlining of builtins can now be disabled using the `--no-inline-builtins'
option. This is done by default when debugging, as without this option the
execution of builtins is not traced.
- The Mercury compiler now uses `.' and not `:' as the module separator
in all output.
- The environment variables which were previously used to override the
location of the standard library (MERCURY_ALL_C_INCL_DIRS,
MERCURY_ALL_MC_C_INCL_DIRS, MERCURY_INT_DIR, MERCURY_C_LIB_DIR,
MERCURY_MOD_LIB_MODS, MERCURY_TRACE_LIB_MODS) have been removed.
- There is a new analysis: `--analyse-exceptions'. This identifies
predicates that will not throw an exception. This information is
made available to the optimizing passes of the compiler.
Portability improvements:
- We have made the implementation compatible with gcc 3.4.
- Shared libraries now work on Mac OS X.
Changes to the Mercury debugger:
- Users can now limit the output from stack traces.
The mdb command `stack' now takes an optional integer argument that
specifies the maximum number of stack frames to be printed.
- Users can now put breakpoints on unify and compare predicates.
The syntax for procedure specifications now has provision for specifying
unify and compare predicates.
- Users can now save runtime values to files.
We've added a new mdb command, `save_to_file', that saves a specified term
to a specified file.
- The declarative debugger can now be told to trust entire modules or
individual predicates or functions using the `trust' mdb command.
- The declarative debugger can now also tell you where a value
appearing in an atom came from (i.e. the call which constructed the value).
- The declarative debugger also now supports a divide-and-query search mode.
You can tell the declarative debugger to use this search mode by invoking
it with the command `dd -s divide_and_query'.
- The "pretty" and "raw_pretty" print formats have had their names swapped, so
the "pretty" format is now prettier than the "raw_pretty" format.
Changes to the compiler back-ends:
- Improvements to the .NET CLR back-end.
We've fixed a lot of bugs, and implemented a lot more of the Mercury
standard library. We have been able to bootstrap the compiler in
grade `il', and also pass more than 90% of the applicable tests in the
Mercury test suite. See README.DotNet for details.
- Improvements to the Java back-end.
We've fixed a lot of bugs, and implemented a lot more of the
Mercury standard library. See README.Java for details.
|