| 1 |
= Release20180207 |
| 2 |
|
| 3 |
This is an archived public release of MLton, version 20180207. |
| 4 |
|
| 5 |
== Changes since the last public release |
| 6 |
|
| 7 |
* Compiler. |
| 8 |
** Added an experimental LLVM codegen (`-codegen llvm`); requires LLVM tools |
| 9 |
(`llvm-as`, `opt`, `llc`) version ≥ 3.7. |
| 10 |
** Made many substantial cosmetic improvements to front-end diagnostic |
| 11 |
messages, especially with respect to source location regions, type inference |
| 12 |
for `fun` and `val rec` declarations, signature constraints applied to a |
| 13 |
structure, `sharing type` specifications and `where type` signature |
| 14 |
expressions, type constructor or type variable escaping scope, and |
| 15 |
nonexhaustive pattern matching. |
| 16 |
** Fixed minor bugs with exception replication, precedence parsing of function |
| 17 |
clauses, and simultaneous `sharing` of multiple structures. |
| 18 |
** Made compilation deterministic (eliminate output executable name from |
| 19 |
compile-time specified `@MLton` runtime arguments; deterministically generate |
| 20 |
magic constant for executable). |
| 21 |
** Updated `-show-basis` (recursively expand structures in environments, |
| 22 |
displaying components with long identifiers; append `(* @ region *)` |
| 23 |
annotations to items shown in environment). |
| 24 |
** Forced amd64 codegen to generate PIC on amd64-linux targets. |
| 25 |
* Runtime. |
| 26 |
** Added `gc-summary-file file` runtime option. |
| 27 |
** Reorganized runtime support for `IntInf` operations so that programs that |
| 28 |
do not use `IntInf` compile to executables with no residual dependency on GMP. |
| 29 |
** Changed heap representation to store forwarding pointer for an object in |
| 30 |
the object header (rather than in the object data and setting the header to a |
| 31 |
sentinel value). |
| 32 |
* Language. |
| 33 |
** Added support for selected SuccessorML features; see |
| 34 |
http://mlton.org/SuccessorML for details. |
| 35 |
** Added `(*#showBasis "file" *)` directive; see |
| 36 |
http://mlton.org/ShowBasisDirective for details. |
| 37 |
** FFI: |
| 38 |
*** Added `pure`, `impure`, and `reentrant` attributes to `_import`. An |
| 39 |
unattributed `_import` is treated as `impure`. A `pure` `_import` may be |
| 40 |
subject to more aggressive optimizations (common subexpression elimination, |
| 41 |
dead-code elimination). An `_import`-ed C function that (directly or |
| 42 |
indirectly) calls an `_export`-ed SML function should be attributed |
| 43 |
`reentrant`. |
| 44 |
** ML Basis annotations. |
| 45 |
*** Added `allowSuccessorML {false|true}` to enable all SuccessorML features |
| 46 |
and other annotations to enable specific SuccessorML features; see |
| 47 |
http://mlton.org/SuccessorML for details. |
| 48 |
*** Split `nonexhaustiveMatch {warn|error|igore}` and `redundantMatch |
| 49 |
{warn|error|ignore}` into `nonexhaustiveMatch` and `redundantMatch` |
| 50 |
(controls diagnostics for `case` expressions, `fn` expressions, and `fun` |
| 51 |
declarations (which may raise `Match` on failure)) and `nonexhaustiveBind` |
| 52 |
and `redundantBind` (controls diagnostics for `val` declarations (which may |
| 53 |
raise `Bind` on failure)). |
| 54 |
*** Added `valrecConstr {warn|error|ignore}` to report when a `val rec` (or |
| 55 |
`fun`) declaration redefines an identifier that previously had constructor |
| 56 |
status. |
| 57 |
* Libraries. |
| 58 |
** Basis Library. |
| 59 |
*** Improved performance of `Array.copy`, `Array.copyVec`, `Vector.append`, |
| 60 |
`String.^`, `String.concat`, `String.concatWith`, and other related |
| 61 |
functions by using `memmove` rather than element-by-element constructions. |
| 62 |
** `Unsafe` structure. |
| 63 |
*** Added unsafe operations for array uninitialization and raw arrays; see |
| 64 |
https://github.com/MLton/mlton/pull/207 for details. |
| 65 |
** Other libraries. |
| 66 |
*** Updated: ckit library, MLLPT library, MLRISC library, SML/NJ library |
| 67 |
* Tools. |
| 68 |
** mlnlffigen |
| 69 |
*** Updated to warn and skip (rather than abort) when encountering functions |
| 70 |
with `struct`/`union` argument or return type. |
| 71 |
|
| 72 |
For a complete list of changes and bug fixes since |
| 73 |
<<Release20130715#>>, see the |
| 74 |
https://github.com/MLton/mlton/blob/on-20180207-release/CHANGELOG.adoc[`CHANGELOG.adoc`] and |
| 75 |
<<Bugs20130715#>>. |
| 76 |
|
| 77 |
== 20180207 binary packages |
| 78 |
|
| 79 |
* AMD64 (aka "x86-64" or "x64") |
| 80 |
** https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.amd64-darwin.gmp-homebrew.tgz[Darwin (.tgz)] 16.7 (Mac OS X Sierra), dynamically linked against <<GMP#>> in `/usr/local/lib` (suitable for https://brew.sh/[Homebrew] install of <<GMP#>>) |
| 81 |
** https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.amd64-darwin.gmp-static.tgz[Darwin (.tgz)] 16.7 (Mac OS X Sierra), statically linked against <<GMP#>> (but requires <<GMP#>> for generated executables) |
| 82 |
** https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.amd64-linux.tgz[Linux], glibc 2.23 |
| 83 |
// ** Windows MinGW 32/64 https://sourceforge.net/projects/mlton/files/mlton/20180207/MLton-20180207-1.exe[self-extracting] (28MB) or https://sourceforge.net/projects/mlton/files/mlton/20180207/MLton-20180207-1.msi[MSI] (61MB) installer |
| 84 |
// * X86 |
| 85 |
// ** https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.x86-cygwin.tgz[Cygwin] 1.7.5 |
| 86 |
// ** https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.x86-linux.tgz[Linux], glibc 2.23 |
| 87 |
// ** https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.x86-linux.static.tgz[Linux], statically linked |
| 88 |
// ** Windows MinGW 32/64 https://sourceforge.net/projects/mlton/files/mlton/20180207/MLton-20180207-1.exe[self-extracting] (28MB) or https://sourceforge.net/projects/mlton/files/mlton/20180207/MLton-20180207-1.msi[MSI] (61MB) installer |
| 89 |
|
| 90 |
== 20180207 source packages |
| 91 |
|
| 92 |
* https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207.src.tgz[mlton-20180207.src.tgz] |
| 93 |
|
| 94 |
== Also see |
| 95 |
|
| 96 |
* <<Bugs20180207#>> |
| 97 |
* http://www.mlton.org/guide/20180207/[MLton Guide (20180207)]. |
| 98 |
+ |
| 99 |
A snapshot of the MLton website at the time of release. |