|
| 1 | +--- |
| 2 | +layout: news_post |
| 3 | +title: "Rilasciato Ruby 2.4.0-preview2" |
| 4 | +author: "naruse" |
| 5 | +translator: alepore |
| 6 | +date: 2016-09-08 18:00:00 +0900 |
| 7 | +lang: it |
| 8 | +--- |
| 9 | + |
| 10 | +Siamo lieti di annunciare la release di Ruby 2.4.0-preview2. |
| 11 | + |
| 12 | +Ruby 2.4.0-preview2 è la prima anteprima di Ruby 2.4.0. |
| 13 | +Questa preview2 è rilasciata per avere dei feedback dalla community. |
| 14 | +[Mandate pure feedback](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport) |
| 15 | +poiché potete ancora influenzare le features. |
| 16 | + |
| 17 | +## [Fixnum e Bignum unificati in Integer](https://bugs.ruby-lang.org/issues/12005) |
| 18 | + |
| 19 | +Anche se [ISO/IEC 30170:2012](http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=59579) |
| 20 | +non specifica i dettagli della classe Integer, Ruby ha due classi Integer: |
| 21 | +Fixnum e Bignum. |
| 22 | +Ruby 2.4 le unisce in Integer. |
| 23 | +Tutte le estensioni C che usano le classi Fixnum o Bignum devono essere |
| 24 | +modificate. |
| 25 | + |
| 26 | +Si vedano inoltre [il ticket](https://bugs.ruby-lang.org/issues/12005) e |
| 27 | +[le slide di akr](http://www.a-k-r.org/pub/2016-09-08-rubykaigi-unified-integer.pdf). |
| 28 | + |
| 29 | +## [String supporta i case mapping Unicode](https://bugs.ruby-lang.org/issues/10085) |
| 30 | + |
| 31 | +`String/Symbol#upcase/downcase/swapcase/capitalize(!)` ora gestiscono i case |
| 32 | +mapping Unicode invede dei soli case mapping ASCII. |
| 33 | + |
| 34 | +## Miglioramenti di Performance |
| 35 | + |
| 36 | +Ruby 2.4 include anche le seguenti migliorie prestazionali: |
| 37 | + |
| 38 | +### [Array#max, Array#min](https://bugs.ruby-lang.org/issues/12172) |
| 39 | + |
| 40 | +`[x, y].max` e `[x, y].min` in alcuni casi sono ottimizzati per non creare un |
| 41 | +array temporaneo. |
| 42 | + |
| 43 | +### [Regexp#match?](https://bugs.ruby-lang.org/issues/8110) |
| 44 | + |
| 45 | +È stato aggiunto `Regexp#match?`, che esegue un match regexp senza creare un |
| 46 | +back reference object e cambiando `$~` per ridurre l'allocazione di oggetti. |
| 47 | + |
| 48 | +### Altre migliorie di performance |
| 49 | + |
| 50 | +* [accesso delle variabili di istanza più veloce](https://bugs.ruby-lang.org/issues/12274) |
| 51 | + |
| 52 | +## Debugging |
| 53 | + |
| 54 | +### [Thread#report_on_exception e Thread.report_on_exception](https://bugs.ruby-lang.org/issues/6647) |
| 55 | + |
| 56 | +Ruby ignora le eccezioni nei threads a meno che un altro thread non le acceda |
| 57 | +esplicitamente. |
| 58 | +Con `report_on_exception = true`, vi potete accorgere se un thread è morto per |
| 59 | +un'eccezione non gestita. |
| 60 | + |
| 61 | +Mandateci feedback su quale dovrebbe essere il default di `report_on_exception` |
| 62 | +e riguardo report-on-GC, che mostra un report quando un thread è |
| 63 | +garbage collected without join. |
| 64 | + |
| 65 | +### [La Deadlock detection di Thread ora mostra i thread con backtrace e dipendenze](https://bugs.ruby-lang.org/issues/8214) |
| 66 | + |
| 67 | +Ruby ha una deadlock detection sui thread in attesa, ma il suo report non |
| 68 | +include abbasta informazioni per il debug. |
| 69 | +La deadlock detection di Ruby 2.4's mostra i thread con il loro backtrace e i |
| 70 | +thread dipendenti. |
| 71 | + |
| 72 | +Dilettatevi nella programmazione con Ruby 2.4.0-preview2 e |
| 73 | +[mandateci feedback](https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport)! |
| 74 | + |
| 75 | +## Modifiche importanti dalla 2.3 |
| 76 | + |
| 77 | +* Supporta OpenSSL 1.1.0 |
| 78 | +* ext/tk rimosso dalla stdlib [Feature #8539] |
| 79 | + |
| 80 | +Vedere le [NEWS](https://github.com/ruby/ruby/blob/v2_4_0_preview2/NEWS) |
| 81 | +e il [ChangeLog](https://github.com/ruby/ruby/blob/v2_4_0_preview2/ChangeLog) |
| 82 | +per i dettagli. |
| 83 | + |
| 84 | +Con queste modifiche abbiamo |
| 85 | +[2353 file modificati, 289057 inserimenti(+), 73847 rimozioni(-)](https://github.com/ruby/ruby/compare/v2_3_0...v2_4_0_preview2) |
| 86 | +da Ruby 2.3.0! |
| 87 | + |
| 88 | +## Download |
| 89 | + |
| 90 | +* <https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0-preview2.tar.bz2> |
| 91 | + |
| 92 | + * SIZE: 12463225 bytes |
| 93 | + * SHA1: 95a501624f1cf4bb0785d3e17afd0ad099f66385 |
| 94 | + * SHA256: 2224c55b2d87b5c0f08d23a4618e870027dbc1cffbfb4a05efd19eac4ff4cf1d |
| 95 | + * SHA512: 0c9a59a2f57a99c4ee8539a30f41da1de7547566203f89d856e1be9dbb44365754e6c470145dc9336eb324e0feb2f53d9fef18a1564968ac21f9ee528905949f |
| 96 | + |
| 97 | +* <https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0-preview2.tar.gz> |
| 98 | + |
| 99 | + * SIZE: 15586514 bytes |
| 100 | + * SHA1: 492a13c4ddc1c0c218433acb00dcf7ddeef96fe0 |
| 101 | + * SHA256: fec544836428aada2dc593a8cc42ce330798a805e49ecb807a0e21b386fd0b14 |
| 102 | + * SHA512: 5a3de852a7611e79f38219ed7bb13772aaabb25538ca843d38743180a0cc939a4e34c008b61d578da785285196b6b8882270bddc17cbed481237db8afa4c54e4 |
| 103 | + |
| 104 | +* <https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0-preview2.tar.xz> |
| 105 | + |
| 106 | + * SIZE: 9886832 bytes |
| 107 | + * SHA1: 95d5fd7d54d86497194f69ec433755a517dcde8f |
| 108 | + * SHA256: 6c2d25bedc50c2f19b0e349f0ffd9b9a83000d9cb6a677bf5372fb493d33e16a |
| 109 | + * SHA512: b9bd898d17583103ee61b4764ac86eb62c9661fca1f41ff0d06a15965a0a1ba581491d4b8a342e527d63e102b6ddcb2acebdabe5b246409ce9711e13f9428d5b |
| 110 | + |
| 111 | +* <https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0-preview2.zip> |
| 112 | + |
| 113 | + * SIZE: 17401564 bytes |
| 114 | + * SHA1: 5f3a5b2fd03f70d49e74ec36be3e0c110f6c17cc |
| 115 | + * SHA256: 4d0e466148283ad52208b1e1b70b018aefb7fa95b490fc862d5ea4ca284ecdd2 |
| 116 | + * SHA512: 0ef2098d995238580245a4bcee843641199c1194189be13614611e2ffec329278072319a799d409eaf13b1cff45f05a0eae02d9ea8ccc69058fa49e03eca0130 |
| 117 | + |
| 118 | +## Commento alla release |
| 119 | + |
| 120 | +Per il release schedule e altre informazioni vedere anche: |
| 121 | + |
| 122 | +[ReleaseEngineering24](https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/ReleaseEngineering24) |
0 commit comments