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 1389, Wed Sep 24 20:09:40 2003 UTC revision 1491, Tue May 18 20:49:37 2004 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume (blume (at) tti - c (dot) 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  Date: 2003/09/24 15:10:05 CDT
365  Tag: blume-20030924-sockets  Tag: blume-20030924-sockets
366  Description:  Description:

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

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