Forum: Ruby-core [ANN] ruby 2.0.0-rc1 released

Posted by Yusuke Endoh (Guest)
on 2013-01-07 17:21
(Received via mailing list)
Japanese follows; $BF|K\8l$O$"$H$G(B

Hello all --

We are pleased to announce the release of Ruby 2.0.0-rc1, the first 
release
candidate of Ruby 2.0.0.

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.bz2
  SIZE:   10822768 bytes
  MD5:    24cebdda11e01ff4889ac983cd7dc02c
  SHA256: 
4033ddadd0b44eecfcb7686231ebd109ee6f22bf09797a7e15882b9df0b1ee81

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.gz
  SIZE:   13621408 bytes
  MD5:    7d587dde85e0edf7a2e4f6783e6c0e2e
  SHA256: 
f9ca3e5b539ccf6bca6875d448a1aec34e73f7c173af180e58500c6f47096916

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.zip
  SIZE:   15117193 bytes
  MD5:    6ff5475553946c4dba1f68e9ce42e606
  SHA256: 
76e7ed7e95057a77bd80f557a60be6a46eb0e17fa7815aadca26d475f7a8f72a

## New features in 2.0.0

  - Keyword arguments
  - Enumerable#lazy
  - Module#prepend
  - #to_h: Convention for conversion to Hash
  - %i: a literal for symbol array
  - Updated regexp engine: Onigmo (a fork of Oniguruma)
  - Enumerator#size and Range#size were introduced [#6636]
  - DTrace support
  - TracePoint
  - Optimized IO performance on Windows
  - NativeClient support
  - Documentation improvement
  - Enhanced asynchronous interrupt handling
  - Launch-time memory usage tuning parameters
  - Refinements [experimental]

.. and more improvements.  See NEWS for details.

  - http://svn.ruby-lang.org/repos/ruby/tags/v2_0_0_rc1/NEWS

Here are some introductory articles by third parties:

  - https://speakerdeck.com/a_matsuda/ruby-2-dot-0-on-rails
  - http://globaldev.co.uk/2012/11/ruby-2-0-0-preview-features/
  - http://www.infoq.com/news/2012/11/ruby-20-preview1
  - http://timelessrepo.com/refinements-in-ruby (Refinements)
  - http://el.jibun.atmarkit.co.jp/rails/2012/11/ruby-... (in 
Japanese)
  - https://speakerdeck.com/nagachika/rubyist-enumeratorlazy
(Enumerator::Lazy, in Japanese)

(If you volunteer to provide additional articles, we may cite or refer 
to them
in the next release announcement.)

## Notes

### Incompatibility

There are three notable incompatibilities we know of:

  - The default encoding for ruby scripts is now UTF-8 [#6679].  Some 
people
    report that it affects existing programs, such as a some benchmark 
programs
    that have become very slow [ruby-dev:46547].
    The spec may change for the official release.

  - iconv was removed, which had already been deprecated when M17N was
introduced
    in ruby 1.9.  Use String#encode, etc. instead.

  - There is ABI breakage [ruby-core:48984].  We think that normal users
    can/should just reinstall extension libraries.
    You should be aware: "DO NOT COPY .so OR .bundle FILES FROM 1.9".

There are some comparatively small incompatibilities.  [ruby-core:49119]
Please report any other incompatibility you notice.

FYI: We are creating upgrade notes, but some parts are already outdated.

  - http://bugs.ruby-lang.org/projects/ruby/wiki/200Up...

### Status of Refinements

2.0.0 will include refinements as an "experimental feature" because we 
could
not agree on its detailed spec.
Note that the behavior may change in future versions of Ruby.

### Support level of Each Platform

We plan to decide "supported level list" depending upon whether 
2.0.0-rc1
builds/works or not on each platform.
Please try it on your favorite platform(s), and report if it works all 
right
or not!

### Schedule

There are still minor known issues.  We are now engaged in fixing them.
We will release 2.0.0-rc2 in early February, and 2.0.0-p0 at 24th Feb.
(the 20th anniversary of Ruby).

Thanks!


$B$3$s$K$A$O!#(B
Ruby 2.0.0-rc1 $B$r%j%j!<%9$7$^$9!#(BRuby 2.0.0 $B$N:G=i$N(B release 
candidate $B$G$9!#(B


* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.bz2
  SIZE:   10822768 bytes
  MD5:    24cebdda11e01ff4889ac983cd7dc02c
  SHA256: 
4033ddadd0b44eecfcb7686231ebd109ee6f22bf09797a7e15882b9df0b1ee81

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.tar.gz
  SIZE:   13621408 bytes
  MD5:    7d587dde85e0edf7a2e4f6783e6c0e2e
  SHA256: 
f9ca3e5b539ccf6bca6875d448a1aec34e73f7c173af180e58500c6f47096916

* http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-rc1.zip
  SIZE:   15117193 bytes
  MD5:    6ff5475553946c4dba1f68e9ce42e606
  SHA256: 
76e7ed7e95057a77bd80f557a60be6a46eb0e17fa7815aadca26d475f7a8f72a

## 2.0.0 $B$N?75!G=(B

  - $B%-!<%o!<%I0z?t(B
  - Enumerable#lazy
  - Module#prepend
  - #to_h: Hash $B$X$NJQ49%a%=%C%I(B
  - %i: $B%7%s%\%k$NG[Ns$N%j%F%i%k(B
  - $B@55,I=8=%(%s%8%s$r(B Onigmo $B$KJQ99!J541@(B: $B54<V$NGI@8HG!K(B
  - Enumerator#size $B$,F3F~$5$l$?(B [#6636]
  - DTrace $B%5%]!<%H(B
  - TracePoint
  - Windows $B$G$N(B IO $B$N@-G=2~A1(B
  - NativeClient $B%5%]!<%H(B
  - $B%I%-%e%a%s%H$N2~A1(B
  - $BHsF14|3d$j9~$_@)8f5!G=$N2~NI(B
  - $B5/F0;~$N%a%b%j;HMQNL@_Dj5!G=(B
  - Refinements [$B<B83E*5!G=(B]

$B$=$NB>2~A1B??t!#>\$7$/$O(B NEWS $B$r$4Mw$"$l!#(B

  - http://svn.ruby-lang.org/repos/ruby/tags/v2_0_0_rc1/NEWS

$B%5!<%I%Q!<%F%#$K$h$k>R2p5-;v$b$"$j$^$9!#(B

  - https://speakerdeck.com/a_matsuda/ruby-2-dot-0-on-rails
  - http://globaldev.co.uk/2012/11/ruby-2-0-0-preview-features/
  - http://www.infoq.com/news/2012/11/ruby-20-preview1
  - http://timelessrepo.com/refinements-in-ruby (Refinements)
  - http://el.jibun.atmarkit.co.jp/rails/2012/11/ruby-... (in 
Japanese)
  - https://speakerdeck.com/nagachika/rubyist-enumeratorlazy
(Enumerator::Lazy, in Japanese)

($BB>$K$b5-;v$r=q$$$FD:$1$k$H!":#8e$N%j%j!<%9%"%J%&%s%9$G0zMQ$d;2>H$r$5$;$F(B
 $BD:$/$+$b(B)

## $BCm0UE@(B

### $BHs8_49$K$D$$$F(B

$BFCI.$9$Y$-Hs8_49$r(B 3 $B$DGD0.$7$F$$$^$9!#(B

  - $B%G%U%)%k%H$N%9%/%j%W%H%(%s%3!<%G%#%s%0$,(B UTF-8 $B$K$J$j$^$7$?(B 
[#6679] $B!#(B
    $B$3$l$O4{B8$N%W%m%0%i%`$K1F6A$rM?$($k$3$H$,Js9p$5$l$F$$$^$9!#Nc$($P!"(B
    $B%Y%s%A%^!<%/%W%m%0%i%`$,Hs>o$KCY$/$J$k$J$I(B [ruby-dev:46547] 
$B!#(B
    $B8x<0%j%j!<%9$^$G$K;EMM$,JQ2=$9$k$+$b$7$l$^$;$s!#(B

  - iconv $B$,:o=|$5$l$^$7$?!#85!9(B M17N $B$,F3F~$5$l$?(B 1.9 
$B$N;~E@$GHs?d>)$N$b$N(B
    $B$G$7$?!#(BString#encode $B$J$I$r;H$C$F=q$-49$($F$/$@$5$$!#(B

  - ABI $B8_49@-$,$J$/$J$C$F$$$^$9(B [ruby-core:48984] 
$B!#DL>o$N%f!<%6$O!"3HD%(B
    $B%i%$%V%i%j$r:F%$%s%9%H!<%k$9$k$@$1$G$h$$$O$9$G$9!#!V(B1.9 $B$N(B 
.so, .bundle
    $B%U%!%$%k$r%3%T!<$9$k$J!W$H$@$15$$r$D$1$F$/$@$5$$!#(B

$BB>$K$bHf3SE*>.$5$JHs8_49$,$"$j$^$9!#(B[ruby-core:49119]
$B$5$i$KHs8_49$K5$$E$$$?$i$<$RJs9p$7$F$/$@$5$$!#(B

$B$4;29M(B: 
$B0J2<$K%"%C%W%0%l!<%I%,%$%I$r:n@.Cf$G$9$,!"$9$G$K0lItFbMF$,8E$$$G$9!#(B

  - http://bugs.ruby-lang.org/projects/ruby/wiki/200Up...

### refinements $B$N07$$(B

2.0.0 $B$G$O(B refinement 
$B$r!V<B83E*5!G=!W$H$7$FDs6!$7$^$9!#;EMM$N>\:Y$K$D$$$F(B
$B9g0U$K;j$i$J$+$C$?$?$a$G$9!#(B
$B5sF0$,(B Ruby 
$B$N>-Mh$N%P!<%8%g%s$GJQ2=$9$k2DG=@-$,$"$k$3$H$KCm0U$7$F$/$@$5$$!#(B

### $B%W%i%C%H%U%)!<%`$N%5%]!<%H%l%Y%k(B

$B3F%W%i%C%H%U%)!<%`$N%5%]!<%H>u67$O!"(B2.0.0-rc1 
$B$NF0:n<B@S$r85$K7h$a$kM=Dj$G$9!#(B
$B@'Hs$"$J$?$N%W%i%C%H%U%)!<%`$GF0:n$5$;$F$_$F!"LdBj$J$/F0$/$+$I$&$+$rJs9p$7$F(B
$B$/$@$5$$!#(B

### $B:#8e$NM=Dj(B

$B$^$@>.$5$J4{CN$NLdBj$,;D$C$F$$$^$9!#8=:_=$@5$K<h$jAH$s$G$$$^$9!#(B
2 $B7n>e=\$K(B 2.0.0-rc2 $B$r!"(B2 $B7n(B 24 $BF|(B (Ruby 20 
$B<~G/$NF|(B) $B$K(B 2.0.0-p0 $B$r%j%j!<%9(B
$B$9$kM=Dj$G$9!#(B
Posted by Yusuke Endoh (Guest)
on 2013-01-07 18:09
(Received via mailing list)
2013$BG/(B1$B7n(B8$BF|(B 1:20 Yusuke Endoh <mame@tsg.ne.jp>:
> We are pleased to announce the release of Ruby 2.0.0-rc1, the first release
> candidate of Ruby 2.0.0.


Very sorry, I forgot one of the most important section!


## Special thanks

We appreciate all users who gave feedback to the preview releases of 
2.0.0.
I'm grateful for all the committers' hard work to implement the new 
features
and fix the bugs.
Some people, including Jon Forums, Eric Hodel, Luis Lavena, Shugo Maeda, 
Akinori
Musha, Zachary Scott, Urabe Shyouhei, Sorah, Kazuki Tsujimoto, kindly 
reviewed
the draft of this announcement.
(I apologize if I've inadvertently omitted anybody from this list.)
Thank you everyone!


2.0.0 $B$N(B preview 
$B%j%j!<%9$K%U%#!<%I%P%C%/$r$/$l$?%f!<%6$N$_$J$5$s$K46<U$7$^$9!#(B
$B?75!G=$N<BAu$d%P%0=$@5$r4hD%$C$F$/$l$?%3%_%C%?$N3'$5$s$K$b46<U!#(B
$B$"$H$3$N%"%J%&%s%9J80F$r%l%S%e!<$7$F$/$l$?J}!9(B (Jon Forums, Eric 
Hodel, Luis
Lavena, Shugo Maeda, Akinori Musha, Zachary Scott, Urabe Shyouhei, 
Sorah, Kazuki
Tsujimoto, $B%j%9%H$+$iO3$l$??M$$$?$iD6$9$_$^$;$s(B) 
$B$b$"$j$,$H$&$4$6$$$^$9!#(B
Posted by Takahiro Kambe (Guest)
on 2013-01-08 16:05
(Received via mailing list)
In message 
<CAJeyfur+XrCvADYYZiMVd6BOwPBRskAEkQ4pfszUkggnr9x1xA@mail.gmail.com>
  on Tue, 8 Jan 2013 01:20:28 +0900,
  Yusuke Endoh <mame@tsg.ne.jp> wrote:
> Ruby 2.0.0-rc1 $B$r%j%j!<%9$7$^$9!#(BRuby 2.0.0 $B$N:G=i$N(B release candidate 
$B$G$9!#(B
NetBSD 6.0_STABLE$B>e$G;n$7$F$_$^$7$?$,!"(Bbuild$B$K<:GT$7$^$9!#(B

% uname -rsmp
NetBSD 6.0_STABLE amd64 x86_64
% sh configure --enable-shared
...
% make
...
compiling complex.c
linking shared-object mathn/complex.so
gcc: complex.o: No such file or directory
*** Error code 1

$B>/$7D4$Y$?$H$3$m!"(Bext/mathn/complex$B$K@8@.$5$l$?(BMakefile$B$N(BVPATH$B$K!"(B

VPATH = $(srcdir):$(topdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby

$B$H!"(B$(topdir)$B$,4^$^$l$F$$$k4X78$+!"$3$3$G<B9T$7$?(BMakefile$B$O!"(B

1. 
$B%H%C%W%G%#%l%/%H%j$K(Bcomplex.o$B$r:n@.(B($B4{$K$"$k(Bcomplex.o$B$r>e=q$-(B)
2. complex.so$B$N%j%s%/;~$O(Bext/mathn/complex/complex.o$B$,$J$/$F<:GT(B

$B$H$J$C$F$$$k$h$&$G$9!#(B

VPATH$B$K(B$(topdir)$B$r4^$a$k$h$&$K$J$C$?$N$O!"(Br37933$B$G!"(B

mkmf.rb: each_compile_rules

* lib/mkmf.rb (MakeMakefile#each_compile_rules): splat $(*VPATH*) for
  each VPATH elements.

$B$H$$$&%m%0$G!"$3$l$G2?8N(B$(topdir)$B$r4^$a$k$h$&$K$J$C$?$+$O$o$+$j$^$;$s!#(B
$B<h$j4:$($:!"0J2<$N$h$&$K(Br37933$B$N0lIt$rLa$9$H(Bbuild$B2DG=$H$J$j$^$7$?!#(B

--- lib/mkmf.rb.orig  2012-12-10 13:18:13.000000000 +0900
+++ lib/mkmf.rb  2013-01-08 14:46:06.000000000 +0900
@@ -2310,7 +2310,7 @@
     $LIBPATH = []
     $INSTALLFILES = []
     $NONINSTALLFILES = [/~\z/, /\A#.*#\z/, /\A\.#/, /\.bak\z/i, 
/\.orig\z/, /\.rej\z/, /\.l[ao]\z/, /\.o\z/]
-    $VPATH = %w[$(srcdir) $(topdir) $(arch_hdrdir)/ruby $(hdrdir)/ruby]
+    $VPATH = %w[$(srcdir) $(arch_hdrdir)/ruby $(hdrdir)/ruby]

     $objs = nil
     $srcs = nil
Posted by Shugo Maeda (Guest)
on 2013-01-08 23:52
(Received via mailing list)
$BA0ED$G$9!#(B

2013$BG/(B1$B7n(B9$BF|(B 0:05 Takahiro Kambe <taca@back-street.net>:
> $B$H!"(B$(topdir)$B$,4^$^$l$F$$$k4X78$+!"$3$3$G<B9T$7$?(BMakefile$B$O!"(B
>
> 1. 
$B%H%C%W%G%#%l%/%H%j$K(Bcomplex.o$B$r:n@.(B($B4{$K$"$k(Bcomplex.o$B$r>e=q$-(B)
> 2. complex.so$B$N%j%s%/;~$O(Bext/mathn/complex/complex.o$B$,$J$/$F<:GT(B
>
> $B$H$J$C$F$$$k$h$&$G$9!#(B

$B$=$&$$$($P!"(BUbuntu 12.04 (32bit)$B$G$b(Bmake clean 
all$B$7$?;~$KF1$8$h$&$J>u67$K$J$j$^$7$?$,!"(B
$BJs9p$rK:$l$F$$$^$7$?!#(B
# trunk$B$G$NOC$G(Brc1$B$G$O;n$7$F$$$^$;$s$,!#(B
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.