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