Lua Algorithms and Data Structures

Foreword, by Cameron Laird Lua and Lightroom, by Mark Hamburg Contributors
I Programming Techniques
1 Lua Per-Thread Library Context Doug Currie
2 Lua Performance Tips Roberto Ierusalimschy
3 Vardump: The Power of Seeing What’s Behind .Tobias Sulzenbr uck and Christoph Beckmann
4 Serialization with Pluto Ben Sunshine-Hill
5 Abstractions for LuaSQL Tomas Guisasola Gorham
6 Boostrapping a Forth in 40 Lines of Lua Code Eduardo Ochs
7 Effecting Large-Scale Change (with little trauma) using Metatables Sergio Alvares Maffra and Pedro Miller Rabinovitch
II Design Techniques
8 MVC Web Development with Kepler Andre Carregal and Yuri Takhteyev
9 Filters, Sources, Sinks, and Pumps Diego Nehab
10 Lua as a Protocol Language Patrick Rapin
11 Lua Script Packaging Han Zhao
12 Objects, Lua-style Reuben Thomas
13 Exceptions in Lua John Belmonte
III Algorithms and Data Structures
14 Word Ladders Gavin Wraith
15 Building Data Structures and Iterators in Lua Luis Carvalho
16 A Primer of Scientific Computing in Lua Luis Carvalho
17 Complex Structured Data Input Julio M. Fernandez-Dıaz
18 Lua Implementations of Common Data Structures Matthew M. Burke
19 Tic-Tac-Toe and the Minimax Decision Algorithm Rafael Savelli and Roberto de Beauclair Seixas
IV Game Programming
20 Using Lua in Game and Tool Creation
Konstantin Sokharev and Vadim Groznov
21 A Dynamic and Flexible Event System for Script-Driven Games Robert Oates
22 Lua for Game Programming Steve Gargolinski
23 Designing an Efficient Lua Driven Game Scripting Engine .Nicolas Peri
V Embedding and Extending
24 Enhanced Coroutines in Lua .Patrick Rapin
25 Using Lua in Jeremy Darling
26 Porting Lua to a Microcontroller Ralph Hempel
27 Writing C/C++ Modules for Lua
Ralph Steggink and Wim Couwenberg
28 Interpreted C Jerome Vuarand

Preface
It gives us great pleasure to publish this collection of Lua gems. Not only does it record some of the existing wisdom and practice on how to program well in Lua, but it also reflects the maturity of the Lua community. It is gratifying to see that Lua has motivated other people to learn it well and to share their knowledge with other users. In well-written articles that go much beyond the brief informal exchange of tips in the mailing list or the wiki, the authors share their mastery of all aspects of Lua programming, elementary and advanced.
Producing this book has required several steps. In response to a call for contributions, we received over 70 abstracts, selected 43, and received full versions for 28 of these.

Foreword by Cameron Laird
When I need a programming language that’s as easy as possible to embed,I choose Lua. Lua isn’t just supple, free, portable, and compact, though; it’s  lso powerful — and to get the most out of it, I’m glad I have Lua Programming Gems.
I need to explain that I mean something specific by that. Most of my reading is on the ’Net: I look up references, I read tutorials for unfamiliar material,I moderate a half-dozen Wikis, and I chat about specific techniques with colleagues on-line. My consumption of books has nose-dived. Lua Programming Gems is a book worth reading, though: its individual chapters get across ideas that simply aren’t explained anywhere else.
Lua Programming Gems emphasizes practicality in a way I like. While the six authors in Part III certainly employ classroom concepts correctly in their examinations of “Algorithms and Data Structures”, they do it all with working Lua code. The same pattern is apparent throughout Lua Programming Gems:it’s filled with ideas likely to help me in my next programming project.

Lua and Lightroom Mark Hamburg
Founder, Adobe Photoshop Lightroom When we started work on the project that would become Adobe Photoshop Lightroom, we knew we wanted to make scriptability an important part of our story, so early on we reviewed the usual suspects. What drew us to Lua was its combination of simplicity, power, ease of embedding, and relatively high- performance. Having a straightforward license helped too when it came time to talk to Adobe’s lawyers. Personally, as an old Scheme fan, I was drawn to its first-class closure support. I also found the coroutine system intriguing. The relative minimalism also resonated with a back-to-basics attitude that had us weaning ourselves away from intensive C++ usage and back toward C.


Si le lien ne fonctionne pas correctement, veuillez nous contacter (mentionner le lien dans votre message)
Lua programming gems (180 KO) (Cours PDF)
Cours lua

Télécharger aussi :

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *