add svn:ignore (*.str)
[parrot.git] / DEPRECATED.pod
blobebda0fbd9bd4bc3bd0f1b71a2633acd80a76c90f
1 # $Id$
3 =head1 Purpose
5 Provide a list of deprecated and experimental items in parrot.
6 All items in this list should have a corresponding Trac ticket[1].
8 =head1 Experimental Status
10 These features are not considered supported, even though they may
11 have shipped in a supported release of parrot[2]. Use them at your own
12 risk, as they can be removed or changed in any release. These
13 items are marked below with C<[experimental]>.
15 =head1 Deprecated Status
17 Please see F<docs/project/support_policy.pod> for the parrot
18 project's policy regarding deprecated features.
20 Each item shows the first release in which it is eligible for removal, e.g.
21 C<[eligible in 1.5]>.  If the release listed is one that has already
22 shipped, this feature may be removed in B<any> upcoming release, and
23 you should no longer rely on it.
25 If you find a feature you once used was removed after a deprecation
26 cycle, L<https://trac.parrot.org/parrot/wiki/Deprecation>. Otherwise
27 please open a documentation ticket via Trac[1].
29 =head1 Are you using any Deprecated Features?
31 When running parrot, you can receive warnings about deprecations.
32 Either run parrot with the C<-w> option to enable all warnings, or
33 deprecations specifically by including this snippet:
35 =begin PIR_FRAGMENT
37  .include 'warnings.pasm'
38  warningson .PARROT_WARNINGS_DEPRECATED_FLAG
40 =end PIR_FRAGMENT
42 =head1 PMCS
44 =over 4
46 =item GzipHandle [experimental]
48 L<https://trac.parrot.org/parrot/ticket/1580>
50 =item PackfileDebug [experimental]
52 L<https://trac.parrot.org/parrot/ticket/1599>
54 =item CodeString [eligible in 2.7]
56 L<http://trac.parrot.org/parrot/ticket/1633>
58 =item multiple dispatch within core PMCs [eligible in 1.1]
60 L<https://trac.parrot.org/parrot/ticket/452>
62 =item Method stdhandle in ParrotInterpreter [experimental]
64 L<https://trac.parrot.org/parrot/ticket/264>
66 =item Overriding vtable invoke in PIR objects [experimental]
68 The VTABLE invoke in object.pmc puts SELF at the start of the
69 signature call arguments when there is no current object and is
70 not already here. This allows the usage of $P0() instead of $P0($P0).
72 L<https://trac.parrot.org/parrot/ticket/103>
74 =item UnManagedStruct handling nested structure [eligible in 2.4]
76 UnManagedStruct will be simplified to only support flat structures. This means
77 that elements which themselves have structure - struct pointers and function
78 pointers will be stored as C<void *> and C<void (*)(void)> respectively. To use
79 these, they will need to be cast to the appropriate signature on access.
81 L<https://trac.parrot.org/parrot/ticket/1551>
83 =item UnManagedStruct initializer structure [eligible in 2.4]
85 The initializer structure will cease to be an array of triples. In stead, an
86 array of flags (no counts or offsets), or a string representation of the same
87 information may be used.
89 L<https://trac.parrot.org/parrot/ticket/1552>
91 =item UnManagedStruct get_integer, set_integer_native [eligible in 2.4]
93 These will no longer refer to the byte length of the buffer, but to the number
94 of times the struct is repeated; emulating an array of structs.
96 L<https://trac.parrot.org/parrot/ticket/1553>
98 =item ManagedStruct reallocations based on shape changes [eligible in 2.4]
100 Since shape changes may simply be used for re-interpreting data, and may also
101 occur in several steps, re-allocating after any one shape change may be
102 undesirable. In stead, an explicit allocate/reallocate method will be provided.
104 L<https://trac.parrot.org/parrot/ticket/1554>
106 =item Auto-vivification of nested aggregates [eligible in 2.4]
108 E.g.
110   $P0 = new ['Hash']
111   $S1 = $P0['foo';'bar';'baz']
113 will not auto-vivify nested hashes and return PMCNULL early.
115 L<https://trac.parrot.org/parrot/ticket/1561>
117 =item Method lower on String [eligible in 2.7]
119 Use the downcase opcode or subclass with a method name consistent with your
120 HLL.
122 L<http://trac.parrot.org/parrot/ticket/1606>
124 =item Method unescape on String [experimental]
126 This is a helper method for testing of Parrot_str_unescape_string.
128 L<https://trac.parrot.org/parrot/ticket/1628>
130 =item logical_* vtables [eligiblie in 2.7]
132 These can be replaced by C<get_bool> and intval ops unless you're using them for
133 things that aren't really logical ops (don't do that!).
135 L<https://trac.parrot.org/parrot/ticket/1655>
137 =item Method getpid on ParrotInterpreter [experimental]
139 Used to test the experimental function Parrot_getpid
141 L<https://trac.parrot.org/parrot/ticket/1564>
143 =item Duplicated VTABLE functions [eligible in 2.10]
145 In F<src/pmc/oplib.pmc>, C<INTVAL get_integer()> is declared twice.
147 In F<src/pmc/resizablestringarray.pmc>, C<PMC *shift_pmc()> is declared twice.
149 L<http://trac.parrot.org/parrot/ticket/1785>
151 =back
153 =head1 Opcodes
155 =over 4
157 =item charset, charsetname, find_charset, trans_charset [eligible in 2.10]
159 L<https://trac.parrot.org/parrot/ticket/1778>
161 These opcodes will be removed. The corresponding encoding opcodes should be
162 used instead.
164 =item open and close opcodes will be removed [eligible in 2.7]
166 L<https://trac.parrot.org/parrot/ticket/1697>
168 These opcodes will be removed. The open/close methods on File or
169 the FileHandle PMC should be used instead.
171 =item get_addr and set_addr [eligible in 1.5]
173 L<https://trac.parrot.org/parrot/ticket/218>
175 These opcodes are being repurposed. They will always return a unique memory
176 address of the PMC. Uses of get_addr and set_addr that would set label values
177 for Sub, Exception, and related PMC types will instead be handled by
178 get_label and set_label.
180 =item get_results opcode order and features [eligible in 2.1]
182 get_results no longer used to fetch exception object.
184 L<https://trac.parrot.org/parrot/ticket/1406>
186 =item GC_SYS_NAME option to interpinfo_s_i [experimental]
188 Ability to get the string name of the current GC core from the interpinfo_s_i.
189 See r43900 and r43904 for details.
191 L<https://trac.parrot.org/parrot/ticket/1581>
193 =item NCI_FB_CB and NCI_FB_UD in iglobals [experimental]
195 Hooks allowing a runtime-loadable dynamic frame builder.
197 L<https://trac.parrot.org/parrot/ticket/1582>
199 =item loadlib_p_s_p [experimental]
201 Ability to use non-default dynamic loading behaviour.
203 L<https://trac.parrot.org/parrot/ticket/1583>
205 =item new_callback_p_p_p_s [eligible in 2.4]
207 To be replaced with new_callback_p_p_p_p_s.
209 L<https://trac.parrot.org/parrot/ticket/1548>
211 =item dlfunc and new_callback signature string format [eligible in 2.4]
213 These will be changed to allow more flexibility in types.
215 L<https://trac.parrot.org/parrot/ticket/1565>
217 =item find_lex [eligible in 2.4]
219 find_lex will not throw exception for non-existing lexicals.
221 L<https://trac.parrot.org/parrot/ticket/1207>
223 =item inplace string updates. [eligible in 2.4]
225 All "inplace" string update ops are deprecated. E.g. "chopn_s", etc.
226 Part of COW removal.
228 L<https://trac.parrot.org/parrot/ticket/1540>
230 =item find_codepoint [experimental]
232 Intended to replace the CodeString charname_to_ord method.
234 L<https://trac.parrot.org/parrot/ticket/1629>
236 =item All opcodes that modify non-argument registers. [eligible in 2.7]
238 E.g. "cleari", etc.
240 L<https://trac.parrot.org/parrot/ticket/1642>
242 =item exchange [eligible in 2.7]
244 This op is too low level for Parrot in its current form.
246 L<https://trac.parrot.org/parrot/ticket/1643>
248 =item finalize [experimental]
250 Finalize exception handler, unrolling inner runloops if needed.
252 L<https://trac.parrot.org/parrot/ticket/1635>
254 =item logical PMC ops [eligible in 2.7]
256 These fall out from the logical vtables deprecation.
258 L<https://trac.parrot.org/parrot/ticket/1655>
260 =item errorson, errorsoff operations [eligible in 2.10]
262 The C<.PARROT_ERRORS_GLOBAL_FLAG> flag will be eliminated. It is not used by Parrot.
264 =back
266 =head1 Bytecode
268 =over 4
270 =item packfile structure [experimental]
272 L<https://trac.parrot.org/parrot/ticket/451>
274 =item opcode numbering [experimental]
276 L<https://trac.parrot.org/parrot/ticket/451>
278 =item PMC numbering [experimental]
280 L<https://trac.parrot.org/parrot/ticket/451>
282 =back
284 =head1 Debugger
286 Assigning to registers [experimental]
288 =head1 PIR syntax
290 =over 4
292 =item Assignment syntax with opcodes [eligible in 1.1]
294 L<https://trac.parrot.org/parrot/ticket/906>
296 =item continuation-based ExceptionHandlers [eligible in 2.1]
298 L<https://trac.parrot.org/parrot/ticket/1091>
300 =item implicit optional named parameters [eligible in 2.1]
302 L<https://trac.parrot.org/parrot/ticket/1103>
304 =item :unique_reg flag [eligible in 2.7]
306 L<https://trac.parrot.org/parrot/ticket/1622>
308 =item .nci_call [eligible in 2.7]
310 As of the latest PCC changes, there is nothing special about calling an NCI sub.
312 L<https://trac.parrot.org/parrot/ticket/1623>
314 =item .meth_call [eligible in 2.7]
316 As of the latest PCC changes, this does nothing different from '.call'.
318 L<https://trac.parrot.org/parrot/ticket/1624>
320 =item :main Sub behaviour and selection. [eligible in 2.7]
322 Currently, if no :main sub is found, the first .sub in a file is used as
323 main. Also, arguments are passed to the main sub regardless of the .param
324 declarations in that sub.
326 After this change, if no sub is marked with :main, an exception will be
327 raised. Multiple :main declarations will be still be allowed, and all but the
328 first will be ignored.
330 This change will also force all subs, including :main, to have their
331 arguments checked - to allow an arbitrary number of arguments, have
332 this be the only .param declaration in the sub.
334  .param pmc args :slurpy
337 L<https://trac.parrot.org/parrot/ticket/1033>
338 L<https://trac.parrot.org/parrot/ticket/1704>
339 L<https://trac.parrot.org/parrot/ticket/1705>
341 =back
343 =head1 Functions
345 =over 4
347 =item mmd_cvt_to_types [eligible in 1.1]
349 L<https://trac.parrot.org/parrot/ticket/907>
351 =item C API coding standards cleanup [eligible in 1.1]
353 All C API functions that aren't currently named according to the
354 'Parrot_<system>_*' scheme will be renamed. A list of renamed
355 functions will be kept in the ticket at:
357 L<https://trac.parrot.org/parrot/ticket/443>
359 =item PMC Attributes Allocation Functions [experimental]
361  Parrot_gc_allocate_pmc_attributes
362  Parrot_gc_free_pmc_attributes
364 These items and related helper functions are added as experimental support
365 for L<https://trac.parrot.org/parrot/ticket/1506>
367 =item STRING Out parameters in Parrot_str_* functions [eligible in 2.1]
369 All STRING modification functions will return a STRING pointer; capture and use
370 this rather than relying on in-place modification of an existing pointer.
372 L<https://trac.parrot.org/parrot/ticket/1584>
374 =item STRING COW [eligible in 2.4]
376 COW strings are to be removed. All "inplace" string modification
377 functions and all "inplace" string ops are deprecated.
379 L<https://trac.parrot.org/parrot/ticket/1540>
381 =item Parrot_str_unescape_string [experimental]
383 This function is an experimental addition to enhance and maybe replace
384 Parrot_str_unescape
386 L<https://trac.parrot.org/parrot/ticket/1628>
388 =item Parrot_getpid [experimental]
390 Get process id, experimental.
392 L<https://trac.parrot.org/parrot/ticket/1564>
394 =back
396 =head1 Compiler tools
398 =head2 Parrot Grammar Engine (PGE)
400 =over 4
402 =item Action methods in rules
404 Per Synopsis 5, all regexes will have an implied {*} token at the
405 end which cause invocation of an action method if a C<:action>
406 object is supplied.
408 L<https://trac.parrot.org/parrot/ticket/843>
410 =back
412 =head2 Parrot Compiler Toolkit
414 =over 4
416 =item PCT::HLLCompiler stages [eligible in 1.1]
418 The interface of various methods for adding, removing, and modifying
419 the list stages in a PCT::HLLCompiler object is subject to change.
420 The existing actual stages will remain; only the mechanism for specifying
421 the order of individual stages is likely to change.
423 L<https://trac.parrot.org/parrot/ticket/462>
425 =item PCT::HLLCompiler from Perl 5's Test::Harness [eligible in 1.1]
427 In order to facilitate using PCT::HLLCompiler with test harnesses,
428 the C<command_line> method of PCT::HLLCompiler object exits silently
429 if it detects that it is being run in a sample run from Perl's
430 Test::Harness.  Currently this detection is done by checking the
431 second command line argument for "@INC"; future releases may
432 use a different detection mechanism or eliminate it altogether.
434 L<https://trac.parrot.org/parrot/ticket/463>
436 =item PAST::Val node generation [eligible in 1.5] 
438 The PAST::Compiler may generate the code for PAST::Val nodes 
439 (i.e., constants) at the beginning of the block (Parrot sub) instead 
440 of the location where they occur in the PAST tree. 
442 L<https://trac.parrot.org/parrot/ticket/868> 
444 =item Meta-model implementation used by PCT [eligible in 2.7]
446 PCT is set to switch to a new meta-model implementation for its classes
447 and objects. This will most likely only affect those who rely on the
448 interface of what is returned from .HOW, or rely on PCT objects exhibiting
449 various other peculiarities of the P6object implementation. (Even when that
450 is the case, the HOW API will not be changing too drastically, so for most
451 PCT users there should be little to no upheavel.)
453 =back
455 =head1 Parrot library
457 =over 4
459 =item PARROT_LIBRARY and PARROT_INCLUDE environment variables [experimental]
461 L<https://trac.parrot.org/parrot/ticket/1429>
463 A way to provide an equivalent of -L and -I parrot command line options
464 to language that doesn't support it.
466 =item Protoobject [eligible in 2.7]
468 Use P6Object instead.
470 L<http://trac.parrot.org/parrot/ticket/1337>
472 =item Archive::Tar & Archive::Zip [experimental]
474 L<https://trac.parrot.org/parrot/ticket/1598>
476 =item LWP, HTTP::Message, URI & URI::Escape [experimental]
478 L<http://trac.parrot.org/parrot/ticket/1637>
480 =item JSON and Config;JSON [eligible in 1.5]
482 L<https://trac.parrot.org/parrot/ticket/508>
484 =item Cross-HLL library loading [experimental]
486 L<https://trac.parrot.org/parrot/ticket/754>
488 =item OpenGL bindings and libraries [experimental]
490 L<https://trac.parrot.org/parrot/ticket/852>
492 =back
494 =head1 Experimental
496 =over 4
498 =item Threads and Parallelism [experimental]
500 L<https://trac.parrot.org/parrot/ticket/1601>
502 =back
504 =head1 Footnotes
506 =over 4
508 =item 1
510 L<Trac|http://trac.parrot.org/> is parrot's primary issue tracking system.
512 =item 2
514 For an item to be considered experimental, it can B<never> have shipped in
515 a supported release without the C<[experimental]> tag; otherwise, it must be
516 deprecated normally before removal or incompatible change.
518 =back
520 =cut