lua on steroids - eclipsecon na 2012
TRANSCRIPT
![Page 1: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/1.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Lua on
Steroids
![Page 2: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/2.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
??? What is
Lua all about
![Page 3: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/3.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
“Lua is a powerful, fast, lightweight, embeddable
scripting language.”
http://www.lua.org/about.html
![Page 4: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/4.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Extending C/C++ applications with a configuration / scripting engine
Rationale
![Page 5: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/5.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Extending C/C++ applications with a configuration / scripting engine
§ Based on a virtual machine
§ Can load source code / read char streams
§ And compile it into portable bytecode
Rationale
![Page 6: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/6.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Extending C/C++ applications with a configuration / scripting engine
§ Tiny core (150kB)
§ Pure ANSI C
§ Simple C API
Rationale
![Page 7: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/7.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Extending C/C++ applications with a configuration / scripting engine
§ DSL building kit
§ Provides only basic features
§ And a powerful runtime
Rationale
![Page 8: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/8.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
A language gaining momentum
§ Video games § World of Warcraft
§ Havoc physics engine
§ AI scripting
§ Mobile § Corona SDK
§ Moai
§ LÖVE
§ App scripting § Adobe Lightroom
§ Redis (key-value store)
§ Embedded § Brew MP
(Qualcomm)
§ eLua (Petrobras)
§ AAF (Sierra Wireless)
![Page 9: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/9.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
??? What is
missing
![Page 10: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/10.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
IDE support
![Page 11: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/11.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
http://www.eclipse.org/koneki/ldt/
![Page 12: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/12.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
A tool that follows Lua’s philosophy
Providing lots of modern features while remaining easily embeddable in larger systems.
Rationale
![Page 13: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/13.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Lua strengths § Dynamic § Embeddable
are double-edged swords
that make tooling support tedious.
However…
![Page 14: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/14.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Editor VS.
Dynamic code
![Page 15: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/15.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Debugger VS.
Embedded application
![Page 16: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/16.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
LDT for m2m development
![Page 17: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/17.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
m2m.eclipse.org MQTT broker
Wireless gateway Mobile phone
Wireless (Zigbee) sensors
![Page 18: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/18.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
§ Embedded
Aleos Application Framework
Collects Zigbee data on device’s serial port
Publishes MQTT messages
§ Mobile
Corona SDK .
Subscribes to MQTT messages
Displays sensor data with a fancy UI
Two Lua applications
![Page 19: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/19.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
??? What’s Next
![Page 20: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/20.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
§ LDT 0.8 will be in Juno
§ Content-assist (pending CQ) § Beta product here: http://goo.gl/NZgCc
§ Execution environments
§ Next… § Launch configurations (w/ embedded interpreter)
§ Pre-bundled execution environments
LDT Roadmap
![Page 21: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/21.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Eclipse § RSE http://www.eclipse.org/tm/
§ DLTK http://www.eclipse.org/dltk/
Lua § JNLua http://code.google.com/p/jnlua/
§ MetaLua http://metalua.luaforge.net/
§ LDoc http://github.com/stevedonovan/LDoc
Big thanks to
![Page 22: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/22.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.
Lua § Main site http://lua.org
§ Kepler project http://www.keplerproject.org/
LDT § Koneki http://www.eclipse.org/koneki/
§ Installation http://download.eclipse.org/koneki/updates/
§ Wiki http://wiki.eclipse.org/Koneki
§ Forum http://www.eclipse.org/forums/eclipse.koneki
Useful links
![Page 23: Lua on Steroids - EclipseCon NA 2012](https://reader033.vdocument.in/reader033/viewer/2022052900/555a2780d8b42ab3088b4b37/html5/thumbnails/23.jpg)
Copyright © 2012 Sierra Wireless. All Right reserved. Made available under the Eclipse Public License v1.0.