<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.8">
<title>Projects</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 20130715</a>
</div>
</div>
<div id="header">
<h1>Projects</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>We have lots of ideas for projects to improve MLton, many of which we
do not have time to implement, or at least haven&#8217;t started on yet.
Here is a list of some of those improvements, ranging from the easy (1
week) to the difficult (several months).  If you have any interest in
working on one of these, or some other improvement to MLton not listed
here, please send mail to
<a href="mailto:MLton-devel@mlton.org"><span class="monospaced">MLton-devel@mlton.org</span></a>.</p></div>
<div class="ulist"><ul>
<li>
<p>
Port to new platform: Windows (native, not Cygwin or MinGW), &#8230;
</p>
</li>
<li>
<p>
Source-level debugger
</p>
</li>
<li>
<p>
Heap profiler
</p>
</li>
<li>
<p>
Interfaces to libraries: OpenGL, Gtk+, D-BUS, &#8230;
</p>
</li>
<li>
<p>
More libraries written in SML (see <a href="https://github.com/MLton/mltonlib"><span class="monospaced">mltonlib</span></a>)
</p>
</li>
<li>
<p>
Additional constant types: <span class="monospaced">structure Real80: REAL</span>, &#8230;
</p>
</li>
<li>
<p>
An IDE (possibly integrated with <a href="Eclipse">Eclipse</a>)
</p>
</li>
<li>
<p>
Port MLRISC and use for code generation
</p>
</li>
<li>
<p>
Optimizations
</p>
<div class="ulist"><ul>
<li>
<p>
Improved closure representation
</p>
<div class="paragraph"><p>Right now, MLton&#8217;s closure conversion algorithm uses a simple flat closure to represent each function.</p></div>
<div class="ulist"><ul>
<li>
<p>
<a href="http://www.mlton.org/pipermail/mlton/2003-October/024570.html">http://www.mlton.org/pipermail/mlton/2003-October/024570.html</a>
</p>
</li>
<li>
<p>
<a href="http://www.mlton.org/pipermail/mlton-user/2007-July/001150.html">http://www.mlton.org/pipermail/mlton-user/2007-July/001150.html</a>
</p>
</li>
<li>
<p>
<a href="References#ShaoAppel94">ShaoAppel94</a>
</p>
</li>
</ul></div>
</li>
<li>
<p>
Elimination of array bounds checks in loops
</p>
</li>
<li>
<p>
Elimination of overflow checks on array index computations
</p>
</li>
<li>
<p>
Common-subexpression elimination of repeated array subscripts
</p>
</li>
<li>
<p>
Loop-invariant code motion, especially for tuple selects
</p>
</li>
<li>
<p>
Partial redundancy elimination
</p>
<div class="ulist"><ul>
<li>
<p>
<a href="http://www.mlton.org/pipermail/mlton/2006-April/028598.html">http://www.mlton.org/pipermail/mlton/2006-April/028598.html</a>
</p>
</li>
</ul></div>
</li>
<li>
<p>
Loop unrolling, especially for small loops
</p>
</li>
<li>
<p>
Auto-vectorization, for MMX/SSE/3DNow!/AltiVec (see the <a href="http://gcc.gnu.org/projects/tree-ssa/vectorization.html">work done on GCC</a>)
</p>
</li>
<li>
<p>
Optimize <span class="monospaced">MLton_eq</span>: pointer equality is necessarily false when one of the arguments is freshly allocated in the block
</p>
</li>
</ul></div>
</li>
<li>
<p>
Analyses
</p>
<div class="ulist"><ul>
<li>
<p>
Uncaught exception analysis
</p>
</li>
</ul></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>
