Questions tagged [ruby]

Ruby is an open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in 1993.

Ruby is an open-source dynamic object-oriented interpreted language that combines the good bits from Perl, Smalltalk and Lisp. It supports multiple programming paradigms. Ruby's primary purpose is to "help every programmer in the world to be productive, and to enjoy programming, and to be happy." Ruby focuses on simplicity and productivity.

Ruby was initially conceived on February 24, 1993 by Yukihiro Matsumoto ('Matz') and version 1.0 was released in 1996. The current stable version is Version 2.0.0, released on its twentieth anniversary on February 24, 2013.

Ruby's mindshare spiked around 2005 due to Ruby on Rails, an MVC (Model, View, Controller) framework for building web applications and usage continues to grow as of 2012.

Ruby supports multiple programming paradigms, including functional, object oriented and imperative. It also has a dynamic type system and automatic memory management; it is therefore similar in varying respects to Smalltalk, Python, Perl, Lisp, Dylan, and CLU.

You can download the Ruby source code from http://www.ruby-lang.org/en/downloads/ or from GitHub.

Alternative Ruby implementations

  • JRuby, an implementation of Ruby on top of Java with access to the JVM
  • Rubinius, an implementation in C that is used for higher performance
  • Ruby Enterprise Edition, a branch of MRI Ruby made for efficiency
  • MacRuby, an implementation of Ruby on Apples Objective-C and Cocoa frameworks
  • MagLev an implementation on top of VMWare's GemStone virtual machine
  • IronRuby is an implementation of Ruby on top of Microsoft's .NET CLR/DLR platform
  • Cardinal is an implementation of Ruby for the Parrot Virtual Machine
  • Topaz is an implementation of Ruby written in Python, on top of RPython
  • RubyMotion is an implementation of Ruby to develop native iOS and macOS applications

Knowledge Base

Where to start

Interactive Ruby learning

  • Codeacademy - Learn the fundamentals of Ruby and dynamic programming

Tools

Ruby Programming Books

Free Not Free

More information:

Reference: adapted from Stack Overflow SE

7 questions
13
votes
3 answers

Ruby as a statistics workbench

This is also a question that relates very much to Python as a statistics workbench and excel as a statistics workbench. I know there is a huge discussion about Ruby versus Python but this is not the point on this question. I thought that Ruby being…
Oeufcoque Penteano
  • 756
  • 1
  • 12
  • 23
6
votes
1 answer

Logistic regression algorithm in Ruby

I have been using R to calculate logistic regression with many independent variables for a Ruby on Rails web application. However, I can no longer import data from the database to R using RPostgreSQL. The web host has stopped allowing insecure…
Eric
  • 171
  • 5
6
votes
1 answer

What is the significance of a linear dependency in a polynomial regression?

I'm trying to find the best polynomial regression for a dataset where the polynomial's power is between 2 and 10. So the regression can have an x10 term at most in it. The dataset itself is simply a set of x and y pairs as…
Migwell
  • 273
  • 2
  • 11
4
votes
1 answer

How to detect feature value combinations with outstanding win percentages

I am building ruby on rails (ActiveRecord) horse racing application. One of the features that I would like to include in the application is the ability to identify meaningful "Angles". For example, given the following facts: Horse A has raced 50…
Mutuelinvestor
  • 427
  • 2
  • 5
  • 12
3
votes
0 answers

How to make predictions from a logistic regression by hand

Thanks for looking at this, I've been tearing my hair out for a day or so now. I have done a multiple variable logistic regression in R, and obtained my coefficients. I am able to make predictions for the training data in R without problem. But now…
2
votes
2 answers

rb-libsvm - getting confidence of a prediction

I'm using rb-libsvm and the RBF kernel to make classifications. svm.predict(measurements) returns either -1.0 or 1.0. Is there a way to get a confidence for this classification? I am interested in throwing out low-confidence classifications and…
Austin Richardson
  • 928
  • 1
  • 8
  • 10
1
vote
3 answers

Modeling a Poisson process with 10000 events per minute

I am trying to model a system that generates events modeled by a Poisson process. I am using the following ruby code: INTERVAL = 0.005 LAMBDA = 167.0 events = Hash.new(0) def f(x, lambda) 1 - Math.exp(-lambda * x) end random_gen =…
simao
  • 303
  • 3
  • 8