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