/usr/share/doc/mlton/guide/Features is in mlton-doc 20100608-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="robots" content="index,nofollow">
<title>Features - MLton Standard ML Compiler (SML Compiler)</title>
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="all" href="common.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="screen" href="screen.css">
<link rel="stylesheet" type="text/css" charset="iso-8859-1" media="print" href="print.css">
<link rel="Start" href="Home">
</head>
<body lang="en" dir="ltr">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-833377-1";
urchinTracker();
</script>
<table bgcolor = lightblue cellspacing = 0 style = "border: 0px;" width = 100%>
<tr>
<td style = "
border: 0px;
color: darkblue;
font-size: 150%;
text-align: left;">
<a class = mltona href="Home">MLton MLTONWIKIVERSION</a>
<td style = "
border: 0px;
font-size: 150%;
text-align: center;
width: 50%;">
Features
<td style = "
border: 0px;
text-align: right;">
<table cellspacing = 0 style = "border: 0px">
<tr style = "vertical-align: middle;">
</table>
<tr style = "background-color: white;">
<td colspan = 3
style = "
border: 0px;
font-size:70%;
text-align: right;">
<a href = "Home">Home</a>
<a href = "TitleIndex">Index</a>
</table>
<div id="content" lang="en" dir="ltr">
MLton has the following features. <h2 id="head-b307b88c84327b1804aee227595be53342245965">Portability</h2>
<ul>
<li>
<p>
Runs on a variety of platforms.
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnARM">ARM</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnAlpha">Alpha</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnAMD64">AMD64</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnDarwin">Darwin</a> (Mac OS X)
</p>
</li>
<li>
<p>
<a href="RunningOnFreeBSD">FreeBSD</a>
</p>
</li>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian, Fedora, ...)
</p>
</li>
<li>
<p>
<a href="RunningOnSolaris">Solaris</a> (10 and above)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnHPPA">HPPA</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnHPUX">HPUX</a> (11.11 and above)
</p>
</li>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnIA64">IA64</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnHPUX">HPUX</a> (11.11 and above)
</p>
</li>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnPowerPC">PowerPC</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnAIX">AIX</a> (5.2 and above)
</p>
</li>
<li>
<p>
<a href="RunningOnDarwin">Darwin</a> (Mac OS X)
</p>
</li>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian, Fedora)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnPowerPC64">PowerPC64</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnAIX">AIX</a> (5.2 and above)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnS390">S390</a>
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnSparc">Sparc</a>
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian)
</p>
</li>
<li>
<p>
<a href="RunningOnSolaris">Solaris</a> (8 and above)
</p>
</li>
</ul>
<li class="gap">
<p>
<a href="RunningOnX86">X86</a>:
</p>
</li>
<ul>
<li>
<p>
<a href="RunningOnCygwin">Cygwin</a>/Windows
</p>
</li>
<li>
<p>
<a href="RunningOnDarwin">Darwin</a> (Mac OS X)
</p>
</li>
<li>
<p>
<a href="RunningOnFreeBSD">FreeBSD</a>
</p>
</li>
<li>
<p>
<a href="RunningOnLinux">Linux</a> (Debian, Fedora, ...)
</p>
</li>
<li>
<p>
<a href="RunningOnMinGW">MinGW</a>/Windows
</p>
</li>
<li>
<p>
<a href="RunningOnNetBSD">NetBSD</a>
</p>
</li>
<li>
<p>
<a href="RunningOnOpenBSD">OpenBSD</a>
</p>
</li>
<li>
<p>
<a href="RunningOnSolaris">Solaris</a> (10 and above)
</p>
</li>
</ul>
</ul>
</ul>
<h2 id="head-8aa709faedc93ee0f2dd837347b1b6c2880d34d1">Robustness</h2>
<ul>
<li>
<p>
Supports the full SML 97 language as given in <a href="DefinitionOfStandardML">The Definition of Standard ML (Revised)</a>. <br>
If there is a program that is valid according to The Definition that is rejected by MLton, or a program that is invalid according to the Definition that is accepted by MLton, it is a bug. For a list of known bugs, see <a href="UnresolvedBugs">UnresolvedBugs</a>.
</p>
</li>
<li class="gap">
<p>
A complete implementation of the <a href="BasisLibrary">Basis Library</a>. <br>
MLton's implementation matches latest Basis Library specification, and includes a complete implementation of all the required modules, as well as many of the optional modules.
</p>
</li>
<li class="gap">
<p>
Generates standalone executables. <br>
No additional code or libraries are necessary in order to run an executable, except for the standard shared libraries. MLton can also generate statically linked executables.
</p>
</li>
<li class="gap">
<p>
Compiles large programs. <br>
MLton is sufficiently efficient and robust that it can compile large programs, including itself (over 140K lines). The distributed version of MLton was compiled by MLton.
</p>
</li>
<li class="gap">
<p>
Support for large amounts of memory (up to 4G on 32-bit systems; more on 64-bit systems).
</p>
</li>
<li class="gap">
<p>
Support for large array lengths (up to 2<sup>31</sup> - 1 on 32-bit systems; up to 2<sup>63</sup> - 1 on 64-bit systems).
</p>
</li>
<li class="gap">
<p>
Support for large files, using 64-bit file positions.
</p>
</li>
</ul>
<h2 id="head-63c904559993935c470f516c8b549ca7f3640dbb">Performance</h2>
<ul>
<li>
<p>
Executables have <a href="Performance">excellent running times</a>.
</p>
</li>
<li class="gap">
<p>
Generates small executables. <br>
MLton takes advantage of whole-program compilation to perform very aggressive dead-code elimination, which often leads to smaller executables than with other SML compilers.
</p>
</li>
<li class="gap">
<p>
Untagged and unboxed native integers, reals, and words. <br>
In MLton, integers and words are 8 bits, 16 bits, 32 bits, and 64 bits and arithmetic does not have any overhead due to tagging or boxing. Also, reals (32-bit and 64-bit) are stored unboxed, avoiding any overhead due to boxing.
</p>
</li>
<li class="gap">
<p>
Unboxed native arrays. <br>
In MLton, an array (or vector) of integers, reals, or words uses the natural C-like representation. This is fast and supports easy exchange of data with C. Monomorphic arrays (and vectors) use the same C-like representations as their polymorphic counterparts.
</p>
</li>
<li class="gap">
<p>
Multiple <a href="GarbageCollection">garbage collection</a> strategies.
</p>
</li>
<li class="gap">
<p>
Fast arbitrary precision arithmetic (<tt>IntInf</tt>) based on the <a href="GnuMP">GnuMP</a>. <br>
For <tt>IntInf</tt> intensive programs, MLton can be an order of magnitude or more faster than Poly/ML or SML/NJ.
</p>
</li>
</ul>
<h2 id="head-4fa8cc860c52b268dc6a3adcde7305e9415db5bb">Tools</h2>
<ul>
<li>
<p>
Source-level <a href="Profiling">Profiling</a> of both time and allocation.
</p>
</li>
<li>
<p>
<a href="MLLex">MLLex</a> lexer generator
</p>
</li>
<li>
<p>
<a href="MLYacc">MLYacc</a> parser generator
</p>
</li>
<li>
<p>
<a href="MLNLFFIGen">MLNLFFIGen</a> foreign-function-interface generator
</p>
</li>
</ul>
<h2 id="head-656bcfe284e2da39c77d4fdab55b16ad3c654719">Extensions</h2>
<ul>
<li>
<p>
A simple and fast C <a href="ForeignFunctionInterface">ForeignFunctionInterface</a> that supports calling from SML to C and from C to SML.
</p>
</li>
<li class="gap">
<p>
The <a href="MLBasis">ML Basis system</a> for programming in the very large, separate delivery of library sources, and more.
</p>
</li>
<li class="gap">
<p>
A number of extension libraries that provide useful functionality that cannot be implemented with the <a href="BasisLibrary">Basis Library</a>. See below for an overview and <a href="MLtonStructure">MLtonStructure</a> for details.
</p>
</li>
<ul>
<li>
<p>
<a href="MLtonCont">continuations</a> <br>
MLton supports continuations via <tt>callcc</tt> and <tt>throw</tt>.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonFinalizable">finalization</a> <br>
MLton supports finalizable values of arbitrary type.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonItimer">interval timers</a> <br>
MLton supports the functionality of the C <tt>setitimer</tt> function.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonRandom">random numbers</a> <br>
MLton has functions similar to the C <tt>rand</tt> and <tt>srand</tt> functions, as well as support for access to <tt>/dev/random</tt> and <tt>/dev/urandom</tt>.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonRlimit">resource limits</a> <br>
MLton has functions similar to the C <tt>getrlimit</tt> and <tt>setrlimit</tt> functions.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonRusage">resource usage</a> <br>
MLton supports a subset of the functionality of the C <tt>getrusage</tt> function.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonSignal">signal handlers</a> <br>
MLton supports signal handlers written in SML. Signal handlers run in a separate MLton thread, and have access to the thread that was interrupted by the signal. Signal handlers can be used in conjunction with threads to implement preemptive multitasking.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonStructure">size primitive</a> <br>
MLton includes a primitive that returns the size (in bytes) of any object. This can be useful in understanding the space behavior of a program.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonSyslog">system logging</a> <br>
MLton has a complete interface to the C <tt>syslog</tt> function.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonThread">threads</a> <br>
MLton has support for its own threads, upon which either preemptive or non-preemptive multitasking can be implemented. MLton also has support for <a href="ConcurrentML">Concurrent ML</a> (CML).
</p>
</li>
<li class="gap">
<p>
<a href="MLtonWeak">weak pointers</a> <br>
MLton supports weak pointers, which allow the garbage collector to reclaim objects that it would otherwise be forced to keep. Weak pointers are also used to provide finalization.
</p>
</li>
<li class="gap">
<p>
<a href="MLtonWorld">world save and restore</a> <br>
MLton has a facility for saving the entire state of a computation to a file and restarting it later. This facility can be used for staging and for checkpointing computations. It can even be used from within signal handlers, allowing interrupt driven checkpointing.
</p>
</li>
</ul>
</ul>
</div>
<p>
<hr>
Last edited on 2010-06-08 14:13:42 by <span title="fenrir.cs.rit.edu"><a href="MatthewFluet">MatthewFluet</a></span>.
</body></html>
|