source: project/chicken/trunk/TODO @ 14292

Last change on this file since 14292 was 14292, checked in by felix winkelmann, 11 years ago

minor changes

File size: 6.2 KB
Line 
1TODO for chicken                                                        -*- Outline -*-
2================
3
4
5* bugs
6
7** compiler
8*** pre-optimization
9**** changes call-sites and makes them invalid for later pre-optimization
10*** check profiling (-profile vs. profile-declaration)
11**** this doesn't always seem to work, in particular with library units
12**** ##sys#finish-profile should always be invoked
13     is it in `exit'?
14*** when re-defining intrinsics, the compiler should warn and disable re-writes
15    add declaration to keep re-writes enabled for core library files
16*** check in foreign.import.scm and compiler.import.scm whether the import
17    took place in the compiler
18*** -prologue, -epilogue, -prelude, -postlude should check for argument being directory
19    (reported by Eduardo Cavazos)
20
21** expander
22*** expansion of r5rs_pitfall 4.2 incorrect
23    possibly due to a non-aliased implicit "begin" somewhere
24*** dirty-macros.scm loops when using `defile'
25    possibly due to unrenamed special forms
26*** extended lambda-lists refer to `optional' and `let-optionals[*]'
27    this will break, when these macros are renamed on import or not imported
28    at all
29**** a possible solution is to use internal forms, provided by the "scheme" module.
30*** need way to force generating module-registration code for standalone executables.
31
32** modules
33*** `require-extension' fails in interpreter when extension is .so without import library
34    probably because load and import is in same toplevel form, and the
35    load is performed after the import (at runtime). A possibly fix
36    would be to load the extension immediately (at
37    compile-/expansion-time), when import is #t and o import lib
38    exists.
39*** mark import-source (module) on plist of imported symbols and use in re-import warning
40    doesn't work that easily, try to find another solution
41*** DSSSL lambda-lists need imports of `chicken' module ("optional", "let-optionals", ...)
42**** should probably use internal aliases
43
44** libraries
45*** library/runtime: cyclic list checks for assq/assv/assoc/memq/memv/member
46    and C_i_list_tail
47*** finalizers on lexically ref'd data not working in interpreter
48    reported by Jim Ursetto
49    reverted original patch, see patches/finalizer-closures.diff
50
51** tools
52*** chicken-bug: SMTP servers not accessible
53
54** build
55*** somehow get SONAME to work
56
57** tests
58*** should run without installation
59
60** setting nursery default size doesn't seem to work properly (reported by Zbigniew)
61
62
63* tasks
64
65** branches
66*** try to improve performance in lazy-gensyms
67*** scrutiny
68
69** expander
70*** at some stage remove debug-output in expand.scm
71
72** module issues
73*** need a way to omit generating module registration without generating import lib
74    for example when compiling static version, where implib already exists
75*** code-duplication in compiler and evaluator for ##core#module
76*** "scheme" module does not include some special forms ("define-syntax", etc.)
77*** import-for-syntax imports value bindings into import-env
78    should actually be a distinct meta-import-env.
79    example: we need `(import-for-syntax chicken)' to have access to
80    `receive' in a procedural syntax definition.
81*** curried define performs expansion in empty se - problem?
82    (as comment in expand.scm indicated (##sys#register-export))
83*** check phase separation and module access
84**** see "expander" above
85
86** compiler
87*** test define-rewrite-rule
88*** (csc) generate object-files in /tmp (or TMPDIR)?
89
90** setup/install
91*** setup-download
92**** use "HTTP_PROXY"/"http_proxy" env. var
93**** handle redirects in http-fetch
94**** option in chicken-install to list available eggs
95*** automatically update db after extension installation?
96
97** library units
98*** read-mark list should be stored in read-table
99*** ports should have indicator slot about exact type (tcp, file, ...)
100*** normalize-pathname: return short name on windows? (mingw/msvc)
101*** Use record-descriptors instead of symbols as 1st slot in structure objects?
102**** see Kon's proposal for new record-descriptors in "misc/Chicken Runtime Data Type Proposal"
103
104** syntax-error
105*** if ##sys#current-module is set, add name to error message?
106*** fluidly keep track of expanded forms (extend meaning of culprit) to pprint pruned expr on error
107
108** build
109*** need script to process import libraries for generating indices for doc.callcc.org
110    then tell Toby Butzon about it
111*** test DESTDIR and proper linking
112*** test special status of setup-api.import.scm and setup-download.import.scm
113    touching .c files caused chicken-install to be rebuilt; did using
114    .SECONDARY help?
115*** using "touch" with WINDOWS_SHELL won't work (need alternative)
116*** extend scripts/guess-platforms.sh for more platforms
117
118** documentation
119*** document qs, normalize-pathname
120
121
122* wiki
123
124** compatibility page
125
126
127* extensions
128
129** check status of `s48-modules'
130
131
132* tests
133
134** optional longer run (env. var)
135*** syntax-rules-stress-test
136*** fully compiled ec-tests
137** 3-stage bootstrap with compiler-output comparison
138
139
140* optimizations
141
142** self-recursion optimization
143   what MacScheme called "benchmark-mode" (assume self-calls are recursion)
144*** needs declaration or option, >= -O2
145
146** when inlining, consing arg-list with "list" may make get-keyword possible foldable
147
148** compiler-support for get-keyword ?
149
150** lambda-fusion / "fuse-and-dispatch" (suggested by Alex Shinn)
151   convert groups of local lambdas referenced to only in operator-position into
152   looping lambda + dispatch (static variable can be used), otherwise similar to
153   a conditional
154
155** lazy gensyms (see "lazy-gensyms" branch)
156
157** handle optional args primitively
158   for example, set to distinguished val (checking argc) on C level, core
159   primitive for checking this - should be quite simple, but llist processing
160   (decompose-lambda-list) will be more expensive and cumbersome.
161
162** pre-hashed symbols (extra symbol slot)
163   The memory usage should be acceptable, performance gain is hard to guess.
164   Some experiments indicate that hashing the string is cheaper than it appears,
165   but low-level hashtables should get the most of this (and thus speed up
166   the compiler)
167
168** Lisp2-hack by Dybvig
169*** add function-cell to symbol, call on direct call without checks
170*** initialized to trap function on set!/define, which does fixup
171*** would also allow inline-caching hacks
Note: See TracBrowser for help on using the repository browser.