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: Richard Shann
Subject: Re: [Denemo-devel] Running Denemo from the tcl interpreter
Date: Mon, 18 Aug 2008 21:40:21 +0100

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






reply via email to

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