Questions tagged [rubinius]

Rubinius is an implementation of the Ruby programming language using LLVM.

Rubinius is an implementation of the Ruby programming language.The Rubinius bytecode virtual machine is written in C++, incorporating LLVM to compile bytecode to machine code at runtime. The bytecode compiler and vast majority of the core classes are written in pure Ruby

76 questions
1
vote
2 answers

Rubinius + Puma doesn't process requests concurrently

I have simple Sinatra based application which freezes each request for 30 seconds: get '/test' do puts "#{@@counter}, #{Thread.current.object_id}" 1.upto(30) {|i| sleep 1;puts "#{Thread.current.object_id}, #{i}"} [200,…
1
vote
1 answer

How do I set the language mode for Rubinius?

I'm trying to set the language mode in Rubinius, and it doesn't seem to work. I tried using the switch suggested by the Rubinius team in April 2012 in https://stackoverflow.com/a/10165964/38765 $ ruby --version rubinius 2.0.0.n203 (1.9.3 4d75a146…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
1
vote
1 answer

jRuby and Rubinius support parallel computing, but what about gems that don't support this?

What I'm trying to understand is, practically speaking, how much benefit do I get from the parallel computing support in jRuby / Rubinius? A lot of ruby libraries keep track of global internal state. Is there any way to deal with these libraries, or…
Vlad the Impala
  • 15,572
  • 16
  • 81
  • 124
1
vote
2 answers

Can't gem install Celluloid using Rubinius 2.0.0

I have rvm set to # .rvmrc rvm use rbx-2.0.0-rc1 and it sets the version correctly $ ruby -v rubinius 2.0.0rc1 (1.8.7 release 2012-11-02 JI) [x86_64-apple-darwin12.2.1] when I try to $ gem install celluloid -v '0.12.3' I get the error ERROR: …
code0100fun
  • 180
  • 1
  • 11
0
votes
1 answer

Preloading Method Dispatch Cache via Early Calls?

Caching is the usual strategy that VMs use to make dynamic method dispatch rival that of static "v-table" based method lookup. Can we take advantage of this to intelligently "pre-call" methods on various objects we expect an application to create,…
0
votes
1 answer

Rubinius does not recognize methods in the File class

I have a project that has alot of file manipulation. I am trying out Rubinius because I need to be able to compile the code. When I try to run code that includes if Dir.exist?(file_path) I get this error: NoMethodError: undefined method `exist?'…
Jeremy Smith
  • 14,727
  • 19
  • 67
  • 114
0
votes
0 answers

Connect to MySQL Database using gcloud console by shell script

I want to write a shell script where I will enter any gcloud side environment and I will have multiple docker images that will be running. I will enter as a bash mode in any container and then run the gcloud connect MySQL command which is nothing…
Abhi
  • 41
  • 2
  • 10
0
votes
1 answer

How can I do a thread dump in rubinius?

I want to do a thread dump of my rubinius app to help investigate an apparent deadlock issue. My app is using rbx-3.21, and I'd prefer not to change that if possible. I've tried doing a pure ruby solution like the one described here, but the thread…
Joe Douglas
  • 136
  • 4
0
votes
2 answers

Do all Ruby interpreters follow the same Ruby syntax?

Do all Ruby interpreters follow the same Ruby syntax defined in www.ruby-lang.org? MRI YARV Rubinius JRuby IronRuby Cause it is the interpreter that defines the Ruby language. Does that mean one interpreter could add a feature/syntatic sugar that…
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
0
votes
1 answer

Installing mysql gem on rubinius

I have tried installing MYSQL gem on fedora using rubinius but it keeps throwing failed to build gem's native extension and that I should install development tools first. I am on Fedora 22 and I already have mysql-devel library installed. What…
0
votes
1 answer

undefined method `to_sym' on nil:NilClass on rubysl/net/http/http.rb caused by Rails Geocoder

So I've working on a website on Ruby on Rails that uses the Geocoder gem. Here is my implementation: def User < ActiveRecord::Base before_save :geocode geocoded_by :address do |usr, geocode_results| if geo = geocode_results.first …
cozos
  • 787
  • 10
  • 19
0
votes
1 answer

Error when using binding_of_caller gem with Rubinius 2.1.0

Using binding_of_caller in the gem list on a Rubinius (2.1.0) environment triggers the following error, once the server launch: NoMethodError at / undefined method `caller_locations' on an instance of ActionController::RoutingError. (Screenshot:…
Hassen
  • 6,966
  • 13
  • 45
  • 65
0
votes
1 answer

NoMethodError using order intermittently

I am getting the following error in a production rails application intermittently NoMethodError (undefined method `values' on priority:Symbol.): app/controllers/things_controller.rb:33:in `index' The offending line looks like this: @things =…
Slicedpan
  • 4,995
  • 2
  • 18
  • 33
0
votes
1 answer

Where is Rubinius' Actor API?

I got the following output from pry when trying out the example from http://rubini.us/doc/en/systems/concurrency/ with Rubinius 2.2.9: 2.1.0 (main):0 > RUBY_VERSION => "2.1.0" 2.1.0 (main):0 > RUBY_PATCHLEVEL => 0 2.1.0 (main):0 > RUBY_PLATFORM =>…
coudy
  • 13,218
  • 5
  • 23
  • 26
0
votes
1 answer

Rails undefined method for ActionView::Helpers::TagHelper

I am getting an undefined method error when running rails on a preproduction machine. The error message looks like this: undefined method `content_tag' for module `ActionView::Helpers::TagHelper' (in…
Slicedpan
  • 4,995
  • 2
  • 18
  • 33