avoid use of deprecated method to test this feature
[parrot.git] / DEPRECATED.pod
blob1244e98bb10570d0ccafe75a40a1fa3ebb3b7c8a
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 is_tty in PMCs derived from Handle [eligible in 2.7]
139 Use isatty instead.
141 L<https://trac.parrot.org/parrot/ticket/1689>
143 =item Method getpid on ParrotInterpreter [experimental]
145 Used to test the experimental function Parrot_getpid
147 L<https://trac.parrot.org/parrot/ticket/1564>
149 =back
151 =head1 Opcodes
153 =over 4
155 =item charset, charsetname, find_charset, trans_charset [eligible in 2.10]
157 L<https://trac.parrot.org/parrot/ticket/1778>
159 These opcodes will be removed. The corresponding encoding opcodes should be
160 used instead.
162 =item open and close opcodes will be removed [eligible in 2.7]
164 L<https://trac.parrot.org/parrot/ticket/1697>
166 These opcodes will be removed. The open/close methods on File or
167 the FileHandle PMC should be used instead.
169 =item get_addr and set_addr [eligible in 1.5]
171 L<https://trac.parrot.org/parrot/ticket/218>
173 These opcodes are being repurposed. They will always return a unique memory
174 address of the PMC. Uses of get_addr and set_addr that would set label values
175 for Sub, Exception, and related PMC types will instead be handled by
176 get_label and set_label.
178 =item get_results opcode order and features [eligible in 2.1]
180 get_results no longer used to fetch exception object.
182 L<https://trac.parrot.org/parrot/ticket/1406>
184 =item GC_SYS_NAME option to interpinfo_s_i [experimental]
186 Ability to get the string name of the current GC core from the interpinfo_s_i.
187 See r43900 and r43904 for details.
189 L<https://trac.parrot.org/parrot/ticket/1581>
191 =item NCI_FB_CB and NCI_FB_UD in iglobals [experimental]
193 Hooks allowing a runtime-loadable dynamic frame builder.
195 L<https://trac.parrot.org/parrot/ticket/1582>
197 =item loadlib_p_s_p [experimental]
199 Ability to use non-default dynamic loading behaviour.
201 L<https://trac.parrot.org/parrot/ticket/1583>
203 =item new_callback_p_p_p_s [eligible in 2.4]
205 To be replaced with new_callback_p_p_p_p_s.
207 L<https://trac.parrot.org/parrot/ticket/1548>
209 =item dlfunc and new_callback signature string format [eligible in 2.4]
211 These will be changed to allow more flexibility in types.
213 L<https://trac.parrot.org/parrot/ticket/1565>
215 =item find_lex [eligible in 2.4]
217 find_lex will not throw exception for non-existing lexicals.
219 L<https://trac.parrot.org/parrot/ticket/1207>
221 =item inplace string updates. [eligible in 2.4]
223 All "inplace" string update ops are deprecated. E.g. "chopn_s", etc.
224 Part of COW removal.
226 L<https://trac.parrot.org/parrot/ticket/1540>
228 =item find_codepoint [experimental]
230 Intended to replace the CodeString charname_to_ord method.
232 L<https://trac.parrot.org/parrot/ticket/1629>
234 =item All opcodes that modify non-argument registers. [eligible in 2.7]
236 E.g. "cleari", etc.
238 L<https://trac.parrot.org/parrot/ticket/1642>
240 =item exchange [eligible in 2.7]
242 This op is too low level for Parrot in its current form.
244 L<https://trac.parrot.org/parrot/ticket/1643>
246 =item finalize [experimental]
248 Finalize exception handler, unrolling inner runloops if needed.
250 L<https://trac.parrot.org/parrot/ticket/1635>
252 =item logical PMC ops [eligible in 2.7]
254 These fall out from the logical vtables deprecation.
256 L<https://trac.parrot.org/parrot/ticket/1655>
258 =item errorson, errorsoff operations [eligible in 2.10]
260 The C<.PARROT_ERRORS_GLOBAL_FLAG> flag will be eliminated. It is not used by Parrot.
262 =back
264 =head1 Bytecode
266 =over 4
268 =item packfile structure [experimental]
270 L<https://trac.parrot.org/parrot/ticket/451>
272 =item opcode numbering [experimental]
274 L<https://trac.parrot.org/parrot/ticket/451>
276 =item PMC numbering [experimental]
278 L<https://trac.parrot.org/parrot/ticket/451>
280 =back
282 =head1 Debugger
284 Assigning to registers [experimental]
286 =head1 PIR syntax
288 =over 4
290 =item Assignment syntax with opcodes [eligible in 1.1]
292 L<https://trac.parrot.org/parrot/ticket/906>
294 =item continuation-based ExceptionHandlers [eligible in 2.1]
296 L<https://trac.parrot.org/parrot/ticket/1091>
298 =item implicit optional named parameters [eligible in 2.1]
300 L<https://trac.parrot.org/parrot/ticket/1103>
302 =item :unique_reg flag [eligible in 2.7]
304 L<https://trac.parrot.org/parrot/ticket/1622>
306 =item .nci_call [eligible in 2.7]
308 As of the latest PCC changes, there is nothing special about calling an NCI sub.
310 L<https://trac.parrot.org/parrot/ticket/1623>
312 =item .meth_call [eligible in 2.7]
314 As of the latest PCC changes, this does nothing different from '.call'.
316 L<https://trac.parrot.org/parrot/ticket/1624>
318 =item :main Sub behaviour and selection. [eligible in 2.7]
320 Currently, if no :main sub is found, the first .sub in a file is used as
321 main. Also, arguments are passed to the main sub regardless of the .param
322 declarations in that sub.
324 After this change, if no sub is marked with :main, an exception will be
325 raised. Multiple :main declarations will be still be allowed, and all but the
326 first will be ignored.
328 This change will also force all subs, including :main, to have their
329 arguments checked - to allow an arbitrary number of arguments, have
330 this be the only .param declaration in the sub.
332  .param pmc args :slurpy
335 L<https://trac.parrot.org/parrot/ticket/1033>
336 L<https://trac.parrot.org/parrot/ticket/1704>
337 L<https://trac.parrot.org/parrot/ticket/1705>
339 =back
341 =head1 Functions
343 =over 4
345 =item mmd_cvt_to_types [eligible in 1.1]
347 L<https://trac.parrot.org/parrot/ticket/907>
349 =item C API coding standards cleanup [eligible in 1.1]
351 All C API functions that aren't currently named according to the
352 'Parrot_<system>_*' scheme will be renamed. A list of renamed
353 functions will be kept in the ticket at:
355 L<https://trac.parrot.org/parrot/ticket/443>
357 =item PMC Attributes Allocation Functions [experimental]
359  Parrot_gc_allocate_pmc_attributes
360  Parrot_gc_free_pmc_attributes
362 These items and related helper functions are added as experimental support
363 for L<https://trac.parrot.org/parrot/ticket/1506>
365 =item STRING Out parameters in Parrot_str_* functions [eligible in 2.1]
367 All STRING modification functions will return a STRING pointer; capture and use
368 this rather than relying on in-place modification of an existing pointer.
370 L<https://trac.parrot.org/parrot/ticket/1584>
372 =item STRING COW [eligible in 2.4]
374 COW strings are to be removed. All "inplace" string modification
375 functions and all "inplace" string ops are deprecated.
377 L<https://trac.parrot.org/parrot/ticket/1540>
379 =item Parrot_str_unescape_string [experimental]
381 This function is an experimental addition to enhance and maybe replace
382 Parrot_str_unescape
384 L<https://trac.parrot.org/parrot/ticket/1628>
386 =item Parrot_get_runtime_prefix [eligible in 2.7]
388 Use Parrot_get_runtime_path instead.
390 L<https://trac.parrot.org/parrot/ticket/1191>
392 =item Parrot_getpid [experimental]
394 Get process id, experimental.
396 L<https://trac.parrot.org/parrot/ticket/1564>
398 =back
400 =head1 Compiler tools
402 =head2 Parrot Grammar Engine (PGE)
404 =over 4
406 =item Action methods in rules
408 Per Synopsis 5, all regexes will have an implied {*} token at the
409 end which cause invocation of an action method if a C<:action>
410 object is supplied.
412 L<https://trac.parrot.org/parrot/ticket/843>
414 =back
416 =head2 Parrot Compiler Toolkit
418 =over 4
420 =item PCT::HLLCompiler stages [eligible in 1.1]
422 The interface of various methods for adding, removing, and modifying
423 the list stages in a PCT::HLLCompiler object is subject to change.
424 The existing actual stages will remain; only the mechanism for specifying
425 the order of individual stages is likely to change.
427 L<https://trac.parrot.org/parrot/ticket/462>
429 =item PCT::HLLCompiler from Perl 5's Test::Harness [eligible in 1.1]
431 In order to facilitate using PCT::HLLCompiler with test harnesses,
432 the C<command_line> method of PCT::HLLCompiler object exits silently
433 if it detects that it is being run in a sample run from Perl's
434 Test::Harness.  Currently this detection is done by checking the
435 second command line argument for "@INC"; future releases may
436 use a different detection mechanism or eliminate it altogether.
438 L<https://trac.parrot.org/parrot/ticket/463>
440 =item PAST::Val node generation [eligible in 1.5] 
442 The PAST::Compiler may generate the code for PAST::Val nodes 
443 (i.e., constants) at the beginning of the block (Parrot sub) instead 
444 of the location where they occur in the PAST tree. 
446 L<https://trac.parrot.org/parrot/ticket/868> 
448 =item Meta-model implementation used by PCT [eligible in 2.7]
450 PCT is set to switch to a new meta-model implementation for its classes
451 and objects. This will most likely only affect those who rely on the
452 interface of what is returned from .HOW, or rely on PCT objects exhibiting
453 various other peculiarities of the P6object implementation. (Even when that
454 is the case, the HOW API will not be changing too drastically, so for most
455 PCT users there should be little to no upheavel.)
457 =back
459 =head1 Parrot library
461 =over 4
463 =item PARROT_LIBRARY and PARROT_INCLUDE environment variables [experimental]
465 L<https://trac.parrot.org/parrot/ticket/1429>
467 A way to provide an equivalent of -L and -I parrot command line options
468 to language that doesn't support it.
470 =item Protoobject [eligible in 2.7]
472 Use P6Object instead.
474 L<http://trac.parrot.org/parrot/ticket/1337>
476 =item Archive::Tar & Archive::Zip [experimental]
478 L<https://trac.parrot.org/parrot/ticket/1598>
480 =item LWP, HTTP::Message, URI & URI::Escape [experimental]
482 L<http://trac.parrot.org/parrot/ticket/1637>
484 =item JSON and Config;JSON [eligible in 1.5]
486 L<https://trac.parrot.org/parrot/ticket/508>
488 =item Cross-HLL library loading [experimental]
490 L<https://trac.parrot.org/parrot/ticket/754>
492 =item OpenGL bindings and libraries [experimental]
494 L<https://trac.parrot.org/parrot/ticket/852>
496 =back
498 =head1 Experimental
500 =over 4
502 =item Threads and Parallelism [experimental]
504 L<https://trac.parrot.org/parrot/ticket/1601>
506 =back
508 =head1 Footnotes
510 =over 4
512 =item 1
514 L<Trac|http://trac.parrot.org/> is parrot's primary issue tracking system.
516 =item 2
518 For an item to be considered experimental, it can B<never> have shipped in
519 a supported release without the C<[experimental]> tag; otherwise, it must be
520 deprecated normally before removal or incompatible change.
522 =back
524 =cut