Afficher un message
Vieux 11/03/2008, 01h12   #2
Jan Dvorak
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: C / C++ extensions: need all the tips/tricks you can give me

On Monday 10 March 2008 15:22:51 Emmanuel Oga wrote:
> Hi!
>
> I'm looking for all available sources of information on developing ruby
> extensions. I'm not a C language expert, but I've worked some years ago
> as a junior C/C++ developer. For that reason, I think I could get in
> business if I find the good resources inside the mess of google results
> for "writing ruby C extensions" query...
> ...
> P.S.2: I Know that the main source of information is on the ruby source
> itself and the txt files bundled. I also know of the Pickaxe chapter on
> this. The problem is that, being no C expert, is a little difficult to
> me to learn from those sources. That's why I would also appreciate your
> recommendations on good / concise sources of C related knowledge.


Well, you've written pretty much everything anyone could tell you on a generic
question about ruby extension programming. The ruby C API is pretty
straightforward, it is documented in file README.EXT which comes with ruby
source, and as you said yourself you can find many sources on the subject all
over the net. So far i wrote two extensions and i can't think of any serious
problem or a tip that wouldn't be mentioned in the docs.

Really the best way to learn this is to just start coding, and see if you'll
hit any problems, then you can ask specifically, and i'm sure everyone here
will try to you.

Also, if you'll start exercising your C skills, remember that C and C++ are
two radically different languages, that share common syntax by mere
accident

Jan

  Réponse avec citation
 
Page generated in 0,06631 seconds with 9 queries