From: Basile STARYNKEVITCH Date: 2002-09-27T05:16:36+09:00 Subject: Re: Ruby/Tk or mod_ruby or what ?? >>>>> "William" == William Djaja Tjokroaminata writes: William> Hi, No problem, Basile, someone has written an interface William> between Ruby and Lua :) William> (http://domingo.dad-it.com/ruby-lua.whtm) But I don't William> know the details in interfacing Ruby, Lua, and GUIS. Actually I could even make it simpler: the glue between Lua (or maybe Ruby) and my GUIS is a big 76KLOC C file machine generated (by a generator which I coded in about 1200 lines of CommonLisp). So I would only have to change the generator to use Ruby (and interface it to most of the big GTK2 API). However, the interpreter (and the C glue code) is embedded inside a C program (which calls gtk_input_add_full on the request pipe and then gtk_main_loop, waiting for requests on the pipe; then it calls the interpreter for each request line). So I could (and actually I probably would like to) replace Lua by Ruby in GUIS if I knew exactly how to reliably embed Ruby inside a C program. The whole point of GUIS is to listen for highlevel widgets requests which actually are strings passed to an interpreter (glued to the GTK2 toolkit). The main issue for me in switching in GUIS from Lua to Ruby is that I don't fully understand how to embed reliably Ruby inside an application (and I asked on this newsgroup). I also would like Ruby to avoid needing any external initial script file, so that GUIS continue to be self contained. Another issue in switching from Lua to Ruby in GUIS is: is such switch worth it? Are there really developers interested in having a GTK2 widget server capable of understanding requests as Ruby commands? If someone is actually interested in this (a Ruby listening GUIS GTK2 widget server), please email me (use the alias email below please until 1st of october 2002). -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet alias: basiletunesorg 8, rue de la Fa�encerie, 92340 Bourg La Reine, France