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 1351, Fri Sep 5 21:35:54 2003 UTC revision 1491, Tue May 18 20:49:37 2004 UTC
# Line 13  Line 13 
13  Description:  Description:
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume (blume@tti-c.org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2004/05/18 15:50:00 CDT
18    Tag: blume-20040518-mkreader
19    Description:
20    
21    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
22    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
23    
24    ----------------------------------------------------------------------
25    Name: Matthias Blume (blume (at) tti - c (dot) org)
26    Date: 2004/05/11 14:35:00 CDT
27    Tag: blume-20040511-win32sock
28    Description:
29    
30    Added previously missing support for many socket-related functions
31    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
32    for the voluminous patch!
33    
34    (I have not tested this patch under win32 yet.)
35    
36    Here is David's e-mail:
37    
38    Hi,
39    
40    Attached to this email you find a diff against sml/nj 110.45
41    that will enable socket support under Windows.
42    
43    To apply the patch (using unix or cygwin)
44    1) gunzip runtime.diff.gz
45    2) "cd" into "src/runtime" in the source tree of a fresh
46       110.45 installation.
47    3) patch -p 1 < [your/path/to]runtime.diff
48    
49    The code compiles fine but has NOT yet been extensively tested.
50    I only ran a few tests for basic socket client functionality
51    (which worked fine).  Especially the functions that use ioctl
52    are not tested at all and might not work (see below).
53    
54    I implemented this since we want to move to a newer version of sml/nj
55    but need socket support in order to use it.  This is the first time I
56    even had a look at the sml/nj source,  so please review my changes
57    before making this part of the distribution!  Here are a few issues
58    that I think might be better for someone to solve who is more
59    familiar with the sml/nj source (and socket programming):
60    
61    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
62      exception since I could not figure out what the windows equivalent
63      of these functions is
64    
65    - In sockets-osdep.h there are a some #include statements that are
66      only used in a few files that include sockets-osdep.h
67    
68    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
69      does not process its return value since I don't know how to
70      report an error upwards.
71    
72    - It would probably be good to have a call to WSACleanup() when
73      the library is unloaded (if there is such a possibility).
74      Otherwise I think Windows will take care of this automatically
75      when the process finishes.
76    
77    - I used ioctlsocket() as a replacement for ioctl() but I have
78      no idea if that is actually the proper replacement on Windows.
79    
80    - All these issues are marked in the code by "FIXME" comments.
81    
82    We use sml/nj extensively in our products and are quite happy
83    with it.  I hope this contribution will help you.
84    
85    Keep up the good work!
86    
87    David
88    
89    ----------------------------------------------------------------------
90    Name: Matthias Blume (blume (at) tti - c (dot) org)
91    Date: 2004/05/11 14:20:00 CDT
92    Tag: blume-20040511-installml
93    Description:
94    
95    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
96    the patch.)
97    
98    ----------------------------------------------------------------------
99    Name: Matthias Blume (blume (at) tti - c (dot) org)
100    Date: 2004/05/11 14:05:00 CDT
101    Tag: blume-20040511-nlffi-netbsd
102    Description:
103    
104    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
105    the patch.)
106    
107    ----------------------------------------------------------------------
108    Name: Matthias Blume (blume (at) tti - c (dot) org)
109    Date: 2004/05/11 12:05:00 CDT
110    Tag: blume-20040511-exports
111    Description:
112    
113    As per request by Adam Chlipala <adam@hcoop.net>, extended various
114    export lists in compiler-related .cm-files.
115    
116    ----------------------------------------------------------------------
117    Name: Matthias Blume (blume (at) tti - c (dot) org)
118    Date: 2004/05/11 11:35:00 CDT
119    Tag: blume-20040511-allsource
120    Description:
121    
122    The installer now honors the "src-smlnj" target again, although its meaning
123    has changed from "all sources required for the compiler" to "all sources
124    the installer knows about".  In other words, if you enable "src-smlnj"
125    in the "targets" file, then the installer will pull in sources for
126    everything.  (Notice that this refers to source code only.  Compiled
127    code is still only installed for modules that were requested explicitly
128    or which are required for other modules that were requested explicitly.)
129    
130    ----------------------------------------------------------------------
131    Name: Matthias Blume (blume (at) tti - c (dot) org)
132    Date: 2004/04/23 17:40:00 CDT
133    Tag: blume-20040423-ieee-scan
134    Description:
135    
136    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
137    in the exponent calculation we get INF or ZERO (depending on the mantissa
138    and the sign of the exponent).
139    
140    ----------------------------------------------------------------------
141    Name: Matthias Blume (blume (at) tti - c (dot) org)
142    Date: 2004/04/23 10:40:00 CDT
143    Tag: blume-20040423-ml-build
144    Description:
145    
146    The ml-build script now terminates with a non-0 status when something
147    goes wrong.
148    
149    ----------------------------------------------------------------------
150    Name: Matthias Blume (blume (at) tti - c (dot) org)
151    Date: 2004/04/22 16:35:00 CDT
152    Tag: blume-20040422-Option
153    Description:
154    
155    Made exception Option to be the same as exception Option.Option
156    (as it should be).
157    
158    ----------------------------------------------------------------------
159    Name: Allen Leung (leunga (at) reservoir (dot) com)
160    Date: 2004/03/19 14:40:00 EST
161    Tag: leunga-20040319-cygwin-nlffi
162    Description:
163    
164    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
165    of SML/NJ.  The problem is that
166    
167       lib = dlopen(NULL, ...)
168       f   = dlsym(lib, "malloc");
169    
170    does not work on Windows unless we explicitly export symbols
171    such as 'malloc' during linking.  We fixed this by explicitly
172    exporting the required symbols with the magic gcc incantation:
173    
174        -Wl,--export-all cygwin.def
175    
176    where cygwin.def is a file containing all the symbols that
177    we wish to export.
178    
179    I suspect this is a Windows problem and we'll have to
180    do the same (somehow with windows compilers) when
181    we build the native win32 version with the system
182    calls LoadLibrary/GetProcAddress.
183    
184    ----------------------------------------------------------------------
185    Name: Matthias Blume (blume (at) tti - c (dot) org)
186    Date: 2004/03/04 16:35:00 CST
187    Tag: blume-20040304-intinf-fmt
188    Description:
189    
190    Fixed problem with IntInf.fmt (sign would show up on the right instead
191    of on the left for BIN, OCT, and HEX).
192    
193    ----------------------------------------------------------------------
194    Name: Matthias Blume (blume (at) tti - c (dot) org)
195    Date: 2004/03/04 11:25:00 CST
196    Tag: blume-20040304-symlinks
197    Description:
198    
199    Fixed problem with installer script (unix only) where bin/ml-yacc and
200    friends pointed (via symlinks) to absolute locations instead of just
201    .run-sml.  This was reported by Vesa A Norrman.
202    
203    ----------------------------------------------------------------------
204    Name: Matthias Blume (blume (at) tti - c (dot) org)
205    Date: 2004/02/13 14:50:00 CST
206    Tag: Release_110_45
207    Description:
208    
209    New working version (110.45). New bootfiles.
210    
211    ----------------------------------------------------------------------
212    Name: Matthias Blume (blume (at) tti - c (dot) org)
213    Date: 2004/01/26 15:15:15 CST
214    Tag: blume-20040126-toplevel
215    Description:
216    
217    Improved handling of exceptions at the interactive toplevel.
218    
219    ----------------------------------------------------------------------
220    Name: Matthias Blume (blume (at) tti - c (dot) org)
221    Date: 2004/01/26 11:25:00
222    Tag: blume-20040126-app
223    Description:
224    
225    Type of top-level "app" corrected.
226    Added code for setting vp_limitPtrMask to Win32-specific runtime.
227    
228    ----------------------------------------------------------------------
229    Name: Matthias Blume (blume (at) tti - c (dot) org)
230    Date: 2003/11/18 17:10 CST
231    Tag: blume-20031118-basis-fiddle
232    Description:
233    
234    - changed Timer interface to what might become the spec
235    - POSIX_FLAGS -> BIT_FLAGS according to spec
236    - some other minor discrepancies wrt. spec eliminated
237    
238    ----------------------------------------------------------------------
239    Name: Matthias Blume (blume (at) tti - c (dot) org)
240    Date: 2003/11/06 12:00:00 CST
241    Tag: Release_110_44
242    Description:
243    
244    New working version (110.44). New bootfiles.
245    
246    ----------------------------------------------------------------------
247    Name: Matthias Blume (blume (at) tti - c (dot) org)
248    Date: 2003/11/04 11:50:00 CST
249    Tag: blume-20031104-move-libraries
250    Description:
251    
252    Eliminated the "dont_move_libraries" directive in config/targets.
253    (The mechanism was broken and could not be fixed easily.  Moreover,
254    there does not seem to be any reason not to move all libraries into
255    lib during installation.  I originally implemented this directive as a
256    backward-compatibility feature when I first introduced the new CM.
257    Now that things have been stable for a long time and going back to the
258    old CM is not an option, there is no reason to keep it around.)
259    
260    ----------------------------------------------------------------------
261    Name: Matthias Blume (blume (at) tti - c (dot) org)
262    Date: 2003/11/03 16:00:00 CST
263    Tag: blume-20031103-installdir
264    Description:
265    
266    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
267    Richards for pointing out the problem and providing the solution.)
268    
269    ----------------------------------------------------------------------
270    Name: Matthias Blume (blume (at) tti - c (dot) org)
271    Date: 2003/10/01 17:05:00 CDT
272    Tag: blume-20031001-lal-mlrisc
273    Description:
274    
275    MLRISC bug fix from Lal.
276    
277    ----------------------------------------------------------------------
278    Name: Matthias Blume (blume (at) tti - c (dot) org)
279    Date: 2003/09/30 16:10:00 CDT
280    Tag: blume-20030930-primio-bat
281    Description:
282    
283    1. Added openVector, nullRd, and nullWr to PRIM_IO.
284    2. Improved .bat files (for Win32 port) to make things work under Win95.
285       (thanks to Aaron S. Hawley for this one)
286    
287    ----------------------------------------------------------------------
288    Name: Matthias Blume (blume (at) tti - c (dot) org)
289    Date: 2003/09/26 16:05:00 CDT
290    Tag: blume-20030926-wrappriv
291    Description:
292    
293    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
294    
295    ----------------------------------------------------------------------
296    Name: Matthias Blume (blume (at) tti - c (dot) org)
297    Date: 2003/09/26 15:00:00 CDT
298    Tag: blume-20030926-110_43_3
299    Description:
300    
301    - additional cleanup
302    - version number bump, NEW BOOTFILES
303    
304    ----------------------------------------------------------------------
305    Name: Matthias Blume (blume (at) tti - c (dot) org)
306    Date: 2003/09/26 12:00:00 CDT
307    Tag: blume-20030926-ppautoload
308    Description:
309    
310    I modified the read-eval-print loop so that the autoloader gets
311    invoked whenever the prettyprinter tries to look up a symbol that
312    is not currently defined in the toplevel environment but which
313    appears in CM's autoload registry.  As a result, we see far fewer of
314    those ?.Foo.Bar.xxx names in the prettyprinter's output.
315    
316    In addition to this I tried to clean up some pieces of the Basis
317    implementation (e.g., Socket, Word8Array) in order to prevent other
318    instances of these ?.Foo.Bar.xxx names from being printed.
319    
320    The mechanism that picks names for types still needs some work, though.
321    (Right now it seems that if there is a type A.t which is defined to
322    be B.u, but B is unavailable at toplevel, then A.t gets printed as
323    "?.B.u" although the perhaps more sensible solution would be to use
324    "A.t" in this case.  In other words, the prettyprinter should follow
325    a chain of DEFtycs not farther than there are corresponding toplevel
326    names in the current environment.)
327    
328    ----------------------------------------------------------------------
329    Name: Matthias Blume (blume (at) tti - c (dot) org)
330    Date: 2003/09/24 16:31:00 CDT
331    Tag: blume-20030924-installer
332    Description:
333    
334    Another installer tweak:  All the ML code for the installer is now
335    compiled during CMB.make and put into a little library called
336    $smlnj/installer.cm.  The installation then simply invokes
337    
338       sml -m $smlnj/installer.cm
339    
340    and everything happens automagically.
341    
342    Win32:  ML code senses value of environment variable SMLNJ_HOME.
343    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
344            and BINDIR.
345    
346    The new scheme guarantees that the ML code responsible for the installation
347    is in sync with the APIs of the main system.  Also, the installer is
348    somewhat faster because the installer script is precompiled.
349    
350    ----------------------------------------------------------------------
351    Name: Matthias Blume (blume (at) tti - c (dot) org)
352    Date: 2003/09/24 15:35:00 CDT
353    Tag: blume-20030924-synsock
354    Description:
355    
356    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
357    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
358    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
359    implementations of non-blocking operations from CML's Socket
360    structure.
361    
362    ----------------------------------------------------------------------
363    Name: Matthias Blume (blume (at) tti - c (dot) org)
364    Date: 2003/09/24 15:10:05 CDT
365    Tag: blume-20030924-sockets
366    Description:
367    
368    1. Fixed SOCKET API and implementation to match Basis spec.
369       This required changing the internal representation of sockets to one
370       that remembers (for each socket file descriptor) whether it is currently
371       blocking or non-blocking.  This state is maintained lazily (i.e., a system
372       call is made only if the state actually needs to change).
373    
374    2. OS-specific details of sockets were moved into separate files, thus
375       making it possible to unify the bulk of the socket implementations
376       between Unix and Win32.
377    
378    3. CML's socket API changed accordingly.
379       (Note that we need to remove non-blocking functions from this API
380       since they are redundant in the case of CML!)
381    
382    4. CML's socket implementation now makes use of non-blocking functions
383       provided by Basis, thus removing all OS-dependent code from this part
384       of CML.
385    
386    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
387    
388    ----------------------------------------------------------------------
389    Name: Matthias Blume (blume (at) tti - c (dot) org)
390    Date: 2003/09/22 12:10:00 CDT
391    Tag: blume-20030922-110_43_2
392    Description:
393    
394    Made a new interim version and bootfiles for developer's bootstrapping
395    convenience.
396    
397       110.43.2 -- NEW BOOTFILES
398    
399    ----------------------------------------------------------------------
400    Name: Matthias Blume (blume (at) tti - c (dot) org)
401    Date: 2003/09/19 15:55:00 CDT
402    Tag: blume-20030919-cmdir
403    Description:
404    
405    1. new-install.sh -> install.sh
406    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
407    3. tweaked installer so that another name instead of .cm can be chosen
408       at install time (by setting the CM_DIR_ARC environment variable
409       during installation); once installation is complete, the name is
410       fixed
411    
412    ----------------------------------------------------------------------
413    Name: Matthias Blume (blume (at) tti - c (dot) org)
414    Date: 2003/09/18 16:00:00 CDT
415    Tag: blume-20030918-110_43_1
416    Description:
417    
418    Made a new interim version and bootfiles for developer's bootstrapping
419    convenience.
420    
421       110.43.1 -- NEW BOOTFILES
422    
423    ----------------------------------------------------------------------
424    Name: Matthias Blume (blume (at) tti - c (dot) org)
425    Date: 2003/09/18 15:20:00 CDT
426    Tag: blume-20030918-misc
427    Description:
428    
429    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
430       this seems to be controversial at the moment) and used those in
431       Posix.ProcEnv.times.
432    
433    2. Added Time.{from,to}Nanoseconds to Time.
434    
435    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
436       For example, fromLargeInt never needs to look at more than 3 "big
437       digits" to get its 53 bits of precision.
438    
439    ----------------------------------------------------------------------
440    Name: Matthias Blume (blume (at) tti - c (dot) org)
441    Date: 2003/09/17 16:30:00 CDT
442    Tag: blume-20030917-real32-slices
443    Description:
444    
445    Added an entry to the primitive environment
446    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
447    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
448    
449    Removed some of the "magic" constants in real64.sml and replaced them
450    with code that generates these values from their corresponding
451    integer counterparts.
452    
453    Made all(?) the slice-related changes to the Basis and made everything
454    compile again...
455    
456    ----------------------------------------------------------------------
457    Name: Matthias Blume (blume (at) tti - c (dot) org)
458    Date: 2003/09/15 17:45:00 CDT
459    Tag: blume-20030915-rbase
460    Description:
461    
462    Fixed bug in Real.fromLargeInt.
463    
464    ----------------------------------------------------------------------
465    Name: Matthias Blume (blume (at) tti - c (dot) org)
466    Date: 2003/09/13 18:11:00 CDT
467    Tag: blume-20030913-libinstall
468    Description:
469    
470    Minor bugfix in config/libinstall (set anchor with path to
471    standalone tool after installing it, otherwise libraries that
472    need ml-lex or ml-yacc won't compile the first time the installer
473    runs).
474    
475    ----------------------------------------------------------------------
476    Name: Matthias Blume (blume (at) tti - c (dot) org)
477    Date: 2003/09/12 11:45:00 CDT
478    Tag: blume-20030912-various
479    Description:
480    
481     - fixed bug in Real.toLargeInt
482     - fixed bug in Posix.ProcEnv.times
483     - changed inputLine functions to return an option
484     - minor installer improvements / bugfixes
485     - changed default @SMLalloc parameter for x86/celeron to 64k
486    
487    ----------------------------------------------------------------------
488    Name: Matthias Blume (blume (at) tti - c (dot) org)
489    Date: 2003/09/09 22:00:00 CDT
490    Tag: Release_110_43
491    Description:
492    
493        New working release 110.43.  New bootfiles.
494    
495    ----------------------------------------------------------------------
496    Name: Matthias Blume (blume (at) tti - c (dot) org)
497    Date: 2003/09/09 19:20:00 CDT
498    Tag: blume-20030909-installer
499    Description:
500    
501    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
502    Modified config/install.bat to take advantage of it.  Also modified
503    config/install.sh (and called it config/new-install.sh) to take advantage
504    of it on Unix systems.  (The SML code is (supposed to be) platform-
505    independent.)
506    
507    The installer can now install everything under Win32
508    as well as under *nix as long as it compiles.
509    
510    Other changes:
511    
512      - made CML compile again under Win32
513      - made eXene compile under Win32 (by providing a fake structure UnixSock
514        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
515      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
516        same as type int;  under Win32 it isn't
517      - fixed some slice-related problems in the win32-specific parts of CML
518      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
519        (under Win32, the volume name is case-insensitive, and the
520        OS.Path code compares volume names for equality)
521    
522    ----------------------------------------------------------------------
523    Name: Matthias Blume (blume (at) tti - c (dot) org)
524    Date: 2003/09/08 11:55:00 CDT
525    Tag: blume-20030908-fullpath
526    Description:
527    
528    Made Win32 version of OS.FileSys.fullPath return current directory
529    when given an empty string.  This is what the spec says, and incidentally,
530    CM depends on it.  (CM otherwise goes into an infinite loop in certain
531    cases when presented with the name of a non-existing .cm file.)
532    
533    ----------------------------------------------------------------------
534    Name: Matthias Blume (blume (at) tti - c (dot) org)
535  Date: 2003/09/04 16:30:00 CDT  Date: 2003/09/04 16:30:00 CDT
536  Tag: blume-20030904-slices-etc  Tag: blume-20030905-slices-etc
537  Description:  Description:
538    
539    1. Changed interface to vectors and arrays in Basis to match    1. Changed interface to vectors and arrays in Basis to match
# Line 54  Line 572 
572       ArraySlice).       ArraySlice).
573    
574  ----------------------------------------------------------------------  ----------------------------------------------------------------------
575  Name: Matthias Blume (blume@tti-c.org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
576  Date: 2003/08/28 17:00:00 CDT  Date: 2003/08/28 17:00:00 CDT
577  Tag: blume-20030828-intinf  Tag: blume-20030828-intinf
578  Description:  Description:
# Line 141  Line 659 
659  has been added.  has been added.
660    
661  ----------------------------------------------------------------------  ----------------------------------------------------------------------
662  Name: Matthias Blume (blume@tti-c.org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
663  Date: 2003/08/11 15:45:00 CDT  Date: 2003/08/11 15:45:00 CDT
664  Tag: blume-20030811-windows  Tag: blume-20030811-windows
665  Description:  Description:
# Line 236  Line 754 
754  use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.  use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
755    
756  ----------------------------------------------------------------------  ----------------------------------------------------------------------
757  Name: Matthias Blume (blume@tti-c.org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
758  Date: 2003/05/27 16:55:00 CDT  Date: 2003/05/27 16:55:00 CDT
759  Tag: blume-20030527-polyeq  Tag: blume-20030527-polyeq
760  Description:  Description:
# Line 244  Line 762 
762  Tried to eliminated most cases of polymorphic equality.  Tried to eliminated most cases of polymorphic equality.
763    
764  ----------------------------------------------------------------------  ----------------------------------------------------------------------
765  Name: Matthias Blume (blume@tti-c.org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
766  Date: 2003/05/21 17:45:00 CDT  Date: 2003/05/21 17:45:00 CDT
767  Tag: blume-20030517-complete  Tag: blume-20030517-complete
768  Description:  Description:
# Line 257  Line 775 
775       without a single non-exhaustive match- or bind warning.       without a single non-exhaustive match- or bind warning.
776    
777  ----------------------------------------------------------------------  ----------------------------------------------------------------------
778  Name: Matthias Blume (blume@tti-c.org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
779  Date: 2003/05/17 10:20:00 CDT  Date: 2003/05/17 10:20:00 CDT
780  Tag: blume-20030517-absyn  Tag: blume-20030517-absyn
781  Description:  Description:

Legend:
Removed from v.1351  
changed lines
  Added in v.1491

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