From: Jason Roelofs Date: 2007-01-04T01:44:40+09:00 Subject: Re: Scriptable text editor with Ruby? ------=_Part_190671_8137334.1167842670706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Embed the Ruby interpreter in the text editor itself? Then just make certain functions available to Ruby and script away. Jason On 1/3/07, Dolazy wrote: > > Hi all! > > Vim and emacs are text editor that can be scripted using internal > script languages. I'm thinking of writing a platform independent text > editor myself that uses the ruby language for executing scripts. The > host application would be written in C++ (+Qt) and it would somehow be > able to interact with ruby. > > I think there are basically two ways of implementing this interaction: > - using IPC > - command line interaction (host executes the ruby script with > parameters and catches the output) > > IPC is the most powerful I think, but then again I have various options > to achieve this communication: > - TCP > - XmlRpc > - shared memory > > I'm very new to the concept of inter-process-communication and I would > greatly appreciate your insights on how I would best proceed to achieve > this interaction. > > Or maybe there is a more obvious and straightforward approach that I > overlooked? > > Best regards, > Francis > > > ------=_Part_190671_8137334.1167842670706--