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 4221 - (view) (download)

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