Magicloud M. wrote:
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.
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.
for i in 0…10 do
but when it is
puts ‘blah’ #note the different quotation marks used interchangably
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.