<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.9">
<title>Release20180207</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css">
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20180207</a>
</div>
</div>
<div id="header">
<h1>Release20180207</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>Here you can download the latest public release of MLton, version 20180207.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_changes_since_the_last_public_release">Changes since the last public release</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
Compiler.
</p>
<div class="ulist"><ul>
<li>
<p>
Added an experimental LLVM codegen (<span class="monospaced">-codegen llvm</span>); requires LLVM tools
  (<span class="monospaced">llvm-as</span>, <span class="monospaced">opt</span>, <span class="monospaced">llc</span>) version &ge; 3.7.
</p>
</li>
<li>
<p>
Made many substantial cosmetic improvements to front-end diagnostic
  messages, especially with respect to source location regions, type inference
  for <span class="monospaced">fun</span> and <span class="monospaced">val rec</span> declarations, signature constraints applied to a
  structure, <span class="monospaced">sharing type</span> specifications and <span class="monospaced">where type</span> signature
  expressions, type constructor or type variable escaping scope, and
  nonexhaustive pattern matching.
</p>
</li>
<li>
<p>
Fixed minor bugs with exception replication, precedence parsing of function
  clauses, and simultaneous <span class="monospaced">sharing</span> of multiple structures.
</p>
</li>
<li>
<p>
Made compilation deterministic (eliminate output executable name from
  compile-time specified <span class="monospaced">@MLton</span> runtime arguments; deterministically generate
  magic constant for executable).
</p>
</li>
<li>
<p>
Updated <span class="monospaced">-show-basis</span> (recursively expand structures in environments,
  displaying components with long identifiers; append <span class="monospaced">(* @ region *)</span>
  annotations to items shown in environment).
</p>
</li>
<li>
<p>
Forced amd64 codegen to generate PIC on amd64-linux targets.
</p>
</li>
</ul></div>
</li>
<li>
<p>
Runtime.
</p>
<div class="ulist"><ul>
<li>
<p>
Added <span class="monospaced">gc-summary-file file</span> runtime option.
</p>
</li>
<li>
<p>
Reorganized runtime support for <span class="monospaced">IntInf</span> operations so that programs that
  do not use <span class="monospaced">IntInf</span> compile to executables with no residual dependency on GMP.
</p>
</li>
<li>
<p>
Changed heap representation to store forwarding pointer for an object in
  the object header (rather than in the object data and setting the header to a
  sentinel value).
</p>
</li>
</ul></div>
</li>
<li>
<p>
Language.
</p>
<div class="ulist"><ul>
<li>
<p>
Added support for selected SuccessorML features; see
  <a href="http://mlton.org/SuccessorML">http://mlton.org/SuccessorML</a> for details.
</p>
</li>
<li>
<p>
Added <span class="monospaced">(*#showBasis "file" *)</span> directive; see
  <a href="http://mlton.org/ShowBasisDirective">http://mlton.org/ShowBasisDirective</a> for details.
</p>
</li>
<li>
<p>
FFI:
</p>
<div class="ulist"><ul>
<li>
<p>
Added <span class="monospaced">pure</span>, <span class="monospaced">impure</span>, and <span class="monospaced">reentrant</span> attributes to <span class="monospaced">_import</span>.  An
    unattributed <span class="monospaced">_import</span> is treated as <span class="monospaced">impure</span>.  A <span class="monospaced">pure</span> <span class="monospaced">_import</span> may be
    subject to more aggressive optimizations (common subexpression elimination,
    dead-code elimination).  An <span class="monospaced">_import</span>-ed C function that (directly or
    indirectly) calls an <span class="monospaced">_export</span>-ed SML function should be attributed
    <span class="monospaced">reentrant</span>.
</p>
</li>
</ul></div>
</li>
<li>
<p>
ML Basis annotations.
</p>
<div class="ulist"><ul>
<li>
<p>
Added <span class="monospaced">allowSuccessorML {false|true}</span> to enable all SuccessorML features
    and other annotations to enable specific SuccessorML features; see
    <a href="http://mlton.org/SuccessorML">http://mlton.org/SuccessorML</a> for details.
</p>
</li>
<li>
<p>
Split <span class="monospaced">nonexhaustiveMatch {warn|error|igore}</span> and <span class="monospaced">redundantMatch
    {warn|error|ignore}</span> into <span class="monospaced">nonexhaustiveMatch</span> and <span class="monospaced">redundantMatch</span>
    (controls diagnostics for <span class="monospaced">case</span> expressions, <span class="monospaced">fn</span> expressions, and <span class="monospaced">fun</span>
    declarations (which may raise <span class="monospaced">Match</span> on failure)) and <span class="monospaced">nonexhaustiveBind</span>
    and <span class="monospaced">redundantBind</span> (controls diagnostics for <span class="monospaced">val</span> declarations (which may
    raise <span class="monospaced">Bind</span> on failure)).
</p>
</li>
<li>
<p>
Added <span class="monospaced">valrecConstr {warn|error|ignore}</span> to report when a <span class="monospaced">val rec</span> (or
    <span class="monospaced">fun</span>) declaration redefines an identifier that previously had constructor
    status.
</p>
</li>
</ul></div>
</li>
</ul></div>
</li>
<li>
<p>
Libraries.
</p>
<div class="ulist"><ul>
<li>
<p>
Basis Library.
</p>
<div class="ulist"><ul>
<li>
<p>
Improved performance of <span class="monospaced">Array.copy</span>, <span class="monospaced">Array.copyVec</span>, <span class="monospaced">Vector.append</span>,
    <span class="monospaced">String.^</span>, <span class="monospaced">String.concat</span>, <span class="monospaced">String.concatWith</span>, and other related
    functions by using <span class="monospaced">memmove</span> rather than element-by-element constructions.
</p>
</li>
</ul></div>
</li>
<li>
<p>
<span class="monospaced">Unsafe</span> structure.
</p>
<div class="ulist"><ul>
<li>
<p>
Added unsafe operations for array uninitialization and raw arrays; see
    <a href="https://github.com/MLton/mlton/pull/207">https://github.com/MLton/mlton/pull/207</a> for details.
</p>
</li>
</ul></div>
</li>
<li>
<p>
Other libraries.
</p>
<div class="ulist"><ul>
<li>
<p>
Updated: ckit library, MLLPT library, MLRISC library, SML/NJ library
</p>
</li>
</ul></div>
</li>
</ul></div>
</li>
<li>
<p>
Tools.
</p>
<div class="ulist"><ul>
<li>
<p>
mlnlffigen
</p>
<div class="ulist"><ul>
<li>
<p>
Updated to warn and skip (rather than abort) when encountering functions
    with <span class="monospaced">struct</span>/<span class="monospaced">union</span> argument or return type.
</p>
</li>
</ul></div>
</li>
</ul></div>
</li>
</ul></div>
<div class="paragraph"><p>For a complete list of changes and bug fixes since
<a href="Release20130715">Release20130715</a>, see the
<a href="https://github.com/MLton/mlton/blob/on-20180207-release/CHANGELOG.adoc"><span class="monospaced">CHANGELOG.adoc</span></a> and
<a href="Bugs20130715">Bugs20130715</a>.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_20180207_binary_packages">20180207 binary packages</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
AMD64 (aka "x86-64" or "x64")
</p>
<div class="ulist"><ul>
<li>
<p>
<a href="https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.amd64-darwin.gmp-homebrew.tgz">Darwin (.tgz)</a> 16.7 (Mac OS X Sierra), dynamically linked against <a href="GnuMP">GnuMP</a> in <span class="monospaced">/usr/local/lib</span> (suitable for <a href="https://brew.sh/">Homebrew</a> install of <a href="GnuMP">GnuMP</a>)
</p>
</li>
<li>
<p>
<a href="https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.amd64-darwin.gmp-static.tgz">Darwin (.tgz)</a> 16.7 (Mac OS X Sierra), statically linked against <a href="GnuMP">GnuMP</a> (but requires <a href="GnuMP">GnuMP</a> for generated executables)
</p>
</li>
<li>
<p>
<a href="https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207-1.amd64-linux.tgz">Linux</a>, glibc 2.23





</p>
</li>
</ul></div>
</li>
</ul></div>
</div>
</div>
<div class="sect1">
<h2 id="_20180207_source_packages">20180207 source packages</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
<a href="https://sourceforge.net/projects/mlton/files/mlton/20180207/mlton-20180207.src.tgz">mlton-20180207.src.tgz</a>
</p>
</li>
</ul></div>
</div>
</div>
<div class="sect1">
<h2 id="_also_see">Also see</h2>
<div class="sectionbody">
<div class="ulist"><ul>
<li>
<p>
<a href="Bugs20180207">Bugs20180207</a>
</p>
</li>
<li>
<p>
<a href="http://www.mlton.org/guide/20180207/">MLton Guide (20180207)</a>.
</p>
<div class="paragraph"><p>A snapshot of the MLton website at the time of release.</p></div>
</li>
</ul></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
