This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
for storage of NVs, use "IV in sv_u in head no-body trick" where possible
[perl5.git] / pod / perldelta.pod
index bb8dd38..a420c09 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.3
+perldelta - what is new for perl v5.21.5
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.21.2 release and the 5.21.3
+This document describes differences between the 5.21.4 release and the 5.21.5
 release.
 
-If you are upgrading from an earlier release such as 5.21.1, first read
-L<perl5212delta>, which describes differences between 5.21.1 and 5.21.2.
+If you are upgrading from an earlier release such as 5.21.3, first read
+L<perl5214delta>, which describes differences between 5.21.3 and 5.21.4.
 
 =head1 Notice
 
@@ -27,6 +27,21 @@ here, but most should go in the L</Performance Enhancements> section.
 
 [ List each enhancement as a =head2 entry ]
 
+=head2 Perl now supports POSIX 2008 locale currency additions.
+
+On platforms that are able to handle POSIX.1-2008, the
+hash returned by
+L<C<POSIX::localeconv()>|perllocale/The localeconv function>
+includes the international currency fields added by that version of the
+POSIX standard.  These are
+C<int_n_cs_precedes>,
+C<int_n_sep_by_space>,
+C<int_n_sign_posn>,
+C<int_p_cs_precedes>,
+C<int_p_sep_by_space>,
+and
+C<int_p_sign_posn>.
+
 =head1 Security
 
 XXX Any security-related notices go here.  In particular, any security
@@ -45,12 +60,6 @@ XXX For a release on a stable branch, this section aspires to be:
 
 [ List each incompatible change as a =head2 entry ]
 
-=head2 S<C<use UNIVERSAL '...'>> is now a fatal error
-
-Importing functions from C<UNIVERSAL> has been deprecated since v5.12, and
-is now a fatal error.  S<C<"use UNIVERSAL">> without any arguments is still
-allowed.
-
 =head1 Deprecations
 
 XXX Any deprecated features, syntax, modules etc. should be listed here.
@@ -95,7 +104,14 @@ There may well be none in a stable release.
 
 =item *
 
-XXX
+C<length> is up to 20% faster for non-magical/non-tied scalars containing a
+string if it is a non-utf8 string or if C<use bytes;> is in scope.
+
+=item *
+
+Non-magical/non-tied scalars that contain only a floating point value and are
+on most Perl builds with 64 bit integers now use 8-32 less bytes of memory
+depending on OS.
 
 =back
 
@@ -125,45 +141,9 @@ XXX
 
 =item *
 
-L<B::Debug> has been upgraded from version 1.19 to 1.21
-
-=item *
-
-L<Config::Perl::V> has been upgraded from version 0.20 to 0.22.
-
-=item *
-
-L<CPAN::Meta> has been upgraded from version 2.141520 to 2.142060.
-
-=item *
-
-L<CPAN::Meta::Requirements> has been upgraded from version 2.125 to 2.126.
-
-=item *
-
-L<ExtUtils::Manifest> has been upgraded from version 1.64 to 1.65.
-
-The MANIFEST is now opened with C<:raw>, to prevent C<CRLF>s leaking in.
-
-=item *
-
-L<perl5db.pl> has been upgraded from version 1.45 to 1.46.
-
-Fixed the scope level handling of the debugger's C<y> command.
-
-=item *
-
-L<POSIX> has been upgraded from version 1.41 to 1.42.
-
-Replaced the thread-unsafe code used to prevent duplicate warning
-messages for using the isxxx() functions.  [perl #122476]
-
-=item *
-
-L<Socket> has been upgraded from version 2.014 to 2.015.
+L<Module::CoreList> has been upgraded from version 5.20140920 to 5.20141020.
 
-Test suite updates, particularly useful for Solaris and cygwin, and
-a slight change to the pattern used for IPv4 address matching.
+Updated to cover the latest releases of Perl.
 
 =back
 
@@ -236,48 +216,7 @@ XXX L<message|perldiag/"message">
 
 =item *
 
-L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow">
-
-(W overflow) The hexadecimal floating point has larger exponent
-than the floating point supports.
-
-=item *
-
-L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow">
-
-(W overflow) The hexadecimal floating point has smaller exponent
-than the floating point supports.
-
-=item *
-
-L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error">
-
-(F) Something went horribly bad in hexadecimal float handling.
-
-=item *
-
-L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow">
-
-(W overflow) The hexadecimal floating point literal had more bits in
-the mantissa (the part between the 0x and the exponent, also known as
-the fraction or the significand) than the floating point supports.
-
-=item *
-
-L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss">
-
-(W overflow) The hexadecimal floating point had internally more
-digits than could be output.  This can be caused by unsupported
-long double formats, or by 64-bit integers not being available
-(needed to retrieve the digits under some configurations).
-
-=item *
-
-L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format">
-
-(F) You have configured Perl to use long doubles but
-the internals of the long double format are unknown,
-therefore the hexadecimal float output is impossible.
+XXX L<message|perldiag/"message">
 
 =back
 
@@ -325,7 +264,7 @@ L</Platform Support> section, instead.
 
 =item *
 
-Internal handling of floating point values has been improved.
+XXX
 
 =back
 
@@ -408,11 +347,7 @@ well.
 
 =item *
 
-Added L<perlapi/sync_locale>.
-Changing the program's locale should be avoided by XS code.  Nevertheless,
-certain non-Perl libraries called from XS, such as C<Gtk> do so.  When this
-happens, Perl needs to be told that the locale has changed.  Use this function
-to do so, before returning to Perl.
+XXX
 
 =back
 
@@ -427,15 +362,7 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
 =item *
 
-Failing to compile C<use Foo> in an eval could leave a spurious
-C<BEGIN> subroutine definition, which would produce a "Subroutine
-BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN>
-block.  [perl #122107]
-
-=item *
-
-C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they
-begin with an opening brace.  [perl #46947]
+XXX
 
 =back
 
@@ -464,6 +391,13 @@ XXX
 XXX Add anything here that we forgot to add, or were mistaken about, in
 the perldelta of a previous release.
 
+=item *
+
+SVs of type SVt_NV are now bodyless when a build configure and platform allow
+it, specifically C<sizeof(NV) <= sizeof(IV)>. The bodyless trick is the same one
+as for IVs since 5.9.2, but for NVs, unlike IVs, is not guarenteed on all
+platforms and build configurations.
+
 =back
 
 =head1 Obituary
@@ -475,7 +409,7 @@ here.
 
 XXX Generate this with:
 
-  perl Porting/acknowledgements.pl v5.21.2..HEAD
+  perl Porting/acknowledgements.pl v5.21.4..HEAD
 
 =head1 Reporting Bugs