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