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