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