denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Running Denemo from the tcl interpreter


From: Nils Gey
Subject: Re: [Denemo-devel] Running Denemo from the tcl interpreter
Date: Mon, 18 Aug 2008 23:37:52 +0200

All I know is that the game-dev project where I compose and script(ruby) 
www.rastullahs-lockenpracht.de has Swig to use Ruby as a script-language for 
the c++ engine. So I thought that other compiled programms that have swig 
built-in can use ruby as a script-language too, to acces the C methods and 
functions from ruby.

But I'm not a programmer and I only know this from listening to our devs. They 
say: "Swig generates wrapperclasses so that we can export our c++ classes and 
ruby classes can inherit of c++ classes. Its called cross-language polymorphism"

Nils



On Mon, 18 Aug 2008 21:40:21 +0100
Richard Shann <address@hidden> wrote:

> On Mon, 2008-08-18 at 20:19 +0200, Nils Gey wrote:
> > > If we have to lose multiple scripting languages I would say that we
> > > should focus on Scheme. I don't know very much scheme at all. Its just
> > > that lilypond already uses it and it is the default language for gnu
> > > projects. 
> > 
> > I still don't know anything about the details but I want to give my word 
> > once more for Ruby because its just a very good language and very powerful 
> > but still easy to learn. 
> I've just taken a quick look at Ruby and it seems to be a interpreted
> language (like Tcl), which is not really what we need: what we need is
> some tool that connects (one or more) scripting languages up to a C
> program. Swig is this - I have run Denemo from a script in Tcl (it could
> have been Ruby) - but what we want to do is run a script from Denemo.
> There appears stuff in guile for doing this, but it will take a bit of
> working through the reference I have found is this:
> http://www.gnu.org/software/guile/docs/guile-tut/tutorial.html
> this seems to cover our case. (It starts off with the scheme calls
> denemo but seems to go on to denemo calls scheme).
> But it will need working through. I see no friendly swig type offer to
> take an interface file and give you a working system, but I think it is
> all there. We would need to write some output from generate_source.c to
> do the trick.
> Have a look and see what you think.
> 
> Richard
> 
> 
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/denemo-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]