Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7637437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:56:22+00:00 2026-05-31T07:56:22+00:00

I was just listening to a lecture at coursera ( https://www.coursera.org/saas/ ) and the

  • 0

I was just listening to a lecture at coursera (https://www.coursera.org/saas/) and the professor was saying that everything in Ruby is an object and that every method call is calling a send method on an object, passing some params to it. This includes numbers, arrays and other basic classes.

I went on Google and looked for efficiency benchmarks and I found the following: http://benchmarksgame.alioth.debian.org/u32/which-programs-are-fastest.html

While it’s not shocking that a compiled language is faster than an interpreted one, the performance difference between (Ruby, Python) and Java for instance is shocking.

Even if there’s a way to compile ruby code (I have not researched this topic), I think the efficiency problem would still be there due to the core “problem” in the language:
Basic operations are being too heavy: 1+1 takes many more CPU cycles to complete.

I love Ruby. I love the high level aspect of meta programming and I think this is where the future should be heading, and I agree, sometimes we need to compromise certain thing in order to be more effective: I don’t see myself optimizing my code in assembly in order to save a few extra milliseconds. However, when we do 1+1 in C, it’s not exponentially increasing the amount of time a basic operation is taking!

My question is how are you guys dealing with operation intensive programs? We have a Ruby on Rails project we have been developing for about a year now and we’re at a point we’ll start doing some machine learning with geolocation traversal and prioritization.

I hope you understand my concerns and offer reasonable suggestions 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:56:23+00:00Added an answer on May 31, 2026 at 7:56 am

    This is not such a bad question as it seems looking at the comments. The only problem is the wrongly used word exponential, but the described problem is real.

    I have similar Ruby usage patterns as you describe – I’m doing a lot of natural language processing in Ruby, which involves machine learning as well.
    I use the following techniques to overcome Ruby performance issues:

    1. Use C libraries with Ruby interface whenever applicable. E.g. I would not use Ruby implementation of SVM or decision trees, since there are much faster implementations in C available.

    2. Write my own Ruby wrappers for C implementation if they are not available. Usually this is not much problematic – I use RubyInline gem extensively to glue Ruby with C code.

    3. Patch Ruby memory management or manually control its garbage collector.

    4. Consider JRuby as your Ruby platform – you would get easy access to fast Java libraries for machine learning (Weka) and the like and general performance of your application would be preserved or even better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just listening to episode 57 of Software Engineering Radio (TRANSCRIPT: http://www.se-radio.net/transcript-57-compiletime-metaprogramming )
i am just trying to crawl a single page start_urls = ['https://www.mileageplusshopping.com/shopping/b____alpha.htm'] but redirecting
Just listening to this week's podcast and thought it would be nice to group
I just finished listening to a very eye-opening podcast on Hanselminutes about the definition
I just installed Nginx listening on 8083 I can get a HTTP response when
Just looking for the first step basic solution here that keeps the honest people
Just getting my head around Ruby metaprogramming. The mixin/modules always manage to confuse me.
Just how much slower are events? I have written a streaming XML parser (that
I've just finished listening to the Software Engineering radio podcast interview with Scott Meyers
I just want to experiment writing a little app that will let you know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.