Questions tagged [yarv]

YARV (Yet another Ruby VM) is a bytecode interpreter for the Ruby programming language developed by Koichi Sasada and has become the official Ruby interpreter for Ruby 1.9.

25 questions
2
votes
2 answers

Is it possible to disable YARV's global interpreter lock?

This is more curiosity than anything else (I should totally drop that and try jRuby), but is it possible to disable YARV ruby's global interpreter lock and any other associated locks? I assume this would "void your warranty" as some of YARV Ruby's…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
1
vote
1 answer

How to generate bytecode in Ruby 1.9?

How can I generate byetcode from Ruby 1.9?? My intent is to generate bytecode not the source code and ship it along with my application package. I am aware of the JRuby approach but I am facing certain issues there
user486330
  • 31
  • 1
  • 3
1
vote
1 answer

Ruby bytecode debugger

I have been able to extract the YARV bytecode list of instructions from a "compiled" ruby file using RubyVM::InstructionSequence#disassemble. Now I would like to debug the code instruction by instruction. Is there any debugger that let me do…
user1618465
  • 1,813
  • 2
  • 32
  • 58
1
vote
0 answers

How thorough is GC.start in MRI Ruby 2.0?

In MRI Ruby 2.0, how thorough is GC.start? Does it try to garbage collect all objects that no longer have a reference to them? Or does it only GC objects if it thinks it's necessary? I'm trying to track the number of objects of a certain class I…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
0
votes
1 answer

What is the output of Ruby's YARV?

I'm going through Pat Shaughnessy's Ruby Under a Microscope, and trying to supplement myself with up to date knowledge of how Ruby executes your program. Full disclosure, I have not completed the book yet, but am trying to understand as I go along.…
Jessica
  • 43
  • 6
0
votes
1 answer

How can I recover YARV-compiled Source Code of ruby

I have developed an app using Rhomobile, which is a cross-platform native mobile applications using web-technologies: HTML, CSS, JavaScript and Ruby, but unfortunately now I don't have the source code as I've lost it, but I have the apk that I built…
hanan
  • 532
  • 2
  • 7
  • 23
0
votes
1 answer

How to diagnose/trace "sendsig: useracc failed." problem in HP-UX

I am trying to compile Ruby 1.9.1-p0 on HP-UX. After a small change to ext/pty.c it compiles successfully, albeit with a lot of warning messages (about 5K). When I run the self-tests using "make test" it crashes and core-dumps with the following…
graza
  • 383
  • 2
  • 8
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
3 answers

Disabling Ruby 1.9.x's YARV compiler

There is a very noticeable difference in application initiation time between running my specs from the command line with ruby 1.9.x vs. 1.8.7. My application initiates much faster with ruby 1.8.7 than with ruby 1.9.1 or 1.9.2. The application…
Sean McCleary
  • 3,690
  • 4
  • 33
  • 43
0
votes
1 answer

Java method that returns reachable objects

Is there a Java equivalent for following Ruby method ? ObjectSpace.reachable_objects_from: This method returns all the objects directly reachable from the given object. Reference: Look for ObjectSpace.reachable_objects_from in the following…
Shree
  • 798
  • 5
  • 13
1
2