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

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

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