News for hackers. Stuff that matters.
Re:Ruby is beautiful (but I'm moving to Python) by treetrouble on Monday October 31, 2011 @07:48PM (#3179747)
Seems like it would be a huge opportunity for people to start creating these science Ruby gems.

Not my field, personally...

Re:Ruby is beautiful (but I'm moving to Python) by mbell on Monday October 31, 2011 @08:30PM (#3179885)
It's been tried before. mum, Numerical Ruby and SciRuby were all attempts.

The fundamental issue I believe they all had is lack of community. There is a quite large community of folks using Python for scientific computing. Many are not professional developers but rather scientists / engineers who aren't as open to jumping around to different languages as a developer would be.

These issues combined with the fact that Ruby is mostly pigeon-holed as a web only language would make replicating the community that the NumPy/SciPy/matplotlib stack enjoys almost impossible.

It also doesn't help that such capability have to be implemented as C extensions due to performance requirements. This greatly limits the number of developers that would/could work on such a project.

Re:Ruby is beautiful (but I'm moving to Python) by mohawkjohn on Tuesday November 01, 2011 @12:28PM (#3182811)
SciRuby "were?" We rebooted the project a few months ago. Making some progress. sciruby-dev at googlegroups dot com, and #sciruby on IRC.
Re:Ruby is beautiful (but I'm moving to Python) by treetrouble on Monday October 31, 2011 @08:43PM (#3179923)
These kinds of projects can take years to take hold; you can't expect people to just all switch right away. Blog posts like this just need to be commented on with a link to those libraries. Eventually some big lecture, class or project will use one of those libraries and a whole new group of people will supplement the community. This doesn't just go for Ruby, it applies to any language

Ruby performance in general is getting much better and when C extensions are necessary (as they often are in any high level language) libraries like ruby-ffi have taken a lot of the pain out of that process.

Re:Ruby is beautiful (but I'm moving to Python) by jerf on Monday October 31, 2011 @09:21PM (#3180057)
There's more inertia here than you may be thinking. See this recent HN headliner about the difficulty of getting the NumPy/SciPy community to merely move from CPython to PyPy: http://technicaldiscovery.blogspot.com/2011/10/thoughts-on-p...

If that's a challenge, good luck getting a lot of NotProgrammers to move to a completely different language.

Besides, if I may be blunt, who in Rubyland cares if these guys are on Python? By and large, these people are on an island. They are optimizing for things you pretty much don't care about, for programming styles you're not using, for libraries you've barely heard of. Trying to entice them off of Python onto Ruby is a waste of time for everybody. The Ruby community would at best get nothing, at worst net pain of supporting a lot of newbies, and the scientists would incur the horrifying overhead of a language shift for the closest thing to a sidegrade available in the set of the top 20-ish language. If they were going to do that they probably shouldn't be going for Ruby, they should probably be going for Haskell or OCaml, both languages for which I could outline actual advantages to the scientists for the pain of the switch (though probably not enough to justify the switch).

Re:Ruby is beautiful (but I'm moving to Python) by treetrouble on Tuesday November 01, 2011 @12:50AM (#3180680)
You make good points, they're not blunt. I've just read the same basic blog post many times complaining that there's no SciPy in Ruby. Again, I'm not in the sciences so I'm out of my element talking about it. I'm just trying to make the simple point that there does seem to be people out there wanting science libraries for Ruby
Re:Ruby is beautiful (but I'm moving to Python) by razzmataz on Monday October 31, 2011 @10:31PM (#3180319)
>It also doesn't help that such capability have to be implemented as C extensions due to performance requirements.

If you think the NumPy and SciPy stacks are pure python, you'll probably be surprised to find a lot of C and fortran sitting under the hood.

Re:Ruby is beautiful (but I'm moving to Python) by mbell on Monday October 31, 2011 @11:06PM (#3180419)
I know they are not written in Python, that comment wasn't meant to be a knock on Ruby's performance in any way. Its simply the case that writing a highly performant vectorized computation library in a language that doesn't allow direct memory manipulation is a non-starter.
Re:Ruby is beautiful (but I'm moving to Python) by ashleyw on Monday October 31, 2011 @09:28PM (#3180095)
In my experience, Ruby and number crunching just don't match. Python's not especially fast to begin with, but I've definitely found it to be faster than Ruby. Though I probably wouldn't choose Python for number crunching either. If I were extracting some time-sensitive algorithm, I'd most likely go straight to something like Clojure.

And I must stress how much I love Ruby. It's my go-to language for the web/small scripts.

Re:Ruby is beautiful (but I'm moving to Python) by dennyabraham on Monday October 31, 2011 @09:31PM (#3180104)
sciruby is once again in active development

http://sciruby.com/

Re:Ruby is beautiful (but I'm moving to Python) by jgmmo on Monday October 31, 2011 @08:45PM (#3179932)
If interested, you can check out BioRuby - bioinformatics package for ruby @ BioRuby.com
Re:Ruby is beautiful (but I'm moving to Python) by omlette on Monday October 31, 2011 @09:23PM (#3180072)
can't you just use jruby? i would think java libraries are at least as good as the python ones.