Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #1996 > unrolled thread

numerical ruby?

Started byserialhex <serialhex@gmail.com>
First post2011-03-30 19:39 -0500
Last post2011-04-01 14:58 -0500
Articles 8 — 5 participants

Back to article view | Back to comp.lang.ruby


Contents

  numerical ruby? serialhex <serialhex@gmail.com> - 2011-03-30 19:39 -0500
    Re: numerical ruby? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-03-30 20:38 -0500
      Re: numerical ruby? Michael Edgar <adgar@carboni.ca> - 2011-03-30 20:49 -0500
        Re: numerical ruby? serialhex <serialhex@gmail.com> - 2011-03-30 20:55 -0500
        Re: numerical ruby? 7stud -- <bbxx789_05ss@yahoo.com> - 2011-03-30 21:02 -0500
          Re: numerical ruby? Michael Edgar <adgar@carboni.ca> - 2011-03-30 21:12 -0500
        Re: numerical ruby? Cameron McBride <cameron.mcbride@gmail.com> - 2011-04-01 07:20 -0500
    Re: numerical ruby? Colin Bartlett <colinb2r@googlemail.com> - 2011-04-01 14:58 -0500

#1996 — numerical ruby?

Fromserialhex <serialhex@gmail.com>
Date2011-03-30 19:39 -0500
Subjectnumerical ruby?
Message-ID<AANLkTikKK1mnAZgtq_F86FGfzq4dC2LQLODvDoUZo_Va@mail.gmail.com>
[Note:  parts of this message were removed to make it a legal post.]

does anybody know of any good, high-speed numerical ruby libraries, kind of
like numpy for python?  any help is appreciated.

justin

[toc] | [next] | [standalone]


#2005

From7stud -- <bbxx789_05ss@yahoo.com>
Date2011-03-30 20:38 -0500
Message-ID<37fb668c723c3cb5beb21d49041fd81e@ruby-forum.com>
In reply to#1996
ruby and 'high speed' are sort of antithetical terms.

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [prev] | [next] | [standalone]


#2007

FromMichael Edgar <adgar@carboni.ca>
Date2011-03-30 20:49 -0500
Message-ID<CB2FBF3A-FB80-4004-8235-19A8F65EA9D9@carboni.ca>
In reply to#2005
No they're not, and what serialhex was asking about is completely reasonable. Numpy is a
C-based Python library that provides high-speed math operations of all sorts. Since Python and
Ruby 1.9 are quite comparable in terms of performance, it's not at all unreasonable
to ask if a counterpart to numpy exists for Ruby. Your dismissal is unwarranted.

http://narray.rubyforge.org/ is an old library that handles matrix and vector operations.
It doesn't offer all of numpy's options. Unfortunately, there are few alternatives for Ruby.

Michael Edgar
adgar@carboni.ca
http://carboni.ca/

On Mar 30, 2011, at 9:38 PM, 7stud -- wrote:

> ruby and 'high speed' are sort of antithetical terms.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 

[toc] | [prev] | [next] | [standalone]


#2009

Fromserialhex <serialhex@gmail.com>
Date2011-03-30 20:55 -0500
Message-ID<AANLkTi=-SnxP3aP1ET4zLTxM+u2FoOAfxgKO9L7bLU-f@mail.gmail.com>
In reply to#2007
[Note:  parts of this message were removed to make it a legal post.]

SWEET!!  thank you both Matz & Michael, NArray looks like it might work for
what i'm looking at.

Justin

On Wed, Mar 30, 2011 at 9:49 PM, Michael Edgar <adgar@carboni.ca> wrote:

> No they're not, and what serialhex was asking about is completely
> reasonable. Numpy is a
> C-based Python library that provides high-speed math operations of all
> sorts. Since Python and
> Ruby 1.9 are quite comparable in terms of performance, it's not at all
> unreasonable
> to ask if a counterpart to numpy exists for Ruby. Your dismissal is
> unwarranted.
>
> http://narray.rubyforge.org/ is an old library that handles matrix and
> vector operations.
> It doesn't offer all of numpy's options. Unfortunately, there are few
> alternatives for Ruby.
>
> Michael Edgar
> adgar@carboni.ca
> http://carboni.ca/
>
> On Mar 30, 2011, at 9:38 PM, 7stud -- wrote:
>
> > ruby and 'high speed' are sort of antithetical terms.
> >
> > --
> > Posted via http://www.ruby-forum.com/.
> >
>
>

[toc] | [prev] | [next] | [standalone]


#2010

From7stud -- <bbxx789_05ss@yahoo.com>
Date2011-03-30 21:02 -0500
Message-ID<4dc61bd8fdce4a30d19a592faf0bd36a@ruby-forum.com>
In reply to#2007
Michael Edgar wrote in post #990103:
> No they're not, and what serialhex was asking about is completely
> reasonable. Numpy is a
> C-based Python library that provides high-speed math operations of all
> sorts.
>

I know a little python, myself.

> Since Python and
> Ruby 1.9 are quite comparable in terms of performance, it's not at all
> unreasonable
> to ask if a counterpart to numpy exists for Ruby. Your dismissal is
> unwarranted.
>

What? Where?

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [prev] | [next] | [standalone]


#2013

FromMichael Edgar <adgar@carboni.ca>
Date2011-03-30 21:12 -0500
Message-ID<C0C28FFB-AF89-4DEF-9E60-D6EB6CA21E78@carboni.ca>
In reply to#2010
Here's the shootout results for:

1.9 vs. Python 2.x:
http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=yarv&lang2=python

1.9 vs. Python 3:
http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=yarv&lang2=python3

PyPy does a bit better, but the shootout doesn't support Rubinius. A 1-3x difference
is quite  comparable when both languages are currently up to 2 orders of magnitude
slower than others. Plus Ruby even wins some benchmarks by smaller margins.

Michael Edgar
adgar@carboni.ca
http://carboni.ca/

On Mar 30, 2011, at 10:02 PM, 7stud -- wrote:

> Michael Edgar wrote in post #990103:
>> No they're not, and what serialhex was asking about is completely
>> reasonable. Numpy is a
>> C-based Python library that provides high-speed math operations of all
>> sorts.
>> 
> 
> I know a little python, myself.
> 
>> Since Python and
>> Ruby 1.9 are quite comparable in terms of performance, it's not at all
>> unreasonable
>> to ask if a counterpart to numpy exists for Ruby. Your dismissal is
>> unwarranted.
>> 
> 
> What? Where?
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 

[toc] | [prev] | [next] | [standalone]


#2104

FromCameron McBride <cameron.mcbride@gmail.com>
Date2011-04-01 07:20 -0500
Message-ID<AANLkTikeJ+mn7pXU0+_GrP_C06UQt7CMnSXqMqVML1pz@mail.gmail.com>
In reply to#2007
narray is great.  and if you need more capabilities, there are several
GSL bindings (I still use rb-gsl.rubyforge.org).

I've been using ruby for "fast" numerics and regular calculations for
a number of years, and been quite happy with them.

Cameron

On Wed, Mar 30, 2011 at 20:49, Michael Edgar <adgar@carboni.ca> wrote:
> No they're not, and what serialhex was asking about is completely reasonable. Numpy is a
> C-based Python library that provides high-speed math operations of all sorts. Since Python and
> Ruby 1.9 are quite comparable in terms of performance, it's not at all unreasonable
> to ask if a counterpart to numpy exists for Ruby. Your dismissal is unwarranted.
>
> http://narray.rubyforge.org/ is an old library that handles matrix and vector operations.
> It doesn't offer all of numpy's options. Unfortunately, there are few alternatives for Ruby.
>
> Michael Edgar
> adgar@carboni.ca
> http://carboni.ca/
>
> On Mar 30, 2011, at 9:38 PM, 7stud -- wrote:
>
>> ruby and 'high speed' are sort of antithetical terms.
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>>
>
>

[toc] | [prev] | [next] | [standalone]


#2125

FromColin Bartlett <colinb2r@googlemail.com>
Date2011-04-01 14:58 -0500
Message-ID<AANLkTikZ0cBys0ckogq0MhTc4qauyCaHCvFps7wBBX7w@mail.gmail.com>
In reply to#1996
On Thu, Mar 31, 2011 at 1:39 AM, serialhex <serialhex@gmail.com> wrote:
> does anybody know of any good, high-speed numerical ruby libraries, kind of
> like numpy for python?  any help is appreciated.

Apart from the possibilities others have mentioned, there is also
JRuby, which makes it easy to include Java code in a Ruby program.
I've used JRuby writing my own Java code for the numerical processing
which needs to be fast. I haven't tried using "standard" Java
libraries, but I assume that if one can include one's own Java
"libraries" in a Ruby program, it shouldn't be too hard to do that
with standard Java libraries.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.ruby


csiph-web