0.7.10.17:
[sbcl.git] / TODO
1 for late 0.7.x:
2
3 * test file reworking
4         ** non-x86 ports now pass irrat.pure.lisp
5         ** ports with less than 256Mb of heap (sparc, ppc and mips)
6                 now don't fail bit-vector.impure-cload.lisp
7 * faster bootstrapping (both make.sh and slam.sh)
8         ** added mechanisms for automatically finding dead code, and
9                 used them to remove dead code
10         ** moved stuff from warm init into cold init where possible
11                 (so that slam.sh will run faster and also just because
12                 ideally everything would be in cold init)
13         ** profiled and tweaked
14 * fixed (TRACE :REPORT PROFILE ...) interface to profiling
15 * more EVAL/EVAL-WHEN/%COMPILE/DEFUN/DEFSTRUCT cleanup:
16         ** made %COMPILE understand magicality of DEFUN FOO
17                 w.r.t. e.g. preexisting inlineness of FOO
18         ** used %COMPILE where COMPILE-TOP-LEVEL used to be used
19         ** removed now-redundant COMPILE-TOP-LEVEL and 
20                 FUNCTIONAL-KIND=:TOP-LEVEL stuff from the compiler
21         ** (ideally, but perhaps too hard, given what I've discovered
22                 about the godawful internals of function debug names):
23                 made FUNCTION-NAME logic work on closures, so that
24                 various public functions like CL:PACKAGEP which
25                 are now implemented as closures (because
26                 they're structure slot accessors) won't be so
27                 nasty in the debugger
28 * outstanding embarrassments
29         ** :IGNORE-ERRORS-P cruft in stems-and-flags.lisp-expr. (It's
30                 reasonable to support this as a crutch when initially
31                 bootstrapping from balky xc hosts with their own
32                 idiosyncratic ideas of what merits FAILURE-P, but it's
33                 embarrassing to have to use it when bootstrapping 
34                 under SBCL!),
35 * fixups now feasible because of pre7 changes
36         ** ANSIfied DECLAIM INLINE stuff (deprecating MAYBE-INLINE,
37                 including e.g. on the man page)
38 * miscellaneous simple refactoring
39         * belated renaming:
40                 ** renamed %PRIMITIVE to %VOP
41         * These days ANSI C has inline functions, so..
42                 ** redid many cpp macros as inline functions: 
43                         HeaderValue, Pointerp, CEILING, ALIGNED_SIZE,
44                         GET_FREE_POINTER, SET_FREE_POINTER,
45                         GET_GC_TRIGGER, SET_GC_TRIGGER, GetBSP, SetBSP,
46                         os_trunc_foo(), os_round_up_foo()
47                 ** removed various avoid-evaluating-C-macro-arg-twice
48                         cruft
49 * Either get rid of or at least rework the fdefinition/encapsulation
50         system so that (SYMBOL-FUNCTION 'FOO) is identically equal to
51         (FDEFINITION 'FOO).
52 =======================================================================
53 for 0.9:
54
55 * refactored in preparation for moving CLOS into cold init and merging
56         SB-PCL:FOO with CL:FOO (for FOO=CLASS, FOO=CLASS-OF, etc.)
57         ** systematized support for MOP (new regression tests, maybe
58                 new SB-MOP package..) to try to make sure things don't
59                 get mislaid in the upcoming CLOS restructuring
60         ** extracted type system from SB-KERNEL into new SB-TYPE
61                 package
62         ** reimplemented GENERIC-FUNCTION as a primitive object (or
63                 maybe made SB-MOP:FUNCALLABLE-STANDARD-OBJECT the
64                 primitive object, and then let GENERIC-FUNCTIONs
65                 inherit from that) instead of structures with
66                 :ALTERNATE-METACLASS and funcallableness. Now
67                 FUNCALLABLE-INSTANCE can go away. (And now the new
68                 funcallable primitive objects need to go into
69                 collections like *FUN-HEADER-WIDETAGS* where
70                 FUNCALLABLE-INSTANCE objects used to be.)
71         ** reimplemented CONDITIONs as primitive objects instead of 
72                 structures with :ALTERNATE-METACLASS. Now (between
73                 this and the change to GENERIC-FUNCTIONs)
74                 DEFSTRUCT :ALTERNATE-METACLASS can go away.
75         ** (maybe) Now INSTANCE_POINTER_LOWTAG can become just
76                 STRUCTURE_POINTER_LOWTAG, and the concept of
77                 SB-KERNEL:INSTANCE (including INSTANCEP, 
78                 (SPECIFIER-TYPE 'INSTANCE), etc.) can go away.
79 * moved CLOS into cold init, in order to allow CLOS to be used in the
80         implementation of the core system (e.g. the type system and the
81         compiler) and in order to support merger of CL:CLASS with 
82         SB-PCL:CLASS
83 * (maybe) eliminated warm init altogether in favor of cold init
84 * (maybe, especially if warm init can be eliminated) rationalized
85         the build process, fixing miscellaneous pre-0.5.0 stuff that's
86         transparently not the right thing
87         ** removed separate build directories, now just building in 
88                 place with .sbclcoldfasl extensions
89 * (maybe) more refactoring in preparation for merging SB-PCL:FOO
90         into CL:FOO: reimplemented type system OO dispatch
91         (!DEFINE-TYPE-METHOD, etc.) in terms of CLOS OO dispatch
92 * merged SB-PCL:FOO into CL:FOO (and similarly CLASS-OF, etc.)
93 * added some automatic tests for basic binary compatibility, in hopes
94         that it might be practical to maintain binary compatibility
95         between minor maintenance releases on the stable branch (but no
96         promises, sorry, since I've never tried to do this before, and 
97         have no idea how much of a pain this'll be)
98 ========================================================================
99 for 1.0 (fixes of lower priority which I'd nonetheless be embarrassed
100 to leave unfixed in 1.0):
101 * all too many BUGS entries and FIXMEs
102 =======================================================================
103 other priorities, no particular time:
104
105 * bug fixes, especially really annoying bugs (ANSI or not) and any
106         ANSI bugs (i.e. not just bugs in extras like the debugger or
107         "declarations are assertions", but violations of the standard)
108 * better communication with the outside world (scratching WHN's
109         personal itch): I don't want socket-level stuff so much as I
110         want RPC-level or higher (CORBA?) interfaces and (possibly
111         through RPC or CORBA) GUI support
112 =======================================================================
113 important but out of scope (for WHN, anyway: Patches from other people
114 are still welcome!) until after 1.0:
115         * DYNAMIC-EXTENT
116         * sadly deteriorated support for ANSI-style block compilation
117                 (static linking of DEFUNs within a single file or 
118                 WITH-COMPILATION-UNIT)
119         * various GC issues (exuberant cut-and-paste coding,
120                 possibly dangerously over-conservative handling
121                 of neighbors of function objects, general GC efficiency)
122         * package issues other than SB!TYPE, SB!MOP, and dead exported
123                 symbols
124         * Any systematic effort to fix compiler consistency checks is
125                 out of scope. (However, it still might be possible to
126                 determine that some or all of them are hopelessly stale
127                 and delete them.)
128 =======================================================================
129 other known issues with no particular target date:
130
131 bugs listed on the man page
132
133 hundreds of FIXME notes in the sources from WHN
134
135 various other unfinished business from CMU CL and before, marked with 
136   "XX" or "XXX" or "###" or "***" or "???" or "pfw" or "@@@@" or "zzzzz"
137 or probably also other codes that I haven't noticed or have forgotten.
138
139 (Things marked as KLUDGE are in general things which are ugly or
140 confusing, but that, for whatever reason, may stay that way
141 indefinitely.)
142 =======================================================================
143 "There's nothing an agnostic can't do as long as he doesn't know
144 whether he believes in anything or not."
145   -- Monty Python.
146
147 "God grant me serenity to accept the code I cannot change, courage to
148 change the code I can, and wisdom to know the difference."
149   -- Erik Naggum
150
151 "Accumulation of half-understood design decisions eventually chokes a
152 program as a water weed chokes a canal. By refactoring you can ensure
153 that your full understanding of how the program should be designed is
154 always reflected in the program. As a water weed quickly spreads its
155 tendrils, partially understood design decisions quickly spread their
156 effects throughout your program. No one or two or even ten individual
157 actions will be enough to eradicate the problem."
158   -- Martin Fowler, in _Refactoring: Improving the Design of Existing
159      Code_, p. 360 
160
161 "I wish I didn't know now what I didn't know then."
162   -- Bob Seger