From: Arlen Christian Mart Cuss Date: 2007-10-27T22:42:30+09:00 Subject: Re: Compiling to byte codes On Sat, 2007-10-27 at 22:21 +0900, JONNALAGADDA Srinivas wrote: > On 10/27/07, Nobuyoshi Nakada wrote: > > > > VM::InstructionSequence.new(source_string) > > > > Thank you very much, it worked. I have also been able to 'VM:: > InstructionSequence.compile_file' and subsequently 'eval' the same. Is > there a way I could dump this to a file, and re-load the same into another > ruby session? > Greetings, > JS How about.. File.open("something", "w") do |f| f.write vm_compiled_stuff end # later eval(File.read("vm_compiled"))