From: Dave Taylor Date: 2004-03-01T23:49:46+09:00 Subject: Re: embedding? On Sun, 29 Feb 2004 15:12:23 +0100, shasckaw wrote: > Eric Smith 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 Ruby looks like a much better language. >> >> Is there any documentation or example code showing embedding Ruby in >> a C program? A Google search turns up some C++ stuff, but it didn't >> seem very helpful. >> >> Is it possible to create multiple independent Ruby interpreter contexts? >> >> Thanks, >> Eric >> >> [If you want to reply by private email, please remove the obvious >> spam-proofing from my email address.] > 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. > > Lio > Lua is very easy to embed into C... There is a few good tutorials on the subject (one of which I am writing). If your interested in the Lua route - go to http://lua-users.org/wiki/SimpleLuaApiExample for a simple example of embedding Lua in C. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/