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