This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
New perldelta for 5.29.7
[perl5.git] / pod / perldelta.pod
index 8e200da..65aad26 100644 (file)
@@ -2,64 +2,94 @@
 
 =head1 NAME
 
-perldelta - what is new for perl v5.29.6
+[ this is a template for a new perldelta file.  Any text flagged as XXX needs
+to be processed before release. ]
+
+perldelta - what is new for perl v5.29.7
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.29.5 release and the 5.29.6
+This document describes differences between the 5.29.6 release and the 5.29.7
 release.
 
-If you are upgrading from an earlier release such as 5.29.4, first read
-L<perl5295delta>, which describes differences between 5.29.4 and 5.29.5.
+If you are upgrading from an earlier release such as 5.29.5, first read
+L<perl5296delta>, which describes differences between 5.29.5 and 5.29.6.
 
-=head1 Core Enhancements
+=head1 Notice
 
-=head2 The upper limit C<"n"> specifiable in a regular expression
-quantifier of the form C<"{m,n}"> has been doubled to 65534
+XXX Any important notices here
+
+=head1 Core Enhancements
 
-The meaning of an unbounded upper quantifier C<"{m,}"> remains unchanged.
-It matches 2**31 - 1 times on most platforms, and more on ones where a C
-language short variable is more than 4 bytes long.
+XXX New core language features go here.  Summarize user-visible core language
+enhancements.  Particularly prominent performance optimisations could go
+here, but most should go in the L</Performance Enhancements> section.
 
-The text above is what perl5294delta should have said.  Instead it said
-"The maximum number of times a pattern can match has been doubled to 65535"
-That statement was wrong.  Try to forget you ever saw it.
+[ List each enhancement as a =head2 entry ]
 
 =head1 Security
 
-=head2 [CVE-2018-18312] Heap-buffer-overflow write in S_regatom (regcomp.c)
+XXX Any security-related notices go here.  In particular, any security
+vulnerabilities closed should be noted here rather than in the
+L</Selected Bug Fixes> section.
 
-A crafted regular expression could cause heap-buffer-overflow write during
-compilation, potentially allowing arbitrary code execution. (This was 
-actually fixed in 5.29.4, but not announced as a security fix at the time).
+[ List each security issue as a =head2 entry ]
 
-L<[perl #133423]|https://rt.perl.org/Ticket/Display.html?id=133423>
+=head1 Incompatible Changes
 
-=head1 Performance Enhancements
+XXX For a release on a stable branch, this section aspires to be:
 
-=over 4
+    There are no changes intentionally incompatible with 5.XXX.XXX
+    If any exist, they are bugs, and we request that you submit a
+    report.  See L</Reporting Bugs> below.
 
-=item *
+[ List each incompatible change as a =head2 entry ]
 
-Optimization of C<IV> to C<UV> conversions.
-L<[perl #133677]|https://rt.perl.org/Ticket/Display.html?id=133677>.
+=head1 Deprecations
 
-=item *
+XXX Any deprecated features, syntax, modules etc. should be listed here.
 
-Speed up of the integer stringification algorithm by processing
-two digits at a time instead of one.
-L<[perl #133691]|https://rt.perl.org/Ticket/Display.html?id=133691>.
+=head2 Module removals
 
-=item *
+XXX Remove this section if not applicable.
+
+The following modules will be removed from the core distribution in a
+future release, and will at that time need to be installed from CPAN.
+Distributions on CPAN which require these modules will need to list them as
+prerequisites.
+
+The core versions of these modules will now issue C<"deprecated">-category
+warnings to alert you to this fact.  To silence these deprecation warnings,
+install the modules in question from CPAN.
+
+Note that these are (with rare exceptions) fine modules that you are encouraged
+to continue to use.  Their disinclusion from core primarily hinges on their
+necessity to bootstrapping a fully functional, CPAN-capable Perl installation,
+not usually on concerns over their design.
+
+=over
 
-Improvements based on LGTM analysis and recommendation.
-(L<https://lgtm.com/projects/g/Perl/perl5/alerts/?mode=tree>). 
-L<[perl #133686]|https://rt.perl.org/Ticket/Display.html?id=133686>.
-L<[perl #133699]|https://rt.perl.org/Ticket/Display.html?id=133699>.
+=item XXX
+
+XXX Note that deprecated modules should be listed here even if they are listed
+as an updated module in the L</Modules and Pragmata> section.
+
+=back
+
+[ List each other deprecation as a =head2 entry ]
+
+=head1 Performance Enhancements
+
+XXX Changes which enhance performance without changing behaviour go here.
+There may well be none in a stable release.
+
+[ List each enhancement as an =item entry ]
+
+=over 4
 
 =item *
 
-Code optimizations in F<regcomp.c>, F<regcomp.h>, F<regexec.c>.
+XXX
 
 =back
 
@@ -95,248 +125,285 @@ XXX Remove this section if not applicable.
 
 =item *
 
-L<Config::Perl::V>. has been upgraded from version 0.30 to 0.31. This was due
-to a new configuration variable that has influence on binary compatibility:
-C<USE_THREAD_SAFE_LOCALE>.
+L<XXX> has been upgraded from version A.xx to B.yy.
 
-=item *
+If there was something important to note about this change, include that here.
 
-L<ExtUtils::ParseXS> has been upgraded from version 3.39 to 3.40.
-C<OUTLIST> parameters are no longer incorrectly included in the
-automatically generated function prototype.  [perl #133654]
+=back
 
-=item *
+=head2 Removed Modules and Pragmata
 
-L<File::Find> has been upgraded from version 1.34 to 1.35.
-C<$File::Find::dont_use_nlink> now defaults to 1 on all
-platforms. [perl #133673]
+=over 4
 
 =item *
 
-L<Storable> has been upgraded from version 3.13 to 3.14.
+XXX
 
-Storable no longer probes for recursion limits at build time.  [perl
-#133708] and others.
+=back
 
-Metasploit exploit code was included to test for CVE-2015-1992
-detection, this caused anti-virus detections on at least one AV suite.
-The exploit code has been removed and replaced with a simple
-functional test.  [perl #133706]
+=head1 Documentation
 
-=item *
+XXX Changes to files in F<pod/> go here.  Consider grouping entries by
+file and be sure to link to the appropriate page, e.g. L<perlfunc>.
 
-L<Test::Simple> has been upgraded from version 1.302140 to 1.302141.
+=head2 New Documentation
 
-=item *
+XXX Changes which create B<new> files in F<pod/> go here.
 
-L<threads::shared> has been upgraded from version 1.58 to 1.59.
+=head3 L<XXX>
 
-=item *
+XXX Description of the purpose of the new file here
 
-L<XXX> has been upgraded from version A.xx to B.yy.
+=head2 Changes to Existing Documentation
 
-If there was something important to note about this change, include that here.
+We have attempted to update the documentation to reflect the changes
+listed in this document.  If you find any we have missed, send email
+to L<perlbug@perl.org|mailto:perlbug@perl.org>.
 
-=back
+XXX Changes which significantly change existing files in F<pod/> go here.
+However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
+section.
 
-=head2 Removed Modules and Pragmata
+Additionally, the following selected changes have been made:
+
+=head3 L<XXX>
 
 =over 4
 
 =item *
 
-XXX
+XXX Description of the change here
 
 =back
 
-=head1 Documentation
+=head1 Diagnostics
 
-=head2 Changes to Existing Documentation
+The following additions or changes have been made to diagnostic output,
+including warnings and fatal error messages.  For the complete list of
+diagnostic messages, see L<perldiag>.
 
-We have attempted to update the documentation to reflect the changes
-listed in this document.  If you find any we have missed, send email
-to L<perlbug@perl.org|mailto:perlbug@perl.org>.
+XXX New or changed warnings emitted by the core's C<C> code go here.  Also
+include any changes in L<perldiag> that reconcile it to the C<C> code.
 
-Additionally, the following selected changes have been made:
+=head2 New Diagnostics
 
-=head3 L<perlfunc>
+XXX Newly added diagnostic messages go under here, separated into New Errors
+and New Warnings
+
+=head3 New Errors
 
 =over 4
 
 =item *
 
-Clarification of behaviour of C<reset EXPR>.
+XXX L<message|perldiag/"message">
 
 =back
 
-=head3 L<perlreref>
+=head3 New Warnings
 
 =over 4
 
 =item *
 
-Clarification of the syntax of /(?(cond)yes)/.
+XXX L<message|perldiag/"message">
 
 =back
 
-=head3 L<perlop>
+=head2 Changes to Existing Diagnostics
+
+XXX Changes (i.e. rewording) of diagnostic messages go here
 
-=over
+=over 4
 
 =item *
 
-We no longer have null (empty line) here doc terminators, so 
-L<perlop> should not refer to them.
+XXX Describe change here
 
 =back
 
-=head1 Diagnostics
+=head1 Utility Changes
 
-The following additions or changes have been made to diagnostic output,
-including warnings and fatal error messages.  For the complete list of
-diagnostic messages, see L<perldiag>.
+XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here.
+Most of these are built within the directory F<utils>.
 
-=head2 Changes to Existing Diagnostics
+[ List utility changes as a =head2 entry for each utility and =item
+entries for each change
+Use L<XXX> with program names to get proper documentation linking. ]
+
+=head2 L<XXX>
 
 =over 4
 
 =item *
 
-Under C<< -Dr >> (or C<< use re 'Debug' >>) the compiled regex engine
-program is displayed. It used two different spellings for I<< infinity >>,
-C<< INFINITY >>, and C<< INFTY >>. It now uses the latter exclusively,
-as that spelling has been around the longest.
+XXX
 
 =back
 
-=head1 Utility Changes
+=head1 Configuration and Compilation
+
+XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
+go here.  Any other changes to the Perl build process should be listed here.
+However, any platform-specific changes should be listed in the
+L</Platform Support> section, instead.
 
-=head2 L<xsubpp>
+[ List changes as an =item entry ].
 
 =over 4
 
 =item *
 
-The generated prototype (with C<< PROTOTYPES: ENABLE >>) would include
-C<< OUTLIST >> parameters, but these aren't arguments to the perl function.
-This has been rectified.
-L<[perl #133654]|https://rt.perl.org/Ticket/Display.html?id=133654>.
+XXX
 
 =back
 
 =head1 Testing
 
+XXX Any significant changes to the testing of a freshly built perl should be
+listed here.  Changes which create B<new> files in F<t/> go here as do any
+large changes to the testing harness (e.g. when parallel testing was added).
+Changes to existing files in F<t/> aren't worth summarizing, although the bugs
+that they represent may be covered elsewhere.
+
+XXX If there were no significant test changes, say this:
+
+Tests were added and changed to reflect the other additions and changes
+in this release.
+
+XXX If instead there were significant changes, say this:
+
 Tests were added and changed to reflect the other additions and
 changes in this release.  Furthermore, these significant changes were
 made:
 
+[ List each test improvement as an =item entry ]
+
 =over 4
 
 =item *
 
-Some tests in F<< t/io/eintr.t >> caused the process to hang on
-pre-16 Darwin. These tests are skipped for those version of Darwin.
+XXX
 
 =back
 
 =head1 Platform Support
 
-=head2 Platform-Specific Notes
+XXX Any changes to platform support should be listed in the sections below.
 
-=over 4
+[ Within the sections, list each platform as an =item entry with specific
+changes as paragraphs below it. ]
+
+=head2 New Platforms
 
-=item Cygwin
+XXX List any platforms that this version of perl compiles on, that previous
+versions did not.  These will either be enabled by new files in the F<hints/>
+directories, or new subdirectories and F<README> files at the top level of the
+source tree.
 
-Cygwin doesn't make C<< cuserid >> visible.
+=over 4
 
-=item Win32 Mingw
+=item XXX-some-platform
 
-C99 math functions are now available.
+XXX
 
 =back
 
-=head1 Internal Changes
+=head2 Discontinued Platforms
+
+XXX List any platforms that this version of perl no longer compiles on.
 
 =over 4
 
-=item *
+=item XXX-some-platform
 
-Two new regnodes have been introduced C<< EXACT_ONLY8 >>, and
-C<< EXACTFU_ONLY8 >>. They're equivalent to C<< EXACT >> and C<< EXACTFU >>,
-except that they contain a code point which requires UTF-8 to
-represent/match. Hence, if the target string isn't UTF-8, we know
-it can't possibly match, without needing to try.
+XXX
 
-=item *
+=back
+
+=head2 Platform-Specific Notes
+
+XXX List any changes for specific platforms.  This could include configuration
+and compilation changes or changes in portability/compatibility.  However,
+changes within modules for platforms should generally be listed in the
+L</Modules and Pragmata> section.
+
+=over 4
 
-C<< print_bytes_for_locale() >> is now defined if C<< DEBUGGING >>,
-Prior, it didn't get defined unless C<< LC_COLLATE >> was defined
-on the platform.
+=item XXX-some-platform
+
+XXX
 
 =back
 
-=head1 Selected Bug Fixes
+=head1 Internal Changes
+
+XXX Changes which affect the interface available to C<XS> code go here.  Other
+significant internal changes for future core maintainers should be noted as
+well.
+
+[ List each change as an =item entry ]
 
 =over 4
 
 =item *
 
-If an in-place edit is still in progress during global destruction and
-the process exit code (as stored in C<$?>) is zero, perl will now
-treat the in-place edit as successful, replacing the input file with
-any output produced.
+XXX
 
-This allows code like:
+=back
 
-  perl -i -ne 'print "Foo"; last'
+=head1 Selected Bug Fixes
 
-to replace the input file, while code like:
+XXX Important bug fixes in the core language are summarized here.  Bug fixes in
+files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
-  perl -i -ne 'print "Foo"; die'
+[ List each fix as an =item entry ]
 
-will not.  Partly resolves
-L<[perl #133659]|https://rt.perl.org/Ticket/Display.html?id=133659>.
+=over 4
 
 =item *
 
-A regression in 5.28 caused the following code to fail
+XXX
+
+=back
 
- close(STDIN); open(CHILD, "|wc -l")'
+=head1 Known Problems
 
-because the child's stdin would be closed on exec. This has now been fixed.
+XXX Descriptions of platform agnostic bugs we know we can't fix go here.  Any
+tests that had to be C<TODO>ed for the release would be noted here.  Unfixed
+platform specific bugs also go here.
 
-=item *
+[ List each fix as an =item entry ]
 
-Fixed an issue where compiling a regexp containing both compile-time
-and run-time code blocks could lead to trying to compile something
-which is invalid syntax.
+=over 4
 
 =item *
 
-Fixed build failures with C<< -DNO_LOCALE_NUMERIC >> and
-C<< -DNO_LOCALE_COLLATE >>.
-L<[perl #133696]|https://rt.perl.org/Ticket/Display.html?id=133696>.
+XXX
 
-=item *
+=back
 
-Prevent the tests in F<< ext/B/t/strict.t >> from being skipped.
-L<[perl #133713]|https://rt.perl.org/Ticket/Display.html?id=133713>.
+=head1 Errata From Previous Releases
+
+=over 4
 
 =item *
 
-C<< /di >> nodes ending or beginning in I<s> are now C<< EXACTF >>. We do not
-want two C<< EXACTFU >> to be joined together during optimization,
-and to form a C<< ss >>, C<< sS >>, C<< Ss >> or C<< SS >> sequence;
-they are the only multi-character sequences which may match differently
-under C<< /ui >> and C<< /di >>. 
+XXX Add anything here that we forgot to add, or were mistaken about, in
+the perldelta of a previous release.
 
 =back
 
+=head1 Obituary
+
+XXX If any significant core contributor or member of the CPAN community has
+died, add a short obituary here.
+
 =head1 Acknowledgements
 
 XXX Generate this with:
 
-  perl Porting/acknowledgements.pl v5.29.5..HEAD
+  perl Porting/acknowledgements.pl v5.29.6..HEAD
 
 =head1 Reporting Bugs