Recipe 22.1. Writing a C Extension for Ruby
Credit: Garrett Rooney
Problem
You want to implement part of your Ruby program in C. This might be the part of your program that needs to run really fast, it might contain some very platformspe...
Recipe 22.2. Using a C Library from Ruby
Credit: Garrett Rooney
Problem
You'd like to use a library in your Ruby program, but the library's implemented in C and there are no bindings.
Solution
Write a Ruby extension that wraps the
C ...
Recipe 22.3. Calling a C Library Through SWIG
Credit: Garrett Rooney
Problem
You want to use a C library in your Ruby code, but you don't want to have to write any C code to do it.
Solution
Use SWIG to generate the C extension for you. S...
Recipe 22.4. Writing Inline C in Your Ruby Code
Credit: Garrett Rooney
Problem
You want to implement small portions of your program in C without going to the trouble of creating a C extension to Ruby.
Solution
Embed C code right in ...
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.