From: Lloyd Linklater Date: 2007-08-23T03:57:40+09:00 Subject: Re: Is there a real thing that can convert ruby scripts to c Magicloud Magiclouds wrote: > Dear all, > As I read ruby's code, I think it is possible to convert ruby > scripts to c codes. But I searched on www.rubyforge.org, and got two > tools which do not do real convertion. By real convertion, I mean to use > c like "extend ruby with c". > The benifits, I think, are more easily interacting with libs writen > by c, especially something like glib or qt. And more stable, e.g. > rcairo, is very unstable. > > Thanks. I think that this would be an immense and thankless task. If you were to write code that was near C in syntax it might be easier. e.g. for i in 0..10 do puts 'blah' end but when it is "5".to_i.times do puts 'blah' #note the different quotation marks used interchangably end it is more cryptic. Add the oddities of hashing and the like and the task becomes HUGE and thankless. In short, do not expect to see one anytime soon. -- Posted via http://www.ruby-forum.com/.