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