This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Optimize out unicode_to_native(), native_to_unicode()
[perl5.git] / pod / perldelta.pod
index 73d808c..822281e 100644 (file)
@@ -5,15 +5,15 @@
 [ 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.21.8
+perldelta - what is new for perl v5.21.10
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.21.7 release and the 5.21.8
+This document describes differences between the 5.21.9 release and the 5.21.10
 release.
 
-If you are upgrading from an earlier release such as 5.21.6, first read
-L<perl5217delta>, which describes differences between 5.21.6 and 5.21.7.
+If you are upgrading from an earlier release such as 5.21.8, first read
+L<perl5219delta>, which describes differences between 5.21.8 and 5.21.9.
 
 =head1 Notice
 
@@ -27,47 +27,6 @@ here, but most should go in the L</Performance Enhancements> section.
 
 [ List each enhancement as a =head2 entry ]
 
-=head2 The warnings pragma now supports warnings outside of "all"
-
-Ever since perl v5.6.0 we've had no way of adding new warnings without
-retroactively adding them to all existing programs that used C<-w>,
-C<-W> or C<use warnings>.
-
-This caused us to not add new useful warnings out of fear that they
-might unduly burden users who just wanted to upgrade perl and didn't
-want to deal with a bunch of warnings from their existing code.
-
-We now support a way to have our cake and eat it too, and can add new
-warnings to the core going forward through other top-level warning
-categories. See L<the warnings documentation|warnings/Top-level
-warning categories & associated confusion> for details.
-
-=head2 Non-Capturing Regular Expression Flag
-
-Regular expressions now support a C</n> flag that disables capturing
-and filling in C<$1>, C<$2>, etc... inside of groups:
-
-  "hello" =~ /(hi|hello)/n; # $1 is not set
-
-This is equivalent to putting C<?:> at the beginning of every capturing group.
-
-See L<perlre/"n"> for more information.
-
-=head2 C<prototype> with no arguments
-
-C<prototype()> with no arguments now infers C<$_>.  [perl #123514]
-
-=head2 C<use re 'strict'>
-
-This applies stricter syntax rules to regular expression patterns
-compiled within its scope, which hopefully will alert you to typos and
-other unintentional behavior that backwards-compatibility issues prevent
-us from doing in normal regular expression compilations.  Because the
-behavior of this is subject to change in future Perl releases as we gain
-experience, using this pragma will raise a category
-C<experimental:re_strict> warning.
-See L<'strict' in re|re/'strict' mode>.
-
 =head1 Security
 
 XXX Any security-related notices go here.  In particular, any security
@@ -130,7 +89,12 @@ There may well be none in a stable release.
 
 =item *
 
-XXX
+The functions
+C<utf8::native_to_unicode()> and
+C<utf8::unicode_to_native()> (see L<utf8>)
+are now optimized out on ASCII platforms.
+There is now not even a minimal performance hit in writing code portable
+between ASCII and EBCDIC platforms.
 
 =back
 
@@ -160,46 +124,57 @@ XXX
 
 =item *
 
-L<XXX> has been upgraded from version A.xx to B.yy.
+L<B::Deparse> has been upgraded from version 1.33 to 1.34.
+
+Deparse C<$#_> as that instead of as C<$#{_}>.  [perl #123947]
 
 =item *
 
-L<attributes> has been upgraded from version 0.24 to 0.25.
+L<CPAN> has been upgraded from version 2.05 to 2.09-TRIAL.
 
-Minor internal change only.
+=over 4
 
 =item *
 
-L<B> has been upgraded from version 1.54 to 1.55.
+Add support for C<Cwd::getdcwd()> and introduce workaround for a misbehaviour
+seen on Strawberry Perl 5.20.1.
+
+=item *
 
-A bug where, after an ithread creation or psuedofork, special/immortal SVs in
-the child ithread/psuedoprocess did not have the correct class of
-C<B::SPECIAL>, has been fixed.
+Fix C<chdir()> after building dependencies bug.
+
+=item *
 
-The C<id> and C<outid> PADLIST methods have been added.
+Introduce experimental support for plugins/hooks.
 
 =item *
 
-L<B::Deparse> has been upgraded from version 1.31 to 1.32.
+Integrate the App::Cpan sources.
 
-Deparsing C<BEGIN { undef &foo }> with the B<-w> switch enabled started to
-emit 'uninitialized' warnings in Perl 5.14.  This has been fixed.
+=item *
 
-Deparsing calls to subs with a C<(;+)> prototype resulted in an infinite
-loop.  The C<(;$>) C<(_)> and C<(;_)> prototypes were given the wrong
-precedence, causing C<foo($a<$b)> to be deparsed without the parentheses.
+Do not check recursion on optional dependencies.
 
 =item *
 
-L<Safe> has been upgraded from version 2.38 to 2.39.
+Sanity check META.yml to contain a hash.
+L<[cpan #95271]|https://rt.cpan.org/Ticket/Display.html?id=95271>
+
+=back
+
+=item *
 
-C<reval> was not propagating void context properly.
+L<Test::Simple> has been reverted from version 1.301001_098 to 1.001014.
 
 =item *
 
-L<SDBM_File> has been upgraded from version 1.12 to 1.13.
+L<Text::Balanced> has been upgraded from version 2.02 to 2.03.
 
-Simplified the build process.  [perl #123413]
+No changes to installed files other than the version bump.
+
+=item *
+
+L<threads> has been upgraded from version 1.96 to 1.99.
 
 =back
 
@@ -274,10 +249,6 @@ XXX L<message|perldiag/"message">
 
 XXX L<message|perldiag/"message">
 
-=item *
-
-L<Wide character (U+%X) in %s|perldiag/"Wide character (U+%X) in %s">
-
 =back
 
 =head2 Changes to Existing Diagnostics
@@ -290,15 +261,6 @@ XXX Changes (i.e. rewording) of diagnostic messages go here
 
 XXX Describe change here
 
-The message
-L<Locale '%s' may not work well.%s|perldiag/"Locale '%s' may not work well.%s">
-is no longer raised unless the problemtatic locale is actually used in
-the Perl program.  Previously it was raised if it merely was the
-underlying locale.  All Perl programs have an underlying locale at all
-times, but something like a C<S<use locale>> is needed for that locale
-to actually have some effect.  This message will not be raised when
-the underlying locale is hidden.
-
 =back
 
 =head1 Utility Changes
@@ -398,30 +360,9 @@ L</Modules and Pragmata> section.
 
 =over 4
 
-=item Win32
-
-=over 4
-
-=item *
-
-Previously, on Visual C++ for Win64 built Perls only, when compiling every Perl
-XS module (including CPAN ones) and Perl aware .c file with a 64 bit Visual C++,
-would uncondtionally have around a dozen warnings from hv_func.h.  These
-warnings have been silenced.  GCC all bitness and Visual C++ for Win32 were
-not affected.
-
-=item *
-
-Support for building without PerlIO has been removed from the Windows
-makefiles.  Non-PerlIO builds were all but deprecated in Perl 5.18.0 and are
-already not supported by F<Configure> on POSIX systems.
-
-=item *
-
-Between 2 and 6 ms and 7 I/O calls have been saved per attempt to open a perl
-module for each path in C<@INC>.
+=item XXX-some-platform
 
-=back
+XXX
 
 =back
 
@@ -437,27 +378,6 @@ well.
 
 =item *
 
-Added Perl_sv_get_backrefs() to determine if an SV is a weak-referent.
-
-Function either returns an SV * of type AV, which contains the set of
-weakreferences which reference the passed in SV, or a simple RV * which
-is the only weakref to this item.
-
-=item *
-
-C<gv_add_by_type> which was added to public API in 5.11.0 but undocumented and
-shows no CPAN usage has been removed from public API. Please use public API
-C<GvSVn> C<GvIOn> C<GvAVn> and C<GvHVn> for adding elements to a GV.
-
-=item *
-
-C<GvSVn> C<GvIOn> C<GvAVn> and C<GvHVn> have been made rvalues, previously they
-were lvalues. If you are assigning a SV to C<GvSVn> C<GvIOn> C<GvAVn> and
-C<GvHVn> you are leaking memory. If you want an lvalue, use C<GvSV> C<GvIO>
-C<GvAV> and C<GvHV>.
-
-=item *
-
 XXX
 
 =back
@@ -473,56 +393,9 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
 =item *
 
-A bug in regular expression patterns that could lead to segfaults and
-other crashes has been fixed.  This occurred only in patterns compiled
-with C<"/i">, while taking into account the current POSIX locale (this usually
-means they have to be compiled within the scope of C<S<"use locale">>),
-and there must be a string of at least 128 consecutive bytes to match.
-[perl #123539]
-
-=item *
-
-C<s///> now works on very long strings instead of dying with 'Substitution
-loop'.  [perl #103260] [perl #123071]
-
-=item *
-
-C<gmtime> no longer crashes with not-a-number values.  [perl #123495]
-
-=item *
-
-C<\()> (reference to an empty list) and C<y///> with lexical $_ in scope
-could do a bad write past the end of the stack.  They have been fixed
-to extend the stack first.
-
-=item *
-
-C<prototype()> with no arguments used to read the previous item on the
-stack, so C<print "foo", prototype()> would print foo's prototype.  It has
-been fixed to infer $_ instead.  [perl #123514]
-
-=item *
-
-Some cases of lexical state subs inside predeclared subs could crash but no
-longer do.
-
-=item *
-
-Some cases of nested lexical state subs inside anonymous subs could cause
-'Bizarre copy' errors or possibly even crash.
-
-=item *
-
-When trying to emit warnings, perl's default debugger (F<perl5db.pl>) was
-sometimes giving 'Undefined subroutine &DB::db_warn called' instead.  This
-bug, which started to occur in Perl 5.18, has been fixed.  [perl #123553]
-
-=item *
-
-Certain syntax errors in substitutions, such as C<< s/${<>{})// >>, would
-crash, and had done so since Perl 5.10.  (In some cases the crash did not
-start happening till 5.16.)  The crash has, of course, been fixed.
-[perl #123542]
+Repeated global pattern matches in scalar context on large tainted
+strings were exponentially slow depending on the current match
+position in the string. [perl #123202]
 
 =back
 
@@ -562,7 +435,7 @@ here.
 
 XXX Generate this with:
 
-  perl Porting/acknowledgements.pl v5.21.7..HEAD
+  perl Porting/acknowledgements.pl v5.21.9..HEAD
 
 =head1 Reporting Bugs