Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » LuaPlus packages
LuaPlus packages [message #22158] Sat, 20 June 2009 15:23 Go to next message
gridem is currently offline  gridem
Messages: 45
Registered: August 2008
Member
I've prepared the LuaPlus packages:

1. LuaPlus - the basis package to build lua applications
2. LuaPlusCompiler - lua compiler command line utitily
3. LuaPlusInterpreter - lua interpreter command line utility
4. TestLuaPlus - simple test to demonstrate LuaPlus framework

What is Lua?
Lua is a powerful, fast, lightweight, embeddable scripting language.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

The LuaPlus provides the following functionality:

* All the power of the core Lua 5.1 work distribution.
* An easy to use C++ interface:
o The C++ interface, described below, masks many of the intricacies of core Lua's underlying low-level C API. In particular, stack management is mostly ignored. Other useful helper classes, such as management of ref'ed objects or the stack, table traversal, and table lookups are provided, dramatically simplifying the application code.
o Simplified function calling convention. Inspired by, to a limited degree, Python's use of tuples in its C API, the new function calling convention masks the stack pushing and popping associated with the low-level calling convention.
o A newly added function calling convention enables C++ to call Lua functions as if they were regular C++ functions. This goes a long way to simplifying Lua for C++ users.
o A transparent C++ functor implementation is in place, allowing function callbacks to be global or static (as they are now), class member functions, or class member virtual functions.
o Direct registering of C++ functions with LuaPlus. The registered C++ functions do not need to conform to a standard callback declaration.

For more information you may use the following links:
http://www.lua.org/about.html
http://luaplus.org/tiki-index.php?page=LuaPlus+Home+Page

Warning: I've tested these packages only on Windows platform.
  • Attachment: LuaPlus.zip
    (Size: 236.09KB, Downloaded 367 times)
Re: LuaPlus packages [message #22161 is a reply to message #22158] Sat, 20 June 2009 19:33 Go to previous messageGo to next message
gridem is currently offline  gridem
Messages: 45
Registered: August 2008
Member
From http://www.luatex.org/faq.html

Quote:

Why not use language X instead of Lua?

We needed a language that matched all of the following criteria:

* Freely available
* Embeddable integrate within pdfTeX
* Very small footprint
* Portable
* Easy to extend with pdfTeX-specific functionality
* Fun to work with

Lua was the first language to match all the criteria. The known scripting languages tend to be much too large for our use. Specifically, we have rejected Java, Perl, Python, Ruby, Scheme on one or more of those criteria.
Re: LuaPlus packages [message #22183 is a reply to message #22158] Tue, 23 June 2009 12:51 Go to previous message
gridem is currently offline  gridem
Messages: 45
Registered: August 2008
Member
I've checked on Linux Mint x32 also. It works fine.
Previous Topic: RadioButton
Next Topic: How to upload a new package to Bazaar
Goto Forum:
  


Current Time: Fri Mar 29 07:41:05 CET 2024

Total time taken to generate the page: 0.02645 seconds