From: Stu Date: 2013-06-14T09:13:29+09:00 Subject: Re: Timsort in Ruby --001a11c22a288f872404df121da4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2013 at 7:23 AM, Bartosz Dziewo=C5=84ski wrote: On Wed, 12 Jun 2013 23:38:17 +0200, Alphonse 23 wrote: I just learned about Tim sort for the first time: > http://en.wikipedia.org/wiki/Timsort. Is there some specific reason > why timsort isn't implemented in Ruby, or is it just not a priority of > the Ruby community at the moment, and it may be addressed later? > Probably simply because nobody ever did that. If you implemented it and submitted a patch (with benchmarks proving that it is in fact an improvement), it would probably be happily accepted. (But do note, the sorting funciton Ruby uses seems already heavily magically optimized: http://rxr.whitequark.org/mri/source/util.c#286 ) --=20 Matma Rex The Ruby Cross Reference What a nice site. Easy to follow code view. On Thu, Jun 13, 2013 at 4:56 PM, Alphonse 23 wrote: > > Shouldn't the Ruby community feel ashamed that Python has a more > optimized sorting function? > > Shut up and hack lamer! --001a11c22a288f872404df121da4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Thu, Jun 13, 2013 at 7:23 AM, Bartosz Dziewo=C5=84= ski <matma.rex@gmail.com> wrote:
On W= ed, 12 Jun 2013 23:38:17 +0200, Alphonse 23 <lists@ruby-forum.com> wrote:

I just learned about Tim sort for the first time:
http://e= n.wikipedia.org/wiki/Timsort. Is there some specific reason
why timsort isn't implemented in Ruby, or is it just not a priority of<= br> the Ruby community at the moment, and it may be addressed later?

Probably simply because nobody ever did that. If you implemented it and=20 submitted a patch (with benchmarks proving that it is in fact an=20 improvement), it would probably be happily accepted. (But do note, the=20 sorting funciton Ruby uses seems already heavily magically optimized: ht= tp://rxr.whitequark.org/mri/source/util.c#286 )

--
Matma Rex


The Ruby Cross= Reference
What a nice site. Easy to follow code view.


On Thu, Jun 13, 2013 at 4:56 PM, Alphonse 23 <= lists@ruby-forum.= com> wrote:

Shouldn't the Ruby community feel ashamed that Python has a more
optimized sorting function?


Shut up and hack lamer!
--001a11c22a288f872404df121da4--