From b87716d97aa8054ad9ca390a2e164f9f250e8ecb Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Thu, 8 Sep 2016 15:08:22 +0900 Subject: [PATCH 1/5] Ruby 2.4.0-preview2 Released --- ...2016-09-08-ruby-2-4-0-preview2-released.md | 121 ++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md diff --git a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md new file mode 100644 index 0000000000..4fb3f4b7d1 --- /dev/null +++ b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md @@ -0,0 +1,121 @@ +--- +layout: news_post +title: "Ruby 2.4.0-preview2 Released" +author: "naruse" +translator: +date: 2016-09-08 18:00:00 +0900 +lang: en +--- + +We are pleased to announce the release of Ruby 2.4.0-preview2. + +Ruby 2.4.0-preview2 is the second preview of Ruby 2.4.0. +This preview2 is released earlier than usual because it includes so +many new features and improvements. +(This is the one usually released as preview1) +Feel free to +[send feedback](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport) +since you can still change the features. + +## [Unify Fixnum and Bignum into Integer](https://bugs.ruby-lang.org/issues/12005) + +Though [ISO/IEC 30170:2012](http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=59579) +doesn't specify details of the Integer class, +CRuby has two visible Integer classes: Fixnum and Bignum. +Ruby 2.4 unifies them into Integer. + +All C extensions which touches Fixnum or Bignum needs to fix. + +## [String supports Unicode case mappings](https://bugs.ruby-lang.org/issues/10085) + +`String/Symbol#upcase/downcase/swapcase/capitalize(!)` now handle +Unicode case mappings instead of only ASCII case mappings. + +## Performance improvements + +Ruby 2.4 also contains the following performance improvements including +language changes: + +### [Array#max, Array#min](https://bugs.ruby-lang.org/issues/12172) + +`[x, y].max` and `[x, y].min` are optimized to not create a temporary array +under certain conditions. + +### [Regexp#match?](https://bugs.ruby-lang.org/issues/8110) + +Added `Regexp#match?`, which executes a regexp match without creating +a back reference object and changing `$~` to reduce object allocation. + +### Other performance improvements + +* [speed up instance variable access](https://bugs.ruby-lang.org/issues/12274) + +## Debugging + +### [Thread#report_on_exception and Thread.report_on_exception](https://bugs.ruby-lang.org/issues/6647) + +Ruby ignores exceptions in threads unless another thread explicitly joins them. +With `report_on_exception = true`, +you can notice if a thread has died due to an unhandled exception. + +Send us feedback what should be the default for `report_on_exception` +and about report-on-GC. + +### [Thread deadlock detection now shows threads with their backtrace and dependency](https://bugs.ruby-lang.org/issues/8214) + +Ruby has deadlock detection around waiting threads, but its report doesn't +include enough information for debugging. +Ruby 2.4's deadlock detection shows threads with their backtrace and +dependent threads. + +Try and enjoy programming with Ruby 2.4.0-preview2, and +[send us feedback](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport)! + +## Notable Changes since 2.3 + +* Support OpenSSL 1.1.0 +* ext/tk is now removed from stdlib [Feature #8539] + +See [NEWS](https://github.com/ruby/ruby/blob/v2_4_0_preview2/NEWS) +and [ChangeLog](https://github.com/ruby/ruby/blob/v2_4_0_preview2/ChangeLog) +for details. + +With those changes, +[2353 files changed, 289060 insertions(+), 73816 deletions(-)](https://github.com/ruby/ruby/compare/v2_3_0...v2_4_0_preview2) +since Ruby 2.3.0! + +## Download + +* + + * SIZE: 12417688 bytes + * SHA1: 01c07fb5ea987a425c5d8773295d2d1578c4fe5a + * SHA256: 316649418013dc2bf59af27f1f789cb9b143d30fc0a9deea72ec0abf05912913 + * SHA512: f6735c552179bed67264b533098e612708d3a08432d7d30a9cdcc47c3e6e69fdd3513fdc9df758c792cad57a8097b60da44061df499d2ddbef333cfc8744f083 + +* + + * SIZE: 15591900 bytes + * SHA1: 26084a3d48e60c36061c920f24d4be3902f8296c + * SHA256: 3ea845a5f4fc48c907ebd0dcf158cc66efa4c33e32c5529132886dd3ff3efef0 + * SHA512: e460a8baf24e8c9480e8b47480d42aeb257b64a407913319ee8ab5c62779a56be8324aa3b11df6f0aa67a89019a8c256a2e01e0cb0867183ab6bb09a44ac79c6 + +* + + * SIZE: 9846052 bytes + * SHA1: f820981fd17d7f184ca5d503b0c1876aab836332 + * SHA256: d332972b62cd621a927d2b98ff2694ac19873e5361fbcc02aca75b9885fabdce + * SHA512: b68458680f189391340a3286ec1f4dfa7a5534a9e3f8bcf5fe196926dbb3813e1187b892bf3a73b4d04a7c4ed75da337814bc74a149db207d24a2c299ab58bd7 + +* + + * SIZE: 17400847 bytes + * SHA1: c1b56c520b0286e3f5fec1dc64aaa8a04af47b5d + * SHA256: a7d0c755ebf529cec818adb0cb76074ed075d7261e40808f8b0d7fffe05661bb + * SHA512: 1acb25dd743699ac272d47a74b3721642c3a12fe1b317ddafa816fd4c459f6d0c3e0a7e83e9ba8ebf05627bfd1c7545cde89b94ba50a6adc0bae1bbf08c2ae69 + +## Release Comment + +See also the release schedule and other information: + +[ReleaseEngineering24](https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/ReleaseEngineering24) From fe822327c6b8eeabeac6295f1eebd2d76454b00c Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Thu, 8 Sep 2016 16:30:52 +0900 Subject: [PATCH 2/5] fix and add akr's slide --- .../_posts/2016-09-08-ruby-2-4-0-preview2-released.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md index 4fb3f4b7d1..68af1cf301 100644 --- a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md +++ b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md @@ -10,9 +10,7 @@ lang: en We are pleased to announce the release of Ruby 2.4.0-preview2. Ruby 2.4.0-preview2 is the second preview of Ruby 2.4.0. -This preview2 is released earlier than usual because it includes so -many new features and improvements. -(This is the one usually released as preview1) +This preview2 is released to get feedback from community. Feel free to [send feedback](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport) since you can still change the features. @@ -21,10 +19,11 @@ since you can still change the features. Though [ISO/IEC 30170:2012](http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=59579) doesn't specify details of the Integer class, -CRuby has two visible Integer classes: Fixnum and Bignum. +CRuby had two visible Integer classes: Fixnum and Bignum. Ruby 2.4 unifies them into Integer. +All C extensions which touches Fixnum or Bignum class needs to fix. -All C extensions which touches Fixnum or Bignum needs to fix. +See also [the ticket](https://bugs.ruby-lang.org/issues/12005) and [akr's slide](http://www.a-k-r.org/pub/2016-09-08-rubykaigi-unified-integer.pdf). ## [String supports Unicode case mappings](https://bugs.ruby-lang.org/issues/10085) From 2cf8328753eb5808503948ea79d7dc333bd71af0 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Fri, 9 Sep 2016 09:27:05 +0900 Subject: [PATCH 3/5] update tarball --- ...2016-09-08-ruby-2-4-0-preview2-released.md | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md index 68af1cf301..f815bd592e 100644 --- a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md +++ b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md @@ -80,38 +80,38 @@ and [ChangeLog](https://github.com/ruby/ruby/blob/v2_4_0_preview2/ChangeLog) for details. With those changes, -[2353 files changed, 289060 insertions(+), 73816 deletions(-)](https://github.com/ruby/ruby/compare/v2_3_0...v2_4_0_preview2) +[2353 files changed, 289057 insertions(+), 73847 deletions(-)](https://github.com/ruby/ruby/compare/v2_3_0...v2_4_0_preview2) since Ruby 2.3.0! ## Download * - * SIZE: 12417688 bytes - * SHA1: 01c07fb5ea987a425c5d8773295d2d1578c4fe5a - * SHA256: 316649418013dc2bf59af27f1f789cb9b143d30fc0a9deea72ec0abf05912913 - * SHA512: f6735c552179bed67264b533098e612708d3a08432d7d30a9cdcc47c3e6e69fdd3513fdc9df758c792cad57a8097b60da44061df499d2ddbef333cfc8744f083 + * SIZE: 12454994 bytes + * SHA1: 88c4bbf76bd624689c98ab0ad43d98074488341b + * SHA256: db484f3911f8d6471e106bb35c4db1a6d11e2b0ec348e614002ce5d19a88a37a + * SHA512: fb9b664a54b74f69f69c59a57b03d90274f775a058f2cc41f9cfcc1cfa200e12972db48d2c7689419df6a3f0c7a8e383444d2e2c93f6f9cd15825183854bd24f * - * SIZE: 15591900 bytes - * SHA1: 26084a3d48e60c36061c920f24d4be3902f8296c - * SHA256: 3ea845a5f4fc48c907ebd0dcf158cc66efa4c33e32c5529132886dd3ff3efef0 - * SHA512: e460a8baf24e8c9480e8b47480d42aeb257b64a407913319ee8ab5c62779a56be8324aa3b11df6f0aa67a89019a8c256a2e01e0cb0867183ab6bb09a44ac79c6 + * SIZE: 15590354 bytes + * SHA1: 2deed5dc0115d2d7e2207f5ffea744e8db0729d1 + * SHA256: db0e97acf44c32ddd854a28bd6bdad7c5ad8a562bd00f2879386f39d48880f04 + * SHA512: 5d0f281ef57250a06bcc3eea4665da6b584e8a670e06cca135720bcd5f2fb0bbd4b2eb4ef34863de0f048766e2d65f070c03622186bb2fa68fb5beed44287631 * - * SIZE: 9846052 bytes - * SHA1: f820981fd17d7f184ca5d503b0c1876aab836332 - * SHA256: d332972b62cd621a927d2b98ff2694ac19873e5361fbcc02aca75b9885fabdce - * SHA512: b68458680f189391340a3286ec1f4dfa7a5534a9e3f8bcf5fe196926dbb3813e1187b892bf3a73b4d04a7c4ed75da337814bc74a149db207d24a2c299ab58bd7 + * SIZE: 9785128 bytes + * SHA1: b3bd452819dfe54cb4c50785c4e65a145a26620b + * SHA256: cc08f958cf584c4fb6f6acf012336bc19032c31c54a79d4b531a302b5de76494 + * SHA512: c08cdcc9e9c1fec36af3a1bfef3bca4df0202c8872ed8e6768f4d3f868f03c2888676c7e210b1d504eeadd09fd08047f7803f8fb9b85080469cf089f35540518 * - * SIZE: 17400847 bytes - * SHA1: c1b56c520b0286e3f5fec1dc64aaa8a04af47b5d - * SHA256: a7d0c755ebf529cec818adb0cb76074ed075d7261e40808f8b0d7fffe05661bb - * SHA512: 1acb25dd743699ac272d47a74b3721642c3a12fe1b317ddafa816fd4c459f6d0c3e0a7e83e9ba8ebf05627bfd1c7545cde89b94ba50a6adc0bae1bbf08c2ae69 + * SIZE: 17401054 bytes + * SHA1: d0f2c8b252026d7dcddbc6ba01b16a121ead7bc6 + * SHA256: 6513426ab2c84696da3c7c024fdc269489ad2e6e008a27ffe244ac251799ab4c + * SHA512: acb4f2234d5454af24af1c5187deb12d09543395654b9c52ecf7ef92ea4257a38e34a5a5062db1ce2b02425106ceb8ddd07f11856ae83c579d8b439e7f8632a0 ## Release Comment From 030c550514fe3aa61904de2aaa2217a2e94fe63c Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Fri, 9 Sep 2016 09:47:05 +0900 Subject: [PATCH 4/5] fix words as @stomar commented --- .../2016-09-08-ruby-2-4-0-preview2-released.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md index f815bd592e..25445f8397 100644 --- a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md +++ b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md @@ -10,20 +10,20 @@ lang: en We are pleased to announce the release of Ruby 2.4.0-preview2. Ruby 2.4.0-preview2 is the second preview of Ruby 2.4.0. -This preview2 is released to get feedback from community. +This preview2 is released to get feedback from the community. Feel free to [send feedback](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport) -since you can still change the features. +since you can still influence the features. ## [Unify Fixnum and Bignum into Integer](https://bugs.ruby-lang.org/issues/12005) Though [ISO/IEC 30170:2012](http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=59579) doesn't specify details of the Integer class, -CRuby had two visible Integer classes: Fixnum and Bignum. +Ruby had two visible Integer classes: Fixnum and Bignum. Ruby 2.4 unifies them into Integer. -All C extensions which touches Fixnum or Bignum class needs to fix. +All C extensions which touches Fixnum or Bignum class needs to be fixed. -See also [the ticket](https://bugs.ruby-lang.org/issues/12005) and [akr's slide](http://www.a-k-r.org/pub/2016-09-08-rubykaigi-unified-integer.pdf). +See also [the ticket](https://bugs.ruby-lang.org/issues/12005) and [akr's slides](http://www.a-k-r.org/pub/2016-09-08-rubykaigi-unified-integer.pdf). ## [String supports Unicode case mappings](https://bugs.ruby-lang.org/issues/10085) @@ -58,7 +58,7 @@ With `report_on_exception = true`, you can notice if a thread has died due to an unhandled exception. Send us feedback what should be the default for `report_on_exception` -and about report-on-GC. +and about report-on-GC, which show a report when a thread is GCed without join. ### [Thread deadlock detection now shows threads with their backtrace and dependency](https://bugs.ruby-lang.org/issues/8214) From d40baecd02be0f17682b7e49b37f15cfc0a69823 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Sat, 10 Sep 2016 09:09:28 +0900 Subject: [PATCH 5/5] update --- ...2016-09-08-ruby-2-4-0-preview2-released.md | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md index 25445f8397..8c83786bdd 100644 --- a/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md +++ b/en/news/_posts/2016-09-08-ruby-2-4-0-preview2-released.md @@ -87,31 +87,31 @@ since Ruby 2.3.0! * - * SIZE: 12454994 bytes - * SHA1: 88c4bbf76bd624689c98ab0ad43d98074488341b - * SHA256: db484f3911f8d6471e106bb35c4db1a6d11e2b0ec348e614002ce5d19a88a37a - * SHA512: fb9b664a54b74f69f69c59a57b03d90274f775a058f2cc41f9cfcc1cfa200e12972db48d2c7689419df6a3f0c7a8e383444d2e2c93f6f9cd15825183854bd24f + * SIZE: 12463225 bytes + * SHA1: 95a501624f1cf4bb0785d3e17afd0ad099f66385 + * SHA256: 2224c55b2d87b5c0f08d23a4618e870027dbc1cffbfb4a05efd19eac4ff4cf1d + * SHA512: 0c9a59a2f57a99c4ee8539a30f41da1de7547566203f89d856e1be9dbb44365754e6c470145dc9336eb324e0feb2f53d9fef18a1564968ac21f9ee528905949f * - * SIZE: 15590354 bytes - * SHA1: 2deed5dc0115d2d7e2207f5ffea744e8db0729d1 - * SHA256: db0e97acf44c32ddd854a28bd6bdad7c5ad8a562bd00f2879386f39d48880f04 - * SHA512: 5d0f281ef57250a06bcc3eea4665da6b584e8a670e06cca135720bcd5f2fb0bbd4b2eb4ef34863de0f048766e2d65f070c03622186bb2fa68fb5beed44287631 + * SIZE: 15586514 bytes + * SHA1: 492a13c4ddc1c0c218433acb00dcf7ddeef96fe0 + * SHA256: fec544836428aada2dc593a8cc42ce330798a805e49ecb807a0e21b386fd0b14 + * SHA512: 5a3de852a7611e79f38219ed7bb13772aaabb25538ca843d38743180a0cc939a4e34c008b61d578da785285196b6b8882270bddc17cbed481237db8afa4c54e4 * - * SIZE: 9785128 bytes - * SHA1: b3bd452819dfe54cb4c50785c4e65a145a26620b - * SHA256: cc08f958cf584c4fb6f6acf012336bc19032c31c54a79d4b531a302b5de76494 - * SHA512: c08cdcc9e9c1fec36af3a1bfef3bca4df0202c8872ed8e6768f4d3f868f03c2888676c7e210b1d504eeadd09fd08047f7803f8fb9b85080469cf089f35540518 + * SIZE: 9886832 bytes + * SHA1: 95d5fd7d54d86497194f69ec433755a517dcde8f + * SHA256: 6c2d25bedc50c2f19b0e349f0ffd9b9a83000d9cb6a677bf5372fb493d33e16a + * SHA512: b9bd898d17583103ee61b4764ac86eb62c9661fca1f41ff0d06a15965a0a1ba581491d4b8a342e527d63e102b6ddcb2acebdabe5b246409ce9711e13f9428d5b * - * SIZE: 17401054 bytes - * SHA1: d0f2c8b252026d7dcddbc6ba01b16a121ead7bc6 - * SHA256: 6513426ab2c84696da3c7c024fdc269489ad2e6e008a27ffe244ac251799ab4c - * SHA512: acb4f2234d5454af24af1c5187deb12d09543395654b9c52ecf7ef92ea4257a38e34a5a5062db1ce2b02425106ceb8ddd07f11856ae83c579d8b439e7f8632a0 + * SIZE: 17401564 bytes + * SHA1: 5f3a5b2fd03f70d49e74ec36be3e0c110f6c17cc + * SHA256: 4d0e466148283ad52208b1e1b70b018aefb7fa95b490fc862d5ea4ca284ecdd2 + * SHA512: 0ef2098d995238580245a4bcee843641199c1194189be13614611e2ffec329278072319a799d409eaf13b1cff45f05a0eae02d9ea8ccc69058fa49e03eca0130 ## Release Comment