This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make parenthetic warnings look consistent; make diagnostic on
[perl5.git] / Todo-5.6
1 Bugs
2     fix small memory leaks on compile-time failures
3
4 Unicode support
5     finish byte <-> utf8 and localencoding <-> utf8 conversions
6     make substr($bytestr,0,0,$charstr) do the right conversion
7     add Unicode::Map equivivalent to core
8     add support for I/O disciplines
9         - a way to specify disciplines when opening things:
10             open(F, "<:crlf :utf16", $file)
11         - a way to specify disciplines for an already opened handle:
12             binmode(STDIN, ":slurp :raw")
13         - a way to set default disciplines for all handle constructors:
14             use open IN => ":any", OUT => ":utf8", SYS => ":utf16"
15     eliminate need for "use utf8;"
16     autoload utf8_heavy.pl's swash routines in swash_init()
17     autoload byte.pm when byte:: is seen by the parser
18     check uv_to_utf8() calls for buffer overflow
19     (see also "Locales", "Regexen", and "Miscellaneous")
20
21 Multi-threading
22     support "use Thread;" under useithreads
23     add mechanism to:
24       - create new interpreter in a different thread
25       - exchange data between interpreters/threads
26       - share namespaces between interpreters/threads
27     work out consistent semantics for exit/die in threads
28     support for externally created threads?
29     Thread::Pool?
30
31 Compiler
32     auto-produce executable
33     typed lexicals should affect B::CC::load_pad
34     workarounds to help Win32
35     END blocks need saving in compiled output
36     _AUTOLOAD prodding
37     fix comppadlist (names in comppad_name can have fake SvCUR
38         from where newASSIGNOP steals the field)
39
40 Namespace cleanup
41     CPP-space:    restrict what we export from headers when !PERL_CORE
42     header-space: move into CORE/perl/?
43     API-space:    complete the list of things that constitute public api
44
45 Configure
46     fix the vicious cyclic multidependency of cc <-> libpth <-> loclibpth
47         libswanted <-> usethreads <-> use64bitint <-> use64bitall <->
48         uselargefiles <-> ...  
49     make configuring+building away from source directory work (VPATH et al)
50         this is related to: cross-compilation configuring
51         host vs target: compile in the host, get the executable to the target,
52         get the possible input files to the target, execute in the target,
53         get possible output files back to to host.  this needs to work
54         both during Configure and during the build.  You cannot assume
55         shared filesystems between the host and the target, executing
56         the target executable may involve e.g. rsh
57     _r support (see Todo for mode detailed description)
58     POSIX 1003.1 1996 Edition support--realtime stuff:
59         POSIX semaphores, message queues, shared memory, realtime clocks,
60         timers, signals (the metaconfig units mostly already exist for these)
61     UNIX98 support: reader-writer locks, realtime/asynchronous IO
62     IPv6 support: see RFC2292, RFC2553
63
64 Long doubles
65     figure out where the PV->NV->PV conversion gets it wrong at least
66     in AIX and Tru64 (V5.0 and onwards) when using long doubles: see the
67     regexp tricks we had to insert to t/comp/use.t and t/lib/bigfltpm.t,
68      (?:9|8999\d+) and the like.
69
70 64-bit support
71     Configure probe for quad_t, uquad_t, and (argh) u_quad_t, they might
72     be in some systems the only thing working as quadtype and uquadtype.
73
74 Locales
75     deprecate traditional/legacy locales?
76     How do locales work across packages?
77     figure out how to support Unicode locales
78         suggestion: integrate the IBM Classes for Unicode (ICU)
79         http://oss.software.ibm.com/developerworks/opensource/icu/project/
80         and check out also the Locale Converter:
81         http://alphaworks.ibm.com/tech/localeconverter
82     ICU is "portable, open-source Unicode library with:
83     charset-independent locales (with multiple locales simultaneously
84     supported in same thread; character conversions; formatting/parsing
85     for numbers, currencies, date/time and messages; message catalogs
86     (resources) ; transliteration, collation, normalization, and text
87     boundaries (grapheme, word, line-break))".
88     There is also 'iconv', either from XPG4 or GNU (glibc).
89     iconv is about character set conversions.
90     Either ICU or iconv would be valuable to get integrated
91     into Perl, Configure already probes for libiconv and <iconv.h>. 
92
93 Regexen
94    make RE engine thread-safe
95    a way to do full character set arithmetics: now one can do
96         addition, negate a whole class, and negate certain subclasses
97         (e.g. \D, [:^digit:]), but a more generic way to add/subtract/
98         intersect characters/classes, like described in the Unicode technical
99         report on Regular Expression Guidelines,
100         http://www.unicode.org/unicode/reports/tr18/
101         (amusingly, the TR notes that difference and intersection
102          can be done using "Perl-style look-ahead")
103         difference syntax?  maybe [[:alpha:][^abc]] meaning
104         "all alphabetic expect a, b, and c"? or [[:alpha:]-[abc]]?
105         (maybe bad, as we explicitly disallow such 'ranges')
106         intersection syntax? maybe [[..]&[...]]?
107    POSIX [=bar=] and [.zap.] would nice too but there's no API for them
108         =bar= could be done with Unicode, though, see the Unicode TR #15 about
109         normalization forms:
110         http://www.unicode.org/unicode/reports/tr15/
111         this is also a part of the Unicode 3.0:
112         http://www.unicode.org/unicode/uni2book/u2.html
113         executive summary: there are several different levels of 'equivalence'
114    approximate matching
115
116 Security
117     use fchown, fchmod (and futimes?) internally when possible
118     use fchdir(how portable?)
119     create secure reliable portable temporary file modules
120     audit the standard utilities for security problems and fix them
121
122 Reliable Signals
123     custom opcodes
124     alternate runops() for signal despatch
125     figure out how to die() in delayed sighandler
126     make Thread::Signal work under useithreads
127
128 Win32 stuff
129     sort out the spawnvp() mess for system('a','b','c') compatibility
130     work out DLL versioning
131
132 Miscellaneous
133     add new modules (Archive::Tar, Compress::Zlib, CPAN::FTP?)
134     sub-second sleep()? alarm()? time()? (integrate Time::HiRes?
135         Configure doesn't yet probe for usleep/nanosleep/ualarm but
136         the units exist)
137     floating point handling: nans, infinities, fp exception masks, etc.
138         at least the following interfaces exist: fp_classify(), fp_class(),
139         class(), isnan(), isinf(), isfinite(), finite(), isnormal(),
140         ordered(), fp_setmask(), fp_getmask(), fp_setround(), fp_getround(), 
141         ieeefp.h, fp_class.h.  There are metaconfig units for most of these.
142         Search for ifdef __osf__ in pp.c to find a temporary fix that
143         needs to be done right.
144     fix the basic arithmetics (+ - * / %) to preserve IVness/UVness if
145         both arguments are IVs/UVs
146     replace pod2html with new PodtoHtml? (requires other modules from CPAN)
147     automate testing with large parts of CPAN
148     Unicode collation? http://www.unicode.org/unicode/reports/tr10/
149     turn Cwd into an XS module?  (Configure already probes for getcwd())
150     mmap for speeding up input? (Configure already probes for the mmap family)
151     sendmsg, recvmsg? (Configure doesn't probe for these but the units exist)
152     setitimer, getitimer? (the metaconfig units exist)
153
154 Ongoing
155     keep filenames 8.3 friendly, where feasible
156     upgrade to newer versions of all independently maintained modules
157     comprehensive perldelta.pod
158
159 Documentation
160     describe new age patterns
161     update perl{guts,call,embed,xs} with additions, changes to API
162     convert more examples to use autovivified filehandles
163     document Win32 choices
164     spot-check all new modules for completeness
165     better docs for pack()/unpack()
166     reorg tutorials vs. reference sections