nobat gmail.com> wrote:
> For its simplicity, power, small footprint and particularly its speed,
> we would like to integrate Lua in our application suit. We have two
> options:
> First: external gluing (the same way as Tcl or Python)
> Second: Internal gluing (probably using Lua SDK via ISO-C-Binding)
> I'd like to know if some of you have experience / suggestion on
> combining Lua (as a glue language) and Fortran applications?
> I'd appreciate all inputs / thoughts on this
I don't know if it is helpful, but like others (eg the developers of the
gimp image manipulation program, the SND editor, and I guess Autocad) I
embedded a Scheme interpreter into a Fortran program for that. I ported
Tinyscheme as a Fortran 95 module, which took about a week. It is
probably not as fast as Lua (though you could look at the Shootout
results), and won't allow you to take advantage of bindings to other
libraries (say wxLua, lua-gtk). But the interpreter is really small
(adding ~25K to the executable), it is completely portable along with
your existing code, the FFI is straight to Fortran, you can define
your own Fortran based data types within the language.
Cheers, David Duffy.
(you can have a look at my implementation at
http://www.qimr.edu.au/davidD)
--
| David Duffy (MBBS PhD) ,-_|\
| email: davidD@
qimr.edu.au ph: INT+61+7+3362-0217 fax: -0101 / *
| Epidemiology Unit, Queensland Institute of Medical Research \_,-._/
| 300 Herston Rd, Brisbane, Queensland 4029, Australia GPG 4D0B994A v