Can you embedd C++ into Ruby?

Chris wrote:

Hi,

i have a computationally intensive section of my ruby code that i'd like to run as C++ code. I've heard that it's easily possible but i don't know how to do it. Does anyone have a clue? Any help is appreciated.

Thanks Chris

-- Posted via http://www.ruby-forum.com/.

Wrong forum. And In general the protocol is to do some searching (google groups, delicious tags, the pickax and Agile webdev books) first. I think you want to have a look at writing extconf.rb and C extensions directly, or using SWIG, Ruby-DL, RubyInline, etc

http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/5b5168f38bee703c?hl=en