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