This page is a central place for which people from both the Lua community and elsewhere can go to find information about using Lua with other languages.
- [The Lua 5.1 Reference Manual: The Application Program Interface] (5.1) describes Lua's native C API for calling Lua from C and vice-versa.
- The command-line/pipe interface (e.g. Lua
os.execute/io.popen) provides one of the simplest methods for interfacing between languages in different processes. Example:
lua -e 'print [[print "hello"]]' | lua -
- "Code wrappers" in LuaAddons wrap the C API to simplify the binding to various languages, including C/C++. See also BindingCodeToLua.
- "Calling interfaces" in LibrariesAndBindings allow calling Lua from other languages and calling other languages from Lua, binding at run-time.
- LibrariesAndBindings links to various communication and remote procedure protocols such as XML-RPC, CGI/HTTP, COM, CORBA, and socket interfaces. These are typically out-of-process calls.
- "Alternative implementations of Lua" in LuaAddons allow compiling Lua down to other virtual machines for running Lua natively on other platforms.
These are equivalent pages for other languages that bind to Lua.
RecentChanges · preferences
edit · history
Last edited July 6, 2009 5:33 pm GMT (diff)