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