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 1390, Wed Sep 24 20:34:06 2003 UTC revision 1515, Fri Jun 18 19:29:02 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/06/18 14:30:00 CDT
18    Tag: blume-20040618-unix
19    Description:
20    
21    Changed the implementation of structure Unix so that the same stream
22    is returned every time one of the {text,bin}{In,Out}streamOf functions
23    is invoked on the same proc.  This is not what the spec currently
24    says -- although IMO it arguably should.  (See discussion below.)
25    
26    ----------------------------------------------------------------------
27    Name: Matthias Blume (blume (at) tti - c (dot) org)
28    Date: 2004/06/17 18:15:00 CDT
29    Tag: Release_110_46
30    Description:
31    
32    New working version (110.46).  NEW BOOTFILES!
33    
34    ----------------------------------------------------------------------
35    Name: Matthias Blume (blume (at) tti - c (dot) org)
36    Date: 2004/06/17 17:20:00 CDT
37    Tag: blume-20040617-timer-unix
38    Description:
39    
40    Changed the interface of structures Timer and Unix to match the most
41    recent Basis spec.
42    
43    In the case of Unix there still seems to be an open/weird issue:
44    
45       The {text,bin}{In,Out}streamOf functions are supposed to create
46       fresh streams whenever they are called -- as opposed to have them
47       return the same stream every time.  This design is supposed to
48       prevent space leaks caused by proc values hanging on to streams.
49    
50       The reap function, on the other hand, is supposed to close the
51       streams.  This cannot be done without having a handle on the
52       stream in proc after all...
53    
54    I took the liberty to implement the following stopgap solution:
55    
56      The proc value hangs on to the most recently created stream(s).
57      Reap closes those.  If either or both of the two streams hadn't
58      been created at all yet, then reap will close the corresponding
59      file descriptors directly.
60    
61    PS: I don't understand the original space leak argument anymore.  If
62    a proc hangs on to the imperative stream, then I/O operations on those
63    will advance the state of the cached stream and avoid the space leak.
64    
65    ----------------------------------------------------------------------
66    Name: Matthias Blume (blume (at) tti - c (dot) org)
67    Date: 2004/05/28 16:45:00 CDT
68    Tag: blume-20040528-basis
69    Description:
70    
71    Added signature PACK_REAL and exported functor PrimIO.
72    
73    ----------------------------------------------------------------------
74    Name: Matthias Blume (blume (at) tti - c (dot) org)
75    Date: 2004/05/25 16:00:00 CDT
76    Tag: blume-20040525-group-owner
77    Description:
78    
79    CM now ignores (but still accepts) the "owner" information in group
80    descriptions.  The owner of a group is its next enclosing
81    library. Each group must have a unique owner.  (There is a virtual
82    "toplevel" library that owns groups which are not nested within a real
83    library.)  Previously, each group had to explicitly declare its owner,
84    and CM would check that such a declaration is correct.  The new scheme
85    is to have CM check that for each group there is precisely one owning
86    library.
87    
88    The advantage of the new scheme is that the programmer no longer needs
89    to maintain the somewhat annoying owner information.  The downside is
90    that CM cannot enforce the ownership rule across multiple runs of
91    CM.make.  Fortunately, enclosing the same group in two different
92    libraries A and B which are not part of the same program does not
93    cause real problems.
94    
95    ----------------------------------------------------------------------
96    Name: Matthias Blume (blume (at) tti - c (dot) org)
97    Date: 2004/05/20 16:00:00 CDT
98    Tag: blume-20040520-win32
99    Description:
100    
101    Made the win32 version work again.  (Strangely, a misplaced comma had
102    slipped into win32-process.c which prevented the runtime from being
103    compiled correctly.)
104    
105    Also, included a minor addition to ml-build.bat analogous to what was
106    done in blume-20040519-ml-build.
107    
108    ----------------------------------------------------------------------
109    Name: Matthias Blume (blume (at) tti - c (dot) org)
110    Date: 2004/05/19 22:10:00 CDT
111    Tag: blume-20040519-ml-build
112    Description:
113    
114    Arranged for ml-build to clean up after itself a little bit better.
115    The script generates a temporary SML source file and compiles it using
116    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
117    gets rid of those at the end, so they don't accumulate under .cm.
118    
119    This required a minor change to install.sh because the name of the
120    metadata directory (default: .cm) is actually configurable at
121    installation time.
122    
123    ----------------------------------------------------------------------
124    Name: Matthias Blume (blume (at) tti - c (dot) org)
125    Date: 2004/05/18 15:50:00 CDT
126    Tag: blume-20040518-mkreader
127    Description:
128    
129    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
130    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
131    
132    ----------------------------------------------------------------------
133    Name: Matthias Blume (blume (at) tti - c (dot) org)
134    Date: 2004/05/11 14:35:00 CDT
135    Tag: blume-20040511-win32sock
136    Description:
137    
138    Added previously missing support for many socket-related functions
139    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
140    for the voluminous patch!
141    
142    (I have not tested this patch under win32 yet.)
143    
144    Here is David's e-mail:
145    
146    Hi,
147    
148    Attached to this email you find a diff against sml/nj 110.45
149    that will enable socket support under Windows.
150    
151    To apply the patch (using unix or cygwin)
152    1) gunzip runtime.diff.gz
153    2) "cd" into "src/runtime" in the source tree of a fresh
154       110.45 installation.
155    3) patch -p 1 < [your/path/to]runtime.diff
156    
157    The code compiles fine but has NOT yet been extensively tested.
158    I only ran a few tests for basic socket client functionality
159    (which worked fine).  Especially the functions that use ioctl
160    are not tested at all and might not work (see below).
161    
162    I implemented this since we want to move to a newer version of sml/nj
163    but need socket support in order to use it.  This is the first time I
164    even had a look at the sml/nj source,  so please review my changes
165    before making this part of the distribution!  Here are a few issues
166    that I think might be better for someone to solve who is more
167    familiar with the sml/nj source (and socket programming):
168    
169    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
170      exception since I could not figure out what the windows equivalent
171      of these functions is
172    
173    - In sockets-osdep.h there are a some #include statements that are
174      only used in a few files that include sockets-osdep.h
175    
176    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
177      does not process its return value since I don't know how to
178      report an error upwards.
179    
180    - It would probably be good to have a call to WSACleanup() when
181      the library is unloaded (if there is such a possibility).
182      Otherwise I think Windows will take care of this automatically
183      when the process finishes.
184    
185    - I used ioctlsocket() as a replacement for ioctl() but I have
186      no idea if that is actually the proper replacement on Windows.
187    
188    - All these issues are marked in the code by "FIXME" comments.
189    
190    We use sml/nj extensively in our products and are quite happy
191    with it.  I hope this contribution will help you.
192    
193    Keep up the good work!
194    
195    David
196    
197    ----------------------------------------------------------------------
198    Name: Matthias Blume (blume (at) tti - c (dot) org)
199    Date: 2004/05/11 14:20:00 CDT
200    Tag: blume-20040511-installml
201    Description:
202    
203    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
204    the patch.)
205    
206    ----------------------------------------------------------------------
207    Name: Matthias Blume (blume (at) tti - c (dot) org)
208    Date: 2004/05/11 14:05:00 CDT
209    Tag: blume-20040511-nlffi-netbsd
210    Description:
211    
212    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
213    the patch.)
214    
215    ----------------------------------------------------------------------
216    Name: Matthias Blume (blume (at) tti - c (dot) org)
217    Date: 2004/05/11 12:05:00 CDT
218    Tag: blume-20040511-exports
219    Description:
220    
221    As per request by Adam Chlipala <adam@hcoop.net>, extended various
222    export lists in compiler-related .cm-files.
223    
224    ----------------------------------------------------------------------
225    Name: Matthias Blume (blume (at) tti - c (dot) org)
226    Date: 2004/05/11 11:35:00 CDT
227    Tag: blume-20040511-allsource
228    Description:
229    
230    The installer now honors the "src-smlnj" target again, although its meaning
231    has changed from "all sources required for the compiler" to "all sources
232    the installer knows about".  In other words, if you enable "src-smlnj"
233    in the "targets" file, then the installer will pull in sources for
234    everything.  (Notice that this refers to source code only.  Compiled
235    code is still only installed for modules that were requested explicitly
236    or which are required for other modules that were requested explicitly.)
237    
238    ----------------------------------------------------------------------
239    Name: Matthias Blume (blume (at) tti - c (dot) org)
240    Date: 2004/04/23 17:40:00 CDT
241    Tag: blume-20040423-ieee-scan
242    Description:
243    
244    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
245    in the exponent calculation we get INF or ZERO (depending on the mantissa
246    and the sign of the exponent).
247    
248    ----------------------------------------------------------------------
249    Name: Matthias Blume (blume (at) tti - c (dot) org)
250    Date: 2004/04/23 10:40:00 CDT
251    Tag: blume-20040423-ml-build
252    Description:
253    
254    The ml-build script now terminates with a non-0 status when something
255    goes wrong.
256    
257    ----------------------------------------------------------------------
258    Name: Matthias Blume (blume (at) tti - c (dot) org)
259    Date: 2004/04/22 16:35:00 CDT
260    Tag: blume-20040422-Option
261    Description:
262    
263    Made exception Option to be the same as exception Option.Option
264    (as it should be).
265    
266    ----------------------------------------------------------------------
267    Name: Allen Leung (leunga (at) reservoir (dot) com)
268    Date: 2004/03/19 14:40:00 EST
269    Tag: leunga-20040319-cygwin-nlffi
270    Description:
271    
272    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
273    of SML/NJ.  The problem is that
274    
275       lib = dlopen(NULL, ...)
276       f   = dlsym(lib, "malloc");
277    
278    does not work on Windows unless we explicitly export symbols
279    such as 'malloc' during linking.  We fixed this by explicitly
280    exporting the required symbols with the magic gcc incantation:
281    
282        -Wl,--export-all cygwin.def
283    
284    where cygwin.def is a file containing all the symbols that
285    we wish to export.
286    
287    I suspect this is a Windows problem and we'll have to
288    do the same (somehow with windows compilers) when
289    we build the native win32 version with the system
290    calls LoadLibrary/GetProcAddress.
291    
292    ----------------------------------------------------------------------
293    Name: Matthias Blume (blume (at) tti - c (dot) org)
294    Date: 2004/03/04 16:35:00 CST
295    Tag: blume-20040304-intinf-fmt
296    Description:
297    
298    Fixed problem with IntInf.fmt (sign would show up on the right instead
299    of on the left for BIN, OCT, and HEX).
300    
301    ----------------------------------------------------------------------
302    Name: Matthias Blume (blume (at) tti - c (dot) org)
303    Date: 2004/03/04 11:25:00 CST
304    Tag: blume-20040304-symlinks
305    Description:
306    
307    Fixed problem with installer script (unix only) where bin/ml-yacc and
308    friends pointed (via symlinks) to absolute locations instead of just
309    .run-sml.  This was reported by Vesa A Norrman.
310    
311    ----------------------------------------------------------------------
312    Name: Matthias Blume (blume (at) tti - c (dot) org)
313    Date: 2004/02/13 14:50:00 CST
314    Tag: Release_110_45
315    Description:
316    
317    New working version (110.45). New bootfiles.
318    
319    ----------------------------------------------------------------------
320    Name: Matthias Blume (blume (at) tti - c (dot) org)
321    Date: 2004/01/26 15:15:15 CST
322    Tag: blume-20040126-toplevel
323    Description:
324    
325    Improved handling of exceptions at the interactive toplevel.
326    
327    ----------------------------------------------------------------------
328    Name: Matthias Blume (blume (at) tti - c (dot) org)
329    Date: 2004/01/26 11:25:00
330    Tag: blume-20040126-app
331    Description:
332    
333    Type of top-level "app" corrected.
334    Added code for setting vp_limitPtrMask to Win32-specific runtime.
335    
336    ----------------------------------------------------------------------
337    Name: Matthias Blume (blume (at) tti - c (dot) org)
338    Date: 2003/11/18 17:10 CST
339    Tag: blume-20031118-basis-fiddle
340    Description:
341    
342    - changed Timer interface to what might become the spec
343    - POSIX_FLAGS -> BIT_FLAGS according to spec
344    - some other minor discrepancies wrt. spec eliminated
345    
346    ----------------------------------------------------------------------
347    Name: Matthias Blume (blume (at) tti - c (dot) org)
348    Date: 2003/11/06 12:00:00 CST
349    Tag: Release_110_44
350    Description:
351    
352    New working version (110.44). New bootfiles.
353    
354    ----------------------------------------------------------------------
355    Name: Matthias Blume (blume (at) tti - c (dot) org)
356    Date: 2003/11/04 11:50:00 CST
357    Tag: blume-20031104-move-libraries
358    Description:
359    
360    Eliminated the "dont_move_libraries" directive in config/targets.
361    (The mechanism was broken and could not be fixed easily.  Moreover,
362    there does not seem to be any reason not to move all libraries into
363    lib during installation.  I originally implemented this directive as a
364    backward-compatibility feature when I first introduced the new CM.
365    Now that things have been stable for a long time and going back to the
366    old CM is not an option, there is no reason to keep it around.)
367    
368    ----------------------------------------------------------------------
369    Name: Matthias Blume (blume (at) tti - c (dot) org)
370    Date: 2003/11/03 16:00:00 CST
371    Tag: blume-20031103-installdir
372    Description:
373    
374    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
375    Richards for pointing out the problem and providing the solution.)
376    
377    ----------------------------------------------------------------------
378    Name: Matthias Blume (blume (at) tti - c (dot) org)
379    Date: 2003/10/01 17:05:00 CDT
380    Tag: blume-20031001-lal-mlrisc
381    Description:
382    
383    MLRISC bug fix from Lal.
384    
385    ----------------------------------------------------------------------
386    Name: Matthias Blume (blume (at) tti - c (dot) org)
387    Date: 2003/09/30 16:10:00 CDT
388    Tag: blume-20030930-primio-bat
389    Description:
390    
391    1. Added openVector, nullRd, and nullWr to PRIM_IO.
392    2. Improved .bat files (for Win32 port) to make things work under Win95.
393       (thanks to Aaron S. Hawley for this one)
394    
395    ----------------------------------------------------------------------
396    Name: Matthias Blume (blume (at) tti - c (dot) org)
397    Date: 2003/09/26 16:05:00 CDT
398    Tag: blume-20030926-wrappriv
399    Description:
400    
401    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
402    
403    ----------------------------------------------------------------------
404    Name: Matthias Blume (blume (at) tti - c (dot) org)
405    Date: 2003/09/26 15:00:00 CDT
406    Tag: blume-20030926-110_43_3
407    Description:
408    
409    - additional cleanup
410    - version number bump, NEW BOOTFILES
411    
412    ----------------------------------------------------------------------
413    Name: Matthias Blume (blume (at) tti - c (dot) org)
414    Date: 2003/09/26 12:00:00 CDT
415    Tag: blume-20030926-ppautoload
416    Description:
417    
418    I modified the read-eval-print loop so that the autoloader gets
419    invoked whenever the prettyprinter tries to look up a symbol that
420    is not currently defined in the toplevel environment but which
421    appears in CM's autoload registry.  As a result, we see far fewer of
422    those ?.Foo.Bar.xxx names in the prettyprinter's output.
423    
424    In addition to this I tried to clean up some pieces of the Basis
425    implementation (e.g., Socket, Word8Array) in order to prevent other
426    instances of these ?.Foo.Bar.xxx names from being printed.
427    
428    The mechanism that picks names for types still needs some work, though.
429    (Right now it seems that if there is a type A.t which is defined to
430    be B.u, but B is unavailable at toplevel, then A.t gets printed as
431    "?.B.u" although the perhaps more sensible solution would be to use
432    "A.t" in this case.  In other words, the prettyprinter should follow
433    a chain of DEFtycs not farther than there are corresponding toplevel
434    names in the current environment.)
435    
436    ----------------------------------------------------------------------
437    Name: Matthias Blume (blume (at) tti - c (dot) org)
438    Date: 2003/09/24 16:31:00 CDT
439    Tag: blume-20030924-installer
440    Description:
441    
442    Another installer tweak:  All the ML code for the installer is now
443    compiled during CMB.make and put into a little library called
444    $smlnj/installer.cm.  The installation then simply invokes
445    
446       sml -m $smlnj/installer.cm
447    
448    and everything happens automagically.
449    
450    Win32:  ML code senses value of environment variable SMLNJ_HOME.
451    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
452            and BINDIR.
453    
454    The new scheme guarantees that the ML code responsible for the installation
455    is in sync with the APIs of the main system.  Also, the installer is
456    somewhat faster because the installer script is precompiled.
457    
458    ----------------------------------------------------------------------
459    Name: Matthias Blume (blume (at) tti - c (dot) org)
460  Date: 2003/09/24 15:35:00 CDT  Date: 2003/09/24 15:35:00 CDT
461  Tag: blume-20030924-synsock  Tag: blume-20030924-synsock
462  Description:  Description:

Legend:
Removed from v.1390  
changed lines
  Added in v.1515

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