0.pre7.106:
[sbcl.git] / TODO
1 for 0.7.0:
2
3 * filed off the roughest edges (or, perhaps, at least hammered down the
4         protruding rusty nails and snipped off the trailing razor wire,
5         leaving some filing for later:-) from the monster
6         EVAL/EVAL-WHEN/%COMPILE/DEFUN/DEFSTRUCT cleanup:
7         ** made inlining DEFUN inside MACROLET work again
8         ** whatever bug it is that causes s/#'(lambda/(lambda/ to 
9                 cause compilation failure in condition.lisp
10         ** perhaps function debug name quick fix, if there's an easy way
11 * more renaming in global external names:
12         ** reserved DO-FOO-style names for iteration macros
13         ** finished s/FUNCTION/FUN/
14         ** s/VARIABLE/VAR/
15         ** s/TOP-LEVEL/TOPLEVEL/
16         ** perhaps s/DEF-FROB/DEF/ or s/DEF-FROB/DEFINE/
17 * global style systematization:
18         ** s/#'(lambda/(lambda/
19 * pending patches and bug reports that go in (or else get handled
20         somehow, rejected/logged/whatever) before 0.7.0:
21 =======================================================================
22 for early 0.7.x:
23
24 * patches postponed until after 0.7.0:
25         ** Christophe Rhodes "rough patch to fix bug 106" 2001-10-28
26 * building with CLISP (or explaining why not)
27 * urgent EVAL/EVAL-WHEN/%COMPILE/DEFUN/DEFSTRUCT cleanup:
28         ** fixed bug 137
29 * faster bootstrapping (both make.sh and slam.sh)
30         ** added mechanisms for automatically finding dead code, and
31                 used them to remove dead code
32         ** moved stuff from warm init into cold init where possible
33                 (so that slam.sh will run faster and also just because
34                 ideally everything would be in cold init)
35         ** profiled and tweaked
36 * more EVAL/EVAL-WHEN/%COMPILE/DEFUN/DEFSTRUCT cleanup:
37         ** made %COMPILE understand magicality of DEFUN FOO
38                 w.r.t. e.g. preexisting inlineness of FOO
39         ** used %COMPILE where COMPILE-TOP-LEVEL used to be used
40         ** removed now-redundant COMPILE-TOP-LEVEL and 
41                 FUNCTIONAL-KIND=:TOP-LEVEL stuff from the compiler
42         ** made FUNCTION-NAME logic work on closures, so that
43                 various public functions like CL:PACKAGEP which
44                 are now implemented as closures (because
45                 they're structure slot accessors) won't be so
46                 nasty in the debugger
47         ** %SLOT-ACCESSOR/%SLOT-ACCESSOR stuff can probably go away,
48                 since we inline expand all slot accessors into 
49                 %INSTANCE-REF and the optimizer knows all it needs
50                 to know about that.
51 * rewrote long-standing confusing error restarts for redefining
52         DEFSTRUCTs
53 * outstanding embarrassments
54         ** cut-and-pasted DEF-BOOLEAN-ATTRIBUTE (maybe easier to fix
55                 now that EVAL-WHEN does what it should..)
56         ** incomplete manual
57         ** :IGNORE-ERRORS-P cruft in stems-and-flags.lisp-expr
58         ** weird double-loading (first in GENESIS, then in warm init)
59                 of src/assembly/target/*.lisp stuff, and the associated
60                 weirdness of the half-baked state (compiler almost but
61                 not quite ready for prime time..) of the system after
62                 cold init
63 * fixups now feasible because of pre7 changes
64         ** ANSIfied DECLAIM INLINE stuff (deprecating MAYBE-INLINE)
65 * miscellaneous simple refactoring
66         * belated renaming:
67                 ** renamed %PRIMITIVE to %VOP
68         * These days ANSI C has inline functions, so..
69                 ** redid many cpp macros as inline functions: 
70                         HeaderValue, Pointerp, CEILING, ALIGNED_SIZE,
71                         GET_FREE_POINTER, SET_FREE_POINTER,
72                         GET_GC_TRIGGER, SET_GC_TRIGGER, GetBSP, SetBSP,
73                         os_trunc_foo(), os_round_up_foo()
74                 ** removed various avoid-evaluating-C-macro-arg-twice
75                         cruft
76 * added mechanisms for automatically finding dead symbols is
77         package-data.lisp-expr (i.e. those symbols not bound,
78         fbound, defined as types, or whatever), and used them
79         to remove dead symbols
80 * made system handle stack overflow safely unless SAFETY is dominated
81         by SPEED or SPACE
82 * Probably get rid of or at least rework the fdefinition/encapsulation
83         system so that (SYMBOL-FUNCTION 'FOO) = (FDEFINITION 'FOO).
84 =======================================================================
85 for 0.9:
86
87 * refactored in preparation for moving CLOS into cold init and merging
88         SB-PCL:FOO with CL:FOO (for FOO=CLASS, FOO=CLASS-OF, etc.)
89         ** systematized support for MOP (new regression tests, maybe
90                 new SB-MOP package..) to try to make sure things don't
91                 get mislaid in the upcoming CLOS restructuring
92         ** extracted type system from SB-KERNEL into new SB-TYPE
93                 package
94         ** reimplemented GENERIC-FUNCTION as a primitive object (or
95                 maybe made SB-MOP:FUNCALLABLE-STANDARD-OBJECT the
96                 primitive object, and then let GENERIC-FUNCTIONs
97                 inherit from that) instead of structures with
98                 :ALTERNATE-METACLASS and funcallableness. Now
99                 FUNCALLABLE-INSTANCE can go away. (And now the new
100                 funcallable primitive objects need to go into
101                 collections like *FUN-HEADER-WIDETAGS* where
102                 FUNCALLABLE-INSTANCE objects used to be.)
103         ** reimplemented CONDITIONs as primitive objects instead of 
104                 structures with :ALTERNATE-METACLASS. Now (between
105                 this and the change to GENERIC-FUNCTIONs)
106                 DEFSTRUCT :ALTERNATE-METACLASS can go away.
107         ** (maybe) Now INSTANCE_POINTER_LOWTAG can become just
108                 STRUCTURE_POINTER_LOWTAG, and the concept of
109                 SB-KERNEL:INSTANCE (including INSTANCEP, 
110                 (SPECIFIER-TYPE 'INSTANCE), etc.) can go away.
111 * moved CLOS into cold init, in order to allow CLOS to be used in the
112         implementation of the core system (e.g. the type system and the
113         compiler) and in order to support merger of CL:CLASS with 
114         SB-PCL:CLASS
115 * (maybe) eliminated warm init altogether in favor of cold init
116 * (maybe, especially if warm init can be eliminated) rationalized
117         the build process, fixing miscellaneous pre-0.5.0 stuff that's
118         transparently not the right thing
119         ** removed separate build directories, now just building in 
120                 place with .sbclcoldfasl extensions
121 * (maybe) more refactoring in preparation for merging SB-PCL:FOO
122         into CL:FOO: reimplemented type system OO dispatch
123         (!DEFINE-TYPE-METHOD, etc.) in terms of CLOS OO dispatch
124 * merged SB-PCL:FOO into CL:FOO (and similarly CLASS-OF, etc.)
125 * added some automatic tests for basic binary compatibility, in hopes
126         that it might be practical to maintain binary compatibility
127         between minor maintenance releases on the stable branch (but no
128         promises, sorry, since I've never tried to do this before, and 
129         have no idea how much of a pain this'll be)
130 ========================================================================
131 for 1.0 (fixes of lower priority which I'd nonetheless be embarrassed
132 to leave unfixed in 1.0):
133 * all too many BUGS entries and FIXMEs
134 =======================================================================
135 other priorities, no particular time:
136
137 * bug fixes, especially really annoying bugs (ANSI or not) and any
138         ANSI bugs (i.e. not just bugs in extras like the debugger or
139         "declarations are assertions", but violations of the standard)
140 * better communication with the outside world (scratching WHN's
141         personal itch): I don't want socket-level stuff so much as I
142         want RPC-level or higher (CORBA?) interfaces and (possibly
143         through RPC or CORBA) GUI support
144 =======================================================================
145 important but out of scope (for WHN, anyway: Patches from other people
146 are still welcome!) until after 1.0:
147         * DYNAMIC-EXTENT
148         * sadly deteriorated support for ANSI-style block compilation
149                 (static linking of DEFUNs within a single file or 
150                 WITH-COMPILATION-UNIT)
151         * various GC issues (exuberant cut-and-paste coding,
152                 possibly dangerously over-conservative handling
153                 of neighbors of function objects, general GC efficiency)
154         * package issues other than SB!TYPE, SB!MOP, and dead exported
155                 symbols
156         * Any systematic effort to fix compiler consistency checks is
157                 out of scope. (However, it still might be possible to
158                 determine that some or all of them are hopelessly stale
159                 and delete them.)
160 ===============================================================================
161 other known issues with no particular target date:
162
163 bugs listed on the man page
164
165 hundreds of FIXME notes in the sources from WHN
166
167 various other unfinished business from CMU CL and before, marked with 
168   "XX" or "XXX" or "###" or "***" or "???" or "pfw" or "@@@@" or "zzzzz"
169 or probably also other codes that I haven't noticed or have forgotten.
170
171 (Things marked as KLUDGE are in general things which are ugly or
172 confusing, but that, for whatever reason, may stay that way
173 indefinitely.)
174 =======================================================================
175 "There's nothing an agnostic can't do as long as he doesn't know
176 whether he believes in anything or not."
177   -- Monty Python.
178
179 "God grant me serenity to accept the code I cannot change, courage to
180 change the code I can, and wisdom to know the difference."
181   -- Erik Naggum
182
183 "Accumulation of half-understood design decisions eventually chokes a
184 program as a water weed chokes a canal. By refactoring you can ensure
185 that your full understanding of how the program should be designed is
186 always reflected in the program. As a water weed quickly spreads its
187 tendrils, partially understood design decisions quickly spread their
188 effects throughout your program. No one or two or even ten individual
189 actions will be enough to eradicate the problem."
190   -- Martin Fowler, in _Refactoring: Improving the Design of Existing
191      Code_, p. 360 
192
193 "I wish I didn't know now what I didn't know then."
194   -- Bob Seger