From: Christoph Kappel Date: 2010-02-14T01:25:30+09:00 Subject: Re: Getting started with the C API ------=_Part_3963_999836903.1266078322932 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Basically you can use anything that enlists the API for ruby extensions, I = had a hard time figuring all out when embedding ruby into my window manager (subtle) and writing the C e= xtension: Here are some of my favorite links beside the pickaxe: http://www.eqqon.com/index.php/Ruby/Ruby_V1.9_C_Extension http://macournoyer.wordpress.com/2008/04/16/ruby-to-c-a-couple-snippets/ http://metaeditor.sourceforge.net/embed/ (For embedding, outdated but still= helpful) And for building stuff: http://ruby-doc.org/stdlib/libdoc/mkmf/rdoc/index.html Many other things need to be checked in the ruby doxygen or even worse in t= he source code for stuff like this: Wbr, Christoph http://subforge.org/blogs/show/1 ---- On Sat, 13 Feb 2010 16:25:46 +0100 Marvin Humphrey wrote ----=20 >Greets,=20 >=20 >I've been teaching myself Ruby using David Black's book, "The=20 >Well-Grounded Rubyist". 5 chapters in or so, things are going well.=20 >However, things would be going even better if I was able to get=20 >started on the project that's motivating my course of study: there's a=20 >C library I'd like to write Ruby bindings for.=20 >=20 >The Black book, while appropriate in pace and tone for an experienced=20 >programmer, doesn't cover any sort of Ruby C API. The pickaxe book=20 >does, but before I go and buy a copy of that, I'd like to know if=20 >those pickaxe chapters are really the canonical reference. That seems=20 >weird.=20 >=20 >What I'm looking for is the analogue to these pages:=20 >=20 > http://perldoc.perl.org/perlxstut.html=20 > http://docs.python.org/3.1/c-api/index.html=20 > http://java.sun.com/docs/books/jni/html/jniTOC.html=20 >=20 >>From what I can tell, the closest thing Ruby has to that is a raw=20 >Doxygen dump...=20 >=20 > http://www.ruby-doc.org/doxygen/current/=20 >=20 >... but that's not much better than just spelunking the source code,=20 >because it doesn't give you any idea where to get started.=20 >=20 >I know the first edition of the pickaxe book is online, but I don't=20 >like to waste time learning from dated materials.=20 >=20 >Where should I be looking?=20 >=20 >Marvin Humphrey > ------=_Part_3963_999836903.1266078322932--