Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /doc/trunk/src/changelog/HISTORY.txt
ViewVC logotype

Annotation of /doc/trunk/src/changelog/HISTORY.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4619 - (view) (download)

1 : jhr 4603 = Standard ML of New Jersey Change Log
2 : jhr 3992 The Fellowship of SML/NJ
3 : jhr 4603 :revnumber: {version}
4 :     :revdate: {releasedate}
5 :     :source-highlighter: pygments
6 : jhr 3992
7 : jhr 4468 This file documents changes to the *Standard ML of New Jersey* system since
8 : jhr 4002 March of 2000 (around Version 110.26). The change log primarily covers
9 :     the compiler, the compilation manager (*CM*), the *MLRISC* library, and
10 :     the runtime system. There are occasional entries about other components
11 :     (_e.g._, the *SML/NJ Library* and *ML-LPT*), but these components have
12 :     their own change logs that should be consulted.
13 :    
14 : jhr 3992 //////////////////////////////////////////////////////////////////////
15 :     This change log is in ASCII doc format. An HTML version of the
16 :     change log can be generated using the command
17 :    
18 : jhr 4049 make html
19 : jhr 3992
20 :     An entry should be made for _every_ commit to the repository.
21 :     The entries in this file will be used when creating the README
22 :     for new versions, so keep that in mind when writing the
23 :     description.
24 :    
25 : jhr 4603 Also note that we now use Asciidoctor (asciidoctor.org) to process the
26 :     file, since the original Asciidoc is no longer under active development
27 :     and asciidoctor is also faster.
28 : jhr 3992 The structure of the HISTORY is that there is a section for
29 :     each release, which starts with a section header of the form
30 :    
31 :     == Version xxx.yy; yyyy/mm/dd
32 :    
33 :     The content of a section is a list of entries. The form of an
34 :     entry should be:
35 :    
36 :     [yyy/mm/dd]::
37 :     +
38 : jhr 3995 Description ...
39 : jhr 3992 +
40 : jhr 4603 owner:URL[Your Name]
41 : jhr 3992
42 : jhr 3995 Note that we put "+" at the beginning of blank lines. Entries are items
43 :     in a labeled list and the "+" character keeps eveything in the same list
44 :     element.
45 :    
46 : jhr 3992 Here is a quick asciidoc cheat sheet:
47 :    
48 :     + new paragraph
49 :     *foo* bold "foo"
50 :     _foo_ italic "foo"
51 : jhr 4603 `foo` teletype "foo"
52 : jhr 3992 http:/some.website.org/path[] URL
53 : jhr 4603 bugref:123[] displays as "#123" with
54 : jhr 3992 a link to the bug report.
55 : jhr 4603 bugref:123[feature] displays as "#123" with a
56 : jhr 4134 link to the feature request.
57 : jhr 4603 owner:url[name] displays name with URL link.
58 : jhr 3992
59 : jhr 3995 Sub lists should be bracketed with lines containing just "--".
60 : jhr 3992 Bulleted list items start with a single dash or one to five
61 : dbm 4298 asterisks followed by some white space then some text. Numbered
62 : jhr 3992 list items begin one to five period characters, followed by
63 :     some white space then the item text.
64 :    
65 : jhr 3995 Literal (verbatim) blocks are delimited by
66 :     .....................
67 :     stuff
68 :     .....................
69 :    
70 : jhr 3992 Superscripts and subscripts are denoted by putting ^ (or ~)
71 :     around the text to superscripted (superscripted). For example,
72 :     the number 256 can be written as 2^8^.
73 :    
74 :     SML source code displays can be included as source blocks:
75 :    
76 :     [source,sml]
77 :     ------------
78 :     structure Foo = struct val x = 1 end
79 :     ------------
80 :    
81 : jhr 4603 To process the file, you will need asciidoctor and the pygments.rb gem
82 :     installed. See the Asciidoctor manual at https://asciidoctor.org/docs/user-manual
83 :     for more information.
84 : jhr 3992
85 : jhr 4002 NOTE: the original HISTORY file was converted to ASCIIDOC using a Perl
86 :     script. This script gets the basic structure for entries correct,
87 :     but there still needs to be a fair bit of editing to add ASCIIDOC
88 :     markup, fix indentation issues, nested lists, etc. Working from most
89 :     recent to oldest, I've edited back to release 110.46 (2004/06/17).
90 :    
91 : jhr 3992 //////////////////////////////////////////////////////////////////////
92 :    
93 : jhr 4157 //====================================================================
94 : jhr 4501 == Recent updates
95 : jhr 4220
96 : jhr 4501 //--------------------------------------------------------------------
97 : jhr 4619 [2018/05/28]::
98 :     +
99 :     Fixed the scanner to produce the correct error message for bad escape
100 :     sequences in string literals.
101 :     +
102 :     owner:cs.uchicago.edu/~jhr[John Reppy]
103 :    
104 :     //--------------------------------------------------------------------
105 : jhr 4614 [2018/05/26]::
106 :     +
107 : jhr 4619 Fixed open bug number 1383: `Char.toCString #"\000"` returned `"\\0"`,
108 :     instead of `"\\000"`, which caused `String.toCString` to produce invalid
109 :     results.
110 : jhr 4614 +
111 :     owner:cs.uchicago.edu/~jhr[John Reppy]
112 :    
113 :     //--------------------------------------------------------------------
114 : jhr 4610 [2018/05/19]::
115 :     +
116 :     Fix for bug bugref:201[] (The AMD64.cm library is missing).
117 :     +
118 :     owner:cs.uchicago.edu/~jhr[John Reppy]
119 :    
120 :     //--------------------------------------------------------------------
121 : jhr 4607 [2018/05/18]::
122 :     +
123 :     Added `MONO_BUFFER` signature, with instances `CharBuffer` and `Word8Buffer`,
124 :     to Basis implementation
125 :     (https://github.com/SMLFamily/BasisLibrary/wiki/2018-001-Addition-of-monomorphic-buffers[
126 :     Basis Library Proposal 2018-001]).
127 :     +
128 :     owner:cs.uchicago.edu/~jhr[John Reppy]
129 :    
130 :     //--------------------------------------------------------------------
131 : jhr 4601 [2018/05/16]::
132 :     +
133 : jhr 4603 Fix a bug where "`0w`" was being accepted as a prefix for a hexidecimal
134 :     word value in `Word.fromString`/`scan` (ignoring case, only "`0x`"
135 :     and "`0wx`" are valid prefixes). This change fixes bug number 1375
136 : jhr 4601 from the old openbugs list.
137 :     +
138 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
139 : jhr 4601
140 :     //--------------------------------------------------------------------
141 : jhr 4596 [2018/05/13]::
142 :     +
143 :     Fixed a bug in the parsing of bindings involving the `op` keyword.
144 :     The parser was more restrictive than the definition. This change
145 :     fixes bug number 1370 from the old openbugs list.
146 :     +
147 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
148 : jhr 4596
149 :     //--------------------------------------------------------------------
150 : jhr 4585 [2018/05/12]::
151 :     +
152 : jhr 4603 The lexer gave an unmatched close comment error on "`*)`", when it
153 :     should have scanned it as the tokens "`*`" "**)**". This change
154 : jhr 4596 fixes bug number 330 in the old openbugs list.
155 : jhr 4585 +
156 :     **Note**: there is some ambiguity as to what the correct behavior
157 :     should be here. The Definition of Standard ML (1997) only says that
158 :     unmatched __open__ comments should be signalled as errors, but the
159 :     Commentary on the Definition of Standard ML says otherwise in
160 :     Appendix D. **SML/NJ** started signalling an error in version 0.71,
161 : jhr 4607 but we choose to revert to accepting this sequence, to match
162 :     the 1997 Definition (and the behavior of other systems).
163 : jhr 4585 +
164 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
165 : jhr 4585
166 :     //--------------------------------------------------------------------
167 : jhr 4572 [2018/05/07]::
168 :     +
169 : jhr 4576 The `sameSign` function returned incorrect results in the `Int31`
170 :     and `Int32` modules.
171 :     +
172 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
173 : jhr 4576
174 :     //--------------------------------------------------------------------
175 :     [2018/05/07]::
176 :     +
177 : jhr 4572 Fixed various minor parsing and scanning issues:
178 :     +
179 :     --
180 :     * correct syntax for type variables
181 :     * signature/structure/functor IDs should always be alpha IDs
182 : jhr 4596 * the equality ID (`=`) cannot appear in a binding context. Note that
183 :     we still allow the syntax `val op = = ...` because it is needed to
184 :     parse the file `system/smlnj/init/built-in.sml`.
185 : jhr 4572 --
186 :     +
187 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
188 : jhr 4572
189 :     //--------------------------------------------------------------------
190 : jhr 4562 [2018/05/05]::
191 :     +
192 :     Completed overhaul of the way that int/word literals are handled in
193 :     the compiler. We now use `IntInf.int` to represent the values in
194 :     all IRs. This change also results in better CPS contraction, since
195 :     we now perform constant folding for both signed and unsigned values
196 :     at all sizes. We were also able to get rid of the tricky code that
197 :     worries about large tagged integer values that might cause overflow
198 :     during code generation.
199 :     +
200 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
201 : jhr 4562
202 :     //--------------------------------------------------------------------
203 : jhr 4539 [2018/04/21]::
204 :     +
205 :     Improved the reporting of errors involving literal values. We now
206 :     use the original source text when describing the value in the error
207 :     message.
208 :     +
209 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
210 : jhr 4539
211 :     //--------------------------------------------------------------------
212 : jhr 4533 [2018/04/20]::
213 :     +
214 : jhr 4603 Fix for bug bugref:191[] (Compiler crash when handling large reals).
215 : jhr 4533 We now issue a warning for real literals that will round to zero and
216 :     an error for real literals that are too large to represent. There
217 :     still needs to be done some work to support sub-normal literal values
218 :     (these are currently rounded to zero).
219 :     +
220 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
221 : jhr 4533
222 :     //--------------------------------------------------------------------
223 : jhr 4528 [2018/04/14]::
224 :     +
225 : jhr 4603 Changed the representation of real literals from strings to `RealLit.t`.
226 : jhr 4528 +
227 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
228 : jhr 4528
229 :     //--------------------------------------------------------------------
230 : jhr 4524 [2018/04/13]::
231 :     +
232 :     Removed real patterns from Absyn and FLINT, since they are not allowed
233 :     by SML'93 and were not present in the AST representation.
234 :     +
235 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
236 : jhr 4524
237 :     //--------------------------------------------------------------------
238 : jhr 4521 [2018/04/12]::
239 :     +
240 : jhr 4603 Fix for bug bugref:194[] (`Real.fromString` overflows or hangs). There
241 :     were two issues here. First, the `Overflow` exception was being raised
242 : jhr 4521 when scanning large exponents, but it was not being handled by the
243 : jhr 4596 scanning code. The second issue was that the scaling loop for large
244 :     exponents did not immediately terminate once infinity (or zero) was
245 :     reached, so it could take a long time.
246 : jhr 4521 +
247 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
248 : jhr 4521
249 :     //--------------------------------------------------------------------
250 : jhr 4501 [2017/10/16]::
251 :     +
252 :     Moved the check for whether a int or word literal is in range for
253 :     its type from the absyn->plambda translation to the overload
254 : jhr 4603 resolver (`compiler/Elaborator/types/overload.sml`).
255 : jhr 4501 +
256 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
257 : jhr 4501
258 :     //--------------------------------------------------------------------
259 :     [2017/10/14]::
260 :     +
261 :     Part 1 of an overhaul of the way that the compiler treats int/word
262 : jhr 4603 literals. The end goal is to use `IntInf.int` to represent literals
263 : jhr 4501 throughout all phases of the compiler. In this step, we changed the
264 : jhr 4603 representation of literals in the `Absyn` representation (earlier
265 : jhr 4501 representations already used IntInf.int).
266 :     +
267 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
268 : jhr 4501
269 : jhr 4467 //====================================================================
270 :     == Version 110.82; 2017/10/16
271 :    
272 : jhr 4366 //--------------------------------------------------------------------
273 : jhr 4461 [2017/10/01]::
274 :     +
275 : jhr 4603 Fixed unnumbered bug in `IntInf.mod` and `IntInf.rem` functions,
276 :     where the `Div` exception was *not* getting raised when both
277 :     arguments are `0`.
278 : jhr 4461 +
279 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
280 : jhr 4461
281 :     //--------------------------------------------------------------------
282 : jhr 4467 [2017/09/20]::
283 :     +
284 : jhr 4468 Various bits of cleanup in the handling of primitive operations, such
285 : jhr 4603 as removing the `ptnum` mechanism for translating from Absyn to FLINT.
286 : jhr 4468 +
287 : jhr 4603 owner:cs.uchicago.edu/~dbm[David MacQueen]
288 : jhr 4468
289 :     //--------------------------------------------------------------------
290 :     [2017/09/20]::
291 :     +
292 : jhr 4603 Added `Target` module, which specifies the properties of the target
293 : jhr 4467 (__e.g.__, the size in bits of the default int type). Reworked the
294 : jhr 4603 generation of the `InlineT` structure to be target specific.
295 : jhr 4467 +
296 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
297 : jhr 4467
298 :     //--------------------------------------------------------------------
299 : jhr 4413 [2017/09/18]::
300 :     +
301 : jhr 4420 Removed FLINT primops (and their CPS counterparts) that are not
302 : jhr 4603 in the `InlineT` structure and, thus, are never used by the compiler.
303 : jhr 4420 +
304 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
305 : jhr 4420
306 :     //--------------------------------------------------------------------
307 :     [2017/09/18]::
308 :     +
309 : jhr 4603 Fixed bug bugref:123[] (missing nonexhaustive bind warning). The `mkVBs`
310 :     function in `FLINT/trans/translate.sml` was adding a redundant default
311 :     rule by calling `ElabUtil.completeMatch` after a default rule had
312 : jhr 4417 already been explicitly added to the match for let bindings.
313 : dbm 4415 +
314 : jhr 4603 owner:cs.uchicago.edu/~dbm[David MacQueen]
315 : dbm 4415
316 :     //--------------------------------------------------------------------
317 :     [2017/09/18]::
318 :     +
319 : jhr 4603 Fixed bug bugref:183[] (status code returned by sml REPL). This fix
320 :     restores the version 110.79 behavior of having `sml foo.sml` exit with
321 :     a non-zero status when there is a type-checking error in `foo.sml`.
322 :     It also cleans up the error messages associated with `use` when there
323 : jhr 4413 is a syntax error.
324 :     +
325 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
326 : jhr 4413
327 :     //--------------------------------------------------------------------
328 : jhr 4399 [2017/08/28]::
329 :     +
330 : jhr 4603 Fixed bug bugref:185[] (Bring command line help text into parity with man page).
331 :     Added missing options (`@SMLversion` and `@SMLsuffix`) to the
332 :     help message that is printed for the command "`sml -h`". Also
333 : jhr 4399 adjusted the order of options in the help message, and in the man
334 :     page, so that the orders match.
335 :     +
336 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
337 : jhr 4399
338 :     //--------------------------------------------------------------------
339 : jhr 4375 [2017/08/12]::
340 :     +
341 :     Changed the way that we test for allocation-space addresses in minor GCs.
342 :     Instead of using the BIBOP, we now do a pointer range test. On 32-bit
343 :     systems, this change results in a small (~0.13%) performance boost, but
344 :     we expect a bigger impact on 64-bit hardware, where the cost of BIBOP
345 :     probes will be higher and there are more registers available to hold
346 :     the nursery bounds.
347 :     +
348 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
349 : jhr 4375
350 :     //--------------------------------------------------------------------
351 :     [2017/08/12]::
352 :     +
353 :     Fixed some issues in build-literals.c. These were mostly false
354 :     positives in the assertions, but there was also a bug in the way
355 :     that the available space was tracked that could conceivably
356 :     result in a crash (but was very unlikely).
357 :     +
358 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
359 : jhr 4375
360 :     //--------------------------------------------------------------------
361 : jhr 4368 [2017/06/07]::
362 :     +
363 :     Updated _arch-n-os script to recognize macOS 10.13 (High Sierra)
364 :     as a valid target.
365 :     +
366 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
367 : jhr 4368
368 :     //--------------------------------------------------------------------
369 : jhr 4366 [2017/05/17]::
370 :     +
371 :     Fixed a bug in the way that JSON string values were being printed.
372 : jhr 4468 The code previously assumed that C-style escaping will work, but
373 : jhr 4366 that is not true for "\'" (as well as for control and non-ASCII
374 :     characters). The new implementation assumes that the string value
375 :     is UTF-8 and uses the "\\u" escape sequences for characters outside
376 :     the JSON escapes and printable ASCII characters.
377 :     +
378 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
379 : jhr 4366
380 : jhr 4340 //====================================================================
381 :     == Version 110.81; 2017/05/01
382 :    
383 : jhr 4317 //--------------------------------------------------------------------
384 : jhr 4331 [2017/04/28]::
385 : jhr 4322 +
386 : jhr 4603 Fixed bug bugref:129[] (Symbolic identifiers are allowed as strids).
387 : jhr 4331 +
388 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
389 : jhr 4331
390 :     //--------------------------------------------------------------------
391 :     [2017/04/07]::
392 :     +
393 : jhr 4603 Fixed bug bugref:179[] (ml-ulex writing debug messages to stdOut).
394 : jhr 4331 Both **ml-ulex** and **ml-antlr** now direct their debug and status messages
395 : jhr 4603 to `stdErr` (instead of `stdOut`).
396 : jhr 4331 +
397 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
398 : jhr 4331
399 :     //--------------------------------------------------------------------
400 :     [2017/02/09]::
401 :     +
402 : jhr 4322 Linux distributions are starting to require that the stack be marked
403 :     as non-executable in applications. Because the runtime system includes
404 : jhr 4603 assembly code, this marking was not happening. We've added `.section`
405 :     directives to the `PPC.prim.asm` and `X86.prim.asm` files as
406 : jhr 4322 per https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart#Patching[].
407 :     Thanks to Daniel Moerner for reporting this issue and for providing
408 : jhr 4399 a pointer to the fix.
409 : jhr 4324 +
410 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
411 : jhr 4324
412 :     //--------------------------------------------------------------------
413 : jhr 4320 [2016/10/15]::
414 :     +
415 : jhr 4603 Added `--debug` command-line option to *ml-antlr*.
416 : jhr 4320 This flag causes <b>ml-antlr</b> to generate debug actions that print
417 :     the left-hand-side non-terminal of the production.
418 :     +
419 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
420 : jhr 4320
421 :     //--------------------------------------------------------------------
422 : dbm 4315 [2016/09/15]::
423 :     +
424 : jhr 4317 Working on 64-bit support. Changes include making code generation
425 :     dependent on the target word size and abstracting over the BIBOP
426 :     representation in the runtime system.
427 :     +
428 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
429 : jhr 4317
430 :     //--------------------------------------------------------------------
431 :     [2016/09/15]::
432 :     +
433 : dbm 4315 Further cleanup of the separation of FLINT from the front-end.
434 : jhr 4603 Eliminated all references to `ModulePropLists` (`module-plists.sml`) in
435 :     the front end and in pickling, and moved `module-plists` from
436 :     `Semant/modules` to `FLINT/trans`. `ModulePropLists` is now only used
437 :     in `FLINT/trans/translate.sml`.
438 : dbm 4315 +
439 :     Revision: 4314
440 :     +
441 :     Files changed:
442 :     +
443 :     --
444 : jhr 4603 - `compiler/ElabData/modules/modules.sml` (cleaned up)
445 :     - `compiler/Elaborator/print/ppmod.sml` (cleaned up)
446 :     - `compiler/FLINT/trans/module-plists.sml` (moved from `Semant/modules`)
447 :     - `compiler/Semant/modules/instantiate-param.sml` (deleted)
448 :     - `compiler/Semant/pickle/pickmod.sml` (no longer mentions property lists)
449 :     - `compiler/Semant/pickle/unpickmod.sml` (ditto)
450 :     - `compiler/Semant/statenv/prim.sml`
451 :     - `compiler/Semant/types/tp-var-info.sml` (deleted)
452 :     - `compiler/core.cm` (modified for move of `module-plists.sml`)
453 : dbm 4315 --
454 :     +
455 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
456 : dbm 4315
457 : jhr 4317 //--------------------------------------------------------------------
458 : jhr 4310 [2016/09/14]::
459 :     +
460 : jhr 4603 Eliminated dependency of `PlambdaType` from the front end by adding a
461 :     type `TKind.tkind` which is a simplified standin for `PlambdaType.tkind`
462 :     for use during elaboration. `TKind.tkind` values are translated on
463 :     demand to `PlambdaType.tkind` in `trans/transtypes.sml`. Types still has
464 :     a `tycpath` type but it is defined using `TKind.tkind` now. The new structure
465 :     `SigPropList` replaces `ModulePropLists`
466 :     (`Semant/modules/module-plists.sml`) for use in `instantiate.sml`.
467 :     `Instantiate` is now defined directly as a structure so the functor
468 :     application in `Semant/modules/instantiate.sml` no longer exists.
469 : dbm 4311 +
470 :     Files changed:
471 :     +
472 :     --
473 : jhr 4603 - `ElabData/basics/debindex.sig` (moved here from `Elaborator/basics`)
474 :     - `ElabData/basics/debindex.sml` (ditto)
475 :     - `ElabData/basics/sig-plist.sml` (new)
476 :     - `ElabData/basics/tkind.sml` (new)
477 :     - `ElabData/types/types.sig`
478 :     - `ElabData/types/types.sml`
479 :     - `Elaborator/modules/instantiate.sml`
480 :     - `Elaborator/print/ppmod.sml`
481 :     - `FLINT/trans/transtkind.sml` (new)
482 :     - `FLINT/trans/transtypes.sml`
483 :     - `TopLevel/interact/evalloop.sml`
484 :     - `ElabData/elabdata.cm`
485 :     - `Elaborator/elaborate.cm`
486 :     - `core.cm`
487 : dbm 4311 --
488 :     +
489 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
490 : dbm 4311
491 : jhr 4317 //--------------------------------------------------------------------
492 : dbm 4311 [2016/09/14]::
493 :     +
494 : jhr 4310 Added support for Successor ML record-expression-punning syntax. For
495 : jhr 4603 example, one can now define a function `f` as
496 : jhr 4334 +
497 :     [source,sml]
498 :     ----------------
499 : jhr 4310 fun f x = {x}
500 : jhr 4334 ----------------
501 : jhr 4310 +
502 : jhr 4334 which is equivalent to the definition
503 :     +
504 :     [source,sml]
505 :     ----------------
506 :     fun f x = {x = x}
507 :     ----------------
508 :     +
509 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
510 : jhr 4310
511 : jhr 4317 //--------------------------------------------------------------------
512 : jhr 4310 [2016/09/14]::
513 :     +
514 :     Fixed a bug in the parser. Asterix (`*`) was not allowed as a record label
515 :     when using the record-pattern-punning syntax.
516 :     +
517 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
518 : jhr 4310
519 : jhr 4317 //--------------------------------------------------------------------
520 : jhr 4310 [2016/09/14]::
521 :     +
522 :     Added support for `do exp` *Successor ML* syntax.
523 :     +
524 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
525 : jhr 4310
526 : jhr 4317 //--------------------------------------------------------------------
527 : jhr 4300 [2016/09/12]::
528 :     +
529 : jhr 4603 Fixed bug bugref:153[] (Enabling Successor ML features is delayed).
530 :     We now use a function `Control.setSuccML` to switch to/from *Successor ML*
531 : jhr 4300 mode in the REPL. The function resets the parser, so the next input will
532 : jhr 4603 be correctly parsed. The `Control.succML` flag is no longer visibile
533 : jhr 4300 in the REPL.
534 :     +
535 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
536 : jhr 4300
537 : dbm 4298 //--------------------------------------------------------------------
538 :     [2016/09/12]::
539 :     +
540 : jhr 4603 Fixed bug bugref:149[] (Datatype replication exposes hidden constructors).
541 :     Added boolean field `stripped` to DATATYPE variant of tyckind in
542 :     `compiler/ElabData/types/types.sml` with default value `false`.
543 :     `stripped` is set to true when a datatype is matched with a simple
544 :     `type` spec in signature matching, and datatypes with `stripped` set
545 : dbm 4298 to true are disallowed in datatype replications.
546 :     +
547 :     Files changed:
548 : dbm 4311 +
549 : dbm 4298 --
550 : jhr 4603 - `compiler/ElabData/types/types.sig`
551 :     - `compiler/ElabData/types/types.sml`
552 :     - `compiler/ElabData/types/typesutil.sml`
553 :     - `compiler/ElabData/types/core-basictypes.sml`
554 :     - `compiler/Elaborator/types/basictypes.sml`
555 :     - `compiler/Elaborator/types/eqtypes.sml`
556 :     - `compiler/Elaborator/modules/evalent.sml`
557 :     - `compiler/Elaborator/modules/sigmatch.sml`
558 :     - `compiler/Elaborator/modules/instantiate.sml`
559 :     - `compiler/Elaborator/print/ppabsyn.sml`
560 :     - `compiler/Elaborator/print/pptype.sml`
561 :     - `compiler/Elaborator/elaborate/elabcore.sml`
562 :     - `compiler/Elaborator/elaborate/elabmod.sml`
563 :     - `compiler/Elaborator/elaborate/elabtype.sml`
564 :     - `compiler/Elaborator/elaborate/elabsig.sml`
565 :     - `compiler/Semant/pickle/pickmod.sml`
566 :     - `compiler/Semant/pickle/unpickmod.sml`
567 :     - `compiler/MiscUtil/print/ppobj.sml`
568 :     - `compiler/FLINT/trans/transtypes.sml`
569 :     - `compiler/FLINT/trans/pequal.sml`
570 : dbm 4298 --
571 :     +
572 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
573 : dbm 4298
574 : jhr 4319 //--------------------------------------------------------------------
575 : jhr 4320 [2016/08/31]::
576 :     +
577 : jhr 4603 Added `%tokentype` directive to *ml-antlr*; this directive allows users
578 : jhr 4320 to specify the token datatype externally, which is necessary in order
579 :     to share a lexer with two different *ml-antlr* parsers.
580 :     +
581 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
582 : jhr 4320
583 :     //--------------------------------------------------------------------
584 : jhr 4319 [2016/08/20]::
585 :     +
586 : jhr 4603 Change the interface to `AMD64Gen` in *MLRISC*; the `signBit` and
587 :     `negateSignBit` callbacks now return an `MLTree.rexp` (instead of a
588 : jhr 4319 label).
589 :     +
590 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
591 : jhr 4319
592 : jhr 4260 //====================================================================
593 :     == Version 110.80; 2016/08/19
594 :    
595 : jhr 4216 //--------------------------------------------------------------------
596 : jhr 4256 [2016/08/16]::
597 :     +
598 : jhr 4603 Fixed bugref:151[] (Error installing from source on Mac OS X). The fix
599 :     involves both changes to the `config/install.sh` script and the
600 :     `mk.x86-darwin` makefile. With this fix, we include the `SDK` argument
601 :     to the `/usr/bin/as` only when the OS version is 10.10 (Yosemite) or
602 : jhr 4256 later.
603 :     +
604 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
605 : jhr 4256
606 :     //--------------------------------------------------------------------
607 : jhr 4255 [2016/08/10]::
608 :     +
609 : jhr 4603 Added the proposed `unzipMap`, `unzipMapi`, `find`, and `findi` functions
610 :     to the `ListPair` module.
611 : jhr 4255 +
612 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
613 : jhr 4255
614 :     //--------------------------------------------------------------------
615 :     [2016/08/10]::
616 :     +
617 : jhr 4603 Added the proposed `mapLeft`, `mapRight`, `appLeft`, and `appRight`
618 :     functions to the `Either` module.
619 : jhr 4255 +
620 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
621 : jhr 4255
622 :     //--------------------------------------------------------------------
623 : dbm 4250 [2016/08/09]::
624 :     +
625 : jhr 4603 Fixed bug bugref:145[] (Internal exception occurs on bogus annotation
626 :     instead of typechecking diagnostic). Added missing `OVLD_UB` case in
627 :     function `failMessage` in `compiler/Elaborator/types/unify.sml`.
628 : dbm 4250 +
629 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
630 : dbm 4250
631 :     //--------------------------------------------------------------------
632 : jhr 4248 [2016/08/04]::
633 :     +
634 : jhr 4603 Fixed bug bugref:166[] (Can't install SML/NJ in directories containing
635 : jhr 4248 spaces). Thanks to Eugene Sharygin for the patch.
636 :     +
637 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
638 : jhr 4248
639 :     //--------------------------------------------------------------------
640 : mrainey 4240 [2016/06/21]::
641 :     +
642 :     Fixed incorrect dividend sign extension before 32-bit divide in amd64
643 :     code generator in MLRISC
644 :     +
645 : jhr 4603 owner:gallium.inria.fr/~rainey/[Mike Rainey]
646 : mrainey 4240
647 :     //--------------------------------------------------------------------
648 : jhr 4235 [2016/06/16]::
649 :     +
650 : jhr 4603 Fixed bug bugref:150[] (Add title to batch script).
651 : jhr 4235 +
652 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
653 : jhr 4235
654 :     //--------------------------------------------------------------------
655 : jhr 4230 [2016/05/11]::
656 :     +
657 :     Implemented the changes for
658 :     https://github.com/SMLFamily/BasisLibrary/wiki/2016-001-Add-popCount-to-WORD-signature[
659 : jhr 4603 Basis Library Proposal 2016-001]. This proposal added the `popCount`
660 :     function to the `WORD` signature.
661 : jhr 4230 +
662 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
663 : jhr 4230
664 :     //--------------------------------------------------------------------
665 : jhr 4226 [2016/05/03]::
666 :     +
667 : jhr 4603 Fixed bug bugref:156[] (sml resumes after SIGSTOP with bogus exception
668 :     report). The fix is a bit of a hack: I modified the `non_bt_hdl`
669 :     function in `evalloop.sml` to match an `IO.Io` exception with
670 : jhr 4226 the appropriate shape for this situation.
671 :     +
672 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
673 : jhr 4226
674 :     //--------------------------------------------------------------------
675 : jhr 4220 [2016/04/07]::
676 :     +
677 : jhr 4603 Fixed bug bugref:154[] (Return code for ml-ulex when there is an error).
678 : jhr 4221 +
679 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
680 : jhr 4221
681 :     //--------------------------------------------------------------------
682 :     [2016/04/07]::
683 :     +
684 : jhr 4603 Fixed bug bugref:155[] (Misleading printing of word literals in
685 : jhr 4220 error messages).
686 :     +
687 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
688 : jhr 4220
689 :     //--------------------------------------------------------------------
690 : jhr 4216 [2016/04/02]::
691 :     +
692 : jhr 4603 Fixed a bug in the implementation of the `--ml-lex-mode` flag for
693 :     *ml-ulex*. The `\h` escape sequence is supposed to map to the
694 :     character range `[\128-\255]`, but did not.
695 : jhr 4216 +
696 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
697 : jhr 3992
698 : jhr 4204 //--------------------------------------------------------------------
699 :     [2015/11/09]::
700 :     +
701 : jhr 4603 Fixed bug bugref:147[] (Hexadecimal escapes in strings are not supported).
702 : jhr 4204 We previously did not support Unicode escapes in string literals. We now
703 : jhr 4253 do so, [line-through]#with non-ascii codepoints being mapped to the
704 :     UTF-8 encoding# with escape values in the range 0..255 being mapped to the
705 :     corresponding 8-bit character. Values outside that range are flagged
706 :     as an error.
707 : jhr 4204 +
708 : jhr 4253 _Revised August 4, 2016_
709 :     +
710 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
711 : jhr 4204
712 :     //--------------------------------------------------------------------
713 :     [2015/10/28]::
714 :     +
715 : jhr 4603 Partial fix for the noisy exception-stack traces on the `Error` exception.
716 :     The cases that are handled by this change are applying `use` to a non-existent
717 : jhr 4204 file and when there are compilation errors in a program being built by
718 : jhr 4603 `CM.make`. What remains to be handled is the situation where `CM.make` is
719 : jhr 4204 applied to a non-existent file.
720 :     +
721 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
722 : jhr 4204
723 : jhr 4126 //====================================================================
724 : jhr 4157 == Version 110.79; 2015/10/04
725 : jhr 4126
726 : jhr 4060 //--------------------------------------------------------------------
727 : jhr 4157 [2015/10/04]::
728 :     +
729 : jhr 4603 Patched `base/compiler/FLINT/clos/closure.sml` so that *Twelf* will
730 :     build again. Fixes bug bugref:140[] (Lookup failure in `closure.sml`
731 : jhr 4204 when compiling *Twelf*).
732 : jhr 4157 +
733 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
734 : jhr 4157
735 :     //--------------------------------------------------------------------
736 : jhr 4141 [2015/09/28]::
737 :     +
738 : jhr 4151 Added support for a *Successor ML* tool to CM. This tool allows one
739 : jhr 4603 to specify that a source file `fool.sml` is *Successor ML* source code in the
740 : jhr 4151 following ways:
741 :     +
742 :     --------
743 :     foo.sml : succ-ml
744 :     foo.sml : sml (succ-ml)
745 :     foo.sml (succ-ml)
746 :     --------
747 :     +
748 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
749 : jhr 4151
750 :     //--------------------------------------------------------------------
751 :     [2015/09/28]::
752 :     +
753 : jhr 4603 Added the directory `base/old-basis` to support backward-compatible
754 : jhr 4147 views of the *Basis Library*. You can use these by replacing the
755 :     line
756 :     +
757 :     --------
758 :     $/basis.cm
759 :     --------
760 :     +
761 :     with
762 :     +
763 :     --------
764 :     $/basis-2004.cm
765 :     --------
766 :     +
767 :     in your CM files.
768 :    
769 :     //--------------------------------------------------------------------
770 :     [2015/09/28]::
771 :     +
772 : jhr 4603 New implementation of `Date` structure in the Basis, which fixes bugs
773 :     bugref:138[] (Incorrect behavior for `Date.fromTimeLocal`) and
774 :     bugref:139[] (`Date.date` is broken). Note that some more thought should
775 :     be given to the correct semantics of `Date.date` when dealing with
776 : jhr 4141 offsets. For example, should an offset of +23 hours produce the same
777 :     date as an offset of -1 hours? Currently our implementation produces
778 :     different results (by a day) for these two situations.
779 :     +
780 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
781 : jhr 4141
782 :     //--------------------------------------------------------------------
783 : jhr 4126 [2015/09/25]::
784 :     +
785 : jhr 4134 Implemented the changes for
786 :     https://github.com/SMLFamily/BasisLibrary/wiki/2015-003-Additional-operations-on-sequences[
787 : jhr 4147 Basis Library Proposal 2015-003]. This proposal added operations to
788 : jhr 4134 the following signatures:
789 :     +
790 :     [source,sml]
791 :     ------------
792 :     signature ARRAY
793 :     signature LIST
794 :     signature LIST_PAIR
795 :     signature MONO_ARRAY
796 :     signature MONO_VECTOR
797 :     signature OPTION
798 :     signature STRING
799 :     signature TEXT
800 :     signature VECTOR
801 :     ------------
802 :     +
803 :     and the following structures:
804 :     +
805 :     [source,sml]
806 :     ------------
807 :     structure Array : ARRAY
808 :     structure CharArray : MONO_ARRAY
809 :     structure CharVector : MONO_VECTOR
810 :     structure List : LIST
811 :     structure ListPair : LIST_PAIR
812 :     structure Option : OPTION
813 :     structure Real64Array : MONO_ARRAY
814 :     structure Real64Vector : MONO_VECTOR
815 :     structure String : STRING
816 :     structure Text : TEXT
817 :     structure Vector : VECTOR
818 :     structure Word8Array : MONO_ARRAY
819 :     structure Word8Vector : MONO_VECTOR
820 :     ------------
821 :     +
822 :     While it is very unlikely that these changes will break existing code, there are
823 : jhr 4603 a a couple scenarios in which the code might break. Namely, when use of `open`
824 : jhr 4139 introduces conflicts and when user code implements one of the affected Basis Library
825 :     signatures. Both of these examples occurred in the *SML/NJ* source code; the former
826 :     in the *ml-yacc* sources and the latter in the *MLRISC* sources.
827 : jhr 4134 +
828 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
829 : jhr 4134
830 :     //--------------------------------------------------------------------
831 :     [2015/09/25]::
832 :     +
833 : jhr 4603 Added the optional implementations of `PackReal64Big` and `PackReal64Little`.
834 :     This addition addresses feature request bugref:82[feature]
835 :     (Implementations of `PACK_REAL` missing). The implementation
836 : jhr 4126 uses the approach suggested by
837 :     https://github.com/msullivan/sml-util/blob/master/libs/pack-real.sml[Michael Sullivan].
838 :     +
839 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
840 : jhr 4126
841 :     //--------------------------------------------------------------------
842 : jhr 4122 [2015/09/24]::
843 :     +
844 : jhr 4603 Fixed bug bugref:45[] (Compiler bug in specialize phase). This bug
845 :     was in `compiler/FLINT/opt/fcontract.sml` and was the result of a bad
846 : jhr 4122 interaction between eta contraction and inlining. As part of the fix,
847 :     I cleaned up the code in this part of FLINT a bit.
848 :     +
849 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
850 : jhr 4122
851 :     //--------------------------------------------------------------------
852 : jhr 4105 [2015/09/21]::
853 : jhr 4107 Improvements to the error messages produced by the *ml-ulex* lexer generator.
854 :     +
855 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
856 : jhr 4107
857 :     //--------------------------------------------------------------------
858 :     [2015/09/21]::
859 : jhr 4603 Added `Ref` structure and `REF` signature to Basis implementation
860 : jhr 4105 (https://github.com/SMLFamily/BasisLibrary/wiki/2015-007-Addition-of-Ref-module[
861 :     Basis Library Proposal 2015-007]).
862 :     +
863 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
864 : jhr 4105
865 :     //--------------------------------------------------------------------
866 :     [2015/09/21]::
867 : jhr 4603 Added `Fn` structure and `FN` signature to Basis implementation
868 : jhr 4105 (https://github.com/SMLFamily/BasisLibrary/wiki/2015-005-Addition-of-Fn-module[
869 :     Basis Library Proposal 2015-005]).
870 :     +
871 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
872 : jhr 4105
873 :     //--------------------------------------------------------------------
874 : jhr 4097 [2015/08/22]::
875 :     +
876 : jhr 4603 Fixed bug bugref:136[] (Incorrect raising of exceptions in `Real.fmt`
877 :     and `Time.fmt`).
878 : jhr 4097 +
879 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
880 : jhr 4097
881 :     //--------------------------------------------------------------------
882 : jhr 4105 [2015/08/14]::
883 :     +
884 : jhr 4603 Added `Either` structure and `EITHER` signature to Basis implementation
885 : jhr 4105 (https://github.com/SMLFamily/BasisLibrary/wiki/2015-002-Addition-of-Either-module[
886 :     Basis Library Proposal 2015-002]).
887 :     +
888 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
889 : jhr 4105
890 :     //--------------------------------------------------------------------
891 : jhr 4086 [2015/07/23]::
892 :     +
893 : jhr 4603 Fixed bug bugref:135[] (Fails to build on Linux PowerPC).
894 : jhr 4086 +
895 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
896 : jhr 4086
897 :     //--------------------------------------------------------------------
898 : jhr 4076 [2015/07/08]::
899 :     +
900 : jhr 4077 Added Linux 4.* kernels to the list of operating systems recognized
901 : jhr 4603 by the `.arch-n-opsys` script (fixes bug bugref:134[]).
902 : jhr 4076 +
903 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
904 : jhr 4076
905 :     //--------------------------------------------------------------------
906 : jhr 4074 [2015/06/11]::
907 :     +
908 :     Added Mac OS X 10.11 (El Capitan) to the list of operating systems
909 : jhr 4603 recognized by the `.arch-n-opsys` script.
910 : jhr 4074 +
911 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
912 : jhr 4074
913 :     //--------------------------------------------------------------------
914 : jhr 4060 [2015/05/27]::
915 :     +
916 : jhr 4105 Added support for *Successor ML* lexical extensions. These can be enabled
917 : jhr 4603 using the command-line option `-Cparser.succ-ml=true` or by the assignment
918 : jhr 4062 +
919 :     [source,sml]
920 :     ------------
921 :     Control.succML := true;
922 :     ------------
923 :     +
924 :     at the REPL. The extensions are as follows:
925 : jhr 4105 +
926 : jhr 4060 --
927 : jhr 4603 - Underscore ("`_`") as a separator in numeric literals; __e.g.__, `123_456`,
928 :     `0wxff_ff_ff_f3`, `123_456.1`, ...
929 : jhr 4060
930 : jhr 4603 - end-of-line comments, which are denoted using `(*)`. End-of-line comments
931 : jhr 4060 properly nest into conventional block comments. For example, the following
932 : jhr 4216 block comment is well formed:
933 : jhr 4060 +
934 :     [source,sml]
935 :     ------------
936 :     (*
937 :     fun f x = x (*) my identity function *)
938 :     *)
939 :     ------------
940 :     +
941 : jhr 4603 - binary literals for both integers and words; __e.g.__, `0b0101_1110`, or
942 :     `0wb1101`.
943 : jhr 4060 --
944 : jhr 4105 +
945 :     This change is the beginning of a program to add *Successor ML* feature to *SML/NJ*;
946 :     See https://github.com/SMLFamily/Proposed-Definition-of-Successor-ML[] for more
947 :     details.
948 :     +
949 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
950 : jhr 4060
951 : jhr 4002 //====================================================================
952 : jhr 4037 == Version 110.78; 2014/12/24
953 : jhr 4002
954 : jhr 3992 //--------------------------------------------------------------------
955 : dbm 4001 [2014/12/19]::
956 :     +
957 :     Major revision of the machinery for overloading resolution for both
958 : jhr 4216 operators (vars) and literals, now using a common mechanism. This fixes
959 : jhr 4603 bug bugref:52[] by improving the error message when an overloaded
960 : jhr 4049 operator is inconsistent with its context. Updated 23 files, including
961 : jhr 4603 major changes in `overload.sml`, `types.sml`, `unify.sml`, `elabcore.sml`,
962 :     `typesutil.sml`. The overload declaration is still used in
963 :     `pervasives.sml`, where the order of the specified instances of an
964 : jhr 4002 ordering determines the default interpretation (_i.e._, the first one).
965 : dbm 4001 +
966 : jhr 4603 The `SCHEME` and `LITERAL` forms of tyvars are replaced by a new
967 :     `OVLD` form that tracks potential instantiations of the type of the
968 : dbm 4001 overloaded vars or literals.
969 :     +
970 : jhr 4603 owner:cs.uchicago.edu/~dbm[David MacQueen]
971 : dbm 4001
972 :     //--------------------------------------------------------------------
973 : jhr 4002 [2014/12/18]::
974 :     +
975 : jhr 4603 Moved `base/NOTES/HISTORY` file to `doc/src/changelog/HISTORY.txt`
976 : jhr 4002 and converted it to http://asciidoc.org[ASCIIDOC] format. Have also
977 : jhr 4603 moved the `README` files from `base/READMES` to `doc/src/release-notes`.
978 : jhr 4002 These changes are part of a general effort to rationalize and improve
979 :     the documentation of the *SML/NJ* system.
980 :     +
981 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
982 : jhr 4002
983 :     //--------------------------------------------------------------------
984 : jhr 3994 [2014/12/13]::
985 :     +
986 : jhr 4002 Preliminary cleanups before changes to overloading
987 :     +
988 : jhr 4603 Minor cleanup in `Elaborator/elaborate/elabcore` (function `elabOVERLOADdec`)
989 :     and in `ElabData/types/typesutil.sml` (function `matchScheme`). Preparing for
990 : jhr 3994 a new method of handling type checking of overloaded operators. [Note
991 : jhr 4603 that there is no reason for the options field of `OVLDvar` to be a
992 : jhr 3994 reference -- it is never updated. Changing this requires corresponding
993 :     change in pickling.]
994 :     +
995 : jhr 4603 Also added an `etopdebugging` flag (`ElabControl`) for debugging in
996 :     `elabtop.sml`. Modified `elabcontrol.`{`sml`,`sig`} and
997 :     `elabtop.sml`. Also rearranged ast and absyn printing in `evalloop.sml`.
998 : jhr 3994 +
999 : jhr 4603 owner:cs.uchicago.edu/~dbm[David MacQueen]
1000 : jhr 3994
1001 :     //--------------------------------------------------------------------
1002 : jhr 3992 [2014/10/23]::
1003 :     +
1004 :     Improved error messages in *ml-ulex* for unclosed strings. Also made
1005 :     documentation improvements.
1006 :     +
1007 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1008 : jhr 3992
1009 :     //--------------------------------------------------------------------
1010 :     [2014/10/11]::
1011 :     +
1012 : jhr 4603 Added `-D_FILE_OFFSET_BITS=64` flag to `x86-linux` makefile. This flag
1013 :     is necessary to avoid spurious `EOVERFLOW` errors on some versions of
1014 : jhr 3992 Linux. The problem appears to be limited to large file systems that
1015 :     have more than 2^32^ inodes.
1016 :     +
1017 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1018 : jhr 3992
1019 :     //--------------------------------------------------------------------
1020 :     [2014/09/13]::
1021 :     +
1022 : jhr 4603 Added `%value` directive to *ml-antlr*; this addition improves the
1023 : jhr 3992 error repair choices by allowing non-nullary tokens to be inserted
1024 :     when making repairs.
1025 :     +
1026 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1027 : jhr 3992
1028 :     //====================================================================
1029 :     == Version 110.77; 2014/08/22
1030 :    
1031 :    
1032 :     //--------------------------------------------------------------------
1033 : jhr 4002 [2014/08/21]::
1034 :     +
1035 : jhr 4603 Created new `doc` tree in *SML/NJ* repository. Currently this
1036 : jhr 4002 tree just holds the sources for UNIX-style manual pages for
1037 : jhr 4603 the command-line tools (fixing bug bugref:35[]). The documentation
1038 : jhr 4002 is written using the http://asciidoc.org[ASCIIDOC] format. Use
1039 :     the following *svn* command to checkout a copy of the documentation tree:
1040 :     +
1041 :     [source,sh]
1042 :     -----------
1043 :     svn co https://smlnj-gforge.cs.uchicago.edu/svn/smlnj/doc/trunk doc
1044 :     -----------
1045 :     +
1046 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1047 : jhr 4002
1048 :     //--------------------------------------------------------------------
1049 : jhr 3992 [2014/08/19]::
1050 :     +
1051 :     Compiling the runtime system on *cygwin* was failing because the file
1052 : jhr 4603 `exceptions.h` was missing. It appears to have been part of previous
1053 : jhr 3992 versions, so a version has been incorporated verbatim in the
1054 : jhr 4603 file `runtime/mach-base/cygwin-fault.c` file (fixes bug bugref:125[]).
1055 : jhr 3992 +
1056 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1057 : jhr 3992
1058 :     //--------------------------------------------------------------------
1059 :     [2014/08/19]::
1060 :     +
1061 : jhr 4603 Added the `actionToString'` and `repairToString'` functions
1062 :     to the `AntlrRepair` structure. These functions allow one to
1063 : jhr 3992 specialize the printing of tokens based on whether they are
1064 :     being added or deleted.
1065 :     +
1066 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1067 : jhr 3992
1068 :     //--------------------------------------------------------------------
1069 :     [2014/08/17]::
1070 :     +
1071 : jhr 4603 Added patches to support `OpenBSD` on `PowerPC`. The patches were
1072 :     contributed by Jasper Lievisse Adriaanse (fixes bug bugref:124[]).
1073 : jhr 3992 +
1074 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1075 : jhr 3992
1076 :     //--------------------------------------------------------------------
1077 :     [2014/08/17]::
1078 :     +
1079 : jhr 4603 Use `mkstemp` to implement `OS.FileSys.tmpName()` on systems that support
1080 :     it (should be all modern versions of *Unix*). This change fixes bug bugref:128[].
1081 : jhr 3992 (Thanks to Johannes 5 Joemann).
1082 :     +
1083 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1084 : jhr 3992
1085 :     //--------------------------------------------------------------------
1086 :     [2014/08/17]::
1087 :     +
1088 : jhr 4603 Fixed a bug in `IntInf.~>>`, which did not handle negative arguments
1089 :     correctly (bug bugref:110[]).
1090 : jhr 3992 +
1091 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1092 : jhr 3992
1093 :     //--------------------------------------------------------------------
1094 :     [2014/08/14]::
1095 :     +
1096 :     Fixed a problem in the CPS contraction phase. An optimization that
1097 :     eliminates construction of a record that already exists was not
1098 : jhr 4603 checking that the existing record was the same record kind (bug bugref:119[]).
1099 : jhr 3992 +
1100 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1101 : jhr 3992
1102 :     //--------------------------------------------------------------------
1103 :     [2014/07/28]::
1104 :     +
1105 : jhr 4603 Switch to using `MAP_ANONYMOUS` to allocate memory on Linux systems.
1106 :     This change avoids problems when `"/dev"` does not support execute
1107 : jhr 3992 permission (as seems to be the case with some versions of *Linux*
1108 : jhr 4603 running on ChromeBooks; bug bugref:120[]).
1109 : jhr 3992 +
1110 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1111 : jhr 3992
1112 :     //--------------------------------------------------------------------
1113 :     [2014/06/28]::
1114 :     +
1115 : jhr 4603 Fix for bug bugref:127[] (Crash on *Windows* with `OS.Process.system`).
1116 : jhr 3992 +
1117 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1118 : jhr 3992
1119 :     //--------------------------------------------------------------------
1120 :     [2014/06/07]::
1121 :     +
1122 : jhr 4603 Fixed a long-standing bug in `Socket.recvVec`, which prevented the result
1123 : jhr 3992 from being used in a string pattern match (thanks to Vesa Norrman
1124 :     for the fix).
1125 :     +
1126 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1127 : jhr 3992
1128 :     //--------------------------------------------------------------------
1129 :     [2014/05/01]::
1130 :     +
1131 :     Fixed minor issue in an error message; type variable name should be
1132 : jhr 4603 printed with leading `'`.
1133 : jhr 3992 +
1134 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1135 : jhr 3992
1136 :     //--------------------------------------------------------------------
1137 :     [2013/11/25]::
1138 :     +
1139 : jhr 4603 Added `PackWord`{`16`,`32`}{`Big`,`Little`} structures
1140 :     to the `Unsafe` module. This change makes the `UNSAFE` signature
1141 : jhr 3992 closer to the http://mlton.org[*MLton*] version, although we
1142 : jhr 4603 still need to add the `PackReal` structures.
1143 : jhr 3992 +
1144 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1145 : jhr 3992
1146 :     //====================================================================
1147 :     == Version 110.76; 2013/07/01
1148 :    
1149 :    
1150 :     //--------------------------------------------------------------------
1151 :     [2013/06/04]::
1152 :     +
1153 : jhr 4603 Fix bug bugref:115[] (`BinPrimIO` writer method `getPos` does not
1154 :     work under CML). Just needed to port the position update from `mkReader`
1155 :     code to the `mkWriter` code.
1156 : jhr 3992 +
1157 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1158 : jhr 3992
1159 :     //--------------------------------------------------------------------
1160 :     [2013/06/04]::
1161 :     +
1162 : jhr 4603 Fix bug bugref:111[] (`Socket.acceptNB` returns somewhat broken sockets).
1163 :     The problem was that under Win32, sockets returned from `accept` inherit
1164 : jhr 3992 their parents' non-blocking status, whereas on *UNIX* they are always
1165 :     blocking.
1166 :     +
1167 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1168 : jhr 3992
1169 :     //--------------------------------------------------------------------
1170 :     [2013/05/20]::
1171 :     +
1172 : jhr 4603 Fix bug bugref:117[] (`BinIO.openAppend` raises `IO` on non-existent file).
1173 : jhr 3992 We were opening the file for append if it existed but not creating it
1174 :     if it did not exist.
1175 :     +
1176 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1177 : jhr 3992
1178 :     //--------------------------------------------------------------------
1179 :     [2013/05/02]::
1180 :     +
1181 : jhr 4603 Fix bug bugref:116[] (`Socket.sameDesc` raises `Match` exception).
1182 :     The problem is that on Windows the `iodesc` datatype (defined in
1183 :     `Basis/Implementation/Win32/pre-os.sml`) has both an `IODesc` constructor
1184 :     and a `SockDesc` constructor. Updated the code in `Win32/os-io.sml` to
1185 :     handle the `SockDesc` constructor.
1186 : jhr 3992 +
1187 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1188 : jhr 3992
1189 :     //--------------------------------------------------------------------
1190 :     [2013/04/19]::
1191 :     +
1192 : jhr 4603 Fix bug bugref:113[] (Socket.select waits exactly twice the indicated timeout)
1193 : jhr 3992 +
1194 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1195 : jhr 3992
1196 :     //--------------------------------------------------------------------
1197 :     [2013/01/19]::
1198 :     +
1199 : jhr 4603 Fix AMD64 code generator to properly sign-extend arguments to `IDIVQ`.
1200 : jhr 3992 +
1201 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1202 : jhr 3992
1203 :     //--------------------------------------------------------------------
1204 :     [2012/10/20]::
1205 :     +
1206 : jhr 4603 Fix bug bugref:108[] (off-by-one error in `Util/dynamic-array.sml`;
1207 : jhr 3992 iterators crash)
1208 :     +
1209 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1210 : jhr 3992
1211 :     //--------------------------------------------------------------------
1212 :     [2012/10/20]::
1213 :     +
1214 : jhr 4603 Fix bug bugref:107[] (Bogus `Int64` comparison operators)
1215 : jhr 3992 +
1216 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1217 : jhr 3992
1218 :     //====================================================================
1219 :     == Version 110.75; 2012/10/01
1220 :    
1221 :    
1222 :     //--------------------------------------------------------------------
1223 :     [2012/09/28]::
1224 :     +
1225 : jhr 4603 Fixed bug bugref:92[]. `IntInf.scan` now handles the "`0x`" prefix
1226 :     correctly. Also made minor improvements to the `NumScan` module.
1227 : jhr 3992 +
1228 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1229 : jhr 3992
1230 :     //--------------------------------------------------------------------
1231 :     [2012/09/24]::
1232 :     +
1233 : jhr 4603 Added `Base64` module to *SML/NJ Library* to support encoding and decoding
1234 :     `Word8` vectors as *base64* strings.
1235 : jhr 3992 +
1236 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1237 : jhr 3992
1238 :     //--------------------------------------------------------------------
1239 :     [2012/09/23]::
1240 :     +
1241 : jhr 4603 Additions to the *SML/NJ Library*. Added `exists`, `existsi`, `all`,
1242 :     and `alli` functions to `ORD_MAP` signature and implementations,
1243 :     and added `all` function to `ORD_SET` signature and implementations.
1244 : jhr 3992 +
1245 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1246 : jhr 3992
1247 :     //--------------------------------------------------------------------
1248 :     [2012/09/21]::
1249 :     +
1250 : jhr 4603 Bug fix in *ml-antlr* to ensure that the generated `toString` function
1251 : jhr 3992 for tokens is strictly legal *SML* code (_i.e._, non-printing characters
1252 :     and *UTF8* multibyte sequences are properly escaped).
1253 :     +
1254 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1255 : jhr 3992
1256 :     //--------------------------------------------------------------------
1257 :     [2012/09/11]::
1258 :     +
1259 : jhr 4603 Added `getu` function to `ULexBuffer` as a way to improve *ml-ulex*
1260 : jhr 3992 performance. This addition allows a fastpath for processing ASCII
1261 :     characters, which improved lexer performance by 3-4%.
1262 :     +
1263 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1264 : jhr 3992
1265 :     //--------------------------------------------------------------------
1266 :     [2012/08/02]::
1267 :     +
1268 : jhr 4603 Fixed bugs bugref:89[] and bugref:96[]: Build Failure with *Xcode 4.3*
1269 : jhr 3992 Also removed build support for *MacOS X* pre-10.5 (Leopard) on *PPC* and
1270 :     pre-10.6 (Snow Leopard) on Intel.
1271 :     +
1272 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1273 : jhr 3992
1274 :     //--------------------------------------------------------------------
1275 :     [2012/02/05]::
1276 :     +
1277 : jhr 4603 Fixed bug bugref:88[]. The check for valid arcs on *Unix* systems now allows
1278 : jhr 3992 any character other than slash or nul.
1279 :     +
1280 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1281 : jhr 3992
1282 :     //====================================================================
1283 :     == Version 110.74; 2012/01/20
1284 :    
1285 :    
1286 :     //--------------------------------------------------------------------
1287 :     [2012/01/20]::
1288 :     +
1289 : jhr 4603 Fixed implementation of `Real.signBit` on little-endian machines.
1290 : jhr 3992 +
1291 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1292 : jhr 3992
1293 :     //--------------------------------------------------------------------
1294 :     [2012/01/19]::
1295 :     +
1296 : jhr 4603 1) Fix for bug bugref:60[]
1297 :     recalculate strictness for `DEFtyc`s in functor bodies when functor
1298 :     is applied (`Elaborator/modules/evalent.sml`)
1299 : jhr 3992 +
1300 : jhr 4603 2) Fix for bug bugref:77[]
1301 : jhr 3992 separate ast representations for datatypes and datatype replications
1302 :     in decs and specs (multiple files)
1303 :     +
1304 :     3) set version to 110.74
1305 :     +
1306 : jhr 4603 Details in `NOTES/changes/dbm_2012_1`.
1307 : jhr 3992 +
1308 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
1309 : jhr 3992
1310 :     //--------------------------------------------------------------------
1311 :     [2012/01/12]::
1312 :     +
1313 : jhr 4603 1. Change of `SourceMap` interface.
1314 : jhr 3992 related to fix of off-by-one error in lexer (committed earlier?),
1315 :     and cleanup of *noweb* code added by Norman Ramsey many years
1316 :     ago (but little used today).
1317 :     +
1318 : jhr 4603 2. Slight cleanup of match compiler, eliminating `compiler/FLINT/tempexpn.sml`
1319 : jhr 3992 file that was part of unused implementation of pattern templates (pattern macros).
1320 :     +
1321 :     3. Modification of type checker to add "culprit tracking" for
1322 :     improved type error messages (printing of additional culprit
1323 : jhr 4603 information is controlled by `ElabControl.showTypeErrorCulprits`
1324 : jhr 3992 flag, default false, added in revision 3652). The culprit tracking needs to be debugged
1325 :     and improved, and the presentation of the culprits needs to be done better.
1326 :     +
1327 : jhr 4603 Details in `NOTES/changes/dbm_2012_1`.
1328 : jhr 3992 +
1329 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
1330 : jhr 3992
1331 :     //--------------------------------------------------------------------
1332 :     [2011/11/25]::
1333 :     +
1334 : jhr 4603 Bug fixes for `Unsafe.blastRead` (bug bugref:76[]):
1335 : jhr 3992 . proper error handling when reading from memory and there are
1336 :     not enough bytes.
1337 :     . pass correct data pointer and length to BlastIn (code was using
1338 :     old macros).
1339 :     +
1340 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1341 : jhr 3992
1342 :     //--------------------------------------------------------------------
1343 :     [2011/11/25]::
1344 :     +
1345 :     Added hash-table-based implementation of sets to SML/NJ Library.
1346 :     +
1347 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1348 : jhr 3992
1349 :     //--------------------------------------------------------------------
1350 :     [2011/10/25]::
1351 :     +
1352 : jhr 4216 Better error reporting under 32-bit linux for the missing dpkg
1353 : jhr 4603 support (bug bugref:70[]).
1354 :     Enable 3.x kernels to build (bugs bugref:80[], bugref:81[], bugref:83[]).
1355 : jhr 3992 +
1356 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1357 : jhr 3992
1358 :     //--------------------------------------------------------------------
1359 :     [2011/05/23]::
1360 :     +
1361 :     Added new S-expression library to SML/NJ Library
1362 :     (contributed by Damon Wang)
1363 :     +
1364 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1365 : jhr 3992
1366 :     //--------------------------------------------------------------------
1367 :     [2011/05/17]::
1368 :     +
1369 :     Fixed bug in JSON scanner (SML/NJ Library). It didn't handle escaped
1370 :     backslash or double quote correctly.
1371 :     +
1372 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1373 : jhr 3992
1374 :     //====================================================================
1375 :     == Version 110.73; 2011/05/13
1376 :    
1377 :    
1378 :     //--------------------------------------------------------------------
1379 :     [2011/05/10]::
1380 :     +
1381 :     Added boolean literals (true and false) to the conditional-expression
1382 :     syntax in CM. Thus, you can write
1383 :     +
1384 :     ....................
1385 :     #if true
1386 :     structure Foo
1387 :     #endif
1388 :     ....................
1389 :     +
1390 :     in a CM file. This change is meant to make it easier to use *autoconf*
1391 :     to configure the build process of an SML application.
1392 :     +
1393 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1394 : jhr 3992
1395 :     //--------------------------------------------------------------------
1396 :     [2011/05/09]::
1397 :     +
1398 : jhr 4603 Added missing `String.scan` function (bug bugref:69[]). This also
1399 :     fixes the handling of certain corner cases by `String.fromString`.
1400 : jhr 3992 +
1401 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1402 : jhr 3992
1403 :     //--------------------------------------------------------------------
1404 :     [2011/05/03]::
1405 :     +
1406 : jhr 4603 Added the `RTDSC` and `RTDSCP` instructions to the amd64 code generator.
1407 : jhr 3992 +
1408 : jhr 4603 owner:www.mpi-sws.org/~mrainey[Mike Rainey]
1409 : jhr 3992
1410 :     //--------------------------------------------------------------------
1411 :     [2011/04/08]::
1412 :     +
1413 : jhr 4603 Added fix for comments in code bug (bug bugref:63[]).
1414 : jhr 3992 Thanks to Michael Norrish.
1415 :     +
1416 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1417 : jhr 3992
1418 :     //--------------------------------------------------------------------
1419 :     [2011/04/08]::
1420 :     +
1421 : jhr 4603 Fixed bug in `Socket.acceptNB` (bug bugref:59[])
1422 : jhr 3992 +
1423 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1424 : jhr 3992
1425 :     //--------------------------------------------------------------------
1426 :     [2011/03/31]::
1427 :     +
1428 : jhr 4603 Fixed syntax error in *ml-lex* compatibility mode (bug bugref:49[])
1429 : jhr 3992 +
1430 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1431 : jhr 3992
1432 :     //--------------------------------------------------------------------
1433 :     [2011/03/22]::
1434 :     +
1435 : jhr 4603 Update `_arch-n-opsys` script for Mac OS X Lion (10.7).
1436 : jhr 3992 +
1437 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1438 : jhr 3992
1439 :     //--------------------------------------------------------------------
1440 :     [2011/02/18]::
1441 :     +
1442 : jhr 4603 Added `Barriers` module to CML.
1443 : jhr 3992 +
1444 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1445 : jhr 3992
1446 :     //--------------------------------------------------------------------
1447 :     [2011/02/10]::
1448 :     +
1449 :     Fixed *ml-yacc* examples to respect the changed signatures with respect
1450 : jhr 4603 to `TextIO.inputLine`.
1451 : jhr 3992 +
1452 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1453 : jhr 3992
1454 :     //--------------------------------------------------------------------
1455 :     [2010/09/16]::
1456 :     +
1457 : jhr 4603 Changed the *Win32* implementation of `validArc` to support directories
1458 : jhr 3992 with extended characters (umlauts, etc.).
1459 :     +
1460 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1461 : jhr 3992
1462 :     //--------------------------------------------------------------------
1463 :     [2010/09/16]::
1464 :     +
1465 :     Fixed the *Win32* socket and polling implementation to work correctly
1466 : jhr 4603 with CML. Signature of `poll` was wrong and didn't handle sockets at all.
1467 : jhr 3992 +
1468 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1469 : jhr 3992
1470 :     //--------------------------------------------------------------------
1471 :     [2010/06/16]::
1472 :     +
1473 : jhr 4603 Fixed `Real.toString` and `Real.fmt` to include sign for negative zero.
1474 : jhr 3992 +
1475 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1476 : jhr 3992
1477 :     //--------------------------------------------------------------------
1478 :     [2010/03/23]::
1479 :     +
1480 : jhr 4603 Fixed the bug with *Win32* calls to `OS.Process.system` not quoting
1481 : jhr 4216 the string.
1482 : jhr 3992 +
1483 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1484 : jhr 3992
1485 :     //--------------------------------------------------------------------
1486 :     [2010/02/11]::
1487 :     +
1488 :     Applied patch for building on more recent versions of *NetBSD*
1489 : jhr 4603 (bug bugref:39[]).
1490 : jhr 3992 +
1491 : jhr 4603 owner:jonriehl.com/[Jon Riehl]
1492 : jhr 3992
1493 :     //====================================================================
1494 :     == Version 110.72; 2010/02/02
1495 :    
1496 :    
1497 :     //--------------------------------------------------------------------
1498 :     [2009/12/20]::
1499 :     +
1500 : jhr 4603 Fixed performance bugs in `List` module by making `@` and `foldr` be
1501 :     tail recursive (bug bugref:51[]).
1502 : jhr 3992 +
1503 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1504 : jhr 3992
1505 :     //--------------------------------------------------------------------
1506 :     [2009/12/11]::
1507 :     +
1508 : jhr 4603 Fixed the *Win32* unable to print long strings bug (bug bugref:37[]).
1509 : jhr 3992 +
1510 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1511 : jhr 3992
1512 :     //--------------------------------------------------------------------
1513 :     [2009/12/10]::
1514 :     +
1515 :     Fixed an overrun during major GC. If the string arena was nearly
1516 :     full, it was possible for alignment padding added during copy to
1517 :     the to-space to overrun the allocated size.
1518 :     +
1519 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1520 : jhr 3992
1521 :     //--------------------------------------------------------------------
1522 :     [2009/11/18]::
1523 :     +
1524 :     The *ml-antlr* and *ml-ulex* programs have been ported to build under
1525 :     mlton.
1526 :     +
1527 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1528 : jhr 3992
1529 :     //--------------------------------------------------------------------
1530 :     [2009/11/17]::
1531 :     +
1532 : jhr 4603 Added `%header` directive to the *ml-ulex* scanner generator. Also
1533 : jhr 3992 updated the documentation.
1534 :     +
1535 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1536 : jhr 3992
1537 :     //--------------------------------------------------------------------
1538 :     [2009/11/17]::
1539 :     +
1540 : jhr 4603 Added `@SMLsuffix` flag to *sml* command. This flag can be used to get
1541 : jhr 3992 the suffix for heap files.
1542 :     +
1543 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1544 : jhr 3992
1545 :     //--------------------------------------------------------------------
1546 :     [2009/11/17]::
1547 :     +
1548 : jhr 4603 Added `--strict-sml` flag to *ml-ulex* for *MLton* compatibility.
1549 : jhr 3992 +
1550 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1551 : jhr 3992
1552 :     //--------------------------------------------------------------------
1553 :     [2009/11/10]::
1554 :     +
1555 : jhr 4603 Added `%header` directive to the *ml-antlr* parser generator. Also
1556 : jhr 3992 updated the documentation.
1557 :     +
1558 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1559 : jhr 3992
1560 :     //====================================================================
1561 :     == Version 110.71; 2009/09/16
1562 :    
1563 :    
1564 :     //--------------------------------------------------------------------
1565 :     [2009/09/13]::
1566 :     +
1567 :     Changes to support compiling the runtime system on Mac OS X 10.6
1568 :     (aka Snow Leopard).
1569 :     +
1570 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1571 : jhr 3992
1572 :     //--------------------------------------------------------------------
1573 :     [2009/08/19]::
1574 :     +
1575 :     Fixed a bug in the register-spill generator that is part of the MLRISC
1576 : jhr 4603 register allocator. The problem was that the code in `RASpillWithRenaming`
1577 : jhr 4216 functor assumed incorrectly that dedicated registers would appear in
1578 : jhr 4603 def/use information generated by `ClusterRA`. Thanks to Allen Leung for
1579 : jhr 3992 helping with this bug.
1580 :     +
1581 : jhr 4603 owner:cs.uchicago.edu/~mrainey[Mike Rainey]
1582 : jhr 3992
1583 :     //--------------------------------------------------------------------
1584 :     [2009/07/09]::
1585 :     +
1586 :     Removed redundant implementations of various top-level operations by
1587 : jhr 4603 consolidating them in `base/system/smlnj/init/pervasive.sml`. This
1588 :     change also fixes a bug in that the top-level version of `round` was
1589 : jhr 3992 incorrect.
1590 :     +
1591 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1592 : jhr 3992
1593 :     //====================================================================
1594 :     == Version 110.70; 2009/06/15
1595 :    
1596 :    
1597 :     //--------------------------------------------------------------------
1598 :     [2009/06/12]::
1599 :     +
1600 :     --
1601 :     1. Corrected problem in config/actions that led to the so-called
1602 :     "unpickling bug" which appeared in version 110.68.
1603 :     +
1604 :     2. Provided fix for the 64-bit pattern match bug.
1605 :     --
1606 :     +
1607 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
1608 : jhr 3992
1609 :     //--------------------------------------------------------------------
1610 :     [2009/03/21]::
1611 :     +
1612 : jhr 4603 Fixed bug in `Int32.fmt` when the argument was the minimum int and the
1613 :     radix was something other than `DEC`.
1614 : jhr 3992 +
1615 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
1616 : jhr 3992
1617 :     //--------------------------------------------------------------------
1618 :     [2009/02/21]::
1619 :     +
1620 : jhr 4603 Fixed bugs in how *ml-antlr* parsed ML types in `%tokens` specifications.
1621 : jhr 3992 +
1622 : jhr 4603 owner:smlnj.org[Aaron Turon]
1623 : jhr 3992
1624 :     //--------------------------------------------------------------------
1625 :     [2009/01/13]::
1626 :     +
1627 :     Picking up some additional fixes for 110.69, including a fix for
1628 :     spaces in CM file paths.
1629 :     +
1630 : jhr 4603 owner:www.jonriehl.com/[Jon Riehl]
1631 : jhr 3992
1632 :     //====================================================================
1633 :     == Version 110.69; 2008/12/22
1634 :    
1635 :    
1636 :     //--------------------------------------------------------------------
1637 :     [2008/12/06]::
1638 :     +
1639 :     Re-enabled some CPS optimizations (first_contract and eta). The most
1640 : jhr 4603 important effect of this change is to make uses of `SMLofNJ.Cont.capture`
1641 : jhr 3992 be properly tail recursive.
1642 :     +
1643 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1644 : jhr 3992
1645 :     //--------------------------------------------------------------------
1646 :     [2008/12/03]::
1647 :     +
1648 : jhr 4216 New concurrency-related instructions for x86 and amd64 code
1649 : jhr 3992 generators.
1650 :     --
1651 : jhr 4603 - `PAUSE`: Notify the CPU that the program is spin waiting.
1652 :     - `MFENCE`: memory fence for reads and writes.
1653 :     - `SFENCE`: memory fence for writes.
1654 :     - `LFENCE`: memory fence for reads.
1655 : jhr 3992 --
1656 :     +
1657 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1658 : jhr 3992
1659 :     //--------------------------------------------------------------------
1660 :     [2008/12/02]::
1661 :     +
1662 :     Added makefile and other support for building runtime on *OpenBSD*.
1663 :     +
1664 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1665 : jhr 3992
1666 :     //====================================================================
1667 :     == Version 110.68; 2008/08/13
1668 :    
1669 :    
1670 :     //--------------------------------------------------------------------
1671 :     [2008/08/11]::
1672 :     +
1673 :     Minor fix to *ml-ulex* backend for regexps that match any character
1674 : jhr 4216 and perform a single action. Previously the emitted code would
1675 : jhr 3992 not allow the regexps to match any character at all.
1676 :     +
1677 : jhr 4603 owner:smlnj.org[Aaron Turon]
1678 : jhr 3992
1679 :     //--------------------------------------------------------------------
1680 :     [2008/08/05]::
1681 :     +
1682 :     Added build support for *OpenBSD* (thanks to Brian O'Hanlon).
1683 :     +
1684 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1685 : jhr 3992
1686 :     //--------------------------------------------------------------------
1687 :     [2008/07/12]::
1688 :     +
1689 : jhr 4603 Fixed `Int64.fromString` to use base-10.
1690 : jhr 3992 +
1691 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1692 : jhr 3992
1693 :     //--------------------------------------------------------------------
1694 :     [2008/04/12]::
1695 :     +
1696 :     Various updates to the ml-lpt tree. The documentation has been updated;
1697 :     bugs in the parsing of negation and character classes in *ml-ulex* have
1698 :     been fixed; and changes have been made to make the *ml-lpt* tools more
1699 :     compatible with *MLton* (and other SML implementations). Thanks to
1700 :     Matthew Fluet and Aaron Turon for their patches.
1701 :     +
1702 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1703 : jhr 3992
1704 :     //--------------------------------------------------------------------
1705 :     [2008/20/04]::
1706 :     +
1707 :     Implemented timer-based profiling on Windows, with behavior as close
1708 :     to the *nix ITIMER-based profiling as possible.
1709 :     +
1710 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1711 : jhr 3992
1712 :     //--------------------------------------------------------------------
1713 :     [2008/07/04]::
1714 :     +
1715 :     Finished off the Windows subset of the basis library. Added process
1716 :     support and various configuration and system identification utils.
1717 :     +
1718 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1719 : jhr 3992
1720 :     //--------------------------------------------------------------------
1721 :     [2008/03/18]::
1722 :     +
1723 :     Major changes to the RegExp library: see smlnj-lib/CHANGES for details.
1724 :     +
1725 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1726 : jhr 3992
1727 :     //--------------------------------------------------------------------
1728 :     [2008/02/14]::
1729 :     +
1730 :     Added the Windows Status structure
1731 :     +
1732 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1733 : jhr 3992
1734 :     //--------------------------------------------------------------------
1735 :     [2008/02/14]::
1736 :     +
1737 :     Added the Windows DDE structure
1738 :     +
1739 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1740 : jhr 3992
1741 :     //--------------------------------------------------------------------
1742 :     [2008/02/05]::
1743 :     +
1744 :     Added the Windows Config structure
1745 :     +
1746 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1747 : jhr 3992
1748 :     //--------------------------------------------------------------------
1749 :     [2008/01/31]::
1750 :     +
1751 :     Added outline of the Windows basis library and the basic registry
1752 :     functionality.
1753 :     +
1754 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1755 : jhr 3992
1756 :     //--------------------------------------------------------------------
1757 :     [2008/01/23]::
1758 :     +
1759 :     Fixed the amd64 code generator to compile with the current MLRISC.
1760 :     +
1761 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1762 : jhr 3992
1763 :     //--------------------------------------------------------------------
1764 :     [2007/11/26]::
1765 :     +
1766 :     *nlffi* was updated to work on Windows. It needed to pass in the correct
1767 :     value for the name of the kernel32 DLL to obtain 'base' bindings.
1768 :     Additionally updated the README for the most basic *nlffi* sample with
1769 :     what you need to do on MacOSX and on Windows to make it work.
1770 :     +
1771 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1772 : jhr 3992
1773 :     //--------------------------------------------------------------------
1774 :     [2007/11/21]::
1775 :     +
1776 : jhr 4603 Overwrite the `SMLNJ_HOME` environment variable on installation
1777 : jhr 3992 Properly change the package code so that subsequent version
1778 :     installations prompt for uninstall (instead of 'repair/remove')
1779 :     +
1780 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1781 : jhr 3992
1782 :     //--------------------------------------------------------------------
1783 :     [2007/11/14]::
1784 :     +
1785 : jhr 4603 Cleaned up `WININSTALL` file for new MSI-based setup.
1786 : jhr 3992 +
1787 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1788 : jhr 3992
1789 :     //====================================================================
1790 :     == Version 110.67; 2007/11/13
1791 :    
1792 :    
1793 :     //--------------------------------------------------------------------
1794 :     [2007/11/12]::
1795 :     +
1796 :     Ensure that the size of the allocation space is at least 128K.
1797 :     +
1798 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1799 : jhr 3992
1800 :     //--------------------------------------------------------------------
1801 :     [2007/11/05]::
1802 :     +
1803 :     Fixed type error in *ml-lpt* library that occurs when compiling
1804 : jhr 4603 against a basis that was compiled with the `USE_64_BIT_POSITIONS`
1805 : jhr 3992 symbol set.
1806 :     (Thanks to Johannes Joemann)
1807 :     +
1808 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1809 : jhr 3992
1810 :     //--------------------------------------------------------------------
1811 :     [2007/11/03]::
1812 :     +
1813 :     Fixed the amd64 code generator to compile with the current MLRISC.
1814 :     +
1815 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1816 : jhr 3992
1817 :     //--------------------------------------------------------------------
1818 :     [2007/11/02]::
1819 :     +
1820 : jhr 4603 Made `sml.bat` more resilient to either not having run the installer
1821 :     and having no `SMLNJ_HOME` set or having just shuffled the directory
1822 : jhr 3992 around.
1823 :     +
1824 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1825 : jhr 3992
1826 :     //--------------------------------------------------------------------
1827 :     [2007/11/01]::
1828 :     +
1829 : jhr 4603 A collection of bug fixes for `machine.sml` in the Reactive library.
1830 : jhr 3992 (Thanks to Timothy Bourke)
1831 :     +
1832 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1833 : jhr 3992
1834 :     //--------------------------------------------------------------------
1835 :     [2007/10/28]::
1836 :     +
1837 :     Patches for Mac OS X 10.5 (Leopard).
1838 :     +
1839 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1840 : jhr 3992
1841 :     //--------------------------------------------------------------------
1842 :     [2007/10/28]::
1843 :     +
1844 :     Fixed some bugs in the AMD64 floating-point spilling code.
1845 :     +
1846 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1847 : jhr 3992
1848 :     //--------------------------------------------------------------------
1849 :     [2007/10/25]::
1850 :     +
1851 : jhr 4603 Added support for the atomic `XCHG` instruction.
1852 : jhr 3992 +
1853 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1854 : jhr 3992
1855 :     //--------------------------------------------------------------------
1856 :     [2007/10/22]::
1857 :     +
1858 :     Added AMD64 support for floating-point negation.
1859 :     +
1860 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1861 : jhr 3992
1862 :     //--------------------------------------------------------------------
1863 :     [2007/10/22]::
1864 :     +
1865 :     Fixed ^C handling in Windows
1866 :     Added a Windows installer
1867 :     Made it possible to build for *Windows* on a mapped drive from Parallels
1868 :     +
1869 : jhr 4603 owner:www.lars.com[Lars Bergstrom]
1870 : jhr 3992
1871 :     //--------------------------------------------------------------------
1872 :     [2007/10/22]::
1873 :     +
1874 :     Added AMD64 support for the atomic fetch and add instruction.
1875 :     +
1876 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1877 : jhr 3992
1878 :     //--------------------------------------------------------------------
1879 :     [2007/10/18]::
1880 :     +
1881 : jhr 4603 The GAS output now favors `p2align` over `align`, since the
1882 : jhr 3992 former is guaranteed to be consistent over multiple architectures
1883 :     and the latter is not.
1884 :     +
1885 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1886 : jhr 3992
1887 :     //--------------------------------------------------------------------
1888 :     [2007/10/18]::
1889 :     +
1890 :     Fixed a bug in register spilling.
1891 :     +
1892 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1893 : jhr 3992
1894 :     //--------------------------------------------------------------------
1895 :     [2007/10/2]::
1896 :     +
1897 :     Added demo support for AMD64 for quick testing and fixed support for
1898 :     64-bit label constants.
1899 :     +
1900 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1901 : jhr 3992
1902 :     //--------------------------------------------------------------------
1903 :     [2007/09/20]::
1904 :     +
1905 : jhr 4603 Added support for the MLRISC `COND` instruction and the x86-64 `CMOVCC`
1906 : jhr 3992 instruction.
1907 :     +
1908 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1909 : jhr 3992
1910 :     //--------------------------------------------------------------------
1911 :     [2007/09/17]::
1912 :     +
1913 :     Fixed an instruction-selection bug when loading 64-bit labels.
1914 :     +
1915 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1916 : jhr 3992
1917 :     //--------------------------------------------------------------------
1918 :     [2007/09/14]::
1919 :     +
1920 : jhr 4603 Fixed `Elaborator` and `Translate` performance bugs
1921 : jhr 3992 +
1922 : jhr 4603 owner:www.cs.uchicago.edu/~gkuan[George Kuan]
1923 : jhr 3992
1924 :     //--------------------------------------------------------------------
1925 :     [2007/09/12]::
1926 :     +
1927 : jhr 4603 Fixed `xorl` memory argument bug.
1928 : jhr 3992 +
1929 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
1930 : jhr 3992
1931 :     //--------------------------------------------------------------------
1932 :     [2007/07/27]::
1933 :     +
1934 : jhr 4603 Added `f64sgn` (for `Real64.signBit`) as a primop defined
1935 :     in `MLRiscGen`. `signBit(~0.0)` not handled correctly.
1936 : jhr 3992 +
1937 : jhr 4603 owner:www.cs.uchicago.edu/~gkuan[George Kuan]
1938 : jhr 3992
1939 :     //--------------------------------------------------------------------
1940 :     [2007/06/21]::
1941 :     +
1942 : jhr 4603 Fixed bug in {`TextIO`,`BinIO`}`.StreamIO.endOfStream` that
1943 : jhr 3992 would incorrectly signal end of stream.
1944 :     +
1945 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
1946 : jhr 3992
1947 :     //--------------------------------------------------------------------
1948 :     [2007/06/12]::
1949 :     +
1950 : jhr 4603 Eliminated `config/allsources`. The information is now drawn directly
1951 :     from `config/actions`.
1952 : jhr 3992 +
1953 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
1954 : jhr 3992
1955 :     //====================================================================
1956 :     == Version 110.65; 2007/06/07
1957 :    
1958 :    
1959 :     //--------------------------------------------------------------------
1960 :     [2007/06/06]::
1961 :     +
1962 :     --
1963 :     * Aaron: fixed a number of bugs in *ml-ulex*.
1964 :     * Matthias:
1965 : jhr 4603 ** added CM control `cm.force-tools`; this is false by default;
1966 : jhr 3992 when set to true, then tools like *ml-yacc*, *ml-lex*, *ml-ulex*, etc.
1967 :     will be forced to run regardless of whether or not their targets
1968 :     are up-to-date
1969 : jhr 4603 ** changed installer code so that `config/install.sh` will re-build
1970 : jhr 3992 heap images for all tools even if those heap images already existed
1971 :     --
1972 :     +
1973 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
1974 : jhr 3992
1975 :     //--------------------------------------------------------------------
1976 :     [2007/06/04]::
1977 :     +
1978 : jhr 4603 After Aaron Turon's bug fix for *ml-ulex* (handling the `^` character
1979 : jhr 3992 in legacy mode), re-ran the lexer generator on all lex input files
1980 :     and committed the results.
1981 :     +
1982 :     This should fix the problem with *ckit* and *nlffi* that was reported
1983 :     by Vesa A. Norrman.
1984 :     +
1985 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
1986 : jhr 3992
1987 :     //====================================================================
1988 :     == Version 110.64; 2007/05/31
1989 :    
1990 :    
1991 :     //--------------------------------------------------------------------
1992 :     [2007/05/31]::
1993 :     +
1994 :     3rd merge of base from primop-branch-3 into the trunk.
1995 :     Additional bug fixes included:
1996 :     +
1997 : jhr 4603 * `Timer.cpu_timer`, etc. type printing corrected (by making
1998 :     `Timer` have opaque sig constraint in `basis/Implementation/timer.sml`)
1999 :     * Infinite loop in FLINT (`tests/typing/tests/25.sml`) (fix by
2000 : jhr 3992 Stefan Monnier)
2001 :     +
2002 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
2003 : jhr 3992
2004 :     //--------------------------------------------------------------------
2005 :     [2007/05/31]::
2006 :     +
2007 : jhr 4603 Fixed some bugs in new Div code in `FLINT/trans/translate.sml`.
2008 : jhr 3992 +
2009 : jhr 4603 Also, changed the handling of "no core access": When `translate.sml`
2010 : jhr 3992 needs access to a core exception at a time when the core has not
2011 : jhr 4603 been set up yet (this only happens when compiling `system/smlnj/init/`*),
2012 : jhr 3992 then don't bother generating the corresponding tests.
2013 :     +
2014 :     The old scheme was to generate a bogus value to be used in place of
2015 :     the exception. Unfortunately, that confuses the plambda type checker.
2016 :     Moreover, it does not do any good, because at runtime we don't expect
2017 : jhr 4603 such an exception to be ever raised. (The code in `system/smlnj/init/`*
2018 : jhr 3992 has to be written very carefully with this in mind!)
2019 :     +
2020 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2021 : jhr 3992
2022 :     //--------------------------------------------------------------------
2023 :     [2007/05/29]::
2024 :     +
2025 : jhr 4603 Added `FSQRT` instructions for the AMD64 code generator.
2026 : jhr 3992 +
2027 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
2028 : jhr 3992
2029 :     //--------------------------------------------------------------------
2030 :     [2007/05/29]::
2031 :     +
2032 : jhr 4603 `FLINT/trans/translate.sml` now wraps all `DIV`/`MOD`/`QUOT`/`REM`
2033 : jhr 3992 operations with an explicit test for zero division. This should
2034 :     fixe several regressions and makes it possible for downstream optimization
2035 :     phases to treat these operations as "pure" when they are applied to unsigned
2036 :     operands.
2037 :     +
2038 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2039 : jhr 3992
2040 :     //--------------------------------------------------------------------
2041 :     [2007/05/29]::
2042 :     +
2043 :     Added the new MLRISC code generator for the AMD64. This version,
2044 :     in contrast to the previous one, uses SSE registers and instructions
2045 :     for all floating-point computations.
2046 :     +
2047 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
2048 : jhr 3992
2049 :     //--------------------------------------------------------------------
2050 :     [2007/05/29]::
2051 :     +
2052 :     A number of fixes related to the formatting of dates. These include fixes
2053 :     for bugs #1415 and #1416. We also now correctly handle format characters that
2054 :     lie outside the specified set.
2055 :     +
2056 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2057 : jhr 3992
2058 :     //--------------------------------------------------------------------
2059 :     [2007/05/23]::
2060 :     +
2061 :     CMB (and CM) now automatically defines the CM "preprocessor" symbol
2062 :     NO_PLUGINS during "makeml -rebuild" or when CM operates in "slave" mode.
2063 :     +
2064 : jhr 4603 (In addition, CMB_REBUILD_MODE is defined for `makeml -rebuild`,
2065 : jhr 3992 CM_SLAVE_MODE is defined in attached slaves while running CM.make
2066 :     or CM.rebuild, and CMB_SLAVE_MODE is defined in attached slaves
2067 : jhr 4603 while running `CMB.make`. The point is that the single symbol
2068 : jhr 3992 NO_PLUGINS is definde in all three cases.)
2069 :     +
2070 :     I changed the three locations within the sources that get compiled
2071 : jhr 4603 during `CMB.make` where *ml-yacc* or *ml-lex* input is processed: When
2072 : jhr 3992 NO_PLUGINS defined, then the use of the mlyacc and mllex tools
2073 :     is bypassed.
2074 :     +
2075 :     When bootstrapping new versions of the compiler, there can be
2076 :     situations where the plugin tools for *ml-yacc* and *ml-lex* (or *ml-ulex*)
2077 :     are not available or otherwise not operational. In this case one can
2078 : jhr 4603 manually define the NO_PLUGINS symbol prior to running `CMB.make()`. To
2079 : jhr 3992 do so, the following command should be issued at the interactive
2080 :     prompt:
2081 :     +
2082 :     [source,sml]
2083 :     ------------
2084 :     #set (CMB.symval "NO_PLUGINS") (SOME 1);
2085 :     ------------
2086 :     +
2087 : jhr 4603 A `CMB.make` with NO_PLUGINS defined relies on the existence of the
2088 : jhr 3992 files that normally would be generated by *ml-yacc* and *ml-lex*.
2089 :     (Copies of these files are in the repository.)
2090 :     +
2091 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2092 : jhr 3992
2093 :     //--------------------------------------------------------------------
2094 :     [2007/5/23]::
2095 :     +
2096 : jhr 4603 Second merge of base from `primop-branch-3` into the trunk.
2097 : jhr 3992 Additional bug fixes included:
2098 :     --
2099 : jhr 4603 * `Date.scan` and `Date.fromString` fixed;
2100 : jhr 3992 * Overloading resolution fixed and some type printing problems corrected.
2101 :     --
2102 :     +
2103 : jhr 4603 owner:cs.uchicago.edu/~dbm[Dave MacQueen]
2104 : jhr 3992
2105 :     //--------------------------------------------------------------------
2106 :     [2007/05/23]::
2107 :     +
2108 :     Changed the installation mechanism for CM tool plugins. These are
2109 :     just libaries and now get installed like ordinary libaries.
2110 :     +
2111 :     There are now a number of new installation targets that give some
2112 :     fine-grain control over what classes and suffixes are known, and what
2113 :     they will map to.
2114 : jhr 4603 See `config/targets` for details.
2115 : jhr 3992 +
2116 :     The code that caused plugin installation as part of running a
2117 :     tool's "build" script has been removed. (The build script is for
2118 :     building, not for installing.)
2119 :     +
2120 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2121 : jhr 3992
2122 :     //--------------------------------------------------------------------
2123 :     [2007/05/22]::
2124 :     +
2125 :     Added a boolean control named cm.tolerate-tool-failures (env. variable
2126 :     name: CM_TOLERATE_TOOL_FAILURES). The default is false and makes
2127 :     CM fail if a shell tool reports a non-success exit status. If
2128 :     the control is set to true, then CM will press on after tool failures
2129 :     in the event that the target files exist (even though they are
2130 :     considered outdated). Turning the control to true can be useful for
2131 :     bootstrapping.
2132 :     +
2133 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2134 : jhr 3992
2135 :     //--------------------------------------------------------------------
2136 :     [2007/05/19]::
2137 :     +
2138 :     Merge of ml-lpt revisions for 110.64.
2139 :     +
2140 :     The name of several ml-lpt-lib modules has changed:
2141 :     +
2142 :     [grid="none",frame="none",width="50%",cols=">2,^1,<2"]
2143 :     |===============================================
2144 : jhr 4603 | `Repair` | => | `AntlrRepair`
2145 :     | `StreamPos` | => | `AntlrStreamPos`
2146 :     | `ErrHandlerFn` | => | `AntlrErrHandler`
2147 :     | `EBNF` | => | `AntlrEBNF`
2148 : jhr 3992 |===============================================
2149 :     +
2150 :     The *ml-antlr* specification format has changed: declarations such as
2151 : jhr 4603 `%tokens` and nonterminal definitions can occur *multiple* times in the
2152 : jhr 3992 same specification. The semantics are such that each new declaration
2153 : jhr 4603 extends the previous ones. This does not apply to `%start` or `%name`,
2154 : jhr 3992 of course.
2155 :     +
2156 : jhr 4603 Importing a grammar via `%import` now includes *all* declarations in from
2157 :     the imported grammar, except for `%name`, `%entry`, and `%start`. Tokens
2158 :     and nonterminals can be dropped using the new `%dropping` clause of the
2159 :     `%import` directive; the separate `%drop` and `%extend` have been removed.
2160 : jhr 3992 +
2161 : jhr 4603 We now allow optional type annotations on nonterminals, using the `%nonterms`
2162 : jhr 3992 directive as in *ml-yacc*.
2163 :     +
2164 : jhr 4603 The `refcell` construct is now implemented using SML's regular reference
2165 :     cells, so the `:==` and `!!` notation has been deprecated.
2166 : jhr 3992 +
2167 : jhr 4216 The *ml-antlr* tool now does much more checking of specifications, and
2168 : jhr 3992 its error messages have been greatly improved. Error repair for
2169 :     generated parsers has been completely rewritten, and is now both
2170 :     much faster and more accurate.
2171 :     +
2172 :     *ml-ulex* is now more lenient with escape codes (non-SML-standard
2173 : jhr 4603 escape codes are now interpreted literally, so _e.g._, `\|` denotes "`|`").
2174 :     Also, character classes may now include a "`-`" character at the beginning
2175 : jhr 3992 as is standard in most other regexp tools.
2176 :     +
2177 : jhr 4216 All of these changes are documented in the user guide, which has
2178 : jhr 3992 been updated and improved with this merge.
2179 :     +
2180 : jhr 4603 owner:www.cs.uchicago.edu/~adrassi[Aaron Turon]
2181 : jhr 3992
2182 :     //--------------------------------------------------------------------
2183 :     [2007/05/03]::
2184 :     +
2185 :     Merge of the primop3 branch (base) into the trunk to create 110.63.1.
2186 :     Significant changes in FLINT and the front end, mostly having to do
2187 :     with a reorganized system for handling primops. Various bug fixes
2188 :     and improvements in printing signatures.
2189 :     +
2190 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[David MacQueen]
2191 : jhr 3992
2192 :     //--------------------------------------------------------------------
2193 :     [2007/05/02]::
2194 :     +
2195 :     Preliminary commit of large *ml-lpt* revisions (more to come for 110.64).
2196 :     The *ml-antlr* specification format has changed: declarations such as
2197 : jhr 4603 `%tokens` and nonterminal definitions can occur *multiple* times in the
2198 : jhr 3992 same specification. The semantics are such that each new declaration
2199 :     extends the previous ones. Grammar extension constructs have also
2200 :     changed. We now allow type annotations on nonterminals. Finally,
2201 :     the refcell construct is now implemented using SML's regular reference
2202 : jhr 4603 cells, so the `:==` and `!!` notation has been deprecated. All of these
2203 : jhr 3992 changes will appear in the 110.64 user guide for *ml-lpt*.
2204 :     +
2205 : jhr 4216 The *ml-antlr* tool now does much more checking of specifications, and
2206 : jhr 3992 its error messages have been greatly improved. There has also been
2207 :     some work on the error repair process for generated parsers, but this
2208 :     will be further improved in 110.64.
2209 :     +
2210 : jhr 4603 owner:www.cs.uchicago.edu/~adrassi[Aaron Turon]
2211 : jhr 3992
2212 :     //--------------------------------------------------------------------
2213 :     [2007/04/24]::
2214 :     +
2215 : jhr 4603 More Basis fixes: The `Char.fromString` (_etc._) functions did not handle
2216 :     the "`\uxxxx`" escape sequence. There is still an outstanding bug with
2217 :     `String.fromString` the tail is a format escape. I added a comment to
2218 :     this effect in `Basis/Implementation/string.sml`.
2219 : jhr 3992 Thanks to Andreas Rossberg.
2220 :     +
2221 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2222 : jhr 3992
2223 :     //--------------------------------------------------------------------
2224 :     [2007/04/24]::
2225 :     +
2226 : jhr 4603 Added `next` function to `Fifo` and `Queue` modules in the SML/NJ Library.
2227 : jhr 3992 +
2228 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2229 : jhr 3992
2230 :     //--------------------------------------------------------------------
2231 :     [2007/04/23]::
2232 :     +
2233 : jhr 4603 More Basis fixes: `Time.fmt` dropped the leading "`~`" for negative time
2234 : jhr 3992 values that had no whole part.
2235 :     +
2236 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2237 : jhr 3992
2238 :     //--------------------------------------------------------------------
2239 :     [2007/04/23]::
2240 :     +
2241 : jhr 4603 More Basis fixes: the `OS.Path` module did not include the `InvalidArc`
2242 : jhr 3992 exception and did not do sufficient argument checking.
2243 :     Thanks to Stephen Weeks and Adam Chilpala.
2244 :     +
2245 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2246 : jhr 3992
2247 :     //--------------------------------------------------------------------
2248 :     [2007/04/16]::
2249 :     +
2250 :     Fixed an unbound functor bug in the AMD64 CM file.
2251 :     +
2252 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
2253 : jhr 3992
2254 :     //--------------------------------------------------------------------
2255 :     [2007/04/12]::
2256 :     +
2257 :     Substantially changed the signature and implementation of AMD64
2258 :     SVID. It now looks similar to the ia32 SVID, yet uses staged
2259 :     allocation.
2260 :     +
2261 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
2262 : jhr 3992
2263 :     //--------------------------------------------------------------------
2264 :     [2007/04/07]::
2265 :     +
2266 : jhr 4603 More Basis fixes: the `WORD` signature was missing {`to`,`from`}`Large.`
2267 : jhr 3992 Thanks to Andreas Rossberg.
2268 :     +
2269 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2270 : jhr 3992
2271 :     //====================================================================
2272 :     == Version 110.63; 2007/03/22
2273 :    
2274 :    
2275 :     //--------------------------------------------------------------------
2276 :     [2007/03/19]::
2277 :     +
2278 :     Fixed bogus operand sizes in AMD64 instruction spilling.
2279 :     +
2280 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
2281 : jhr 3992
2282 :     //--------------------------------------------------------------------
2283 :     [2007/03/19]::
2284 :     +
2285 : jhr 4603 Fixed a number of inconsistencies between the `Posix.TTY` structure
2286 : jhr 3992 and the Basis specification. Thanks to Adam Chilpala.
2287 :     +
2288 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2289 : jhr 3992
2290 :     //--------------------------------------------------------------------
2291 :     [2007/02/26]::
2292 :     +
2293 :     Added preliminary support in MLRISC for Staged Allocation, a technique
2294 : jhr 4216 for specifying calling conventions (see
2295 : jhr 4603 `http://www.eecs.harvard.edu/~nr/pubs/staged-abstract.html`).
2296 : jhr 3992 Initially, we plan to use this code to generate C calls for the AMD64.
2297 :     +
2298 : jhr 4603 The staged allocation code base resides in `MLRISC/staged-allocation`,
2299 :     and specialized calling conventions go in `MLRISC/ARCH/staged-allocation`.
2300 : jhr 3992 +
2301 : jhr 4603 owner:www.cs.uchicago.edu/~mrainey[Mike Rainey]
2302 : jhr 3992
2303 :     //--------------------------------------------------------------------
2304 :     [2007/02/20]::
2305 :     +
2306 : jhr 4603 Bug fix: when `SaveCState` was called with two values to save, a subsequent
2307 :     GC could cause the `RestoreCState` to fail because the saved state had been
2308 : jhr 3992 promoted to tagless pair.
2309 :     +
2310 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2311 : jhr 3992
2312 :     //--------------------------------------------------------------------
2313 :     [2007/02/20]::
2314 :     +
2315 :     Fixed bug triggered by:
2316 :     +
2317 :     [source,sml]
2318 :     ------------
2319 : jhr 4216 val a1 = Word8Array.array(a1, 0w0);
2320 : jhr 3992 val _ = Word8Array.update(a1, 0, 0w128);
2321 :     ------------
2322 :     +
2323 : jhr 4603 The `x86MCEmitter` crashed when the immediate operand to `MOVB` was outside
2324 :     of the range `-128` ... `127`. I've changed the code so that the range
2325 : jhr 3992 check is disabled. Only the low order 8 bits of the immediate operand
2326 :     are now significant.
2327 :     +
2328 : jhr 4603 owner:smlnj.org[Allen Leung]
2329 : jhr 3992
2330 :     //--------------------------------------------------------------------
2331 :     [2007/02/15]::
2332 :     +
2333 :     Eliminated any mention of *lexgen*, which was an early precursor
2334 :     to *ml-ulex*.
2335 :     +
2336 :     You should update your admin directory, so the shell scripts for
2337 :     maintaining your local copy of the repository reflect this change.
2338 :     +
2339 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2340 : jhr 3992
2341 :     //--------------------------------------------------------------------
2342 :     [2007/02/14]::
2343 :     +
2344 :     Fixed bug in CM's parallel make facility that failed to have
2345 :     the master re-link modules after letting slaves compile them.
2346 :     +
2347 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2348 : jhr 3992
2349 :     //--------------------------------------------------------------------
2350 :     [2007/02/12]::
2351 :     +
2352 :     Fixed typo in *ml-build* script that prevented library anchors
2353 :     from being registered.
2354 :     +
2355 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2356 : jhr 3992
2357 :     //====================================================================
2358 :     == Version 110.62; 2007/02/02
2359 :    
2360 :    
2361 :     //--------------------------------------------------------------------
2362 :     [2007/01/31]::
2363 :     +
2364 : jhr 4216 Brought ml-lpt manual up-to-date with the code. Many minor
2365 : jhr 3992 improvements to the tools, and a few minor bugfixes. Prepared
2366 : jhr 4603 ml-lpt-lib for integration with new `UTF8` structure. Changed
2367 : jhr 3992 the interface for creating streams in *ml-ulex* (we now support
2368 : jhr 4216 stream creation from several kinds of sources). Overall, the
2369 :     tools are now quite stable, and their interfaces are unlikely to
2370 : jhr 3992 change in a way that would break compatibility. More work,
2371 :     however, is needed in the documentation.
2372 :     +
2373 : jhr 4603 owner:www.cs.uchicago.edu/~adrassi[Aaron Turon]
2374 : jhr 3992
2375 :     //--------------------------------------------------------------------
2376 :     [2007/02/01]::
2377 :     +
2378 :     Implemented library installer. Moved CM plugin code for
2379 :     *ml-burg*, *ml-lex*, and *ml-yacc* out of CM source tree and into
2380 :     their respective trees. Implemented CM plugin for *ml-ulex*
2381 :     and *ml-antlr*. Used library installer for *ml-burg*, *ml-ulex*,
2382 :     and *ml-antlr*.
2383 :     +
2384 :     For *ml-yacc* and *ml-lex* we continue to have permanently "plugged-in"
2385 :     CM tools. (It turns out to be too messy to do otherwise because
2386 :     there is too much code that during installation relies on the presence
2387 :     of these tools -- resulting in a tricky ordering problem.)
2388 :     +
2389 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2390 : jhr 3992
2391 :     //--------------------------------------------------------------------
2392 :     [2007/01/30]::
2393 :     +
2394 : jhr 4603 Added `SMLofNJ.shiftArgs` which is like a shell's "shift" command.
2395 :     Modified CM's startup code to use `shiftArgs` as it processes
2396 : jhr 3992 command line arguments. This way, the init code in each .sml-file
2397 :     or library that is mentioned at the top level will see only
2398 :     those arguments that have not yet been processed at this point.
2399 :     In other words, the init code can "seize control" and process the
2400 :     remaining command line.
2401 :     +
2402 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2403 : jhr 3992
2404 :     //--------------------------------------------------------------------
2405 :     [2007/01/30]::
2406 :     +
2407 : jhr 4603 Added fromList function to the `ORD_SET` interface and lookup to the
2408 :     `ORD_MAP` interface. See the SML/NJ Library CHANGES file for details.
2409 : jhr 3992 +
2410 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2411 : jhr 3992
2412 :     //--------------------------------------------------------------------
2413 :     [2007/01/28]::
2414 :     +
2415 : jhr 4603 Added the `UTF8` structure and signature from the Moby compiler to
2416 : jhr 3992 the SML/NJ library (and the CML library). These modules will replace
2417 :     the version in the ml-lpt-lib.
2418 :     +
2419 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2420 : jhr 3992
2421 :     //--------------------------------------------------------------------
2422 :     [2007/01/26]::
2423 :     +
2424 :     Added entries to handle ml-lpt-lib.cm in installer.
2425 :     +
2426 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2427 : jhr 3992
2428 :     //====================================================================
2429 :     == Version 110.61.1; 2006/12/15
2430 :    
2431 :    
2432 :     //--------------------------------------------------------------------
2433 :     [2006/12/15]::
2434 :     +
2435 :     Fixed brown-paper-bag bug with CM's pathname handling, which made
2436 :     installation fail under *Win32*.
2437 :     +
2438 :     This supersedes the pre-brown-paper-bug release (see below).
2439 :     +
2440 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2441 : jhr 3992
2442 :     //====================================================================
2443 :     == Version 110.61; 2006/12/14
2444 :    
2445 :    
2446 :     //--------------------------------------------------------------------
2447 :     [2006/14/06]::
2448 :     +
2449 : jhr 4603 Fixed the code in `runtime/c-libs/posix-tty/`{`tcgetattr`,`tcsetattr`}`.c` to
2450 : jhr 3992 get the c_cc termios data copied correctly. Also moved the allocation
2451 :     of the string to avoid problems if it caused a GC.
2452 :     +
2453 :     Thanks to Timothy Bourke for the bug report and fix.
2454 :     +
2455 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
2456 : jhr 3992
2457 :     //--------------------------------------------------------------------
2458 :     [2006/12/08]::
2459 :     +
2460 :     Added code to CM's "standard shell tool" implementation which
2461 :     causes it to tolerate (with a warning) the situation where the shell
2462 :     command fails (_e.g._, due to the shell command's non-existence)
2463 :     as long as all target files exist.
2464 :     +
2465 :     This makes it possible to, _e.g._, build *ml-yacc* from sources even if
2466 :     svn checkout messed up the time stamps on files in such a way that
2467 : jhr 4603 `yacc.grm` is younger than yacc.grm.sml or `yacc.grm.sig`. (*Ml-yacc*
2468 :     would be needed to re-process `yacc.grm`, but obviously it might not yet be
2469 : jhr 3992 available at that time.)
2470 :     +
2471 : jhr 4603 owner:www.tti-c.org/blume[Matthias Blume]
2472 : jhr 3992
2473 :     //--------------------------------------------------------------------
2474 :     [2006/12/06]::
2475 :     +
2476 : jhr 4603 Fixed the types of `recvVecFrom`, `recvVecFrom'`, `recvVecFromNB`, and
2477 :     `recvVecFromNB'` in the `SOCKET` signature. This error is actually
2478 : jhr 3992 in the _SML Basis_ specification too.
2479 :     +
2480 : jhr 4603 owner:cs.uchicago.edu/~jhr[John Reppy]
2481 : jhr 3992
2482 :     //--------------------------------------------------------------------
2483 :     [2006/12/05]::
2484 :     +
2485 :     CM now reports undefined anchors as errors and aborts execution
2486 :     rather than silently pressing on using bogus values.
2487 :     +
2488 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2489 : jhr 3992
2490 :     //--------------------------------------------------------------------
2491 :     [2006/11/29]::
2492 :     +
2493 : jhr 4603 Use `Say.vsay` for printing the "`[autoloading]`" message, so
2494 :     `#set CM.Control.verbose false` (or `-Ccm.verbose=false`) can be used
2495 : jhr 3992 to suppress them.
2496 :     +
2497 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2498 : jhr 3992
2499 :     //--------------------------------------------------------------------
2500 :     [2006/11/10]::
2501 :     +
2502 : jhr 4603 Fixed bug in CM where "`with:`" specifications that affect compilation
2503 : jhr 3992 (as opposed to parsing) were ignored.
2504 :     +
2505 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2506 : jhr 3992
2507 :     //====================================================================
2508 :     == Version 110.60; 2006/11/09
2509 :    
2510 :    
2511 :     //--------------------------------------------------------------------
2512 :     [2006/11/09]::
2513 :     +
2514 :     This is the first subversion-hosted release. There are also changes
2515 :     to the directory layout. Here is a table:
2516 :     +
2517 :     [grid="none",frame="none",width="80%",cols=">3,^1,<3,<6"]
2518 :     |===========================================================
2519 : jhr 4603 | `config` | => | `config` |
2520 : jhr 3992 | | | |
2521 : jhr 4603 | `src/cm` | => | `base/cm` |
2522 :     | `src/compiler` | => | `base/compiler` |
2523 :     | `src/runtime` | => | `base/runtime` |
2524 :     | `src/system` | => | `base/system` |
2525 : jhr 3992 | | | |
2526 : jhr 4603 | `src/cm/pgraph` | => | `pgraph` |
2527 : jhr 3992 | | | |
2528 : jhr 4603 | `src/READMES` | => | `base/READMES` |
2529 :     | `src/$`__note__ | => | `base/NOTES/$`__note__
2530 :     | for _note_ in `BOOT` `CVSNOTES` `CYGWININSTALL`
2531 :     `HISTORY` `INSTALL` `MACOSXINSTALL` `WININSTALL`
2532 : jhr 3992 | | | |
2533 : jhr 4603 | `src/smlnj-lib` | => | `smlnj-lib` |
2534 :     | `src/MLRISC` | => | `MLRISC` |
2535 :     | `ckit` | => | `ckit` |
2536 :     | `src/cml` | => | `cml` |
2537 :     | `src/eXene` | => | `eXene` |
2538 :     | `src/heap2asm` | => | `heap2asm` |
2539 :     | `src/lexgen` | => | `lexgen` |
2540 :     | `src/ml-burg` | => | `ml-burg` |
2541 :     | `src/ml-lex` | => | `ml-lex` |
2542 :     | `src/ml-yacc` | => | `ml-yacc` |
2543 :     | `src/ml-nlffi-lib` | => | `nlffi/lib` |
2544 :     | `src/ml-nlffigen` | => | `nlffi/gen` |
2545 :     | `src/smlnj-c` | => | `smlnj-c` |
2546 :     | `src/tools/TraceDebugProf` | => | `trace-debug-profile` |
2547 : jhr 3992 |===========================================================
2548 :     +
2549 :     (All pathnames are relative to the SML/NJ "root" directory.)
2550 :     +
2551 :     In addition, there is also a new
2552 :     +
2553 :     ...........
2554 :     ml-lpt
2555 :     ...........
2556 :     +
2557 :     directory containing two new program generator tools: *ml-ulex* and
2558 :     *ml-antlr* (a lexer generator that handles unicode and an ANTRL-inspired
2559 :     LL(k) parser generator). These tools are currently "beta-quality"
2560 :     +
2561 :     The latest versios of the sources can now be obtained anonymously
2562 :     via subversion. For this, it is useful to first check out
2563 :     +
2564 :     ...........
2565 :     svn://smlnj-gforge.cs.uchicago.edu/smlnj/admin
2566 :     ...........
2567 :     +
2568 :     and put the resulting directory on your shell's PATH. This provides
2569 :     access to three shell scripts: checkout-all.sh, stat-all.sh,
2570 :     and refresh-all.sh.
2571 :     +
2572 :     To create a freshly checked-out copy of the sources, do
2573 :     +
2574 :     ...........
2575 :     checkout-all.sh [dir]
2576 :     ...........
2577 :     +
2578 :     where dir is the optional SML/NJ root directory (default is ".").
2579 :     +
2580 :     This creates the above directory layout. Each subdirectory of
2581 :     the root is under individual subversion control. The stat-all.sh
2582 :     and refresh-al.sh scripts apply "svn stat" or "svn update" to
2583 :     each of these subtrees.
2584 :     +
2585 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2586 : jhr 3992
2587 :     //--------------------------------------------------------------------
2588 :     [2006/11/02]::
2589 :     +
2590 :     Reorganized directory layout.
2591 :     +
2592 :     This is a temporary solution, more reorganization is to come.
2593 :     +
2594 :     The basic idea is to have a number of toplevel trees, each corresponding
2595 :     to a well-defined part of the overall system. Each part can be
2596 :     maintained individually, even in separate source repositories,
2597 :     although currently we still serve everything out of the main
2598 :     smlnj-gforge tree.
2599 :     +
2600 :     Installer and and scripts have been updated to reflect the new
2601 :     layout. The installer (base/src/system/smlnj/installer) is now
2602 :     "scriptable" to avoid burning too much knowledge about the
2603 :     layout into SML source code. The main script used by the installer
2604 :     is in config/actions.
2605 :     +
2606 :     The main change is that many of the subdirectories of what used to
2607 :     be known as "src" have moved to the toplevel. The "src" directory
2608 :     itself has moved down into a subtree called "base". (We may eventually
2609 :     get rid of the extra level of indirection represented by "src".)
2610 :     +
2611 :     The layout is now as follows:
2612 :     +
2613 : jhr 4002 [frame="none",width="90%",cols="<2,<3",options="header"]
2614 :     |===========================================================
2615 :     | toplevel tree name | default repository
2616 : jhr 4603 (using `svn://smlnj-gforge.cs.uchicago.edu/smlnj` for `$gf`)
2617 : jhr 3992 +
2618 : jhr 4603 | `config` | `$gf/config/trunk`
2619 : jhr 4002 +
2620 : jhr 4603 | `base` | `$gf/sml/trunk`
2621 : jhr 4002 +
2622 : jhr 4603 | `smlnj-lib` | `$gf/smlnj-lib/trunk`
2623 :     | `MLRISC` | `$gf/MLRISC/trunk`
2624 : jhr 4002 +
2625 : jhr 4603 | `ml-yacc` | `$gf/ml-yacc/trunk`
2626 :     | `ml-lex` | `$gf/ml-lex/trunk`
2627 :     | `ml-burg` | `$gf/ml-burg/trunk`
2628 :     | `lexgen` | `$gf/lexgen/trunk`
2629 :     | `heap2asm` | `$gf/heap2asm/trunk`
2630 : jhr 4002 +
2631 : jhr 4603 | `cml` | `$gf/cml/trunk`
2632 :     | `eXene` | `$gf/eXene/trunk`
2633 :     | `ckit` | `$gf/ckit/trunk`
2634 :     | `nlffi` | `$gf/nlffi/trunk`
2635 : jhr 4002 +
2636 : jhr 4603 | `smlnj-c` | `$gf/smlnj-c/trunk`
2637 : jhr 4002 |===========================================================
2638 :     +
2639 : jhr 4603 In `$gf/admin` there are a few useful shell scripts for checking out
2640 : jhr 3992 and maintaining the entire collection of trees:
2641 :     +
2642 : jhr 4002 --
2643 : jhr 4603 `admin/checkout-all.sh` [__dir__]::
2644 : jhr 3992 +
2645 : jhr 4002 optionally creates _dir_ and checks out all trees from their
2646 :     default repositories; if _dir_ is missing, checkout into the
2647 :     current working directory.
2648 :     +
2649 : jhr 4603 `admin/refresh-all.sh` [__dir__]::
2650 : jhr 4002 looks at all trees (from the above list) in _dir_ (default: .)
2651 : jhr 4603 and runs "`svn update`" if the tree exists and is under
2652 : jhr 4002 subversion control;
2653 :     non-existing or non-subversion trees are skipped
2654 :     +
2655 : jhr 4603 `admin/stat-all.sh` [__dir__]::
2656 :     like `refresh-all.sh`, but runs "`svn stat`" instead
2657 : jhr 4002 --
2658 :     +
2659 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2660 : jhr 3992
2661 :     //--------------------------------------------------------------------
2662 :     [2006/10/05]::
2663 :     +
2664 :     Merged code for AMD64 backend (Mike Rainey's work).
2665 :     Everything is hooked up but untested.
2666 :     +
2667 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2668 : jhr 3992
2669 :     //====================================================================
2670 :     == Version 110.59; 2006/05/17
2671 :    
2672 :    
2673 :     //--------------------------------------------------------------------
2674 :     [2006/05/17]::
2675 :     +
2676 :     I am freezing 110.59. Changes other than the version-number increase:
2677 :     +
2678 : jhr 4002 --
2679 :     eXene::
2680 : jhr 3992 +
2681 : jhr 4002 committed changes to eXene from Alley Stoughton:
2682 :     "fixed bugs in X authorization and resource handling, as well
2683 :     as in the pile and viewport widgets"
2684 : jhr 3992 +
2685 : jhr 4002 Runtime::
2686 : jhr 3992 +
2687 : jhr 4002 fixed linking problem with *NetBSD 3.x*.
2688 :     +
2689 :     Lexgen::
2690 :     +
2691 :     --
2692 :     * *lexgen* tool handles non-ascii characters in 7-bit mode the same
2693 : jhr 3992 way that *ml-lex* does
2694 :     +
2695 :     * lexgen propagates exceptions the same way that *ml-lex* does
2696 : jhr 4002 --
2697 : jhr 3992 +
2698 : jhr 4002 CML::
2699 : jhr 3992 +
2700 : jhr 4603 Fixed a bug in the `SyncVar` polling functions (`iGetPoll`,
2701 :     `mTakePoll`, and `mGetPoll`) that could lead to livelock.
2702 : jhr 4002 --
2703 :     +
2704 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2705 : jhr 3992
2706 :     //--------------------------------------------------------------------
2707 :     [2006/05/12]::
2708 :     +
2709 :     Implemented *ml-makedepend* (_i.e._, CM.sources) in a better (more robust)
2710 :     way. This should hopefully fix the *ml-makedepend* problem permanently.
2711 :     +
2712 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2713 : jhr 3992
2714 :     //--------------------------------------------------------------------
2715 :     [2006/05/12]::
2716 :     +
2717 :     Fixed long-standing bug with *ml-makedepend* where it would output a
2718 :     spurious dependency to a non-existing file. (This is a simple fix.
2719 :     It might need further looking into.)
2720 :     +
2721 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2722 : jhr 3992
2723 :     //--------------------------------------------------------------------
2724 :     [2006/04/20]::
2725 :     +
2726 :     Committed patches received from Johannes 5 Joemann (joemann@befree.free.de)
2727 : jhr 4603 that enable *heap2exec* under `Linux` and `FreeBSD`.
2728 : jhr 3992 +
2729 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2730 : jhr 3992
2731 :     //--------------------------------------------------------------------
2732 :     [2006/04/14]::
2733 :     +
2734 :     MLRISC changes:
2735 :     +
2736 : jhr 4002 --
2737 : jhr 4603 . renamed `GAS_PSEUDO_OPS` to `AS_PSEUDO_OPS` and put it in its own file.
2738 :     . added support for `NOTB` and `XORB` operators in pseudo-op expressions
2739 :     . added `DarwinPseudoOp` functor that supports Darwin's assembler syntax.
2740 : jhr 4002 . added support for 64-bit integer literals
2741 :     --
2742 :     +
2743 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2744 : jhr 3992
2745 :     //====================================================================
2746 :     == Version 110.58; 2006/03/03
2747 :    
2748 :    
2749 :     //--------------------------------------------------------------------
2750 :     [2006/03/01]::
2751 :     +
2752 : jhr 4002 Incorporated several bugfixes to *lexgen*. Compiler now compiles to
2753 : jhr 3992 fixpoint when using lexgen instead of *ml-lex*.
2754 :     +
2755 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2756 : jhr 3992
2757 :     //--------------------------------------------------------------------
2758 :     [2006/02/28]::
2759 :     +
2760 : jhr 4002 Removed *ml-flex* and added *lexgen* instead, using Aaron Turon's newly
2761 : jhr 3992 provided tarball. The generated lexers still have problems.
2762 :     +
2763 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2764 : jhr 3992
2765 :     //--------------------------------------------------------------------
2766 :     [2006/02/26]::
2767 :     +
2768 : jhr 4002 Removed *ml-flex*'s dependency on *regexp-lib.cm*. Turned installation
2769 :     of *ml-flex* on by default.
2770 : jhr 3992 +
2771 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2772 : jhr 3992
2773 :     //--------------------------------------------------------------------
2774 :     [2006/02/24]::
2775 :     +
2776 : jhr 4002 Added *ml-flex* sources. Partially integrated, but should not be
2777 : jhr 4603 turned on yet! (Read: leave it commented-out in `config/targets`!)
2778 : jhr 3992 +
2779 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2780 : jhr 3992
2781 :     //--------------------------------------------------------------------
2782 :     [2006/02/23]::
2783 :     +
2784 : jhr 4002 Changes to support building on *x86-64* systems (using the 32-bit mode).
2785 :     Also cleaned up signal handling on *Linux*. Support for pre-2.2 *Linux*
2786 : jhr 3992 kernels dropped.
2787 :     +
2788 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2789 : jhr 3992
2790 :     //--------------------------------------------------------------------
2791 :     [2006/02/22]::
2792 :     +
2793 : jhr 4002 *CM* has changed. Updated the script for rebuilding the *MLRISC* generated
2794 : jhr 3992 files.
2795 :     +
2796 : jhr 4603 owner:smlnj.org[Allen Leung]
2797 : jhr 3992
2798 :     //--------------------------------------------------------------------
2799 :     [2006/02/14]::
2800 :     +
2801 :     Hooked code for Darwin-specific Intel ABI into main compiler.
2802 :     (This is a temporary solution which relies on the fact that the
2803 :     compiler itself does not use NLFFI. Eventually we need to divorce
2804 :     intel mac from generic x86 unix code and make separate sets of binaries.)
2805 :     +
2806 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2807 : jhr 3992
2808 :     //--------------------------------------------------------------------
2809 :     [2006/02/13]::
2810 :     +
2811 : jhr 4603 Changed *MLRISC* x86 `CCalls` for partial support of *Mac OS X* ABI.
2812 : jhr 3992 +
2813 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2814 : jhr 3992
2815 :     //--------------------------------------------------------------------
2816 :     [2006/02/06]::
2817 :     +
2818 : jhr 4002 Changes to support *Mac OS X* on Intel hardware. The C-calls support in
2819 :     MLRISC must also be updated to support the *Mac OS X* ABI.
2820 : jhr 3992 +
2821 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2822 : jhr 3992
2823 :     //--------------------------------------------------------------------
2824 :     [2005/12/16]::
2825 :     +
2826 : jhr 4002 Improved error reporting and handling in *CM*.
2827 : jhr 3992 +
2828 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2829 : jhr 3992
2830 :     //--------------------------------------------------------------------
2831 :     [2005/11/21]::
2832 :     +
2833 : jhr 4603 Enabling `$/html-lib.cm` in `config/preloads` did not work. This is fixed
2834 :     now. (Since the anchor mapping for `html-lib.cm` is not yet in effect
2835 :     at the time when `config/preloads` is processed, the library has to
2836 : jhr 3992 be referred to by another name. In 110.57 this would be
2837 : jhr 4603 `$SMLNJ-LIB/HTML/html-lib.cm`. I arranged for `$smlnj/smlnj-lib/html-lib.cm`
2838 : jhr 3992 to be valid as well.)
2839 :     +
2840 :     Thanks to Todd Wilson (Fresno) for alerting me to this issue.
2841 :     +
2842 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2843 : jhr 3992
2844 :     //====================================================================
2845 :     == Version 110.57; 2005/11/19
2846 :    
2847 :    
2848 :     //--------------------------------------------------------------------
2849 :     [2005/11/19]::
2850 :     +
2851 : jhr 4603 Fixed a problem in `config/install.sh` where it tries to "fish" the
2852 : jhr 4002 name of the *CM* metadata directory from the wrong place (because
2853 : jhr 4603 the physical location of `basis.cm` has changed). Also, corrected the
2854 :     path anchor for `$/html-lib.cm`. (Thanks to M. Fluet for pointing out
2855 : jhr 3992 these problems.)
2856 :     +
2857 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2858 : jhr 3992
2859 :     //====================================================================
2860 :     == Version 110.57; 2005/11/16
2861 :    
2862 :    
2863 :     //--------------------------------------------------------------------
2864 :     [2005/11/16]::
2865 :     +
2866 :     Fixed problem with bogus exception message when using back-trace
2867 :     facility.
2868 :     +
2869 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2870 : jhr 3992
2871 :     //--------------------------------------------------------------------
2872 :     [2005/11/15]::
2873 :     +
2874 : jhr 4603 Added simple implementation of `Array2.copy`. (Warning: mostly untested.)
2875 : jhr 3992 +
2876 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2877 : jhr 3992
2878 :     //--------------------------------------------------------------------
2879 :     [2005/11/15]::
2880 :     +
2881 : jhr 4603 Reversed change to `src/system/smlnj/internals/versiontool.cm`. This
2882 : jhr 3992 file gets loaded as a tool -- by the equivalent of CM.make during the
2883 : jhr 4603 run of `CMB.make`. Thus, CMB's path configuration is meaningless for
2884 : jhr 3992 it. Instead, it has the status of "user code", so it should use
2885 : jhr 4603 `$/basis.cm` to refer to the Basis library. (At least that's true for
2886 : jhr 3992 the purpose of bootstrapping the previous change. In the future it
2887 : jhr 4603 might make sense to have `versiontool.cm` refer to
2888 :     `$smlnj/basis/basis.cm`, _i.e._, the version of the Basis that the
2889 : jhr 3992 compiler itself uses.)
2890 :     +
2891 : jhr 4603 Also patched `src/system/testml` to have it activate those extra anchor
2892 :     bindings in `config/extrapathconfig`.
2893 : jhr 3992 +
2894 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2895 : jhr 3992
2896 :     //--------------------------------------------------------------------
2897 :     [2005/11/15]::
2898 :     +
2899 :     This change affects the way the following libraries are tied into
2900 :     the system:
2901 :     +
2902 : jhr 4002 ....................
2903 : jhr 3992 $/basis.cm
2904 :     $/smlnj-lib.cm
2905 :     $/pp-lib.cm
2906 :     $/controls-lib.cm
2907 :     $/html-lib.cm
2908 :     $/ml-yacc-lib.cm
2909 : jhr 4002 ....................
2910 : jhr 3992 +
2911 :     These libraries are now internally (as seen from the source code
2912 :     of the implementation itself) known by the following names:
2913 :     +
2914 : jhr 4002 ....................
2915 : jhr 3992 $smlnj/basis/basis.cm
2916 :     $smlnj/smlnj-lib/smlnj-lib.cm
2917 :     $smlnj/smlnj-lib/pp-lib.cm
2918 :     $smlnj/smlnj-lib/controls-lib.cm
2919 :     $smlnj/smlnj-lib/html-lib.cm
2920 :     $smlnj/ml-yacc/ml-yacc-lib.cm
2921 : jhr 4002 ....................
2922 : jhr 3992 +
2923 :     This makes it possible to work with code that requires different
2924 :     versions of these libraries, and which refers to these libraries using
2925 :     their "default" names (_i.e._, the first set of names above). In other
2926 :     words, one can un-define or re-define those default names without
2927 :     compromising the proper functioning of the compiler itself.
2928 :     +
2929 :     A similar procedure had already been performed for several of the
2930 : jhr 4002 *MLRISC* libraries that are linked into the compiler. I did some
2931 : jhr 3992 cleanup on this code.
2932 :     +
2933 :     A new file in the config directory (named extrapathconfig) is
2934 :     responsible for setting up path anchors that the compiler itself does
2935 :     not need, but that are typically required by user code.
2936 :     +
2937 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2938 : jhr 3992
2939 :     //--------------------------------------------------------------------
2940 :     [2005/11/07]::
2941 :     +
2942 : jhr 4603 Fixed erroneous out-of-bounds test in the "`update`" function of
2943 :     various *`ArraySlice` modules. (Thanks to Vesa A. Norrman for pointing
2944 : jhr 3992 out the problem.)
2945 :     +
2946 :     Pushed some Basis changes through ML-Lex, CML, and eXene.
2947 :     +
2948 : jhr 4603 owner:www.tti-c.org/~blume[Matthias Blume]
2949 : jhr 3992
2950 :     //--------------------------------------------------------------------
2951 :     [2005/11/07]::
2952 :     +
2953 : jhr 4603 Fixed a Basis incompatibility: The depreciated function `Substring.all`
2954 :     was removed (use `Substring.full` instead).
2955 : jhr 3992 +
2956 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2957 : jhr 3992
2958 :     //--------------------------------------------------------------------
2959 :     [2005/11/05]::
2960 :     +
2961 :     Tweaked interval set API in SML/NJ library; see the CHANGES file for details.
2962 :     +
2963 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2964 : jhr 3992
2965 :     //--------------------------------------------------------------------
2966 :     [2005/11/02]::
2967 :     +
2968 : jhr 4002 --
2969 : jhr 3992 * Runtime system bootstrap code now accepts hex digits in BOOTLIST
2970 :     in either upper case or lower case format.
2971 : jhr 4603 * Pushed changes to names of `Pack`<__N__>{`Big`,`Little`}
2972 : jhr 4002 structures through
2973 : jhr 3992 CML and eXene.
2974 : jhr 4002 --
2975 : jhr 3992 +
2976 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
2977 : jhr 3992
2978 :     //--------------------------------------------------------------------
2979 :     [2005/11/02]::
2980 :     +
2981 : jhr 4603 Fixed a Basis incompatibility: `Pack`<__N__>{`Big`,`Little`}
2982 :     structures should be named `PackWord`<__N__>{`Big`,`Little`}.
2983 : jhr 3992 +
2984 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2985 : jhr 3992
2986 :     //--------------------------------------------------------------------
2987 :     [2005/10/28]::
2988 :     +
2989 :     Fixed a minor Basis incompatibility: hex digits should be upper case.
2990 :     +
2991 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
2992 : jhr 3992
2993 :     //====================================================================
2994 :     == Version 110.56; 2005/10/25
2995 :    
2996 :    
2997 :     //--------------------------------------------------------------------
2998 :     [2005/10/25]::
2999 :     +
3000 : jhr 4603 Added interval sets to utility library (signatures `INTERVAL_DOMAIN`
3001 :     and `INTERVAL_SET`, and functor `IntervalSetFn`).
3002 : jhr 3992 +
3003 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
3004 : jhr 3992
3005 :     //--------------------------------------------------------------------
3006 :     [2005/10/14]::
3007 :     +
3008 :     Add Zhong Shao's fix for datatype equality functions.
3009 :     +
3010 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
3011 : jhr 3992
3012 :     //--------------------------------------------------------------------
3013 :     [2005/10/14]::
3014 :     +
3015 :     Bug fix a bug found by Carl Hauser.
3016 : jhr 4603 There was a typo in the reload code for `FCMP` in `x86SpillInstr.sml`.
3017 : jhr 3992 +
3018 : jhr 4603 owner:smlnj.org[Allen Leung]
3019 : jhr 3992
3020 :     //--------------------------------------------------------------------
3021 :     [2005/10/14]::
3022 :     +
3023 : jhr 4603 Removed some debugging code in file `x86Asm.sml`.
3024 : jhr 3992 The function emit_operand was printing out debugging output.
3025 :     +
3026 : jhr 4603 owner:smlnj.org[Allen Leung]
3027 : jhr 3992
3028 :     //--------------------------------------------------------------------
3029 :     [2005/07/27]::
3030 :     +
3031 : jhr 4603 Fixed *ml-lex* to recognize "`\r`" as representing carriage return.
3032 : jhr 3992 +
3033 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
3034 : jhr 3992
3035 :     //--------------------------------------------------------------------
3036 :     [2005/07/27]::
3037 :     +
3038 :     Fixed *ml-yacc* to work on files with non-native end-of-line
3039 :     encodings (_e.g._, Windows text file on a Unix system).
3040 :     +
3041 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
3042 : jhr 3992
3043 :     //--------------------------------------------------------------------
3044 :     [2005/07/20]::
3045 :     +
3046 :     Added changes from Dominic Evans (oldmanuk (at) gmail (dot) com)
3047 : jhr 4002 to support *HPUX 11*.
3048 : jhr 3992 +
3049 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
3050 : jhr 3992
3051 :     //--------------------------------------------------------------------
3052 :     [2005/07/06]::
3053 :     +
3054 : jhr 4002 Changes to the *SML/NJ Library*. See smlnj-lib/CHANGES for details.
3055 : jhr 3992 +
3056 : jhr 4603 owner:www.cs.uchicago.edu/~jhr[John Reppy]
3057 : jhr 3992
3058 :     //--------------------------------------------------------------------
3059 :     [2005/07/06]::
3060 :     +
3061 :     Fixed reversed logic for deciding whether to "copy up" or "copy down"
3062 : jhr 4603 in *`-array-slice.sml`.
3063 : jhr 3992 +
3064 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3065 : jhr 3992
3066 :     //--------------------------------------------------------------------
3067 :     [2005/05/31]::
3068 :     +
3069 : jhr 4002 A typo in the Cygwin code fixed.
3070 : jhr 3992 +
3071 : jhr 4603 owner:smlnj.org[Allen Leung]
3072 : jhr 3992
3073 :     //--------------------------------------------------------------------
3074 :     [2005/05/31]::
3075 :     +
3076 :     Updated Cygwin's fault/signal handling to match the Windows version.
3077 :     Updated the export list.
3078 :     +
3079 : jhr 4603 owner:smlnj.org[Allen Leung]
3080 : jhr 3992
3081 :     //====================================================================
3082 :     == Version 110.54; 2005/05/18
3083 :    
3084 :    
3085 :     //--------------------------------------------------------------------
3086 :     [2005/05/18]::
3087 :     +
3088 : jhr 4002 Added support scripts for *Mac OS X PackageMaker* and modified
3089 : jhr 4603 `config/install.sh` so that it supports re-dumping a heap image
3090 : jhr 3992 after customization.
3091 :     +
3092 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3093 : jhr 3992
3094 :     //--------------------------------------------------------------------
3095 :     [2005/05/18]::
3096 :     +
3097 :     Un-overloaded / to work around bug in overloading resolution code.
3098 :     +
3099 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3100 : jhr 3992
3101 :     //--------------------------------------------------------------------
3102 :     [2005/05/16]::
3103 :     +
3104 :     Added mechanism for re-creating a heap file for the interactive system
3105 :     after configuration variables have been changed.
3106 :     +
3107 : jhr 4002 [source,sml]
3108 :     ------------
3109 : jhr 3992 CM.redump_heap : string -> unit
3110 : jhr 4002 ------------
3111 : jhr 3992 +
3112 : jhr 4603 This is much like `SMLofNJ.exportML`, but starting from the resulting
3113 :     heap does not return to the caller of `CM.redump_heap` but
3114 : jhr 3992 restarts the interactive system from scratch. The original call of
3115 : jhr 4603 `CM.redump_heap` does not return but ends the interactive session.
3116 :     Thus, `CM.redump_heap` is a lot like `SMLofNJ.exportFn`.
3117 : jhr 3992 +
3118 : jhr 4603 Internally, `redump_heap` winds the dynamic execution context back to
3119 : jhr 3992 the point where the original heap image was created and re-executes
3120 :     the heap image generation code in the boot code.
3121 :     +
3122 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3123 : jhr 3992
3124 :     //--------------------------------------------------------------------
3125 :     [2005/05/09]::
3126 :     +
3127 : jhr 4603 Added a hack to the existing hack known as `Word64` to make `fromString`
3128 :     behave correctly. I am still not sure whether `Word64.scan` will work
3129 : jhr 3992 as specified with respect to the interaction of radix and prefix.
3130 :     +
3131 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3132 : jhr 3992
3133 :     //--------------------------------------------------------------------
3134 :     [2005/05/04]::
3135 :     +
3136 :     Added a gc protocol checking phase. This phase is enabled with
3137 :     the flag "check-gc". "debug-check-gc" turns on the verbose mode.
3138 :     +
3139 : jhr 4603 owner:smlnj.org[Allen Leung]
3140 : jhr 3992
3141 :     //--------------------------------------------------------------------
3142 :     [2005/05/04]::
3143 :     +
3144 : jhr 4603 Fixed a bug in the implementation of `div` and `mod` for `IntInf`.
3145 : jhr 3992 Thanks to Neophytos Michael for reporting the problem.
3146 :     +
3147 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3148 : jhr 3992
3149 :     //--------------------------------------------------------------------
3150 :     [2005/05/04]::
3151 :     +
3152 : jhr 4603 Added the `join` combinator to the `ParserComb` module in the
3153 : jhr 4002 *SML/NJ Library*.
3154 : jhr 3992 +
3155 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3156 : jhr 3992
3157 :     //--------------------------------------------------------------------
3158 :     [2005/02/28]::
3159 :     +
3160 :     Fixed serious bug (brown paper bag variety) in new implementation of
3161 : jhr 4603 structure `Atom` in *CML*. (I had accidentally used a `mailbox` instead of
3162 :     an `mvar`, leaving the door open for races.)
3163 : jhr 3992 +
3164 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3165 : jhr 3992
3166 :     //====================================================================
3167 :     == Version 110.53; 2005/02/25
3168 :    
3169 :    
3170 :     //--------------------------------------------------------------------
3171 :     [2005/02/25]::
3172 :     +
3173 : jhr 4603 Brought back `SMLofNJ.Susp`. The underlying suspension type is the one
3174 : jhr 4002 implemented in Core, which means that it is the same as the one used
3175 : jhr 3992 by the lazy extension.
3176 :     +
3177 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3178 : jhr 3992
3179 :     //--------------------------------------------------------------------
3180 :     [2005/02/24]::
3181 :     +
3182 :     Simpler and at the same time more general implementation of structure
3183 : jhr 4603 `Atom` in *CML*.
3184 : jhr 3992 +
3185 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3186 : jhr 3992
3187 :     //--------------------------------------------------------------------
3188 :     [2005/02/15]::
3189 :     +
3190 : jhr 4603 Created new "`tools`" directory under "`src`" and moved "`TraceDebugProf`"
3191 : jhr 3992 there.
3192 :     +
3193 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3194 : jhr 3992
3195 :     //--------------------------------------------------------------------
3196 :     [2005/02/10]::
3197 :     +
3198 : jhr 4603 Implemented "`long long`" arguments and results for NLFFI. (Only the
3199 : jhr 3992 PPC/MacOS implementation is complete, the other backends still need to
3200 :     be updated.)
3201 :     +
3202 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3203 : jhr 3992
3204 :     //--------------------------------------------------------------------
3205 :     [2005/01/24]::
3206 :     +
3207 :     Minor cleanup in ML-Yacc rule printing mechanism. This should fix a
3208 :     problem with certain "as" patterns which previously got rendered
3209 :     using incorrect syntax.
3210 :     +
3211 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3212 : jhr 3992
3213 :     //--------------------------------------------------------------------
3214 :     [2005/01/18]::
3215 :     +
3216 :     Made time profiling code (interrupt handler) in runtime system aware
3217 :     of new array representation.
3218 :     +
3219 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3220 : jhr 3992
3221 :     //--------------------------------------------------------------------
3222 :     [2005/01/14]::
3223 :     +
3224 : jhr 4002 Implemented new (but still experimental) *heap2exec* facility. This is
3225 : jhr 3992 tested under Mac OS X and should work under Linux (will test shortly).
3226 :     It will probably also work on the Sparc (will test some time later).
3227 : jhr 4603 Also removed old "`HACKED_STANDALONE`" hack from runtime
3228 : jhr 3992 +
3229 : jhr 4603 To be able to test *heap2exec*, uncomment the request for "`heap2asm`" in
3230 : jhr 3992 config/targets prior to installation. (Notice that this is different
3231 :     from "heap2exec" mentioned below. Not a typo.)
3232 :     +
3233 :     To perform an actual test, run the command
3234 :     +
3235 :     $ bin/heap2exec heapfile execfile
3236 :     +
3237 : jhr 4002 (You can put *heap2exec* on your shell's path.)
3238 : jhr 3992 +
3239 :     For example, run
3240 :     +
3241 :     $ bin/heap2exec bin/.heap/ml-yacc.ppc-darwin mly
3242 :     +
3243 : jhr 4603 This will create a standalone executable called "`mly`" that you can
3244 : jhr 3992 then invoke directly as a command.
3245 :     +
3246 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3247 : jhr 3992
3248 :     //--------------------------------------------------------------------
3249 :     [2005/01/07]::
3250 :     +
3251 : jhr 4603 fixed off-by-one error in `ML_STRING` macro (`globals.c`)
3252 : jhr 3992 +
3253 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3254 : jhr 3992
3255 :     //--------------------------------------------------------------------
3256 :     [2004/12/23]::
3257 :     +
3258 :     Made *ml-build* script "smarter" (but only very little).
3259 :     +
3260 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3261 : jhr 3992
3262 :     //--------------------------------------------------------------------
3263 :     [2004/12/21]::
3264 :     +
3265 : jhr 4002 * Implemented access to signed and unsigned long long data in *NLFFI*.
3266 : jhr 3992 (The parameter-passing part of the picture has not complete. But
3267 :     data structure access seems to work.)
3268 :     +
3269 : jhr 4002 * Fixed *CM*'s incorrect assumption that the PPC is little-endian.
3270 : jhr 3992 (On the Mac, it is big-endian. And that's currently our only
3271 : jhr 4002 *PPC* platform.)
3272 : jhr 3992 +
3273 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3274 : jhr 3992
3275 :     //--------------------------------------------------------------------
3276 :     [2004/12/21]::
3277 :     +
3278 : jhr 4603 Some cleanup in the `$c/memory.cm` library: separated some concerns by
3279 : jhr 3992 moving allocation code and memory access code each into their own
3280 :     files.
3281 :     +
3282 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3283 : jhr 3992
3284 :     //--------------------------------------------------------------------
3285 :     [2004/12/17]::
3286 :     +
3287 : jhr 4002 The Unix I/O library of SML/NJ on Cygwin does not understand
3288 : jhr 4603 Windows style pathname, so problems arise when `SMLNJ_HOME` is set
3289 : jhr 4002 to a Windows style pathname. The _run-sml script now
3290 : jhr 4603 converts `SMLNJ_HOME` to a POSIX pathname on Cygwin.
3291 : jhr 3992 +
3292 : jhr 4603 owner:smlnj.org[Allen Leung]
3293 : jhr 3992
3294 :     //--------------------------------------------------------------------
3295 :     [2004/12/16]::
3296 :     +
3297 :     Last-minute changes incorporated into 110.52. Release tag moved.
3298 :     +
3299 :     The changes:
3300 : jhr 4603 - `HashString.hashString'` -> `HashString.hashSubstring`
3301 :     - bug fix in `UnivariateStats`
3302 : jhr 3992 +
3303 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3304 : jhr 3992
3305 :     //--------------------------------------------------------------------
3306 :     [2004/12/15]::
3307 :     +
3308 : jhr 4002 - +HashString.hashString' -> HashString.hashSubstring
3309 : jhr 4603 - corresponding changes in `atom.sml`
3310 :     - "de-compressed" (aka. un-obfuscated) code for `UnivariateStats` and
3311 : jhr 3992 added some comments
3312 :     +
3313 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3314 : jhr 3992
3315 :     //====================================================================
3316 :     == Version 110.52; 2004/12/15
3317 :    
3318 :    
3319 :     //--------------------------------------------------------------------
3320 :     [2004/12/15]::
3321 :     +
3322 :     More on the space problem (this time for *Win32*).
3323 :     +
3324 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3325 : jhr 3992
3326 :     //--------------------------------------------------------------------
3327 :     [2004/12/14]::
3328 :     +
3329 :     Hacked some of the scripts (in particular: the installer) to cope with
3330 :     spaces in filenames a bit better. But beware: the current "solution"
3331 :     is likely still full of bugs and inherently incomplete. (We need to
3332 :     do away with those shell scripts for a comprehensive solution.)
3333 :     +
3334 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3335 : jhr 3992
3336 :     //--------------------------------------------------------------------
3337 :     [2004/12/13]::
3338 :     +
3339 :     Fixed bug in code for *ml-makedepend*.
3340 :     +
3341 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3342 : jhr 3992
3343 :     //--------------------------------------------------------------------
3344 :     [2004/12/09]::
3345 :     +
3346 :     Added two simple but potentially useful statistics modules to SML/NJ Library.
3347 :     (See CHANGES file there.)
3348 :     +
3349 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3350 : jhr 3992
3351 :     //--------------------------------------------------------------------
3352 :     [2004/12/01]::
3353 :     +
3354 : jhr 4002 Updates to *SML/NJ Library*
3355 : jhr 3992 +
3356 : jhr 4002 --
3357 : jhr 4603 * Added function `HashString.hashString'` for substrings.
3358 :     * Hand-inlined `CharVector.foldl` into `HashString` (for speed).
3359 :     * Modified implementation of structure `Atom` to avoid extracting
3360 : jhr 4002 strings from substrings unless necessary.
3361 :     --
3362 : jhr 3992 +
3363 : jhr 4002 (Also see CHANGES file for smlnj-lib.)
3364 :     +
3365 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3366 : jhr 3992
3367 :     //--------------------------------------------------------------------
3368 :     [2004/11/24]::
3369 :     +
3370 : jhr 4603 Made sure *CML* compiles when the `Position` structure is `Int64`.
3371 : jhr 3992 +
3372 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3373 : jhr 3992
3374 :     //--------------------------------------------------------------------
3375 :     [2004/11/24]::
3376 :     +
3377 : jhr 4603 The compiler can now be compiled in a mode that makes structure `Position`
3378 :     equal to `Int64`. The default, however, is unchanged (`Position` is `Int31`)
3379 : jhr 3992 for the time being.
3380 :     +
3381 :     To enable 64-bit positions, use the following procedure:
3382 :     +
3383 : jhr 4002 --
3384 :     . Start sml
3385 :     . Autoload $smlnj/cmb.cm (if not already autoloaded)
3386 :     . Type
3387 : jhr 3992 +
3388 : jhr 4002 [source,sml]
3389 :     ------------
3390 :     #set (CMB.symval "USE_64_BIT_POSITIONS") (SOME 1);
3391 :     ------------
3392 :     +
3393 : jhr 4603 . Run `CMB.make()` as usual.
3394 : jhr 4002 --
3395 :     +
3396 : jhr 3992 This is barely tested. The only test so far was a little SML program
3397 :     counting the number of characters in an 8-gigabyte file by
3398 :     reading it character-by-character. That test was successful.
3399 :     +
3400 :     In support of 64-bit positions, a number of new functions have been
3401 :     added to the runtime system.
3402 :     +
3403 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3404 : jhr 3992
3405 :     //--------------------------------------------------------------------
3406 :     [2004/11/23]::
3407 :     +
3408 :     Fixed a problem with unhelpful error messages related to problems with
3409 : jhr 4603 `.cm` or `.sml` files that appear as part of the *sml* command line.
3410 : jhr 3992 +
3411 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3412 : jhr 3992
3413 :     //====================================================================
3414 :     == Version 110.51; 2004/11/18
3415 :    
3416 :    
3417 :     //--------------------------------------------------------------------
3418 :     [2004/11/18]::
3419 :     +
3420 : jhr 4603 Enabled `dlopen` and friends for *FreeBSD* (as recommended by Johannes 5
3421 : jhr 3992 Joemann).
3422 :     +
3423 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3424 : jhr 3992
3425 :     //--------------------------------------------------------------------
3426 :     [2004/11/17]::
3427 :     +
3428 : jhr 4603 Added support for `MLTree` constructs `LIVE` and `KILL`
3429 : jhr 3992 to all the architectures.
3430 :     +
3431 : jhr 4603 owner:smlnj.org[Allen Leung]
3432 : jhr 3992
3433 :     //--------------------------------------------------------------------
3434 :     [2004/11/13]::
3435 :     +
3436 : jhr 4603 - Stripped down the `versiontool:` It now only handles the version number.
3437 : jhr 3992 The date string is generated at bootstrap time (during makeml).
3438 :     +
3439 :     - In a previous commit, fixed a minor issue with how polyequal is being
3440 :     translated. In particular, the code now "looks through" abstractions.
3441 :     This results in slightly fewer polyEqual warnings and hopefully slightly
3442 :     more efficient code. Important examples for where this matters are
3443 : jhr 4603 the new `int64` and `word64` types.
3444 : jhr 3992 +
3445 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3446 : jhr 3992
3447 :     //--------------------------------------------------------------------
3448 :     [2004/11/12]::
3449 :     +
3450 : jhr 4603 Structure `Int64` fully hooked in. (The implementation is not very
3451 : jhr 3992 efficient, though.)
3452 :     +
3453 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3454 : jhr 3992
3455 :     //--------------------------------------------------------------------
3456 :     [2004/11/11]::
3457 :     +
3458 : jhr 4603 All the pieces of `Word64` are now there, with the exception of the
3459 :     conversions from and to `LargeWord`. (Eventually these need to be identities,
3460 :     but for the time being they don't even make sense because `LargeWord` is
3461 : jhr 3992 32-bit wide.)
3462 :     +
3463 : jhr 4603 Also started to add similar support for `Int64`, but major pieces of that
3464 : jhr 3992 are still missing.
3465 :     +
3466 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3467 : jhr 3992
3468 :     //--------------------------------------------------------------------
3469 :     [2004/11/11]::
3470 :     +
3471 : jhr 4603 Structure `Word64` is now (almost) complete, word literals and patterns
3472 : jhr 3992 seem to work. There are a few odd pieces missing. In particular,
3473 : jhr 4603 I didn't do the {`from`,`to`}`LargeWord` parts because `LargeWord`
3474 :     is still `Word32` at the moment.
3475 : jhr 3992 +
3476 : jhr 4603 Making `Word64` official would mean that `LargeWord` becomes `Word64`. But
3477 : jhr 3992 this requires extreme care because most word-word conversions have to
3478 : jhr 4603 go through `LargeWord`, so making a mistake means loss of efficiency or
3479 : jhr 3992 worse. Eventually there will be a solution similar to (but actually
3480 : jhr 4603 simpler than) what I did with `IntInf`.
3481 : jhr 3992 +
3482 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3483 : jhr 3992
3484 :     //--------------------------------------------------------------------
3485 :     [2004/11/10]::
3486 :     +
3487 :     More 64-bit hacking (but still not even half-way there yet).
3488 :     Also, some assorted improvements to the handling of 8-bit words.
3489 :     +
3490 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3491 : jhr 3992
3492 :     //--------------------------------------------------------------------
3493 :     [2004/11/09]::
3494 :     +
3495 :     Started adding some infrastructure for supporting 64-bit int- and
3496 :     word-types. (Still in its very early stages.)
3497 :     +
3498 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3499 : jhr 3992
3500 :     //====================================================================
3501 :     == Version 110.50; 2004/10/28
3502 :    
3503 :    
3504 :     //--------------------------------------------------------------------
3505 :     [2004/10/28]::
3506 :     +
3507 :     - Changend config/srcarchiveurl from a file just
3508 :     containing the URL string into a file containing
3509 :     shell script code. The code has access to the $VERSION variable.
3510 :     - Made corresponding changes to config/install.sh and config/unpack.
3511 :     - Default contents of config/srcarchiveurl uses $VERSION and
3512 :     normally does not have to be edited to reflect a version change.
3513 :     +
3514 : jhr 4002 (As a result, a version change can be done by just editing
3515 : jhr 4603 `config/version`, the rest is now automatic.)
3516 : jhr 3992 +
3517 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3518 : jhr 3992
3519 :     //--------------------------------------------------------------------
3520 :     [2004/10/27]::
3521 :     +
3522 :     BackTrace.monitor now also reports the source of the exception that
3523 :     triggered the trace.
3524 :     +
3525 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3526 : jhr 3992
3527 :     //--------------------------------------------------------------------
3528 :     [2004/10/27]::
3529 :     +
3530 :     This is the HISTORY entry for two earlier commits, both concerning
3531 : jhr 4002 the *x86* c-calls code in *MLRISC*:
3532 : jhr 3992 +
3533 :     - added a missing LOAD in the code that deals with struct arguments
3534 :     - made sure the caller does not add the wrong number of bytes to the
3535 :     stack pointer after a call of a function returning a struct
3536 :     (the callee already pops the implicit argument which points to
3537 :     the space reserved for the result)
3538 :     +
3539 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3540 : jhr 3992
3541 :     //--------------------------------------------------------------------
3542 :     [2004/10/24]::
3543 :     +
3544 : jhr 4603 John discovered a bug in the syntax of `fucomip`.
3545 :     The opcodes `FU`?`COMIP`? have been changed to
3546 : jhr 3992 +
3547 :     fu?comip? %st(i), %st
3548 :     +
3549 : jhr 4603 owner:smlnj.org[Allen Leung]
3550 : jhr 3992
3551 :     //--------------------------------------------------------------------
3552 :     [2004/10/20]::
3553 :     +
3554 :     Added a mechanism for getting back-trace information from standalone
3555 :     programs. Here is how it works:
3556 :     +
3557 : jhr 4002 --
3558 :     . The part of the program from which you want to get backtrace
3559 :     information (usually the whole program) should be wrapped with
3560 : jhr 4603 BackTrace.monitor. This is a `(unit->'a)->'a` function, and your
3561 : jhr 4002 main program could be modified from something like
3562 : jhr 3992 +
3563 : jhr 4002 [source,sml]
3564 :     ------------
3565 :     fun main (pgm, args) = ...
3566 :     ------------
3567 : jhr 3992 +
3568 : jhr 4002 to
3569 : jhr 3992 +
3570 : jhr 4002 [source,sml]
3571 :     ------------
3572 :     fun main (pgm, args) = BackTrace.monitor (fn () => ...)
3573 :     ------------
3574 : jhr 3992 +
3575 : jhr 4603 . To be able to access `BackTrace.monitor`, you have to add the
3576 :     library `$smlnj-tdp/plugins.cm` to the `.cm` file that contains your
3577 : jhr 4002 main function.
3578 : jhr 3992 +
3579 : jhr 4002 . Remove all compiled code (_i.e._, all the .cm/ subdirectories that
3580 :     *CM* might have created in the past for your project).
3581 : jhr 3992 +
3582 : jhr 4002 . Build the system using this command line:
3583 : jhr 3992 +
3584 : jhr 4002 [source,sh]
3585 :     ------------
3586 :     ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm myprog.cm MyProg.main myprog
3587 :     ------------
3588 : jhr 3992 +
3589 : jhr 4002 instead of the usual
3590 : jhr 3992 +
3591 : jhr 4002 [source,sh]
3592 :     ------------
3593 :     ml-build myprog.cm MyProg.main myprog
3594 :     ------------
3595 :     --
3596 : jhr 3992 +
3597 : jhr 4603 I changed the library name `$/trace-debug-profile.cm` to `$smlnj-tdp/plugins.cm`,
3598 : jhr 4002 and added the following new libraries:
3599 : jhr 3992 +
3600 : jhr 4002 --
3601 : jhr 4603 `$smlnj-tdp/back-trace.cm`::
3602 : jhr 3992 +
3603 : jhr 4002 when loaded causes the back-trace plugin to be installed
3604 : jhr 3992 +
3605 : jhr 4603 `$smlnj-tdp/coverage.cm`::
3606 : jhr 3992 +
3607 : jhr 4002 when loaded causes the coverage plugin to be installed
3608 :     --
3609 :     +
3610 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3611 : jhr 3992
3612 :     //--------------------------------------------------------------------
3613 :     [2004/10/18]::
3614 :     +
3615 : jhr 4002 Added an "obsolete" warning for the "group owner" syntax to *CM*'s parser.
3616 : jhr 3992 +
3617 : jhr 4603 Eliminated group owner specs from `.cm` files throughout the source tree.
3618 : jhr 3992 +
3619 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3620 : jhr 3992
3621 :     //--------------------------------------------------------------------
3622 :     [2004/10/15]::
3623 :     +
3624 : jhr 4002 --
3625 : jhr 3992 * Test coverage tool added!
3626 :     * Further reorganization of tracing-, debugging-, and profiling support:
3627 :     +
3628 :     - moved original BTImp -- now called BackTrace -- into a separate
3629 :     library called $/trace-debug-profile.cm
3630 :     - eliminated all mentions of BTrace from SMLofNJ.Internals
3631 :     - only the instrumentation mechanism is now left in the compiler proper
3632 :     - BackTrace module is a plugin which is NOT plugged in by default
3633 :     - Coverage module is another such plugin
3634 : jhr 4002 --
3635 : jhr 3992 +
3636 :     To get the benefits of any of these plugin modules, the code in
3637 : jhr 4002 question must be compiled with TDP instrumentation turned on. This
3638 : jhr 4603 can be done by setting `SMLofNJ.Internals.TDP.mode` to `true`.
3639 :     (The ref cell is also controlled via the `-Ctdp.instrument=...` switch.)
3640 : jhr 3992 +
3641 :     Plugins are selected at link time. (Pre-compiled instrumented code
3642 :     can be re-loaded with different plugins in effect.) When an
3643 :     instrumented module is linked, whatever plugins are at that time
3644 :     enabled will come into effect for that module.
3645 :     +
3646 : jhr 4603 To enable the back-trace plugin, load library `$/trace-debug-profile.cm`
3647 :     and invoke `BackTrace.install()` (_e.g._, from the interactive prompt).
3648 : jhr 3992 To enable the coverage plugin, load the same library and invoke
3649 : jhr 4603 `Coverage.install()`.
3650 : jhr 3992 +
3651 :     Back-traces are generated automatically on uncaught exceptions and
3652 : jhr 4603 when the code in question explicitly invokes `BackTrace.trigger()`.
3653 : jhr 3992 +
3654 :     Coverage (and execution frequency-) information must be queried
3655 : jhr 4603 explicitly by calling `Coverage.not_covered` and `Coverage.hot_spots`.
3656 : jhr 3992 +
3657 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3658 : jhr 3992
3659 :     //--------------------------------------------------------------------
3660 :     [2004/10/14]::
3661 :     +
3662 : jhr 4603 Snapshot of a significant overhaul of how the `trace/debug/profile` support
3663 :     is hooked into the system (specifically: `Core` and `SMLofNJ.Internals`).
3664 : jhr 3992 +
3665 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3666 : jhr 3992
3667 :     //--------------------------------------------------------------------
3668 :     [2004/10/13]::
3669 :     +
3670 :     Some rationalization of names:
3671 :     +
3672 :     structure BTrace -> structure TDPInstrument
3673 :     etc.
3674 :     +
3675 :     This is is preparation of using the original back-trace
3676 :     instrumentation for other purposes. "TDP" stands for
3677 :     Trace/Debug/Profile.
3678 :     +
3679 :     The control flag controlling whether instrumentation is on or off is now
3680 :     registered under a different name, so instead of running sml as
3681 :     +
3682 :     sml -Cinstrument.btrace-mode=true
3683 :     +
3684 :     one has to say
3685 :     +
3686 :     sml -Ctdp.instrument=true
3687 :     +
3688 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3689 : jhr 3992
3690 :     //--------------------------------------------------------------------
3691 :     [2004/10/11]::
3692 :     +
3693 :     Made some minor modifications to elabcore.sml to have source regions
3694 :     be propagated more tightly -- resulting in better (_i.e._, smaller)
3695 :     regions being reported in error- and debug messages.
3696 :     +
3697 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3698 : jhr 3992
3699 :     //--------------------------------------------------------------------
3700 :     [2004/10/08]::
3701 :     +
3702 :     Fixed handling of keywords in .cm files: After seeing "is" the lexer
3703 :     treats subsequent occurrences of "group", "library", "source", "is",
3704 :     "*", and "-" as ordinary identifiers rather than keywords.
3705 :     +
3706 :     Most seriously, this fixes a problem with CM's "shell" tool. The tool
3707 :     is supposed to accept a tool argument called "source", but this did
3708 :     not work because of the clash with the keyword.
3709 :     +
3710 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3711 : jhr 3992
3712 :     //--------------------------------------------------------------------
3713 :     [2004/10/07]::
3714 :     +
3715 :     Assorted cleanup work:
3716 :     +
3717 :     - got rid of intstrmap in favor of using the library's
3718 :     hash table implementation
3719 :     - threw out most of the pathnames stuff, as it was not used anyway
3720 :     - simplified tokentable implementation
3721 :     - fixed some minor spelling errors
3722 :     +
3723 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3724 : jhr 3992
3725 :     //--------------------------------------------------------------------
3726 :     [2004/10/06]::
3727 :     +
3728 :     Cleaned up the absyn to reflect the invariant that HANDLE always
3729 :     carries a FNexp as part of the type definition. This eliminates some
3730 :     superfluous sanity checks at runtime down the road.
3731 :     +
3732 :     Some minor cleanup of the btrace code.
3733 :     +
3734 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3735 : jhr 3992
3736 :     //--------------------------------------------------------------------
3737 :     [2004/10/01]::
3738 :     +
3739 :     Added hack to make slave mode work in the presence of the version
3740 :     tool. (Still, since the master does two passes over the code for
3741 :     CMB.make, the release number gets bumped twice when slaves are
3742 :     attached. I don't know if this is worth fixing...)
3743 :     +
3744 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3745 : jhr 3992
3746 :     //--------------------------------------------------------------------
3747 :     [2004/09/30]::
3748 :     +
3749 :     * Moved the "version" magic into its own little library under
3750 :     src/system/smlnj/internal. This avoids expensive reconstruction of
3751 :     a stable src/compiler/core.cm.
3752 :     +
3753 :     * At the same time, structure CompilerVersion is now known as
3754 :     structure SMLNJVersion.
3755 :     +
3756 :     * Arranged for the version tool to NOT kick in when rebuilding the system
3757 :     (makeml -rebuild, fixpt). Otherwise one would never reach a fixpoint.
3758 :     Also, loading the versiontool does not work when rebuilding the system
3759 :     because CM is not properly initialized at that time.
3760 :     +
3761 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3762 : jhr 3992
3763 :     //--------------------------------------------------------------------
3764 :     [2004/09/29]::
3765 :     +
3766 :     Implemented some CM magic to have
3767 :     file src/compiler/TopLevel/main/version.sml
3768 :     generated automagically.
3769 :     The version is taken from two files: config/version and config/release.
3770 :     The first is expected to contain a two-part version number such as 110.49.
3771 :     The second should contain a single number, but it may be missing.
3772 :     +
3773 :     If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
3774 :     time the version tool is loaded (which is the first time you say CMB.make),
3775 :     then the tool will increment the value stored in config/release every
3776 :     time CMB.make is invoked.
3777 :     +
3778 :     The binfile format is now insensitive to anything beyond the first
3779 :     two components of a version number, so bumping the release does not render
3780 :     binfiles incompatible. Auto-bumping can be used to keep track of versions
3781 :     during development without invalidating existing binfiles.
3782 :     +
3783 :     In any case, every CMB.make updates the date information in version.sml.
3784 :     (This is the date that is printed in the banner.)
3785 :     +
3786 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3787 : jhr 3992
3788 :     //--------------------------------------------------------------------
3789 :     [2004/09/28]::
3790 :     +
3791 :     Some cleanup of the controls code.
3792 :     +
3793 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3794 : jhr 3992
3795 :     //--------------------------------------------------------------------
3796 :     [2004/09/27]::
3797 :     +
3798 :     Added two pieces of functionality to the Controls interface:
3799 :     +
3800 : jhr 3995 [source,sml]
3801 :     ------------
3802 :     val save'restore: 'a control -> unit -> unit
3803 :     ------------
3804 : jhr 3992 +
3805 : jhr 3995 grabs the current value of the control in stage 1 and restores it
3806 :     in stage 2.
3807 : jhr 3992 +
3808 : jhr 3995 [source,sml]
3809 :     ------------
3810 :     val set' : 'a control * 'a -> unit -> unit
3811 :     ------------
3812 : jhr 3992 +
3813 : jhr 3995 stores the given value into the control in stage 2 (_i.e._, delayed)
3814 :     but does all error checking in stage 1.
3815 :     (This is for string controls that need to do parse their argument --
3816 :     something that might fail. In some cases, notably in CM, one
3817 :     already knows the intended argument but wants to delay the actual
3818 :     assignment until a time when error recovery would be more difficult.)
3819 : jhr 3992 +
3820 : jhr 4603 Also changed the handling of controls in tool arguments to classes "`sml`" and
3821 :     "`lazysml`":
3822 : jhr 4002 +
3823 : jhr 3995 --
3824 : jhr 4603 - use `Controls.save'restore` as a more robust way of restoring the
3825 : jhr 3992 old value (in particular: without having to re-parse the string)
3826 : jhr 4603 - use controls to handle the "`overload`" keyword in the init group
3827 : jhr 3992 (I believe this change actually fixes a long-standing obscure bug.)
3828 : jhr 3995 --
3829 : jhr 3992 +
3830 : jhr 4603 owner:www.tti-c.org/blume/[Matthias Blume]
3831 : jhr 3992
3832 :     //--------------------------------------------------------------------
3833 :     [2004/09/27]::
3834 :     +
3835 : jhr 4603 Added a new tool class called "`lazysml`" to CM's tool chest. The only
3836 :     difference to "`sml`" is that compilation is done with `Control.lazysml`
3837 :     set to true. A source of class "`lazysml`" is automatically recognized
3838 :     by a file name suffix of "`.lml`".
3839 : jhr 3992 +
3840 : jhr 4603 In addition to the above feature, the original class "`sml`" now also
3841 :     supports a tool argument "`lazy`" which has the same effect. As a
3842 : jhr 3992 result, the following three lines are equivalent:
3843 :     +
3844 : jhr 3995 ....................
3845 : jhr 3992 foo.sml : lazysml
3846 :     foo.sml : sml (lazy)
3847 :     foo.sml (lazy)
3848 : jhr 3995 ....................
3849 : jhr 3992 +
3850 :     The setting goes into effect both during parsing and during
3851 :     compilation. The original setting is restored right after parsing and
3852 :     after compilation, respectively.
3853 :     +
3854 :     In addition to all the above, there is also a general mechanism to set
3855 :     ANY of the "controls" that are available at the command line via
3856 : jhr 4603 "`-C...`" on a per-sml-file basis. The same rules that apply for "`lazy`"
3857 :     apply as well. (In fact, "`lazy`" is implemented as a special case of
3858 : jhr 3992 the general mechanism.)
3859 :     +
3860 : jhr 4603 The `.cm` file syntax uses a new keyword tool argument called "`with`".
3861 : jhr 3992 There are several ways of indicating the desired settings:
3862 :     +
3863 : jhr 3995 ....................
3864 : jhr 3992 foo.sml (with:parser.quotations=true)
3865 :     foo.sml (with:(name:parser.quotations value:true))
3866 :     foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
3867 :     foo.sml (with:(name1=value1 name2=value2 ...))
3868 :