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 4815 - (view) (download)

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