From: Ferenc Engard Date: 2002-08-27T09:20:40+09:00 Subject: Re: interactive ruby/tk app (was: ruby/tk internals) Phlip wrote: > > "Ferenc Engard" wrote: > > > #!/usr/bin/ruby > > require "tk" > > ctx=binding() > > Tk::INTERP._eval("set a blahblah") > > eval 'Tk::INTERP._eval("puts $a")',ctx > > Why are you rooting around under the hood? If you want Tcl you know where to > get it. Believe or not, I love ruby. :-p I have always loved scripting languages, and used tcl many times. (Unfortunately, I didn't code anything complicated in Tk). Now I have found ruby, trying to code programs with GUI, and the obvious GUI choce is Tk for me. I am actually writing a network traffic meter, and if I write it only with ruby/tk objects, it is painfully slow. Yes, I could write it in tcl, but I want it to write in ruby, only (?) the canvas' object handling needs some performance tuning, which I can easily code in tcl. Anyway, the question above interests me irrespectively of my actual problem. > Answering why you think you need to mess with systems private to RubyTk will > help us answer the questions. Another task which needed to access tcl directly was require()ing tcl/tk libraries. I am happy with using two (great) languages to help each other; ruby is great in its well-designed OO support, tcl is better/faster for me manipulating tk widgets. Circum