Can you embedd C++ into Ruby?

Chris wrote:


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.


Posted via

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