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