From: Eric Mahurin Date: 2006-07-28T06:25:40+09:00 Subject: converting some autogenerated ruby code to C One of the next things I want to do in my grammar package is to give it a performance boost by generating C code instead of ruby code. Right now the parsers I generate are a set of a few methods with giant expressions in each. I would like to try improving the performance by generating and compiling C code instead. My preference would be to convert my small subset of ruby code to C code (easily have an option to use pure ruby or use ruby/C), but I could also autogenerate C code instead. Anybody have any opinions/ideas about what approach I whould take? I saw a rubyToC package on rubyforge that I could possibly use, but I can't seem to find any good documentation/examples. It also looks like it has some type inference that I don't want (I take advantage of duck typing quite a bit). rb2c looks to be another option. Opinions? Eric