Author: David DuffyDavid Duffy Date: Sep 18, 2008 18:23
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.
|