Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am looking for a comprehensive, online, documentation resource regarding the embedding of the Ruby interpreter into C or C++ programs, and the API(s) for that purpose.

The section on this in the Pickaxe book is quite good, but my version refers to Ruby 1.8 and I am interested in the range of current ruby versions i.e. 1.8.x, 1.9.x, and 2.0, and there are a number of differences between the handling of embedding across that range of versions.

For reference, the Ruby interpreter in question is the main Ruby interpreter from http://www.ruby-lang.org/en/

I have found on stackoverflow a number of specific questions related to aspects of this (error handling) (state reset) (c++): what I seek is the documentation, if any, from which such answers were gleaned!

There is a Ruby 1.8 and Unix centric guide, too.

There is documentation for the C API of Ruby, used in writing extensions, and also in embedding. This can be found on github (ruby 2.0) and (ruby 1.9) but handling variations in version seems left to the reader

share|improve this question

This question has an open bounty worth +50 reputation from grrussel ending in 18 hours.

This question has not received enough attention.

1 Answer

Not quite what you are looking for, I guess, but have you had a look at mruby? A ruby version specifically meant for embedding into C code. This might be easier to work with than the full MRI ruby interpreter.

share|improve this answer
Looks like that interpreter is still very much a work in progress. Of course, it would be of great interest once finished and shipping! – grrussel Jun 19 at 6:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.