From: "Shot (Piotr Szotkowski)" Date: 2009-11-12T07:48:53+09:00 Subject: Re: Ruby Inline over two times slower under 1.9 than under 1.8? --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Roger Pack: >> =E2=80=94 Shot, who=E2=80=99s off to play with RubyToC now. :) =E2=80=A6and who can=E2=80=99t, for some reason, get the canonical example =66rom http://zenspider.com/ZSS/Products/RubyInline/ to work. First, it couldn=E2=80=99t find Inline::Ruby::RubyToC, then some grepping told me =E2=80=98RubyToC is dead, use RubyToAnsiC=E2=80=99, but when I requ= ired ruby_to_ansi_c and switched the RubyToC.translate call to RubyToAnsiC.translate I get the following: /home/shot/opt/ruby-1.8.7-svn/lib/ruby/gems/1.8/gems/RubyToC-1.0.0.5/lib/ty= pe_checker.rb:129:in `bootstrap': undefined method `add' for # (NoMethodError) > Shameless plug: Also checkout http://github.com/rdp/crystalizer Checked it and it does seem to work under my hand-compiled 1.8.7-p202+r22308, but an attempt to install it under 1.9.1-p243+r22308 first ended in it trying to look for /home/shot/opt/ruby-1.9.1-p243/include/ruby-1.9.1/node.h (while node.h is in /home/shot/opt/ruby-1.9.1-p243 and /home/shot/opt/ruby-1.9.1-p243/include/ruby-1.9.1/ruby-1.9.1-p243) and once I symlinked one of them to the required location I get $ RUBY_SOURCE_DIR=3D/home/shot/opt/ruby.git gem install crystalizer Building native extensions. This could take a while... ERROR: Error installing crystalizer: ERROR: Failed to build gem native extension. /home/shot/opt/ruby-1.9.1-p243/bin/ruby extconf.rb install crystalizer erro= r: undefined method `each' for # Gem files will remain installed in /home/shot/opt/ruby-1.9.1-p243/lib/ruby/= gems/1.9.1/gems/rubynode-0.1.5 for inspection. Results logged to /home/shot/opt/ruby-1.9.1-p243/lib/ruby/gems/1.9.1/gems/r= ubynode-0.1.5/ext/rubynode_ext/gem_make.out I have the v1_9_1_243 tag checked out in the /home/shot/opt/ruby.git repo, so it should work; also, irb says this Ruby version does have String#each=E2=80=A6 =E2=80=94 Shot --=20 IMO, the primary historical significance of Unix is that it marks the time in computer history where CPUs became so cheap that it was possible to build an operating system without adult supervision. [Russ Holsclaw, afc] --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkr7P1AACgkQi/mCfdEo8UpoBACeLMxfPoqJlj+b1YyS6qe+rjj7 Zg4AoLmHjnl/RhwFOhIVYxCjCB6s+GmL =Ufat -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--