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/HISTORY
ViewVC logotype

Diff of /sml/trunk/HISTORY

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

revision 1184, Fri Mar 29 22:22:22 2002 UTC revision 1494, Thu May 20 03:09:17 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16    Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2004/05/19 22:10:00 CDT
18    Tag: blume-20040519-ml-build
19    Description:
20    
21    Arranged for ml-build to clean up after itself a little bit better.
22    The script generates a temporary SML source file and compiles it using
23    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
24    gets rid of those at the end, so they don't accumulate under .cm.
25    
26    This required a minor change to install.sh because the name of the
27    metadata directory (default: .cm) is actually configurable at
28    installation time.
29    
30    ----------------------------------------------------------------------
31    Name: Matthias Blume (blume (at) tti - c (dot) org)
32    Date: 2004/05/18 15:50:00 CDT
33    Tag: blume-20040518-mkreader
34    Description:
35    
36    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
37    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
38    
39    ----------------------------------------------------------------------
40    Name: Matthias Blume (blume (at) tti - c (dot) org)
41    Date: 2004/05/11 14:35:00 CDT
42    Tag: blume-20040511-win32sock
43    Description:
44    
45    Added previously missing support for many socket-related functions
46    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
47    for the voluminous patch!
48    
49    (I have not tested this patch under win32 yet.)
50    
51    Here is David's e-mail:
52    
53    Hi,
54    
55    Attached to this email you find a diff against sml/nj 110.45
56    that will enable socket support under Windows.
57    
58    To apply the patch (using unix or cygwin)
59    1) gunzip runtime.diff.gz
60    2) "cd" into "src/runtime" in the source tree of a fresh
61       110.45 installation.
62    3) patch -p 1 < [your/path/to]runtime.diff
63    
64    The code compiles fine but has NOT yet been extensively tested.
65    I only ran a few tests for basic socket client functionality
66    (which worked fine).  Especially the functions that use ioctl
67    are not tested at all and might not work (see below).
68    
69    I implemented this since we want to move to a newer version of sml/nj
70    but need socket support in order to use it.  This is the first time I
71    even had a look at the sml/nj source,  so please review my changes
72    before making this part of the distribution!  Here are a few issues
73    that I think might be better for someone to solve who is more
74    familiar with the sml/nj source (and socket programming):
75    
76    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
77      exception since I could not figure out what the windows equivalent
78      of these functions is
79    
80    - In sockets-osdep.h there are a some #include statements that are
81      only used in a few files that include sockets-osdep.h
82    
83    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
84      does not process its return value since I don't know how to
85      report an error upwards.
86    
87    - It would probably be good to have a call to WSACleanup() when
88      the library is unloaded (if there is such a possibility).
89      Otherwise I think Windows will take care of this automatically
90      when the process finishes.
91    
92    - I used ioctlsocket() as a replacement for ioctl() but I have
93      no idea if that is actually the proper replacement on Windows.
94    
95    - All these issues are marked in the code by "FIXME" comments.
96    
97    We use sml/nj extensively in our products and are quite happy
98    with it.  I hope this contribution will help you.
99    
100    Keep up the good work!
101    
102    David
103    
104    ----------------------------------------------------------------------
105    Name: Matthias Blume (blume (at) tti - c (dot) org)
106    Date: 2004/05/11 14:20:00 CDT
107    Tag: blume-20040511-installml
108    Description:
109    
110    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
111    the patch.)
112    
113    ----------------------------------------------------------------------
114    Name: Matthias Blume (blume (at) tti - c (dot) org)
115    Date: 2004/05/11 14:05:00 CDT
116    Tag: blume-20040511-nlffi-netbsd
117    Description:
118    
119    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
120    the patch.)
121    
122    ----------------------------------------------------------------------
123    Name: Matthias Blume (blume (at) tti - c (dot) org)
124    Date: 2004/05/11 12:05:00 CDT
125    Tag: blume-20040511-exports
126    Description:
127    
128    As per request by Adam Chlipala <adam@hcoop.net>, extended various
129    export lists in compiler-related .cm-files.
130    
131    ----------------------------------------------------------------------
132    Name: Matthias Blume (blume (at) tti - c (dot) org)
133    Date: 2004/05/11 11:35:00 CDT
134    Tag: blume-20040511-allsource
135    Description:
136    
137    The installer now honors the "src-smlnj" target again, although its meaning
138    has changed from "all sources required for the compiler" to "all sources
139    the installer knows about".  In other words, if you enable "src-smlnj"
140    in the "targets" file, then the installer will pull in sources for
141    everything.  (Notice that this refers to source code only.  Compiled
142    code is still only installed for modules that were requested explicitly
143    or which are required for other modules that were requested explicitly.)
144    
145    ----------------------------------------------------------------------
146    Name: Matthias Blume (blume (at) tti - c (dot) org)
147    Date: 2004/04/23 17:40:00 CDT
148    Tag: blume-20040423-ieee-scan
149    Description:
150    
151    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
152    in the exponent calculation we get INF or ZERO (depending on the mantissa
153    and the sign of the exponent).
154    
155    ----------------------------------------------------------------------
156    Name: Matthias Blume (blume (at) tti - c (dot) org)
157    Date: 2004/04/23 10:40:00 CDT
158    Tag: blume-20040423-ml-build
159    Description:
160    
161    The ml-build script now terminates with a non-0 status when something
162    goes wrong.
163    
164    ----------------------------------------------------------------------
165    Name: Matthias Blume (blume (at) tti - c (dot) org)
166    Date: 2004/04/22 16:35:00 CDT
167    Tag: blume-20040422-Option
168    Description:
169    
170    Made exception Option to be the same as exception Option.Option
171    (as it should be).
172    
173    ----------------------------------------------------------------------
174    Name: Allen Leung (leunga (at) reservoir (dot) com)
175    Date: 2004/03/19 14:40:00 EST
176    Tag: leunga-20040319-cygwin-nlffi
177    Description:
178    
179    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
180    of SML/NJ.  The problem is that
181    
182       lib = dlopen(NULL, ...)
183       f   = dlsym(lib, "malloc");
184    
185    does not work on Windows unless we explicitly export symbols
186    such as 'malloc' during linking.  We fixed this by explicitly
187    exporting the required symbols with the magic gcc incantation:
188    
189        -Wl,--export-all cygwin.def
190    
191    where cygwin.def is a file containing all the symbols that
192    we wish to export.
193    
194    I suspect this is a Windows problem and we'll have to
195    do the same (somehow with windows compilers) when
196    we build the native win32 version with the system
197    calls LoadLibrary/GetProcAddress.
198    
199    ----------------------------------------------------------------------
200    Name: Matthias Blume (blume (at) tti - c (dot) org)
201    Date: 2004/03/04 16:35:00 CST
202    Tag: blume-20040304-intinf-fmt
203    Description:
204    
205    Fixed problem with IntInf.fmt (sign would show up on the right instead
206    of on the left for BIN, OCT, and HEX).
207    
208    ----------------------------------------------------------------------
209    Name: Matthias Blume (blume (at) tti - c (dot) org)
210    Date: 2004/03/04 11:25:00 CST
211    Tag: blume-20040304-symlinks
212    Description:
213    
214    Fixed problem with installer script (unix only) where bin/ml-yacc and
215    friends pointed (via symlinks) to absolute locations instead of just
216    .run-sml.  This was reported by Vesa A Norrman.
217    
218    ----------------------------------------------------------------------
219    Name: Matthias Blume (blume (at) tti - c (dot) org)
220    Date: 2004/02/13 14:50:00 CST
221    Tag: Release_110_45
222    Description:
223    
224    New working version (110.45). New bootfiles.
225    
226    ----------------------------------------------------------------------
227    Name: Matthias Blume (blume (at) tti - c (dot) org)
228    Date: 2004/01/26 15:15:15 CST
229    Tag: blume-20040126-toplevel
230    Description:
231    
232    Improved handling of exceptions at the interactive toplevel.
233    
234    ----------------------------------------------------------------------
235    Name: Matthias Blume (blume (at) tti - c (dot) org)
236    Date: 2004/01/26 11:25:00
237    Tag: blume-20040126-app
238    Description:
239    
240    Type of top-level "app" corrected.
241    Added code for setting vp_limitPtrMask to Win32-specific runtime.
242    
243    ----------------------------------------------------------------------
244    Name: Matthias Blume (blume (at) tti - c (dot) org)
245    Date: 2003/11/18 17:10 CST
246    Tag: blume-20031118-basis-fiddle
247    Description:
248    
249    - changed Timer interface to what might become the spec
250    - POSIX_FLAGS -> BIT_FLAGS according to spec
251    - some other minor discrepancies wrt. spec eliminated
252    
253    ----------------------------------------------------------------------
254    Name: Matthias Blume (blume (at) tti - c (dot) org)
255    Date: 2003/11/06 12:00:00 CST
256    Tag: Release_110_44
257    Description:
258    
259    New working version (110.44). New bootfiles.
260    
261    ----------------------------------------------------------------------
262    Name: Matthias Blume (blume (at) tti - c (dot) org)
263    Date: 2003/11/04 11:50:00 CST
264    Tag: blume-20031104-move-libraries
265    Description:
266    
267    Eliminated the "dont_move_libraries" directive in config/targets.
268    (The mechanism was broken and could not be fixed easily.  Moreover,
269    there does not seem to be any reason not to move all libraries into
270    lib during installation.  I originally implemented this directive as a
271    backward-compatibility feature when I first introduced the new CM.
272    Now that things have been stable for a long time and going back to the
273    old CM is not an option, there is no reason to keep it around.)
274    
275    ----------------------------------------------------------------------
276    Name: Matthias Blume (blume (at) tti - c (dot) org)
277    Date: 2003/11/03 16:00:00 CST
278    Tag: blume-20031103-installdir
279    Description:
280    
281    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
282    Richards for pointing out the problem and providing the solution.)
283    
284    ----------------------------------------------------------------------
285    Name: Matthias Blume (blume (at) tti - c (dot) org)
286    Date: 2003/10/01 17:05:00 CDT
287    Tag: blume-20031001-lal-mlrisc
288    Description:
289    
290    MLRISC bug fix from Lal.
291    
292    ----------------------------------------------------------------------
293    Name: Matthias Blume (blume (at) tti - c (dot) org)
294    Date: 2003/09/30 16:10:00 CDT
295    Tag: blume-20030930-primio-bat
296    Description:
297    
298    1. Added openVector, nullRd, and nullWr to PRIM_IO.
299    2. Improved .bat files (for Win32 port) to make things work under Win95.
300       (thanks to Aaron S. Hawley for this one)
301    
302    ----------------------------------------------------------------------
303    Name: Matthias Blume (blume (at) tti - c (dot) org)
304    Date: 2003/09/26 16:05:00 CDT
305    Tag: blume-20030926-wrappriv
306    Description:
307    
308    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
309    
310    ----------------------------------------------------------------------
311    Name: Matthias Blume (blume (at) tti - c (dot) org)
312    Date: 2003/09/26 15:00:00 CDT
313    Tag: blume-20030926-110_43_3
314    Description:
315    
316    - additional cleanup
317    - version number bump, NEW BOOTFILES
318    
319    ----------------------------------------------------------------------
320    Name: Matthias Blume (blume (at) tti - c (dot) org)
321    Date: 2003/09/26 12:00:00 CDT
322    Tag: blume-20030926-ppautoload
323    Description:
324    
325    I modified the read-eval-print loop so that the autoloader gets
326    invoked whenever the prettyprinter tries to look up a symbol that
327    is not currently defined in the toplevel environment but which
328    appears in CM's autoload registry.  As a result, we see far fewer of
329    those ?.Foo.Bar.xxx names in the prettyprinter's output.
330    
331    In addition to this I tried to clean up some pieces of the Basis
332    implementation (e.g., Socket, Word8Array) in order to prevent other
333    instances of these ?.Foo.Bar.xxx names from being printed.
334    
335    The mechanism that picks names for types still needs some work, though.
336    (Right now it seems that if there is a type A.t which is defined to
337    be B.u, but B is unavailable at toplevel, then A.t gets printed as
338    "?.B.u" although the perhaps more sensible solution would be to use
339    "A.t" in this case.  In other words, the prettyprinter should follow
340    a chain of DEFtycs not farther than there are corresponding toplevel
341    names in the current environment.)
342    
343    ----------------------------------------------------------------------
344    Name: Matthias Blume (blume (at) tti - c (dot) org)
345    Date: 2003/09/24 16:31:00 CDT
346    Tag: blume-20030924-installer
347    Description:
348    
349    Another installer tweak:  All the ML code for the installer is now
350    compiled during CMB.make and put into a little library called
351    $smlnj/installer.cm.  The installation then simply invokes
352    
353       sml -m $smlnj/installer.cm
354    
355    and everything happens automagically.
356    
357    Win32:  ML code senses value of environment variable SMLNJ_HOME.
358    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
359            and BINDIR.
360    
361    The new scheme guarantees that the ML code responsible for the installation
362    is in sync with the APIs of the main system.  Also, the installer is
363    somewhat faster because the installer script is precompiled.
364    
365    ----------------------------------------------------------------------
366    Name: Matthias Blume (blume (at) tti - c (dot) org)
367    Date: 2003/09/24 15:35:00 CDT
368    Tag: blume-20030924-synsock
369    Description:
370    
371    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
372    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
373    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
374    implementations of non-blocking operations from CML's Socket
375    structure.
376    
377    ----------------------------------------------------------------------
378    Name: Matthias Blume (blume (at) tti - c (dot) org)
379    Date: 2003/09/24 15:10:05 CDT
380    Tag: blume-20030924-sockets
381    Description:
382    
383    1. Fixed SOCKET API and implementation to match Basis spec.
384       This required changing the internal representation of sockets to one
385       that remembers (for each socket file descriptor) whether it is currently
386       blocking or non-blocking.  This state is maintained lazily (i.e., a system
387       call is made only if the state actually needs to change).
388    
389    2. OS-specific details of sockets were moved into separate files, thus
390       making it possible to unify the bulk of the socket implementations
391       between Unix and Win32.
392    
393    3. CML's socket API changed accordingly.
394       (Note that we need to remove non-blocking functions from this API
395       since they are redundant in the case of CML!)
396    
397    4. CML's socket implementation now makes use of non-blocking functions
398       provided by Basis, thus removing all OS-dependent code from this part
399       of CML.
400    
401    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
402    
403    ----------------------------------------------------------------------
404    Name: Matthias Blume (blume (at) tti - c (dot) org)
405    Date: 2003/09/22 12:10:00 CDT
406    Tag: blume-20030922-110_43_2
407    Description:
408    
409    Made a new interim version and bootfiles for developer's bootstrapping
410    convenience.
411    
412       110.43.2 -- NEW BOOTFILES
413    
414    ----------------------------------------------------------------------
415    Name: Matthias Blume (blume (at) tti - c (dot) org)
416    Date: 2003/09/19 15:55:00 CDT
417    Tag: blume-20030919-cmdir
418    Description:
419    
420    1. new-install.sh -> install.sh
421    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
422    3. tweaked installer so that another name instead of .cm can be chosen
423       at install time (by setting the CM_DIR_ARC environment variable
424       during installation); once installation is complete, the name is
425       fixed
426    
427    ----------------------------------------------------------------------
428    Name: Matthias Blume (blume (at) tti - c (dot) org)
429    Date: 2003/09/18 16:00:00 CDT
430    Tag: blume-20030918-110_43_1
431    Description:
432    
433    Made a new interim version and bootfiles for developer's bootstrapping
434    convenience.
435    
436       110.43.1 -- NEW BOOTFILES
437    
438    ----------------------------------------------------------------------
439    Name: Matthias Blume (blume (at) tti - c (dot) org)
440    Date: 2003/09/18 15:20:00 CDT
441    Tag: blume-20030918-misc
442    Description:
443    
444    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
445       this seems to be controversial at the moment) and used those in
446       Posix.ProcEnv.times.
447    
448    2. Added Time.{from,to}Nanoseconds to Time.
449    
450    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
451       For example, fromLargeInt never needs to look at more than 3 "big
452       digits" to get its 53 bits of precision.
453    
454    ----------------------------------------------------------------------
455    Name: Matthias Blume (blume (at) tti - c (dot) org)
456    Date: 2003/09/17 16:30:00 CDT
457    Tag: blume-20030917-real32-slices
458    Description:
459    
460    Added an entry to the primitive environment
461    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
462    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
463    
464    Removed some of the "magic" constants in real64.sml and replaced them
465    with code that generates these values from their corresponding
466    integer counterparts.
467    
468    Made all(?) the slice-related changes to the Basis and made everything
469    compile again...
470    
471    ----------------------------------------------------------------------
472    Name: Matthias Blume (blume (at) tti - c (dot) org)
473    Date: 2003/09/15 17:45:00 CDT
474    Tag: blume-20030915-rbase
475    Description:
476    
477    Fixed bug in Real.fromLargeInt.
478    
479    ----------------------------------------------------------------------
480    Name: Matthias Blume (blume (at) tti - c (dot) org)
481    Date: 2003/09/13 18:11:00 CDT
482    Tag: blume-20030913-libinstall
483    Description:
484    
485    Minor bugfix in config/libinstall (set anchor with path to
486    standalone tool after installing it, otherwise libraries that
487    need ml-lex or ml-yacc won't compile the first time the installer
488    runs).
489    
490    ----------------------------------------------------------------------
491    Name: Matthias Blume (blume (at) tti - c (dot) org)
492    Date: 2003/09/12 11:45:00 CDT
493    Tag: blume-20030912-various
494    Description:
495    
496     - fixed bug in Real.toLargeInt
497     - fixed bug in Posix.ProcEnv.times
498     - changed inputLine functions to return an option
499     - minor installer improvements / bugfixes
500     - changed default @SMLalloc parameter for x86/celeron to 64k
501    
502    ----------------------------------------------------------------------
503    Name: Matthias Blume (blume (at) tti - c (dot) org)
504    Date: 2003/09/09 22:00:00 CDT
505    Tag: Release_110_43
506    Description:
507    
508        New working release 110.43.  New bootfiles.
509    
510    ----------------------------------------------------------------------
511    Name: Matthias Blume (blume (at) tti - c (dot) org)
512    Date: 2003/09/09 19:20:00 CDT
513    Tag: blume-20030909-installer
514    Description:
515    
516    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
517    Modified config/install.bat to take advantage of it.  Also modified
518    config/install.sh (and called it config/new-install.sh) to take advantage
519    of it on Unix systems.  (The SML code is (supposed to be) platform-
520    independent.)
521    
522    The installer can now install everything under Win32
523    as well as under *nix as long as it compiles.
524    
525    Other changes:
526    
527      - made CML compile again under Win32
528      - made eXene compile under Win32 (by providing a fake structure UnixSock
529        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
530      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
531        same as type int;  under Win32 it isn't
532      - fixed some slice-related problems in the win32-specific parts of CML
533      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
534        (under Win32, the volume name is case-insensitive, and the
535        OS.Path code compares volume names for equality)
536    
537    ----------------------------------------------------------------------
538    Name: Matthias Blume (blume (at) tti - c (dot) org)
539    Date: 2003/09/08 11:55:00 CDT
540    Tag: blume-20030908-fullpath
541    Description:
542    
543    Made Win32 version of OS.FileSys.fullPath return current directory
544    when given an empty string.  This is what the spec says, and incidentally,
545    CM depends on it.  (CM otherwise goes into an infinite loop in certain
546    cases when presented with the name of a non-existing .cm file.)
547    
548    ----------------------------------------------------------------------
549    Name: Matthias Blume (blume (at) tti - c (dot) org)
550    Date: 2003/09/04 16:30:00 CDT
551    Tag: blume-20030905-slices-etc
552    Description:
553    
554      1. Changed interface to vectors and arrays in Basis to match
555         (draft) Basis spec.
556      2. Added signatures and implementations of slices according to
557         Basis spec.
558      3. Edited source code throughout the system to make it compile again
559         under 1. and 2.  (In some cases code had to be added to have it
560         match the new signatures.)
561      4. MLRISC should be backward-compatible: the copies of the originals
562         of files that needed to change under 3. were retained, the .cm files
563         check the compiler version number and use old versions when
564         appropriate.
565      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
566         dirstream -> string option (in accordance with Basis spec).
567      6. When generating code that counts lines, ml-lex used function
568         CharVector.foldli, taking advantage of its old interface.
569         This has been replaced with the corresponding code from
570         CharVectorSlice.  (html-lex must be re-lexed!)
571      7. BitArray in smlnj-lib/Util has been extended/modified to match the
572         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
573      8. Removed temporary additions (fromInternal, toInternal) from the
574         (now obsolete) IntInf in smlnj-lib/Util.
575      9. Cleaned up structure Byte.
576     10. Added localOffset, scan, and fromString to Date (according to spec).
577         Cleaned/corrected implementation of Date.
578         (Still need to check for correctness; implement better canonicalizeDate.)
579     11. Added "scan" to signature IEEE_REAL.
580     12. Some improvements to IntInf [in particular: efficiency-hack for
581         mod and rem when second operand is 2 (for parity checks).]
582     13. Changed representation of type Time.time, using a single IntInf.int
583         value counting microseconds.  This considerably simplified the
584         implementation of structure Time.  We now support negative time
585         values; scan and fromString handle signs.
586     14. Functor PrimIO now takes two additional arguments (VectorSlice and
587         ArraySlice).
588    
589    ----------------------------------------------------------------------
590    Name: Matthias Blume (blume (at) tti - c (dot) org)
591    Date: 2003/08/28 17:00:00 CDT
592    Tag: blume-20030828-intinf
593    Description:
594    
595    This is a major update which comes with a version number bump
596    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
597    and an implementation of IntInf in the Basis.
598    
599    There are a fairly large number of related changes and updates throughout
600    the system:
601    
602    Basis:
603            - Implemented IntInf.
604            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
605            - Added some missing Real64 operations, most notably Real.toLargeInt.
606            - Added FixedInt as a synonym for Int32.
607    
608    compiler:
609            * Added support for a built-in intinf type.
610              - literals
611              - pattern matching
612              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
613              - overloading on literals and operations
614    
615            This required adding a primitive type intinf, some additional
616            primops, and implementations for several non-trivial intinf
617            operations in Core.  (The intinf type is completely abstract
618            to the compiler; all operations get delegated back to the Core.)
619    
620            * Intinf equality is handled by polyequal.  However, the compiler
621            does not print its usual warning in this case (since polyequal
622            is the right thing to do there).
623    
624            * Improved the organization of structure InlineT.
625    
626            * A word about conversion primops:
627            If conversions involving intinf do not cancel out during
628            CPS contract, then the compiler must insert calls to Core functions.
629            Since all core access must be resolved already during the FLINT
630            translate phase, it would be too late a the time of CPS contract
631            to add new Core calls.  For this reason, conversion primops
632            for intinf carry two arguments:  1. the numeric argument that
633            they are supposed to convert, and 2. the Core function that
634            can help with this conversion if necessary.  If CPS contract
635            eliminates a primop, then the associated Core function becomes
636            dead and goes away.  Intinf conversion primops that do not get
637            eliminated by CPS contract get rewritten into calls of their
638            core functions by a separate, new phase.
639    
640    interactive system:
641            - Control.Print.intinfDepth controls max length of intinf constants
642            being printed. (Analogous to Control.Print.stringDepth.)
643            - Cleanup in printutil and pputil: got rid of unused stuff and
644            duplicates; replaced some of the code with code that makes better
645            use of library functionality.
646    
647    CM:
648            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
649            are no longer silent.
650    
651    CKIT:
652            Fixed mismatched uses of Int32 and LargeInt.  I always decided
653            in favor of LargeInt -- which is now the same as IntInf.
654            CKIT-knowledgable people should check whether this is what's
655            intended and otherwise change things back to using Int32 or
656            FixedInt.
657    
658    Throughout the code:
659            Started using IntInf.int literals and built-in operations
660            (e.g., comparison with 0) where this seems appropriate.
661    
662    
663    ----------------------------------------------------------------------
664    Name: Dave MacQueen (dbm@cs.uchicago.edu)
665    Date: 2003/08/13 11:36:00 CDT
666    Tag: dbm-20030813-mcz-merge1
667    Description:
668    
669    Merging changes from the mcz-branch development branch into trunk.
670    These changes involve replacement of the emulated old prettyprinter
671    interface with direct use of the SML/NJ Lib PP library, and fixing
672    of a couple of bugs (895, 1186) relating to error messages.  A new
673    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
674    has been added.
675    
676    ----------------------------------------------------------------------
677    Name: Matthias Blume (blume (at) tti - c (dot) org)
678    Date: 2003/08/11 15:45:00 CDT
679    Tag: blume-20030811-windows
680    Description:
681    
682    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
683    
684        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
685    
686    This patch restores SML/NJ's ability to run under win32.  There are a
687    number of changes, including fixes for several bugs that had gone
688    unnoticed until now:
689    
690      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
691        trying to run the win32 version from within cygwin.)
692    
693      - There are a number of simple .bat scripts that substitute for their
694        corresponding Unix shell-scripts.  (See below.)
695    
696      - The internals of ml-build have been modified slightly.  The main
697        difference is that instead of calling ".link-sml" (or link-sml.bat)
698        using OS.Process.system, the ML process delegates this task back
699        to the script.  Otherwise problems arise in mixed environments such
700        as Cygwin where scripts look and work like Unix scripts, but
701        where OS.Process.system cannot run them.
702    
703      - In CM, the srcpath pickler used native pathname syntax -- which
704        is incorrect in the case of cross-compilation.  The new pickle format
705        is independent of platform-specific naming conventions.
706    
707      - Path configuration files (such as lib/pathconfig) can now choose
708        between native and standard syntax.  Placing a line of the form
709    
710            standard!
711    
712        into the file causes all subsequent paths to be interpreted using
713        CM standard pathname syntax (= Unix conventions); a line
714    
715            native!
716    
717        switches back to native style.  This was needed so that
718        path config files can be written portably, see src/system/pathconfig.
719    
720      - Runtime system:
721    
722          - win32-filesys.c:  get_file_time and set_file_time now
723            access modification time, not creation time.
724    
725          - I/O code made aware of new array representation.
726    
727          - Bug fixes in X86.prim.masm.
728    
729       - src/system/makeml made aware of win32. (For use under cygwin
730            and other Unix-environments for windows.)
731    
732       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
733         which caused BinIO.inputAll to fail consistently.
734    
735    .bat scripts:
736    
737       Windows .bat scripts assume that SMLNJ_HOME is defined.
738    
739       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
740         applications (sml, ml-yacc, ml-lex).
741       - ml-build.bat: analogous to ml-build.
742       - config\install.bat:  Analogous to config/install.sh.  This requires
743         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
744         (nmake etc. must be on the path, and vcvars32 must have been run.)
745         Moreover, sources for ml-lex and ml-yacc need to exist under src,
746         and the bootfile hierarchy must have been unpacked under
747         sml.boot.x86-win32.
748         The script is very primitive and does a poor job at error checking.
749         It only installs the base system, ml-lex, and ml-yacc.  No other
750         libraries are being installed (i.e., you get only those that
751         are part of the compiler.)
752       - link-sml.bat:  analogous to .link-sml, but not currently used
753    
754    Unrelated bug fixes:
755    
756      - ml-nlffigen now exports structures ST_* corresponding to incomplete
757        types.
758      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
759        otherwise.)
760    
761    ----------------------------------------------------------------------
762    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
763    Date: 2003/06/17
764    Tag: macqueen-20030617-bug895
765    Description:
766    
767    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
768    Tag will be used for new development branch (mcz-branch) for
769    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
770    
771    ----------------------------------------------------------------------
772    Name: Matthias Blume (blume (at) tti - c (dot) org)
773    Date: 2003/05/27 16:55:00 CDT
774    Tag: blume-20030527-polyeq
775    Description:
776    
777    Tried to eliminated most cases of polymorphic equality.
778    
779    ----------------------------------------------------------------------
780    Name: Matthias Blume (blume (at) tti - c (dot) org)
781    Date: 2003/05/21 17:45:00 CDT
782    Tag: blume-20030517-complete
783    Description:
784    
785    Two changes:
786    
787      1. Added a flag for controlling whether non-exhaustive bindings will
788         be treated as errors (default is false).
789      2. Cleaned up the *entire* source tree so that CMB.make goes through
790         without a single non-exhaustive match- or bind warning.
791    
792    ----------------------------------------------------------------------
793    Name: Matthias Blume (blume (at) tti - c (dot) org)
794    Date: 2003/05/17 10:20:00 CDT
795    Tag: blume-20030517-absyn
796    Description:
797    
798    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
799    
800       This mainly affects the quality of error messages.  However, some
801       of the code is now more straightforward than before. (Treatment of
802       the above four constructs in translate.sml is much simpler than
803       the "macro-expansion" that was going on before.  Plus, the mach-
804       compiler no longer gets invoked just to be able to compile an
805       if-expression.)
806    
807    2. The ErrorMsg.Error exception is now caught and absorbed by the
808       interactive loop.
809    
810    ----------------------------------------------------------------------
811    Name: Allen Leung
812    Date: 2003/05/16 13:05:00 CDT
813    Tag: leunga-20030516-cygwin-runtime
814    Description:
815    
816        Ported the runtime system to cygwin, which uses the unix
817    x86-unix bin files.  Missing/buggy features:
818    
819       o getnetbyname, getnetbyaddr: these functions seem to be missing in
820         the Cygwin library.
821       o Ctrl-C handling may be flaky.
822       o Windows system calls and Windows I/O are not supported.
823    
824       A new set of binfiles is located at:
825    
826         http://www.dorsai.org/~leunga/boot.x86-unix.tgz
827    
828       This is only needed for bootstrapping the cygwin version of smlnj.
829       Other x86 versions can use the existing binfiles.
830    
831    ----------------------------------------------------------------------
832    Name: Matthias Blume
833    Date: 2003/04/08 15:42:00 CDT
834    Tag: blume-20030408-listpair
835    Description:
836    
837    1. Added a target 'mlrisc' to installer.
838    
839    2. Added missing elements to structure ListPair.
840    
841    ----------------------------------------------------------------------
842    Name: Allen Leung
843    Date: 2003/01/07 10:40:00 EST
844    Tag: leunga-20030107-int-rem
845    Description:
846    
847    Fixed a bug in Int.rem(x,y) where y is a power of 2 on x86.
848    The arguments to the SUBL instruction were swapped.
849    
850    ----------------------------------------------------------------------
851    Name: Matthias Blume
852    Date: 2002/12/12 16:25:00 EST
853    Tag: blume-20021212-risc-ra
854    Description:
855    
856    Fixed a serious bug in the rewrite code for FP spilling/reloading that
857    sent the RA into an infinite loop when floating point registers get
858    spilled.  (Because of this bug, e.g., nucleic stopped compiling between
859    110.37 and 110.38.)
860    There was another set of potential problems related to the handling of
861    MLRISC annotations (but those did not yet cause real problems, apparently).
862    
863    ----------------------------------------------------------------------
864    Name: Matthias Blume
865    Date: 2002/12/06 22:40:00 EST
866    Tag: blume-20021206-cm-fileid
867    Description:
868    
869    Added a call of SrcPath.sync at the beginning of Parse.parse (in CM).
870    This fixes the problem of CM getting confused by files that suddenly
871    change their identity (e.g., by getting unlinked and recreated by some
872    text editor such as vi).  There might be a better/cheaper/cleaner way
873    of doing this, but for now this will have to do.
874    
875    ----------------------------------------------------------------------
876    Name: Matthias Blume
877    Date: 2002/10/28 09:50:00 EST
878    Tag: blume-20021028-typecheck
879    Description:
880    
881    Exported structure Typecheck from $smlnj/viscomp/core.cm.
882    
883    ----------------------------------------------------------------------
884    Name: Matthias Blume
885    Date: 2002/10/17 09:10:00 EDT
886    Tag: Release_110_42
887    Description:
888    
889    In good old tradition, there has been a slight hiccup so that we have
890    to patch 110.42 after the fact.   The old release tag has been replaced
891    (see below).
892    
893    The change solves a problem with two competing approaches the
894    configuration problem regarding MacOS 10.1 vs. MacOS 10.2 which got in
895    each other's way.
896    
897    This change only affects the runtime system code and the installer script.
898    (No new bootfiles.)
899    
900    ----------------------------------------------------------------------
901    Name: Matthias Blume
902    Date: 2002/10/16 12:00:00 EDT
903    Tag: Release_110_42_removed
904    Description:
905    
906    New working release.  New bootfiles.
907    
908    ----------------------------------------------------------------------
909    Name: Matthias Blume
910    Date: 2002/10/10 13:10:00 EDT
911    Tag: blume-20021010-ppc-divs
912    Description:
913    
914    The mltree operator DIVS must be implemented with an overflow check on
915    the PPC because the hardware indicates divide-by-zero using "overflow" as
916    well.
917    
918    ----------------------------------------------------------------------
919    Name: Matthias Blume
920    Date: 2002/07/23 11:45:00
921    Tag: blume-20020723-smlnj-home
922    Description:
923    
924    Sml now senses the SMLNJ_HOME environment variable.  If this is set,
925    then the bin dir is assumed to be in $SMLNJ_HOME/bin and (unless
926    CM_PATHCONFIG is also set), the path configuration file is assumed
927    to be in $SMLNJ_HOME/lib/pathconfig.  This way one can easily move
928    the entire tree to some other place and everything will "just work".
929    
930    (Companion commands such as ml-build and ml-makedepend also sense this
931    variable.)
932    
933    ----------------------------------------------------------------------
934    Name: Matthias Blume
935    Date: 2002/07/12 21:19:00 EDT
936    Tag: blume-20020712-liveness
937    Description:
938    
939    Exported two useful "step" functions from liveness module (MLRISC).
940    
941    ----------------------------------------------------------------------
942    Name: Matthias Blume
943    Date: 2002/07/05 16:00 EDT
944    Tag: Release_110_41
945    Description:
946    
947    New working release.  New bootfiles.
948    
949    ----------------------------------------------------------------------
950    Name: Matthias Blume
951    Date: 2002/07/05 10:25:00 EDT
952    Tag: blume-20020705-btimp
953    Description:
954    
955    Exported structure BTImp from $smlnj/viscomp/debugprof.cm so that
956    other clients can set up backtracing support.
957    
958    ----------------------------------------------------------------------
959    Name: Matthias Blume
960    Date: 2002/06/25 17:23:00 EDT
961    Tag: blume-20020625-fpmax
962    Description:
963    
964    Fixed a bug in translation of INLMAX (and INLMIN) for the floating-point
965    case.  (The sense of the isNaN test was reversed -- which made min and
966    max always return their first argument.)
967    
968    ----------------------------------------------------------------------
969    Name: Matthias Blume
970    Date: 2002/06/11
971    Tag: blume-20020611-unixpath
972    Description:
973    
974    Back-ported OS.Path.{from,to}UnixPath from idlbasis-devel branch.
975    
976    ----------------------------------------------------------------------
977    Name: Matthias Blume
978    Date: 2002/06/10 16:35:00 EDT
979    Tag: blume-20020610-ieeereal
980    Description:
981    
982    I back-ported my implementation of IEEEReal.fromString from the
983    idlbasis-devel branch so that we can test it.
984    
985    Another small change is that ppDec tries to give more information
986    than just "<sig>" in the case of functors.  However, this code is
987    broken in some mysterious way if the functor's body's signature
988    has not been declared by ascription but gets inferred from the
989    implementation.  This needs fixing...
990    
991    ----------------------------------------------------------------------
992    Name: Matthias Blume
993    Date: 2002/05/31
994    Tag: blume-20020531-btrace-mode
995    Description:
996    
997    Resurrected SMLofNJ.Internals.BTrace.mode.  (It accidentally fell by
998    the wayside when I switched over to using Controls everywhere.)
999    
1000    ----------------------------------------------------------------------
1001    Name: Lal George
1002    Date: 2002/05/23 12:21:40 EDT
1003    Tag: george-20020523-visual-labels
1004    Description:
1005    
1006    Labels are now displayed in the graphical output to make
1007    the fall-through and target blocks obvious.
1008    
1009    ----------------------------------------------------------------------
1010    Name: Matthias Blume
1011    Date: 2002/05/22 11:03:00 EDT
1012    Tag: blume-20020522-shrink
1013    Description:
1014    
1015    John tweaked yesterday's fix for 1131 to handle an out-of-memory
1016    situation that comes up when allocating huge arrays.
1017    
1018    ----------------------------------------------------------------------
1019    Name: Matthias Blume
1020    Date: 2002/05/21 16:00:00 EDT
1021    Tag: Release_110_40
1022    Description:
1023    
1024    New working release (110.40).  New bootfiles.
1025    
1026    [Also: John Reppy fixed GC bug 1131.]
1027    
1028    ----------------------------------------------------------------------
1029    Name: Matthias Blume
1030    Date: 2002/05/21 12:35:00 EDT
1031    Tag: blume-20020521-cmdoc
1032    Description:
1033    
1034    CM documentation update.
1035    
1036    ----------------------------------------------------------------------
1037    Name: Matthias Blume
1038    Date: 2002/05/21 10:55:00 EDT
1039    Tag: blume-20020521-misc
1040    Description:
1041    
1042    - John tweaked runtime to be silent on heap export (except when
1043      GC messages are on).
1044    - I added a few more things (cross-compiling versions of CMB) to
1045      config/preloads (as suggestions).
1046    
1047    ----------------------------------------------------------------------
1048    Name: Matthias Blume
1049    Date: 2002/05/20 22:25:00 EDT
1050    Tag: blume-20020520-controls
1051    Description:
1052    
1053    - Added ControlUtil structure to control-lib.cm.
1054    - Use it throughout.
1055    - Used Controls facility to define MLRISC controls (as opposed to
1056      registering MLRISC control ref cells with Controls after the fact)
1057    - Fixed messed-up controls priorities.
1058    
1059    * Removed again all the stuff from config/preloads that one wouldn't
1060      be able to preload at the time the initial heap image is built.
1061      (Many libraries, e.g., CML, do not exist yet at this time.  The
1062       only libraries that can be preloaded via config/preloads are those
1063       that come bundled with the bootfiles.)
1064    
1065    ----------------------------------------------------------------------
1066    Name: Matthias Blume
1067    Date: 2002/05/20 10:59:00 EDT
1068    Tag: blume-20020520-preloads
1069    Description:
1070    
1071    Added a lot of commented-out suggestions for things to be included
1072    in config/preloads.
1073    
1074    ----------------------------------------------------------------------
1075    Name: Allen Leung
1076    Date: 2002/05/18 14:20:00 EDT
1077    Tag: leunga-20020518-mdl
1078    Description:
1079    
1080    o Made the mdl tool stuff compile and run again.
1081    o I've disabled all the stuff that depends on RTL specifications; they
1082      are all badly broken anyway.
1083    
1084    ----------------------------------------------------------------------
1085    Name: Matthias Blume
1086    Date: 2002/05/17 16:49:00 EDT
1087    Tag: blume-20020517-controls
1088    Description:
1089    
1090    0. John Reppy made several modifications to the SML/NJ library.
1091       In particular, there is a shiny new controls-lib.cm.
1092    
1093    1. Pushed new controls interface through compiler so that everything
1094       compiles again.
1095    
1096    2. Added FormatComb and FORMAT_COMB to the CML version of the
1097       SML/NJ library (so that CML compiles again).
1098    
1099    3. Modified init scripts because XXX_DEFAULT environment variables
1100       are no longer with us.  (Boot-time initialization is now done
1101       using the same environment variables that are also used for
1102       startup-time initialization of controls.)
1103    
1104    ----------------------------------------------------------------------
1105    Name: Lal George
1106    Date: 2002/05/15 09:20:10 EDT
1107    Tag: george-20020515-pseudo-op-decls
1108    Description:
1109    
1110            All pseudo-ops emitted before the first segment declaration
1111    such as TEXT, DATA, and BSS directives are assumed to be global
1112    declarations and are emitted first in the assembly file. This is
1113    useful in a number of situations where one has pseudo-ops that are not
1114    specific to any segment, and also works around the constraint that one
1115    cannot have client pseudo-ops in the TEXT segment.
1116    
1117            Because no segment is associated with these declarations it is
1118    an error to allocate any space or objects before the first segment
1119    directive and an exception will be raised. However, we cannot make
1120    this check for client pseudo-ops.
1121    
1122            These top level declarations are a field in the CFG graph_info.
1123    In theory you can continue to add to this field after the CFG has been
1124    built -- provided you know what you are doing;-)
1125    
1126    ----------------------------------------------------------------------
1127    Name: Matthias Blume
1128    Date: 2002/05/13 16:40:00 EDT
1129    Tag: blume-20020513-pp-etc
1130    Description:
1131    
1132    A few minor bugfixes:
1133    
1134      - Stopgap measure for bug recently reported by Elsa Gunter (ppDec).
1135        (Bogus printouts for redefined bindings still occur.  Compiler
1136        bug should no longer occur now.  We need to redo the prettyprinter
1137        from scratch.)
1138    
1139      - CM pathname printer now also adds escape sequences for ( and )
1140    
1141      - commend and docu fixes for ml-nlffi
1142    
1143    ----------------------------------------------------------------------
1144    Name: Matthias Blume
1145    Date: 2002/05/10 16:40:00 EDT
1146    Tag: blume-20020510-erg-textio
1147    Description:
1148    
1149    Applied the following bugfix provided by Emden Gansner:
1150    
1151        Output is corrupted when outputSubstr is used rather than output.
1152    
1153        The problem occurs when a substring
1154    
1155            ss = (s, dataStart, dataLen)
1156    
1157        where dataStart > 0, fills a stream buffer with avail bytes left.
1158        avail bytes of s, starting at index dataStart, are copied into the
1159        buffer, the buffer is flushed, and then the remaining dataLen-avail
1160        bytes of ss are copied into the beginning of the buffer. Instead of
1161        starting this copy at index dataStart+avail in s, the current code
1162        starts the copy at index avail.
1163    
1164        Fix:
1165        In text-io-fn.sml, change line 695 from
1166             val needsFlush = copyVec(v, avail, dataLen-avail, buf, 0)
1167        to
1168             val needsFlush = copyVec(v, dataStart+avail, dataLen-avail, buf, 0)
1169    
1170    ----------------------------------------------------------------------
1171    Name: Matthias Blume
1172    Date: 2002/04/12 13:55:00 EDT
1173    Tag: blume-20020412-assyntax
1174    Description:
1175    
1176    1. Grabbed newer assyntax.h from the XFree86 project.
1177    2. Fiddled with how to compile X86.prim.asm without warnings.
1178    3. (Very) Minor cleanup in CM.
1179    
1180    ----------------------------------------------------------------------
1181    Name: Matthias Blume
1182    Date: 2002/04/01 (no joke!) 17:07:00 EST
1183    Tag: blume-20020401-x86div
1184    Description:
1185    
1186    Added full support for div/mod/rem/quot on the x86, using the machine
1187    instruction's two results (without clumsily recomputing the remainder)
1188    directly where appropriate.
1189    
1190    Some more extensive power-of-two support was added to the x86 instruction
1191    selector (avoiding expensive divs, mods, and muls where they can be
1192    replaced with cheaper shifts and masks).  However, this sort of thing
1193    ought to be done earlier, e.g., within the CPS optimizer so that
1194    all architectures benefit from it.
1195    
1196    The compiler compiles to a fixed point, but changes might be somewhat
1197    fragile nevertheless.  Please, report any strange things that you might
1198    see wrt. div/mod/quot/rem...
1199    
1200    ----------------------------------------------------------------------
1201  Name: Matthias Blume  Name: Matthias Blume
1202  Date: 2002/03/29 17:22:00  Date: 2002/03/29 17:22:00
1203  Tag: blume-20020329-div  Tag: blume-20020329-div

Legend:
Removed from v.1184  
changed lines
  Added in v.1494

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