Debian Codegraph @

doc/guide/src/History.adoc

raw
1 = History
2
3 In April 1997, Stephen Weeks wrote a defunctorizer for Standard ML and
4 integrated it with SML/NJ. The defunctorizer used SML/NJ's visible
5 compiler and operated on the `Ast` intermediate representation
6 produced by the SML/NJ front end. Experiments showed that
7 defunctorization gave a speedup of up to six times over separate
8 compilation and up to two times over batch compilation without functor
9 expansion.
10
11 In August 1997, we began development of an independent compiler for
12 SML. At the time the compiler was called `smlc`. By October, we had
13 a working monomorphiser. By November, we added a polyvariant
14 higher-order control-flow analysis. At that point, MLton was about
15 10,000 lines of code.
16
17 Over the next year and half, `smlc` morphed into a full-fledged
18 compiler for SML. It was renamed MLton, and first released in March
19 1999.
20
21 From the start, MLton has been driven by whole-program optimization
22 and an emphasis on performance. Also from the start, MLton has had a
23 fast C FFI and `IntInf` based on the GNU multiprecision library. At
24 its first release, MLton was 48,006 lines.
25
26 Between the March 1999 and January 2002, MLton grew to 102,541 lines,
27 as we added a native code generator, mllex, mlyacc, a profiler, many
28 optimizations, and many libraries including threads and signal
29 handling.
30
31 During 2002, MLton grew to 112,204 lines and we had releases in April
32 and September. We added support for cross compilation and used this
33 to enable MLton to run on Cygwin/Windows and FreeBSD. We also made
34 improvements to the garbage collector, so that it now works with large
35 arrays and up to 4G of memory and so that it automatically uses
36 copying, mark-compact, or generational collection depending on heap
37 usage and RAM size. We also continued improvements to the optimizer
38 and libraries.
39
40 During 2003, MLton grew to 122,299 lines and we had releases in March
41 and July. We extended the profiler to support source-level profiling
42 of time and allocation and to display call graphs. We completed the
43 Basis Library implementation, and added new MLton-specific libraries
44 for weak pointers and finalization. We extended the FFI to allow
45 callbacks from C to SML. We added support for the Sparc/Solaris
46 platform, and made many improvements to the C code generator.