Lua: Tiny Embeddable Scripting that Doesn't Suck
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Lua: Tiny Embeddable Scripting that Doesn't Suck

on

  • 6,846 views

From Strange Loop 2010: ...

From Strange Loop 2010:

This talk shows WHY to use Lua (as opposed to the zillion other scripting languages) for embedded scripting inside of larger, non-Lua projects. Lua is safe, fast, simple, learning, and more popular that you might expect.

Video of this talk is available at http://kylecordes.com/2010/lua-strange-loop

Statistics

Views

Total Views
6,846
Views on SlideShare
4,527
Embed Views
2,319

Actions

Likes
4
Downloads
44
Comments
0

8 Embeds 2,319

http://kylecordes.com 2264
http://lanyrd.com 22
http://irr.posterous.com 14
http://lanyrd.dev 7
http://translate.googleusercontent.com 5
http://webcache.googleusercontent.com 4
http://static.slidesharecdn.com 2
http://www.zhuaxia.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Lua: Tiny Embeddable Scripting that Doesn't Suck Presentation Transcript

  • 1. Lua: Tiny Embeddable Scripting that Doesn’t Suck Kyle Cordes Strange Loop 2010 http://www.flickr.com/photos/mikebaird/4060342528/
  • 2. About Kyle Cordes • Blah, Blah, Blah
  • 3. cat ~/.plan Learn; (Clojure, at the moment) Teach; (How to SaaS) Hire; (Grow Oasis Digital) Market; (same) Launch Next Big Thing
  • 4. Abstract “This talk will show how and WHY to use Lua (as opposed to the zillion other scripting languages) for embedded scripting inside of larger, non-Lua projects. Lua is safe, fast, simple, easy to learn, and more popular that you might expect.” (What you were sold...)
  • 5. The 20-minute version “This talk will show how and WHY to use Lua (as opposed to the zillion other scripting languages) for embedded scripting inside of larger, non-Lua projects. Lua is safe, fast, simple, easy to learn, and more popular that you might expect.” (What you will get.)
  • 6. Use the Interwebs http://www.lua.org/ http://www.flickr.com/photos/james_michael_hill/88311128/
  • 7. Yet Another Scripting Language Why should we care?
  • 8. Because Lua Doesn’t Suck 6 Reasons
  • 9. Jail http://www.flickr.com/photos/kuzeytac/ http://www.flickr.com/photos/8422710@N06/
  • 10. Lua code runs in a Sandbox http://www.flickr.com/photos/engelsrud/158040644/
  • 11. Safe By Default Default: no I/O, safe but impotent. Lua doesn’t even have “print” built in. Host application provides whatever limited set of APIs/primitives are warranted. Contrast this to Java’s complex security model, for example.
  • 12. Small http://www.flickr.com/photos/kentigern/221409419/ http://www.flickr.com/photos/andrewscott/577706627/
  • 13. Lua is Small To embed, hook to a handful of functions. As small as <100 KB (DLL/LIB) Easily runs on small devices or in small apps. Example: Lua on the iPhone http://probablyinteractive.com/2009/10/18/Setting-up-iPhone-Wax.html?
  • 14. Simple http://www.flickr.com/photos/benmcleod/44336195/ http://www.flickr.com/photos/slightlywinded/66875782/
  • 15. Lua is Simple • to use - well suited for small software • to learn - ~20 keywords, ~20 operators • to teach - plenty of non-developers use it
  • 16. Flexible http://www.flickr.com/photos/wiccked/348866434/ http://www.flickr.com/photos/wainwright/351684037/
  • 17. Lua is Flexible • Dynamically typed • First-class functions • Easy interop • Written in super-clean C, ports to nearly any platform • Ample libraries off-the-shelf
  • 18. Fast http://www.autoblog.com/photos/pagani-zonda-hh-0/ http://www.flickr.com/photos/kentigern/223140455/
  • 19. LuaJIT is in C++ / Java6 territory. http://luajit.org/ Interpreted Lua is generally faster than Python, Ruby, Perl, and PHP. http://bit.ly/8RLpoG
  • 20. Momentum http://www.flickr.com/photos/us_army_rolling_along/3342500833/ http://www.flickr.com/photos/us_army_rolling_along/4509400870/ http://www.flickr.com/photos/carbonnyc/76463757/s
  • 21. Lua in World of Warcraft • At least one external IDE • Several published books • Large community
  • 22. Angry Birds
  • 23. Wikipedia lists 110 games with Lua scripting (many on the PC, many on consoles, some on handhelds)
  • 24. Not Just Games • Adobe Photoshop Lightroom • Oasis Digital projects • Many, many more
  • 25. Lua == 42 ? http://www.flickr.com/photos/almostinfamous/3531123548/
  • 26. The right answer for every scripting need? At my last venture, we chose JavaScript instead: 1. Better Java Integration 2. Everyone knows JavaScript 3. More tooling, easier sell
  • 27. kylecordes.com http://www.flickr.com/photos/thetruthabout/