[前][次][番号順一覧][スレッド一覧]

ruby:1492

From: "M.Suzuki" <suzk@o...>
Date: Mon, 05 Mar 2007 18:09:48 +0900
Subject: [ruby:1492] Re: Ruby 1.8.6 preview 3 公開

> あとそうだ、どなたか、
>
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/30005
>
> の「ご参考までに、先の変更の背景は次の通りです。」以下の部分を
> 英訳してみませんか?
>
> これ、今回の非互換の変更で、実際にRailsで修正が発生したりもしている
> みたいなので、英文での説明もあった方がいいような気もします。


鈴木と申します。
なんだかちゃんと伝わるのか心許ないのですが、たたき台に。


For your information, the background of the previous change is as follows.

- When it comes to the modules related to message digest registered in RAA  
and
   Rubyforge, it seems that none uses the interface of ext/digest.
   The implementation cannot be shared though OpenSSL::Digest is an  
interface that
   looks like. In a word, there was a problem in recycling on conventional
   implementation side API.

   Then, keeping most of the user side interface, implementiation side API  
was greatly repaired.
   API for C was improved, and API for Ruby was installed newly.

- To correspond to the algorithm with the parameter,
   the constructor was loosened to the subclass. As a result, it came to  
make the
   one to specify the algorithm name like OpenSSL::Digest and the one
   (SHA2 etc.), etc. to specify the bit length the subclass of  
Digest(::Class).
   A part of interchangeability was lost on the other hand.

   Though we wanted to maintain rear interchangeability,
   the usage that give the parameter to "new" method was applied to 1.8.
   It laid weight in interchaneability of 1.9 or later.
   Because the use part was able to be detected with comparative ease,
   and rewriting was also easy.


   Following is the concrete way how to rewrite.

- Use Digest::MD5.hexdigest(str).
   The usage like Digest::MD5.new(str).hexdigest is verbose.
   (.to_s. or .digest is also similar. )

- We want you to rewrite the usage like md=Digest::MD5.new(str) as
   md=Digest::MD5.new.update(str).


   The one that Tiger and Whirlpool were implemented with new API is put on
   the following URL.

	http://rubyforge.org/viewvc/?root=digest


   Because it was difficult to build alone without the source of the main  
body of Ruby so far,
   we think another distribution to be this result.
   (Because it doesn't have a mind to add to a standard distribution as  
long as it doesn't
   spread greatly. )

-- 
M.Suzuki

--
ML: ruby@m...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]

      1490 2007-03-05 07:22 [maki@r...           ] Ruby 1.8.6 preview 3 公開               
      1491 2007-03-05 07:30 ┗[maki@r...           ]                                       
->    1492 2007-03-05 10:09  ┗[suzk@o...           ]                                     
      1493 2007-03-05 14:25   ┣[maili31s@c...       ] 英訳 (Re: Ruby 1.8.6 preview 3 公開)
      1494 2007-03-06 02:06   ┗[l.g.chin@g...       ]                                   
      1496 2007-03-07 09:50    ┗[maki@r...           ]