Tools for scientific computation in Ruby

Scientific Computing tools for Ruby

numerical The SciRuby project is oriented towards providing computational research infrastructure for the Ruby Programming Language. SciRuby consists of a fairly large number of gems, including statsample, statsample-glm, statsample-timeseries, distribution, minimization, integration, rubyvis, plotrb, Nyaplot, MDArray, Publisci, Ruby-Band, daru, rubex, rbcuda, and NMatrix.

NMatrix has been awarded grants by the Ruby Association in 2012 and 2015, and has a goal of supplying Ruby with a robust, versatile linear algebra library with support for both dense and sparse matrices. Statsample and its related packages aim to provide Ruby with statistical analysis packages, while daru, nyaplot and gnuplotrb take care of data analysis and visualization. Nyaplot was awarded the Ruby Association Grant in 2014, Rubex and tensorflow.rb received it in 2016 and RbCUDA in 2017.

Working on SciRuby is a chance to get involved at the ground floor on a project which is viewed as critical by many Rubyists, including Ruby's creator, Matz. In fact, all the grants issued by the Ruby Association (which is headed by Matz) in 2016 (and most in 2017) have gone to scientific projects.

Since we are first and foremost a science-related project, we expect successful student projects to lead to publications. Better yet, students might get to see their code go into orbit, or used to save lives in biomedical research.

lightbulb_outline View ideas list


  • ruby
  • c/c++
  • cuda
  • ai
  • machine learning


  • Science and Medicine
  • scientific computing
  • scientific visualization
  • data-science
  • hpc
  • linear algebra
comment IRC Channel
email Mailing list
mail_outline Contact email

Ruby Science Foundation 2019 Projects

  • Alish Dipani
    Adding Magick back-end support and iruby integration to Rubyplot.
    Rubyplot only supports GR back-end, my project is to extend this support to Magick back-end, adding plot function to Rubyplot and integration with...
  • Udit Gulati
    Improving NMatrix: Adding features to NMatrix core
    NMatrix is being re-implemented by SciRuby contributors here at This re-implementation is having a...