From: Eric Smith Date: 2004-03-02T00:39:54+09:00 Subject: Re: embedding? I wrote: >> I've written some simulators in C that use Tcl and custom commands as >> an embedded debugger language. Tcl works OK, but I don't like the >> language very well. It's simple, but not very elegant shasckaw writes: > Have you tried Lua instead of Tcl? I've heard that even pythoners > think lua is better than python for embedding. I don't know if ruby > can easily be embedded, but I'm sure it's the case for Lua. Actually I have looked at Lua. The syntax makes it less than ideally suited for my reqirement. For instance, when a user wants to examine a dozen memory locations starting at octal location 2074, he or she will want to type examine 02074 12 or maybe examine 02074, 12 but not examine (02074, 12) The first syntax is easily achieved with Tcl but as far as I can tell, only the third works in Lua. It looks like the second and third should both work in Ruby. I wrote: >> Is there any documentation or example code showing embedding Ruby in >> a C program? I just discovered the "Extending Ruby" chapter of "Programming Ruby", and it seems to have the information I was looking for. I wrote: >> Is it possible to create multiple independent Ruby interpreter contexts? I still haven't found any way to do that.