Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1294, Thu Dec 12 21:22:48 2002 UTC revision 1701, Wed Nov 17 21:07:35 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Allen Leung (leunga (at) reservoir (dot) com)
17    Date: 2004/11/17 16:05:21 EST 2004
18    Tag: leunga-20041117-mlrisc-live-kill
19    Description:
20    
21       Added support for MLTree constructs LIVE and KILL
22    to all the architectures.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume (blume (at) tti - c (dot) org)
26    Date: 2004/11/13 00:20:00 CST
27    Tag: blume-20041113-versiontool
28    Description:
29    
30    - Stripped down the versiontool: It now only handles the version number.
31      The date string is generated at bootstrap time (during makeml).
32    
33    - In a previous commit, fixed a minor issue with how polyequal is being
34      translated.  In particular, the code now "looks through" abstractions.
35      This results in slightly fewer polyEqual warnings and hopefully slightly
36      more efficient code.  Important examples for where this matters are
37      the new int64 and word64 types.
38    
39    ----------------------------------------------------------------------
40    Name: Matthias Blume (blume (at) tti - c (dot) org)
41    Date: 2004/11/12 00:30:00 CST
42    Tag: blume-20041112-int64
43    Description:
44    
45    Structure Int64 fully hooked in.  (The implementation is not very
46    efficient, though.)
47    
48    ----------------------------------------------------------------------
49    Name: Matthias Blume (blume (at) tti - c (dot) org)
50    Date: 2004/11/11 17:30:00 CST
51    Tag: blume-20041111-more64
52    Description:
53    
54    All the pieces of Word64 are now there, with the exception of the
55    conversions from and to LargeWord. (Eventually these need to be identities,
56    but for the time being they don't even make sense because LargeWord is
57    32-bit wide.)
58    
59    Also started to add similar support for Int64, but major pieces of that
60    are still missing.
61    
62    ----------------------------------------------------------------------
63    Name: Matthias Blume (blume (at) tti - c (dot) org)
64    Date: 2004/11/11 00:15:00 CST
65    Tag: blume-20041111-word64
66    Description:
67    
68    Structure Word64 is now (almost) complete, word literals and patterns
69    seem to work.  There are a few odd pieces missing.  In particular,
70    I didn't do the {from,to}LargeWord parts because LargeWord is still Word32
71    at the moment.
72    
73    Making Word64 official would mean that LargeWord becomes Word64.  But
74    this requires extreme care because most word-word conversions have to
75    go through LargeWord, so making a mistake means loss of efficiency or
76    worse.  Eventually there will be a solution similar to (but actually
77    simpler than) what I did with IntInf.
78    
79    ----------------------------------------------------------------------
80    Name: Matthias Blume (blume (at) tti - c (dot) org)
81    Date: 2004/11/10 18:12:00 CST
82    Tag: blume-20041110-64bit
83    Description:
84    
85    More 64-bit hacking (but still not even half-way there yet).
86    Also, some assorted improvements to the handling of 8-bit words.
87    
88    ----------------------------------------------------------------------
89    Name: Matthias Blume (blume (at) tti - c (dot) org)
90    Date: 2004/11/09 17:50:00 CST
91    Tag: <none>
92    Description:
93    
94    Started adding some infrastructure for supporting 64-bit int- and
95    word-types.  (Still in its very early stages.)
96    
97    ----------------------------------------------------------------------
98    Name: Matthias Blume (blume (at) tti - c (dot) org)
99    Date: 2004/10/28 10:45:00 CDT
100    Tag: Release_110_50
101    Description:
102    
103    New working version (110.50).  NEW BOOTFILES!
104    
105                 =====================
106    
107    Also:
108    
109      - Changend config/srcarchiveurl from a file just
110        containing the URL string into a file containing
111        shell script code.  The code has access to the $VERSION variable.
112      - Made corresponding changes to config/install.sh and config/unpack.
113      - Default contents of config/srcarchiveurl uses $VERSION and
114        normally does not have to be edited to reflect a version change.
115    
116      (As a result, a version change can be done by just editing
117       config/version, the rest is now automatic.)
118    
119    ----------------------------------------------------------------------
120    Name: Matthias Blume (blume (at) tti - c (dot) org)
121    Date: 2004/10/27 17:50:00 CDT
122    Tag: blume-20041027-btrace-msg
123    Description:
124    
125    BackTrace.monitor now also reports the source of the exception that
126    triggered the trace.
127    
128    ----------------------------------------------------------------------
129    Name: Matthias Blume (blume (at) tti - c (dot) org)
130    Date: 2004/10/27 17:20:00 CDT
131    Tag: blume-20041027-x86-c-calls
132    Description:
133    
134    This is the HISTORY entry for two earlier commits, both concerning
135    the x86 c-calls code in MLRISC:
136    
137      - added a missing LOAD in the code that deals with struct arguments
138      - made sure the caller does not add the wrong number of bytes to the
139        stack pointer after a call of a function returning a struct
140        (the callee already pops the implicit argument which points to
141         the space reserved for the result)
142    
143    ----------------------------------------------------------------------
144    Name: Allen Leung (leunga (at) reservoir (dot) com)
145    Date: 2004/10/24 14:00:00 EST
146    Tag: leunga-20041024-x86-gas-fucomip
147    Description:
148    
149       John discovered a bug in the syntax of fucomip.
150       The opcodes FU?COMIP? have been changed to
151    
152           fu?comip? %st(i), %st
153    
154    ----------------------------------------------------------------------
155    Name: Matthias Blume (blume (at) tti - c (dot) org)
156    Date: 2004/10/20 15:06:00 CDT
157    Tag: blume-20041020-standalone-backtrace
158    Description:
159    
160    Added a mechanism for getting back-trace information from standalone
161    programs.  Here is how it works:
162    
163       1. The part of the program from which you want to get backtrace
164          information (usually the whole program) should be wrapped with
165          BackTrace.monitor.  This is a (unit->'a)->'a function, and your
166          main program could be modified from something like
167    
168             fun main (pgm, args) = ...
169    
170         to
171    
172            fun main (pgm, args) = BackTrace.monitor (fn () => ...)
173    
174       2. To be able to access BackTrace.monitor, you have to add
175          library $smlnj-tdp/plugins.cm to the .cm file that contains your
176          main function.
177    
178       3. Remove all compiled code (i.e., all the .cm/ subdirectories that
179          CM might have created in the past for your project).
180    
181       4. Build the system using this command line:
182    
183             ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm \
184                      myprog.cm MyProg.main myprog
185    
186          instead of the usual
187    
188             ml-build myprog.cm MyProg.main myprog
189    
190    I changed a library name:
191    
192       $/trace-debug-profile.cm --> $smlnj-tdp/plugins.cm
193    
194    New libraries:
195    
196       $smlnj-tdp/back-trace.cm
197          -- when loaded causes the back-trace plugin to be installed
198       $smlnj-tdp/coverage.cm
199          -- when loaded causes the coverage plugin to be installed
200    
201    ----------------------------------------------------------------------
202    Name: Matthias Blume (blume (at) tti - c (dot) org)
203    Date: 2004/10/18 16:45:00 CDT
204    Tag: blume-20041018-groupowner
205    Description:
206    
207    Added an "obsolete" warning for the "group owner" syntax to CM's parser.
208    
209    Eliminated group owner specs from .cm files throughout the source tree.
210    
211    ----------------------------------------------------------------------
212    Name: Matthias Blume (blume (at) tti - c (dot) org)
213    Date: 2004/10/15 15:45:00 CDT
214    Tag: blume-20041015-coverage
215    Description:
216    
217    * Test coverage tool added!
218    * Further reorganization of tracing-, debugging-, and profiling support:
219    
220        - moved original BTImp -- now called BackTrace -- into a separate
221          library called $/trace-debug-profile.cm
222        - eliminated all mentions of BTrace from SMLofNJ.Internals
223        - only the instrumentation mechanism is now left in the compiler proper
224        - BackTrace module is a plugin which is NOT plugged in by default
225        - Coverage module is another such plugin
226    
227    To get the benefits of any of these plugin modules, the code in
228    question must be compiled with tdp instrumentation turned on.  This
229    can be done by setting SMLofNJ.Internals.TDP.mode to true.
230    (The ref cell is also controlled via the -Ctdp.instrument=... switch.)
231    
232    Plugins are selected at link time.  (Pre-compiled instrumented code
233    can be re-loaded with different plugins in effect.)  When an
234    instrumented module is linked, whatever plugins are at that time
235    enabled will come into effect for that module.
236    
237    To enable the back-trace plugin, load library $/trace-debug-profile.cm
238    and invoke BackTrace.install() (e.g., from the interactive prompt).
239    To enable the coverage plugin, load the same library and invoke
240    Coverage.install().
241    
242    Back-traces are generated automatically on uncaught exceptions and
243    when the code in question explicitly invokes BackTrace.trigger().
244    
245    Coverage (and execution frequency-) information must be queried
246    explicitly by calling Coverage.not_covered and Coverage.hot_spots.
247    
248    ----------------------------------------------------------------------
249    Name: Matthias Blume (blume (at) tti - c (dot) org)
250    Date: 2004/10/14 17:40:00 CDT
251    Tag: blume-20041014-tdp-core
252    Description:
253    
254    Snapshot of a significant overhaul of how the trace/debug/profile support
255    is hooked into the system (specifically: Core and SMLofNJ.Internals).
256    
257    ----------------------------------------------------------------------
258    Name: Matthias Blume (blume (at) tti - c (dot) org)
259    Date: 2004/10/13 16:34:00 CDT
260    Tag: blume-20041013-tdp
261    Description:
262    
263    Some rationalization of names:
264    
265       structure BTrace -> structure TDPInstrument
266       etc.
267    
268    This is is preparation of using the original back-trace
269    instrumentation for other purposes.  "TDP" stands for
270    Trace/Debug/Profile.
271    
272    The control flag controlling whether instrumentation is on or off is now
273    registered under a different name, so instead of running sml as
274    
275     sml -Cinstrument.btrace-mode=true
276    
277    one has to say
278    
279     sml -Ctdp.instrument=true
280    
281    ----------------------------------------------------------------------
282    Name: Matthias Blume (blume (at) tti - c (dot) org)
283    Date: 2004/10/11 16:37:00 CDT
284    Tag: blume-20041011-regions
285    Description:
286    
287    Made some minor modifications to elabcore.sml to have source regions
288    be propagated more tightly -- resulting in better (i.e., smaller)
289    regions being reported in error- and debug messages.
290    
291    ----------------------------------------------------------------------
292    Name: Matthias Blume (blume (at) tti - c (dot) org)
293    Date: 2004/10/08 22:50:00 CDT
294    Tag: blume-20041008-cmkw
295    Description:
296    
297    Fixed handling of keywords in .cm files: After seeing "is" the lexer
298    treats subsequent occurrences of "group", "library", "source", "is",
299    "*", and "-" as ordinary identifiers rather than keywords.
300    
301    Most seriously, this fixes a problem with CM's "shell" tool.  The tool
302    is supposed to accept a tool argument called "source", but this did
303    not work because of the clash with the keyword.
304    
305    ----------------------------------------------------------------------
306    Name: Matthias Blume (blume (at) tti - c (dot) org)
307    Date: 2004/10/07 16:00:00 CDT
308    Tag: blume-20041007-cleanup
309    Description:
310    
311    Assorted cleanup work:
312    
313      - got rid of intstrmap in favor of using the library's
314        hash table implementation
315      - threw out most of the pathnames stuff, as it was not used anyway
316      - simplified tokentable implementation
317      - fixed some minor spelling errors
318    
319    ----------------------------------------------------------------------
320    Name: Matthias Blume (blume (at) tti - c (dot) org)
321    Date: 2004/10/06 15:15:15 CDT
322    Tag: blume-20041006-handler
323    Description:
324    
325    Cleaned up the absyn to reflect the invariant that HANDLE always
326    carries a FNexp as part of the type definition.  This eliminates some
327    superfluous sanity checks at runtime down the road.
328    
329    Some minor cleanup of the btrace code.
330    
331    ----------------------------------------------------------------------
332    Name: Matthias Blume (blume (at) tti - c (dot) org)
333    Date: 2004/10/01 10:20:30 CDT
334    Tag: blume-20041001-slave
335    Description:
336    
337    Added hack to make slave mode work in the presence of the version
338    tool.  (Still, since the master does two passes over the code for
339    CMB.make, the release number gets bumped twice when slaves are
340    attached.  I don't know if this is worth fixing...)
341    
342    ----------------------------------------------------------------------
343    Name: Matthias Blume (blume (at) tti - c (dot) org)
344    Date: 2004/09/30 10:55:00 CDT
345    Tag: blume-20040930-version
346    Description:
347    
348    * Moved the "version" magic into its own little library under
349      src/system/smlnj/internal.  This avoids expensive reconstruction of
350      a stable src/compiler/core.cm.
351    
352    * At the same time, structure CompilerVersion is now known as
353      structure SMLNJVersion.
354    
355    * Arranged for the version tool to NOT kick in when rebuilding the system
356      (makeml -rebuild, fixpt).  Otherwise one would never reach a fixpoint.
357      Also, loading the versiontool does not work when rebuilding the system
358      because CM is not properly initialized at that time.
359    
360    ----------------------------------------------------------------------
361    Name: Matthias Blume (blume (at) tti - c (dot) org)
362    Date: 2004/09/29 14:00:00 CDT
363    Tag: blume-20040929-autoversion
364    Description:
365    
366    Implemented some CM magic to have
367        file src/compiler/TopLevel/main/version.sml
368    generated automagically.
369    The version is taken from two files: config/version and config/release.
370    The first is expected to contain a two-part version number such as 110.49.
371    The second should contain a single number, but it may be missing.
372    
373    If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
374    time the version tool is loaded (which is the first time you say CMB.make),
375    then the tool will increment the value stored in config/release every
376    time CMB.make is invoked.
377    
378    The binfile format is now insensitive to anything beyond the first
379    two components of a version number, so bumping the release does not render
380    binfiles incompatible.  Auto-bumping can be used to keep track of versions
381    during development without invalidating existing binfiles.
382    
383    In any case, every CMB.make updates the date information in version.sml.
384    (This is the date that is printed in the banner.)
385    
386    ----------------------------------------------------------------------
387    Name: Matthias Blume (blume (at) tti - c (dot) org)
388    Date: 2004/09/28 10:53:00 CDT
389    Tag: blume-20040928-controls
390    Description:
391    
392    Some cleanup of the controls code.
393    
394    ----------------------------------------------------------------------
395    Name: Matthias Blume (blume (at) tti - c (dot) org)
396    Date: 2004/09/27 22:08:00 CDT
397    Tag: blume-20040927-controls
398    Description:
399    
400    Added two pieces of functionality to the Controls interface:
401    
402    1.   val save'restore: 'a control -> unit -> unit
403    
404       grabs the current value of the control in stage 1 and restores it
405       in stage 2.
406    
407    2.   val set' : 'a control * 'a -> unit -> unit
408    
409       stores the given value into the control in stage 2 (i.e., delayed)
410       but does all error checking in stage 1.
411       (This is for string controls that need to do parse their argument --
412        something that might fail.  In some cases, notably in CM, one
413        already knows the intended argument but wants to delay the actual
414        assignment until a time when error recovery would be more difficult.)
415    
416    Changed the handling of controls in tool arguments to classes "sml" and
417    "lazysml":
418       - use Controls.save'restore as a more robust way of restoring the
419         old value (in particular: without having to re-parse the string)
420       - use controls to handle the "overload" keyword in the init group
421         (I believe this change actually fixes a long-standing obscure bug.)
422    
423    ----------------------------------------------------------------------
424    Name: Matthias Blume (blume (at) tti - c (dot) org)
425    Date: 2004/09/27 17:00:00 CDT
426    Tag: blume-20040927-lazysml
427    Description:
428    
429    Added a new tool class called "lazysml" to CM's tool chest.  The only
430    difference to "sml" is that compilation is done with Control.lazysml
431    set to true.  A source of class "lazysml" is automatically recognized
432    by a file name suffix of ".lml".
433    
434    In addition to the above feature, the original class "sml" now also
435    supports a tool argument "lazy" which has the same effect.  As a
436    result, the following three lines are equivalent:
437    
438        foo.sml : lazysml
439        foo.sml : sml (lazy)
440        foo.sml (lazy)
441    
442    The setting goes into effect both during parsing and during
443    compilation.  The original setting is restored right after parsing and
444    after compilation, respectively.
445    
446    In addition to all the above, there is also a general mechanism to set
447    ANY of the "controls" that are available at the command line via
448    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
449    apply as well. (In fact, "lazy" is implemented as a special case of
450    the general mechanism.)
451    
452    The .cm file syntax uses a new keyword tool argument called "with".
453    There are several ways of indicating the desired settings:
454    
455        foo.sml (with:parser.quotations=true)
456        foo.sml (with:(name:parser.quotations value:true))
457        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
458        foo.sml (with:(name1=value1 name2=value2 ...))
459        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
460    
461        etc.
462    
463    Another possible abbreviation is to leave out the =v or value:v part
464    if the name refers to a boolean control (in which case the value is
465    taken to be true).  Thus, one could get lazy sml also by saying:
466    
467        foo.sml (with:parser.lazy-keyword=true)
468        foo.sml (with:parser.lazy-keyword)
469        foo.sml (with:(name:parser.lazy-keyword value:true))
470        foo.sml (with:(name:parser.lazy-keyword))
471    
472    ----------------------------------------------------------------------
473    Name: Matthias Blume (blume (at) tti - c (dot) org)
474    Date: 2004/09/24 16:22:00 CDT
475    Tag: blume-20040924-ppc-long-branch
476    Description:
477    
478    Turned message about "emiting long form of branch" off by default.
479    Added a control flag to turn it back on when desired.
480    
481    ----------------------------------------------------------------------
482    Name: Matthias Blume (blume (at) tti - c (dot) org)
483    Date: 2004/09/24 16:05:00 CDT
484    Tag: blume-20040924-rounding
485    Description:
486    
487    Applied patch for setting rounding modes under Mac OS X.  Thanks to
488    Melissa O'Neill for providing the code!
489    
490    ----------------------------------------------------------------------
491    Name: Matthias Blume (blume (at) tti - c (dot) org)
492    Date: 2004/09/23 17:30:00 CDT
493    Tag: blume-20040923-envvars
494    Description:
495    
496    1. Changed definition of type ControlRegistry.registry_tree to
497       include control_info (i.e., the name of the controlling environment
498       variable).
499    
500    2. Added command-line flags -e and -E to print the names of environment
501       variables that can be used to control internal settings.
502       (This uses the new API mentioned in 1.)
503    
504    ----------------------------------------------------------------------
505    Name: Matthias Blume (blume (at) tti - c (dot) org)
506    Date: 2004/09/13 16:50:00 CDT
507    Tag: Release_110_49
508    Description:
509    
510    New working version (110.49).  NEW BOOTFILES!
511    
512    ----------------------------------------------------------------------
513    Name: Matthias Blume
514    Date: 2004/09/13 16:20:00 CDT
515    Tag: blume-20040913-config-mlrisc
516    Description:
517    
518    Put target "mlrisc" back into the default list.
519    (There is no harm in having it, and some users have expressed their
520    wish to have "mlrisc" included by default.)
521    
522    ----------------------------------------------------------------------
523    Name: John Reppy
524    Date: 2004/09/13
525    Tag: jhr-20040913-signals
526    Description:
527    
528    Fixed the signal masking code to properly nest mask/unmask operations
529    on a per-signal basis.
530    
531    ----------------------------------------------------------------------
532    Name: Matthias Blume (blume (at) tti - c (dot) org)
533    Date: 2004/09/08 13:20:00 CDT
534    Tag: blume-20040908-heap-magic
535    Description:
536    
537    Bumped the heap macig number to 0x09082004 to account for the changed
538    layout of the ML frame under MacOS X.
539    
540    ----------------------------------------------------------------------
541    Name: Allen Leung (leunga (at) reservoir (dot) com)
542    Date: 2004/09/03 11:26:00 EST
543    Tag: leunga-20040903-cygwin-install
544    Description:
545    
546       Added a patch to _arch-n-opsys to enable the Cygwin runtime.
547    The Cygwin runtime is turned on by setting the environment
548    variable SMLNJ_CYGWIN_RUNTIME to 1.
549    
550    ----------------------------------------------------------------------
551    Name: Matthias Blume (blume (at) tti - c (dot) org)
552    Date: 2004/08/31 17:15:00 CDT
553    Tag: blume-20040831-core
554    Description:
555    
556    Added some exports to src/compiler/core.cm upon request by J. Joemann.
557    
558    ----------------------------------------------------------------------
559    Name: Matthias Blume (blume (at) tti - c (dot) org)
560    Date: 2004/08/30 17:55:00 CDT
561    Tag: blume-20040830-installer
562    Description:
563    
564    Upon request by Johannes Joemann:
565    
566    - improved ML code of installer to fall back to coping when renaming
567      fails (i.e., when source and target are on different file systems);
568      the code compiles but has yet to be tested in anger
569    - removed mlrisc from list of default targets (config/targets)
570    
571    ----------------------------------------------------------------------
572    Name: Matthias Blume (blume (at) tti - c (dot) org)
573    Date: 2004/08/27 17:20:00 CDT
574    Tag: blume-20040827-ptreql
575    Description:
576    
577    Added ptreql primop to structure InlineT (upon request from Larry
578    Paulson).
579    
580    ----------------------------------------------------------------------
581    Name: Allen Leung (leunga (at) reservoir (dot) com)
582    Date: 2004/08/15 21:21:00 EST
583    Tag: leunga-110_48-udgraph
584    Description:
585    
586    Another bug fix from Carl Hauser:
587    
588    diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
589    > 48c48
590    > <              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
591    > e::L)
592    > ---
593    > >              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
594    > Without this, any deletion of an edge in an undirected graph does severe
595    > violence to the graph.
596    
597    ----------------------------------------------------------------------
598    Name: Allen Leung (leunga (at) reservoir (dot) com)
599    Date: 2004/08/10 23:35:00 EST
600    Tag: leunga-110_48-ppc
601    Description:
602    
603       The IBM/MacOS syntax switch on PPC was incorrectly swapped.
604    
605    ----------------------------------------------------------------------
606    Name: Matthias Blume (blume (at) tti - c (dot) org)
607    Date: 2004/08/10 12:00:00 CDT
608    Tag: Release_110_48
609    Description:
610    
611    New working version (110.48).  NEW BOOTFILES!
612    
613    ----------------------------------------------------------------------
614    Name: Allen Leung (leunga (at) reservoir (dot) com)
615    Date: 2004/08/09 12:21:00 EST
616    Tag: leunga-110_47-dijsktra
617    Description:
618    
619    Bug fix from Carl Hauser:
620    
621    single_source_shortest_paths in dijkstra.sml was observed to get wrong
622    answers (by comparing to single_source_shortest_paths in bellman-ford.sml).
623    
624    The problem is that following the expression A.update(dist,s,Num.zero)
625    it is necessary to update the priority queue using Q.decreaseWeight(Q,s).
626    
627    ----------------------------------------------------------------------
628    Name: Matthias Blume (blume (at) tti - c (dot) org)
629    Date: 2004/08/06 18:10:00 CDT
630    Tag: blume-20040806-cmdline
631    Description:
632    
633    Fiddled with handling of command-line options:
634    
635      * sml now quits after processing the command line
636        if -H, -S, -h<n>, or -s<n> appears as the last
637        command-line argument
638      * a new option -q terminates the session when encountered on
639        the command line; subsequent arguments will be ignored
640      * bug fixes: short (erroneous) arguments are no longer ignored
641        completely
642    
643    ----------------------------------------------------------------------
644    Name: Allen Leung (leunga (at) reservoir (dot) com)
645    Date: 2004/08/04 18:17:00 EST
646    Tag: leunga-110_47-ppc-ibm-asm
647    Description:
648    
649      - Added minimal IBM assembly syntax support for PowerPC.
650    
651      - Cygwin: manually changed the file cygwin.def.  Some exported symbols have
652        been altered in the runtime.  We need an automatic way to keep the file
653        in sync.
654    
655    ----------------------------------------------------------------------
656    Name: Matthias Blume (blume (at) tti - c (dot) org)
657    Date: 2004/08/04 14:00:00 CDT
658    Tag: Release_110_47
659    Description:
660    
661    New working version (110.47).  NEW BOOTFILES!
662    
663    ----------------------------------------------------------------------
664    Name: Matthias Blume (blume (at) tti - c (dot) org)
665    Date: 2004/08/03 14:25:00 CDT
666    Tag: blume-20040803-callingconv
667    Description:
668    
669    Added low-level support for choosing C calling conventions by
670    twiddling the type of rawccall.  (See
671    src/compiler/Semant/types/cproto.sml for details.)
672    
673    ----------------------------------------------------------------------
674    Name: Matthias Blume (blume (at) tti - c (dot) org)
675    Date: 2004/08/02 15:55:00 CDT
676    Tag: blume-20040802-backout
677    Description:
678    
679    Backed out of change to win32-filesys.c.  The earlier patch to
680    get_file_time caused CM to produce files with the wrong time stamp.
681    
682    ----------------------------------------------------------------------
683    Name: Matthias Blume (blume (at) tti - c (dot) org)
684    Date: 2004/08/02 14:45:00 CDT
685    Tag: blume-20040802-nlffi-win32
686    Description:
687    
688    Added NLFFI support for Win32, adapted from a patch provided by David
689    Hansel.  This is currently completely untested.  Also, the issue
690    concerning stdcall vs. ccall is still unresolved.
691    
692    ----------------------------------------------------------------------
693    Name: Matthias Blume (blume (at) tti - c (dot) org)
694    Date: 2004/07/30 17:55:00 CDT
695    Tag: blume-20040730-various
696    Description:
697    
698    Gearing up towards 110.47...
699    
700    - various minor bugfixes to ml-nlffigen
701    - a beginning of a manual for nlffi
702    
703    - eliminated 'export name=value' in config/install.sh as this does
704      not work with certain versions of /bin/sh
705      (Thanks to David King at Motorola for catching this.)
706    
707    - several bugfixes provided or suggested by David Hansel at Reactive Systems:
708      - added a test for tm==NULL to gmtime.c and localtime.c
709      - applied patch for incorrect GetFileTime under win32
710      - toSeconds -> toMilliseconds in Win32/win32-process.sml
711    
712    ----------------------------------------------------------------------
713    Name: Matthias Blume (blume (at) tti - c (dot) org)
714    Date: 2004/07/21 18:20:00 CDT
715    Tag: blume-20040721-nlffigen
716    Description:
717    
718    - Fixed minor issue in ml-nlffigen: Now generate structure T_foo
719      for a typedef to an incomplete type, but leave out the "typ" member.
720      (This is just for consistency.)
721    - Started to produce what is supposed to become better (i.e., comprehensive)
722      documentation of what ml-nlffigen does and produces.
723    
724    ----------------------------------------------------------------------
725    Name: Matthias Blume (blume (at) tti - c (dot) org)
726    Date: 2004/07/14 16:25:00 CDT
727    Tag: blume-20040714-union
728    Description:
729    
730    Added C_UNION to c-calls/c-types.sml and updated the machinery
731    (ml-nlffigen, cproto.sml) that conveys C function interface
732    information to the code generator.
733    
734    However, the actual architecture-specific implementation of function
735    arguments and results that are C unions is still not implemented.
736    
737    ----------------------------------------------------------------------
738    Name: Allen Leung (leunga (at) reservoir (dot) com)
739    Date: 2004/07/14 14:38:00 EST
740    Tag: leunga-110_46_1-ppc-lwzu
741    Description:
742    
743        Added these instructions to the PowerPC architecture:
744        LBZU(X), LHZU(X), LWZU(X),
745        STWU(X), STFDU, STFSU
746    
747        etc...
748    
749        Note: I haven't added their instruction encoding into the description.
750    
751    ----------------------------------------------------------------------
752    Name: Allen Leung (leunga (at) reservoir (dot) com)
753    Date: 2004/07/13 15:04:00 EST
754    Tag: leunga-110_46_1-ppc-lwarx
755    Description:
756    
757       Added the two instructions LWARX and STWCX to the PowerPC
758    instruction set.
759    
760       A (untested) rewrite of loop-structure.sml.  The old version
761    is completely broken.
762    
763    ----------------------------------------------------------------------
764    Name: Matthias Blume (blume (at) tti - c (dot) org)
765    Date: 2004/07/13 13:50:00 CDT
766    Tag: blume-20040713-nlffi
767    Description:
768    
769    - use paramAlloc to report c-calls with too many arguments
770      (for PPC version where parameter area is pre-allocated)
771    - added ccall_maxargspace to machspec (to implement the above)
772    - made "make" commend in CM's "make" tool configurable
773    - added option (default: on) for passing the name of the SML/NJ's "bin"
774      directory to "make"; the call looks like this:
775    
776         make <options> SMLNJ_BINDIR=<dir> <target>
777    
778      This can be used by the Makefile to, e.g., pick the "right" version
779      of ml-nlffigen.
780    - minor code tweaks
781    
782    ----------------------------------------------------------------------
783    Name: Matthias Blume (blume (at) tti - c (dot) org)
784    Date: 2004/07/12 22:50:00 CDT
785    Tag: blume-110_46_1-macosx-nlffi
786    Description:
787    
788    NLFFI under Mac OS X now working (sort of).  This is largely untested,
789    though.
790    
791    Note:  1. You have to make a new, clean build of the runtime system.
792           2. There are new BOOTFILES, you have to use them!
793              (Doing the bootstrap process yourself would be *very* painful!
794               If you absolutely have to do it, build the system under
795               a different architecture and then cross-compile.)
796    
797    Version bumped to 110.46.1 to account for runtime data format changes.
798    
799    ----------------------------------------------------------------------
800    Name: Matthias Blume (blume (at) tti - c (dot) org)
801    Date: 2004/06/18 14:30:00 CDT
802    Tag: blume-20040618-unix
803    Description:
804    
805    Changed the implementation of structure Unix so that the same stream
806    is returned every time one of the {text,bin}{In,Out}streamOf functions
807    is invoked on the same proc.  This is not what the spec currently
808    says -- although IMO it arguably should.  (See discussion below.)
809    
810    ----------------------------------------------------------------------
811    Name: Matthias Blume (blume (at) tti - c (dot) org)
812    Date: 2004/06/17 18:15:00 CDT
813    Tag: Release_110_46
814    Description:
815    
816    New working version (110.46).  NEW BOOTFILES!
817    
818    ----------------------------------------------------------------------
819    Name: Matthias Blume (blume (at) tti - c (dot) org)
820    Date: 2004/06/17 17:20:00 CDT
821    Tag: blume-20040617-timer-unix
822    Description:
823    
824    Changed the interface of structures Timer and Unix to match the most
825    recent Basis spec.
826    
827    In the case of Unix there still seems to be an open/weird issue:
828    
829       The {text,bin}{In,Out}streamOf functions are supposed to create
830       fresh streams whenever they are called -- as opposed to have them
831       return the same stream every time.  This design is supposed to
832       prevent space leaks caused by proc values hanging on to streams.
833    
834       The reap function, on the other hand, is supposed to close the
835       streams.  This cannot be done without having a handle on the
836       stream in proc after all...
837    
838    I took the liberty to implement the following stopgap solution:
839    
840      The proc value hangs on to the most recently created stream(s).
841      Reap closes those.  If either or both of the two streams hadn't
842      been created at all yet, then reap will close the corresponding
843      file descriptors directly.
844    
845    PS: I don't understand the original space leak argument anymore.  If
846    a proc hangs on to the imperative stream, then I/O operations on those
847    will advance the state of the cached stream and avoid the space leak.
848    
849    ----------------------------------------------------------------------
850    Name: Matthias Blume (blume (at) tti - c (dot) org)
851    Date: 2004/05/28 16:45:00 CDT
852    Tag: blume-20040528-basis
853    Description:
854    
855    Added signature PACK_REAL and exported functor PrimIO.
856    
857    ----------------------------------------------------------------------
858    Name: Matthias Blume (blume (at) tti - c (dot) org)
859    Date: 2004/05/25 16:00:00 CDT
860    Tag: blume-20040525-group-owner
861    Description:
862    
863    CM now ignores (but still accepts) the "owner" information in group
864    descriptions.  The owner of a group is its next enclosing
865    library. Each group must have a unique owner.  (There is a virtual
866    "toplevel" library that owns groups which are not nested within a real
867    library.)  Previously, each group had to explicitly declare its owner,
868    and CM would check that such a declaration is correct.  The new scheme
869    is to have CM check that for each group there is precisely one owning
870    library.
871    
872    The advantage of the new scheme is that the programmer no longer needs
873    to maintain the somewhat annoying owner information.  The downside is
874    that CM cannot enforce the ownership rule across multiple runs of
875    CM.make.  Fortunately, enclosing the same group in two different
876    libraries A and B which are not part of the same program does not
877    cause real problems.
878    
879    ----------------------------------------------------------------------
880    Name: Matthias Blume (blume (at) tti - c (dot) org)
881    Date: 2004/05/20 16:00:00 CDT
882    Tag: blume-20040520-win32
883    Description:
884    
885    Made the win32 version work again.  (Strangely, a misplaced comma had
886    slipped into win32-process.c which prevented the runtime from being
887    compiled correctly.)
888    
889    Also, included a minor addition to ml-build.bat analogous to what was
890    done in blume-20040519-ml-build.
891    
892    ----------------------------------------------------------------------
893    Name: Matthias Blume (blume (at) tti - c (dot) org)
894    Date: 2004/05/19 22:10:00 CDT
895    Tag: blume-20040519-ml-build
896    Description:
897    
898    Arranged for ml-build to clean up after itself a little bit better.
899    The script generates a temporary SML source file and compiles it using
900    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
901    gets rid of those at the end, so they don't accumulate under .cm.
902    
903    This required a minor change to install.sh because the name of the
904    metadata directory (default: .cm) is actually configurable at
905    installation time.
906    
907    ----------------------------------------------------------------------
908    Name: Matthias Blume (blume (at) tti - c (dot) org)
909    Date: 2004/05/18 15:50:00 CDT
910    Tag: blume-20040518-mkreader
911    Description:
912    
913    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
914    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
915    
916    ----------------------------------------------------------------------
917    Name: Matthias Blume (blume (at) tti - c (dot) org)
918    Date: 2004/05/11 14:35:00 CDT
919    Tag: blume-20040511-win32sock
920    Description:
921    
922    Added previously missing support for many socket-related functions
923    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
924    for the voluminous patch!
925    
926    (I have not tested this patch under win32 yet.)
927    
928    Here is David's e-mail:
929    
930    Hi,
931    
932    Attached to this email you find a diff against sml/nj 110.45
933    that will enable socket support under Windows.
934    
935    To apply the patch (using unix or cygwin)
936    1) gunzip runtime.diff.gz
937    2) "cd" into "src/runtime" in the source tree of a fresh
938       110.45 installation.
939    3) patch -p 1 < [your/path/to]runtime.diff
940    
941    The code compiles fine but has NOT yet been extensively tested.
942    I only ran a few tests for basic socket client functionality
943    (which worked fine).  Especially the functions that use ioctl
944    are not tested at all and might not work (see below).
945    
946    I implemented this since we want to move to a newer version of sml/nj
947    but need socket support in order to use it.  This is the first time I
948    even had a look at the sml/nj source,  so please review my changes
949    before making this part of the distribution!  Here are a few issues
950    that I think might be better for someone to solve who is more
951    familiar with the sml/nj source (and socket programming):
952    
953    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
954      exception since I could not figure out what the windows equivalent
955      of these functions is
956    
957    - In sockets-osdep.h there are a some #include statements that are
958      only used in a few files that include sockets-osdep.h
959    
960    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
961      does not process its return value since I don't know how to
962      report an error upwards.
963    
964    - It would probably be good to have a call to WSACleanup() when
965      the library is unloaded (if there is such a possibility).
966      Otherwise I think Windows will take care of this automatically
967      when the process finishes.
968    
969    - I used ioctlsocket() as a replacement for ioctl() but I have
970      no idea if that is actually the proper replacement on Windows.
971    
972    - All these issues are marked in the code by "FIXME" comments.
973    
974    We use sml/nj extensively in our products and are quite happy
975    with it.  I hope this contribution will help you.
976    
977    Keep up the good work!
978    
979    David
980    
981    ----------------------------------------------------------------------
982    Name: Matthias Blume (blume (at) tti - c (dot) org)
983    Date: 2004/05/11 14:20:00 CDT
984    Tag: blume-20040511-installml
985    Description:
986    
987    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
988    the patch.)
989    
990    ----------------------------------------------------------------------
991    Name: Matthias Blume (blume (at) tti - c (dot) org)
992    Date: 2004/05/11 14:05:00 CDT
993    Tag: blume-20040511-nlffi-netbsd
994    Description:
995    
996    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
997    the patch.)
998    
999    ----------------------------------------------------------------------
1000    Name: Matthias Blume (blume (at) tti - c (dot) org)
1001    Date: 2004/05/11 12:05:00 CDT
1002    Tag: blume-20040511-exports
1003    Description:
1004    
1005    As per request by Adam Chlipala <adam@hcoop.net>, extended various
1006    export lists in compiler-related .cm-files.
1007    
1008    ----------------------------------------------------------------------
1009    Name: Matthias Blume (blume (at) tti - c (dot) org)
1010    Date: 2004/05/11 11:35:00 CDT
1011    Tag: blume-20040511-allsource
1012    Description:
1013    
1014    The installer now honors the "src-smlnj" target again, although its meaning
1015    has changed from "all sources required for the compiler" to "all sources
1016    the installer knows about".  In other words, if you enable "src-smlnj"
1017    in the "targets" file, then the installer will pull in sources for
1018    everything.  (Notice that this refers to source code only.  Compiled
1019    code is still only installed for modules that were requested explicitly
1020    or which are required for other modules that were requested explicitly.)
1021    
1022    ----------------------------------------------------------------------
1023    Name: Matthias Blume (blume (at) tti - c (dot) org)
1024    Date: 2004/04/23 17:40:00 CDT
1025    Tag: blume-20040423-ieee-scan
1026    Description:
1027    
1028    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
1029    in the exponent calculation we get INF or ZERO (depending on the mantissa
1030    and the sign of the exponent).
1031    
1032    ----------------------------------------------------------------------
1033    Name: Matthias Blume (blume (at) tti - c (dot) org)
1034    Date: 2004/04/23 10:40:00 CDT
1035    Tag: blume-20040423-ml-build
1036    Description:
1037    
1038    The ml-build script now terminates with a non-0 status when something
1039    goes wrong.
1040    
1041    ----------------------------------------------------------------------
1042    Name: Matthias Blume (blume (at) tti - c (dot) org)
1043    Date: 2004/04/22 16:35:00 CDT
1044    Tag: blume-20040422-Option
1045    Description:
1046    
1047    Made exception Option to be the same as exception Option.Option
1048    (as it should be).
1049    
1050    ----------------------------------------------------------------------
1051    Name: Allen Leung (leunga (at) reservoir (dot) com)
1052    Date: 2004/03/19 14:40:00 EST
1053    Tag: leunga-20040319-cygwin-nlffi
1054    Description:
1055    
1056    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
1057    of SML/NJ.  The problem is that
1058    
1059       lib = dlopen(NULL, ...)
1060       f   = dlsym(lib, "malloc");
1061    
1062    does not work on Windows unless we explicitly export symbols
1063    such as 'malloc' during linking.  We fixed this by explicitly
1064    exporting the required symbols with the magic gcc incantation:
1065    
1066        -Wl,--export-all cygwin.def
1067    
1068    where cygwin.def is a file containing all the symbols that
1069    we wish to export.
1070    
1071    I suspect this is a Windows problem and we'll have to
1072    do the same (somehow with windows compilers) when
1073    we build the native win32 version with the system
1074    calls LoadLibrary/GetProcAddress.
1075    
1076    ----------------------------------------------------------------------
1077    Name: Matthias Blume (blume (at) tti - c (dot) org)
1078    Date: 2004/03/04 16:35:00 CST
1079    Tag: blume-20040304-intinf-fmt
1080    Description:
1081    
1082    Fixed problem with IntInf.fmt (sign would show up on the right instead
1083    of on the left for BIN, OCT, and HEX).
1084    
1085    ----------------------------------------------------------------------
1086    Name: Matthias Blume (blume (at) tti - c (dot) org)
1087    Date: 2004/03/04 11:25:00 CST
1088    Tag: blume-20040304-symlinks
1089    Description:
1090    
1091    Fixed problem with installer script (unix only) where bin/ml-yacc and
1092    friends pointed (via symlinks) to absolute locations instead of just
1093    .run-sml.  This was reported by Vesa A Norrman.
1094    
1095    ----------------------------------------------------------------------
1096    Name: Matthias Blume (blume (at) tti - c (dot) org)
1097    Date: 2004/02/13 14:50:00 CST
1098    Tag: Release_110_45
1099    Description:
1100    
1101    New working version (110.45). New bootfiles.
1102    
1103    ----------------------------------------------------------------------
1104    Name: Matthias Blume (blume (at) tti - c (dot) org)
1105    Date: 2004/01/26 15:15:15 CST
1106    Tag: blume-20040126-toplevel
1107    Description:
1108    
1109    Improved handling of exceptions at the interactive toplevel.
1110    
1111    ----------------------------------------------------------------------
1112    Name: Matthias Blume (blume (at) tti - c (dot) org)
1113    Date: 2004/01/26 11:25:00
1114    Tag: blume-20040126-app
1115    Description:
1116    
1117    Type of top-level "app" corrected.
1118    Added code for setting vp_limitPtrMask to Win32-specific runtime.
1119    
1120    ----------------------------------------------------------------------
1121    Name: Matthias Blume (blume (at) tti - c (dot) org)
1122    Date: 2003/11/18 17:10 CST
1123    Tag: blume-20031118-basis-fiddle
1124    Description:
1125    
1126    - changed Timer interface to what might become the spec
1127    - POSIX_FLAGS -> BIT_FLAGS according to spec
1128    - some other minor discrepancies wrt. spec eliminated
1129    
1130    ----------------------------------------------------------------------
1131    Name: Matthias Blume (blume (at) tti - c (dot) org)
1132    Date: 2003/11/06 12:00:00 CST
1133    Tag: Release_110_44
1134    Description:
1135    
1136    New working version (110.44). New bootfiles.
1137    
1138    ----------------------------------------------------------------------
1139    Name: Matthias Blume (blume (at) tti - c (dot) org)
1140    Date: 2003/11/04 11:50:00 CST
1141    Tag: blume-20031104-move-libraries
1142    Description:
1143    
1144    Eliminated the "dont_move_libraries" directive in config/targets.
1145    (The mechanism was broken and could not be fixed easily.  Moreover,
1146    there does not seem to be any reason not to move all libraries into
1147    lib during installation.  I originally implemented this directive as a
1148    backward-compatibility feature when I first introduced the new CM.
1149    Now that things have been stable for a long time and going back to the
1150    old CM is not an option, there is no reason to keep it around.)
1151    
1152    ----------------------------------------------------------------------
1153    Name: Matthias Blume (blume (at) tti - c (dot) org)
1154    Date: 2003/11/03 16:00:00 CST
1155    Tag: blume-20031103-installdir
1156    Description:
1157    
1158    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
1159    Richards for pointing out the problem and providing the solution.)
1160    
1161    ----------------------------------------------------------------------
1162    Name: Matthias Blume (blume (at) tti - c (dot) org)
1163    Date: 2003/10/01 17:05:00 CDT
1164    Tag: blume-20031001-lal-mlrisc
1165    Description:
1166    
1167    MLRISC bug fix from Lal.
1168    
1169    ----------------------------------------------------------------------
1170    Name: Matthias Blume (blume (at) tti - c (dot) org)
1171    Date: 2003/09/30 16:10:00 CDT
1172    Tag: blume-20030930-primio-bat
1173    Description:
1174    
1175    1. Added openVector, nullRd, and nullWr to PRIM_IO.
1176    2. Improved .bat files (for Win32 port) to make things work under Win95.
1177       (thanks to Aaron S. Hawley for this one)
1178    
1179    ----------------------------------------------------------------------
1180    Name: Matthias Blume (blume (at) tti - c (dot) org)
1181    Date: 2003/09/26 16:05:00 CDT
1182    Tag: blume-20030926-wrappriv
1183    Description:
1184    
1185    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
1186    
1187    ----------------------------------------------------------------------
1188    Name: Matthias Blume (blume (at) tti - c (dot) org)
1189    Date: 2003/09/26 15:00:00 CDT
1190    Tag: blume-20030926-110_43_3
1191    Description:
1192    
1193    - additional cleanup
1194    - version number bump, NEW BOOTFILES
1195    
1196    ----------------------------------------------------------------------
1197    Name: Matthias Blume (blume (at) tti - c (dot) org)
1198    Date: 2003/09/26 12:00:00 CDT
1199    Tag: blume-20030926-ppautoload
1200    Description:
1201    
1202    I modified the read-eval-print loop so that the autoloader gets
1203    invoked whenever the prettyprinter tries to look up a symbol that
1204    is not currently defined in the toplevel environment but which
1205    appears in CM's autoload registry.  As a result, we see far fewer of
1206    those ?.Foo.Bar.xxx names in the prettyprinter's output.
1207    
1208    In addition to this I tried to clean up some pieces of the Basis
1209    implementation (e.g., Socket, Word8Array) in order to prevent other
1210    instances of these ?.Foo.Bar.xxx names from being printed.
1211    
1212    The mechanism that picks names for types still needs some work, though.
1213    (Right now it seems that if there is a type A.t which is defined to
1214    be B.u, but B is unavailable at toplevel, then A.t gets printed as
1215    "?.B.u" although the perhaps more sensible solution would be to use
1216    "A.t" in this case.  In other words, the prettyprinter should follow
1217    a chain of DEFtycs not farther than there are corresponding toplevel
1218    names in the current environment.)
1219    
1220    ----------------------------------------------------------------------
1221    Name: Matthias Blume (blume (at) tti - c (dot) org)
1222    Date: 2003/09/24 16:31:00 CDT
1223    Tag: blume-20030924-installer
1224    Description:
1225    
1226    Another installer tweak:  All the ML code for the installer is now
1227    compiled during CMB.make and put into a little library called
1228    $smlnj/installer.cm.  The installation then simply invokes
1229    
1230       sml -m $smlnj/installer.cm
1231    
1232    and everything happens automagically.
1233    
1234    Win32:  ML code senses value of environment variable SMLNJ_HOME.
1235    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
1236            and BINDIR.
1237    
1238    The new scheme guarantees that the ML code responsible for the installation
1239    is in sync with the APIs of the main system.  Also, the installer is
1240    somewhat faster because the installer script is precompiled.
1241    
1242    ----------------------------------------------------------------------
1243    Name: Matthias Blume (blume (at) tti - c (dot) org)
1244    Date: 2003/09/24 15:35:00 CDT
1245    Tag: blume-20030924-synsock
1246    Description:
1247    
1248    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
1249    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
1250    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
1251    implementations of non-blocking operations from CML's Socket
1252    structure.
1253    
1254    ----------------------------------------------------------------------
1255    Name: Matthias Blume (blume (at) tti - c (dot) org)
1256    Date: 2003/09/24 15:10:05 CDT
1257    Tag: blume-20030924-sockets
1258    Description:
1259    
1260    1. Fixed SOCKET API and implementation to match Basis spec.
1261       This required changing the internal representation of sockets to one
1262       that remembers (for each socket file descriptor) whether it is currently
1263       blocking or non-blocking.  This state is maintained lazily (i.e., a system
1264       call is made only if the state actually needs to change).
1265    
1266    2. OS-specific details of sockets were moved into separate files, thus
1267       making it possible to unify the bulk of the socket implementations
1268       between Unix and Win32.
1269    
1270    3. CML's socket API changed accordingly.
1271       (Note that we need to remove non-blocking functions from this API
1272       since they are redundant in the case of CML!)
1273    
1274    4. CML's socket implementation now makes use of non-blocking functions
1275       provided by Basis, thus removing all OS-dependent code from this part
1276       of CML.
1277    
1278    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
1279    
1280    ----------------------------------------------------------------------
1281    Name: Matthias Blume (blume (at) tti - c (dot) org)
1282    Date: 2003/09/22 12:10:00 CDT
1283    Tag: blume-20030922-110_43_2
1284    Description:
1285    
1286    Made a new interim version and bootfiles for developer's bootstrapping
1287    convenience.
1288    
1289       110.43.2 -- NEW BOOTFILES
1290    
1291    ----------------------------------------------------------------------
1292    Name: Matthias Blume (blume (at) tti - c (dot) org)
1293    Date: 2003/09/19 15:55:00 CDT
1294    Tag: blume-20030919-cmdir
1295    Description:
1296    
1297    1. new-install.sh -> install.sh
1298    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
1299    3. tweaked installer so that another name instead of .cm can be chosen
1300       at install time (by setting the CM_DIR_ARC environment variable
1301       during installation); once installation is complete, the name is
1302       fixed
1303    
1304    ----------------------------------------------------------------------
1305    Name: Matthias Blume (blume (at) tti - c (dot) org)
1306    Date: 2003/09/18 16:00:00 CDT
1307    Tag: blume-20030918-110_43_1
1308    Description:
1309    
1310    Made a new interim version and bootfiles for developer's bootstrapping
1311    convenience.
1312    
1313       110.43.1 -- NEW BOOTFILES
1314    
1315    ----------------------------------------------------------------------
1316    Name: Matthias Blume (blume (at) tti - c (dot) org)
1317    Date: 2003/09/18 15:20:00 CDT
1318    Tag: blume-20030918-misc
1319    Description:
1320    
1321    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
1322       this seems to be controversial at the moment) and used those in
1323       Posix.ProcEnv.times.
1324    
1325    2. Added Time.{from,to}Nanoseconds to Time.
1326    
1327    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
1328       For example, fromLargeInt never needs to look at more than 3 "big
1329       digits" to get its 53 bits of precision.
1330    
1331    ----------------------------------------------------------------------
1332    Name: Matthias Blume (blume (at) tti - c (dot) org)
1333    Date: 2003/09/17 16:30:00 CDT
1334    Tag: blume-20030917-real32-slices
1335    Description:
1336    
1337    Added an entry to the primitive environment
1338    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
1339    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
1340    
1341    Removed some of the "magic" constants in real64.sml and replaced them
1342    with code that generates these values from their corresponding
1343    integer counterparts.
1344    
1345    Made all(?) the slice-related changes to the Basis and made everything
1346    compile again...
1347    
1348    ----------------------------------------------------------------------
1349    Name: Matthias Blume (blume (at) tti - c (dot) org)
1350    Date: 2003/09/15 17:45:00 CDT
1351    Tag: blume-20030915-rbase
1352    Description:
1353    
1354    Fixed bug in Real.fromLargeInt.
1355    
1356    ----------------------------------------------------------------------
1357    Name: Matthias Blume (blume (at) tti - c (dot) org)
1358    Date: 2003/09/13 18:11:00 CDT
1359    Tag: blume-20030913-libinstall
1360    Description:
1361    
1362    Minor bugfix in config/libinstall (set anchor with path to
1363    standalone tool after installing it, otherwise libraries that
1364    need ml-lex or ml-yacc won't compile the first time the installer
1365    runs).
1366    
1367    ----------------------------------------------------------------------
1368    Name: Matthias Blume (blume (at) tti - c (dot) org)
1369    Date: 2003/09/12 11:45:00 CDT
1370    Tag: blume-20030912-various
1371    Description:
1372    
1373     - fixed bug in Real.toLargeInt
1374     - fixed bug in Posix.ProcEnv.times
1375     - changed inputLine functions to return an option
1376     - minor installer improvements / bugfixes
1377     - changed default @SMLalloc parameter for x86/celeron to 64k
1378    
1379    ----------------------------------------------------------------------
1380    Name: Matthias Blume (blume (at) tti - c (dot) org)
1381    Date: 2003/09/09 22:00:00 CDT
1382    Tag: Release_110_43
1383    Description:
1384    
1385        New working release 110.43.  New bootfiles.
1386    
1387    ----------------------------------------------------------------------
1388    Name: Matthias Blume (blume (at) tti - c (dot) org)
1389    Date: 2003/09/09 19:20:00 CDT
1390    Tag: blume-20030909-installer
1391    Description:
1392    
1393    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
1394    Modified config/install.bat to take advantage of it.  Also modified
1395    config/install.sh (and called it config/new-install.sh) to take advantage
1396    of it on Unix systems.  (The SML code is (supposed to be) platform-
1397    independent.)
1398    
1399    The installer can now install everything under Win32
1400    as well as under *nix as long as it compiles.
1401    
1402    Other changes:
1403    
1404      - made CML compile again under Win32
1405      - made eXene compile under Win32 (by providing a fake structure UnixSock
1406        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
1407      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
1408        same as type int;  under Win32 it isn't
1409      - fixed some slice-related problems in the win32-specific parts of CML
1410      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
1411        (under Win32, the volume name is case-insensitive, and the
1412        OS.Path code compares volume names for equality)
1413    
1414    ----------------------------------------------------------------------
1415    Name: Matthias Blume (blume (at) tti - c (dot) org)
1416    Date: 2003/09/08 11:55:00 CDT
1417    Tag: blume-20030908-fullpath
1418    Description:
1419    
1420    Made Win32 version of OS.FileSys.fullPath return current directory
1421    when given an empty string.  This is what the spec says, and incidentally,
1422    CM depends on it.  (CM otherwise goes into an infinite loop in certain
1423    cases when presented with the name of a non-existing .cm file.)
1424    
1425    ----------------------------------------------------------------------
1426    Name: Matthias Blume (blume (at) tti - c (dot) org)
1427    Date: 2003/09/04 16:30:00 CDT
1428    Tag: blume-20030905-slices-etc
1429    Description:
1430    
1431      1. Changed interface to vectors and arrays in Basis to match
1432         (draft) Basis spec.
1433      2. Added signatures and implementations of slices according to
1434         Basis spec.
1435      3. Edited source code throughout the system to make it compile again
1436         under 1. and 2.  (In some cases code had to be added to have it
1437         match the new signatures.)
1438      4. MLRISC should be backward-compatible: the copies of the originals
1439         of files that needed to change under 3. were retained, the .cm files
1440         check the compiler version number and use old versions when
1441         appropriate.
1442      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
1443         dirstream -> string option (in accordance with Basis spec).
1444      6. When generating code that counts lines, ml-lex used function
1445         CharVector.foldli, taking advantage of its old interface.
1446         This has been replaced with the corresponding code from
1447         CharVectorSlice.  (html-lex must be re-lexed!)
1448      7. BitArray in smlnj-lib/Util has been extended/modified to match the
1449         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
1450      8. Removed temporary additions (fromInternal, toInternal) from the
1451         (now obsolete) IntInf in smlnj-lib/Util.
1452      9. Cleaned up structure Byte.
1453     10. Added localOffset, scan, and fromString to Date (according to spec).
1454         Cleaned/corrected implementation of Date.
1455         (Still need to check for correctness; implement better canonicalizeDate.)
1456     11. Added "scan" to signature IEEE_REAL.
1457     12. Some improvements to IntInf [in particular: efficiency-hack for
1458         mod and rem when second operand is 2 (for parity checks).]
1459     13. Changed representation of type Time.time, using a single IntInf.int
1460         value counting microseconds.  This considerably simplified the
1461         implementation of structure Time.  We now support negative time
1462         values; scan and fromString handle signs.
1463     14. Functor PrimIO now takes two additional arguments (VectorSlice and
1464         ArraySlice).
1465    
1466    ----------------------------------------------------------------------
1467    Name: Matthias Blume (blume (at) tti - c (dot) org)
1468    Date: 2003/08/28 17:00:00 CDT
1469    Tag: blume-20030828-intinf
1470    Description:
1471    
1472    This is a major update which comes with a version number bump
1473    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
1474    and an implementation of IntInf in the Basis.
1475    
1476    There are a fairly large number of related changes and updates throughout
1477    the system:
1478    
1479    Basis:
1480            - Implemented IntInf.
1481            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
1482            - Added some missing Real64 operations, most notably Real.toLargeInt.
1483            - Added FixedInt as a synonym for Int32.
1484    
1485    compiler:
1486            * Added support for a built-in intinf type.
1487              - literals
1488              - pattern matching
1489              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
1490              - overloading on literals and operations
1491    
1492            This required adding a primitive type intinf, some additional
1493            primops, and implementations for several non-trivial intinf
1494            operations in Core.  (The intinf type is completely abstract
1495            to the compiler; all operations get delegated back to the Core.)
1496    
1497            * Intinf equality is handled by polyequal.  However, the compiler
1498            does not print its usual warning in this case (since polyequal
1499            is the right thing to do there).
1500    
1501            * Improved the organization of structure InlineT.
1502    
1503            * A word about conversion primops:
1504            If conversions involving intinf do not cancel out during
1505            CPS contract, then the compiler must insert calls to Core functions.
1506            Since all core access must be resolved already during the FLINT
1507            translate phase, it would be too late a the time of CPS contract
1508            to add new Core calls.  For this reason, conversion primops
1509            for intinf carry two arguments:  1. the numeric argument that
1510            they are supposed to convert, and 2. the Core function that
1511            can help with this conversion if necessary.  If CPS contract
1512            eliminates a primop, then the associated Core function becomes
1513            dead and goes away.  Intinf conversion primops that do not get
1514            eliminated by CPS contract get rewritten into calls of their
1515            core functions by a separate, new phase.
1516    
1517    interactive system:
1518            - Control.Print.intinfDepth controls max length of intinf constants
1519            being printed. (Analogous to Control.Print.stringDepth.)
1520            - Cleanup in printutil and pputil: got rid of unused stuff and
1521            duplicates; replaced some of the code with code that makes better
1522            use of library functionality.
1523    
1524    CM:
1525            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
1526            are no longer silent.
1527    
1528    CKIT:
1529            Fixed mismatched uses of Int32 and LargeInt.  I always decided
1530            in favor of LargeInt -- which is now the same as IntInf.
1531            CKIT-knowledgable people should check whether this is what's
1532            intended and otherwise change things back to using Int32 or
1533            FixedInt.
1534    
1535    Throughout the code:
1536            Started using IntInf.int literals and built-in operations
1537            (e.g., comparison with 0) where this seems appropriate.
1538    
1539    
1540    ----------------------------------------------------------------------
1541    Name: Dave MacQueen (dbm@cs.uchicago.edu)
1542    Date: 2003/08/13 11:36:00 CDT
1543    Tag: dbm-20030813-mcz-merge1
1544    Description:
1545    
1546    Merging changes from the mcz-branch development branch into trunk.
1547    These changes involve replacement of the emulated old prettyprinter
1548    interface with direct use of the SML/NJ Lib PP library, and fixing
1549    of a couple of bugs (895, 1186) relating to error messages.  A new
1550    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
1551    has been added.
1552    
1553    ----------------------------------------------------------------------
1554    Name: Matthias Blume (blume (at) tti - c (dot) org)
1555    Date: 2003/08/11 15:45:00 CDT
1556    Tag: blume-20030811-windows
1557    Description:
1558    
1559    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
1560    
1561        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
1562    
1563    This patch restores SML/NJ's ability to run under win32.  There are a
1564    number of changes, including fixes for several bugs that had gone
1565    unnoticed until now:
1566    
1567      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
1568        trying to run the win32 version from within cygwin.)
1569    
1570      - There are a number of simple .bat scripts that substitute for their
1571        corresponding Unix shell-scripts.  (See below.)
1572    
1573      - The internals of ml-build have been modified slightly.  The main
1574        difference is that instead of calling ".link-sml" (or link-sml.bat)
1575        using OS.Process.system, the ML process delegates this task back
1576        to the script.  Otherwise problems arise in mixed environments such
1577        as Cygwin where scripts look and work like Unix scripts, but
1578        where OS.Process.system cannot run them.
1579    
1580      - In CM, the srcpath pickler used native pathname syntax -- which
1581        is incorrect in the case of cross-compilation.  The new pickle format
1582        is independent of platform-specific naming conventions.
1583    
1584      - Path configuration files (such as lib/pathconfig) can now choose
1585        between native and standard syntax.  Placing a line of the form
1586    
1587            standard!
1588    
1589        into the file causes all subsequent paths to be interpreted using
1590        CM standard pathname syntax (= Unix conventions); a line
1591    
1592            native!
1593    
1594        switches back to native style.  This was needed so that
1595        path config files can be written portably, see src/system/pathconfig.
1596    
1597      - Runtime system:
1598    
1599          - win32-filesys.c:  get_file_time and set_file_time now
1600            access modification time, not creation time.
1601    
1602          - I/O code made aware of new array representation.
1603    
1604          - Bug fixes in X86.prim.masm.
1605    
1606       - src/system/makeml made aware of win32. (For use under cygwin
1607            and other Unix-environments for windows.)
1608    
1609       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
1610         which caused BinIO.inputAll to fail consistently.
1611    
1612    .bat scripts:
1613    
1614       Windows .bat scripts assume that SMLNJ_HOME is defined.
1615    
1616       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
1617         applications (sml, ml-yacc, ml-lex).
1618       - ml-build.bat: analogous to ml-build.
1619       - config\install.bat:  Analogous to config/install.sh.  This requires
1620         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
1621         (nmake etc. must be on the path, and vcvars32 must have been run.)
1622         Moreover, sources for ml-lex and ml-yacc need to exist under src,
1623         and the bootfile hierarchy must have been unpacked under
1624         sml.boot.x86-win32.
1625         The script is very primitive and does a poor job at error checking.
1626         It only installs the base system, ml-lex, and ml-yacc.  No other
1627         libraries are being installed (i.e., you get only those that
1628         are part of the compiler.)
1629       - link-sml.bat:  analogous to .link-sml, but not currently used
1630    
1631    Unrelated bug fixes:
1632    
1633      - ml-nlffigen now exports structures ST_* corresponding to incomplete
1634        types.
1635      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
1636        otherwise.)
1637    
1638    ----------------------------------------------------------------------
1639    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
1640    Date: 2003/06/17
1641    Tag: macqueen-20030617-bug895
1642    Description:
1643    
1644    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
1645    Tag will be used for new development branch (mcz-branch) for
1646    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
1647    
1648    ----------------------------------------------------------------------
1649    Name: Matthias Blume (blume (at) tti - c (dot) org)
1650    Date: 2003/05/27 16:55:00 CDT
1651    Tag: blume-20030527-polyeq
1652    Description:
1653    
1654    Tried to eliminated most cases of polymorphic equality.
1655    
1656    ----------------------------------------------------------------------
1657    Name: Matthias Blume (blume (at) tti - c (dot) org)
1658    Date: 2003/05/21 17:45:00 CDT
1659    Tag: blume-20030517-complete
1660    Description:
1661    
1662    Two changes:
1663    
1664      1. Added a flag for controlling whether non-exhaustive bindings will
1665         be treated as errors (default is false).
1666      2. Cleaned up the *entire* source tree so that CMB.make goes through
1667         without a single non-exhaustive match- or bind warning.
1668    
1669    ----------------------------------------------------------------------
1670    Name: Matthias Blume (blume (at) tti - c (dot) org)
1671    Date: 2003/05/17 10:20:00 CDT
1672    Tag: blume-20030517-absyn
1673    Description:
1674    
1675    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
1676    
1677       This mainly affects the quality of error messages.  However, some
1678       of the code is now more straightforward than before. (Treatment of
1679       the above four constructs in translate.sml is much simpler than
1680       the "macro-expansion" that was going on before.  Plus, the mach-
1681       compiler no longer gets invoked just to be able to compile an
1682       if-expression.)
1683    
1684    2. The ErrorMsg.Error exception is now caught and absorbed by the
1685       interactive loop.
1686    
1687    ----------------------------------------------------------------------
1688    Name: Allen Leung
1689    Date: 2003/05/16 13:05:00 CDT
1690    Tag: leunga-20030516-cygwin-runtime
1691    Description:
1692    
1693        Ported the runtime system to cygwin, which uses the unix
1694    x86-unix bin files.  Missing/buggy features:
1695    
1696       o getnetbyname, getnetbyaddr: these functions seem to be missing in
1697         the Cygwin library.
1698       o Ctrl-C handling may be flaky.
1699       o Windows system calls and Windows I/O are not supported.
1700    
1701       A new set of binfiles is located at:
1702    
1703         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
1704    
1705       This is only needed for bootstrapping the cygwin version of smlnj.
1706       Other x86 versions can use the existing binfiles.
1707    
1708    ----------------------------------------------------------------------
1709    Name: Matthias Blume
1710    Date: 2003/04/08 15:42:00 CDT
1711    Tag: blume-20030408-listpair
1712    Description:
1713    
1714    1. Added a target 'mlrisc' to installer.
1715    
1716    2. Added missing elements to structure ListPair.
1717    
1718    ----------------------------------------------------------------------
1719    Name: Allen Leung
1720    Date: 2003/01/07 10:40:00 EST
1721    Tag: leunga-20030107-int-rem
1722    Description:
1723    
1724    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
1725    The arguments to the SUBL instruction were swapped.
1726    
1727    ----------------------------------------------------------------------
1728  Name: Matthias Blume  Name: Matthias Blume
1729  Date: 2002/12/12 16:25:00 EST  Date: 2002/12/12 16:25:00 EST
1730  Tag: blume-20021212-risc-ra  Tag: blume-20021212-risc-ra

Legend:
Removed from v.1294  
changed lines
  Added in v.1701

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0