tHE BRIGHT SIDE OF THE MOON

A Lua lang intro







No.







Lua in 300 seconds







Nah, mentira.


WHO AM I ?


Sebastián Moreno


R&D @ inConcert

@kernelp4nic


And Lua is?








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

Lua was created in 1993 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, members of the Computer Graphics Technology Group (Tecgraf) at the Pontifical Catholic University of Rio de Janeiro, in Brazil.

Why lua?






Why Lua is so special?






Lua is Robust






Lua is Portable & Embeddable






Lua is Fast

If you need more speed, try LuaJIT http://luajit.org/






Lua is Small as hell.

Source code and docs takes 246K compressed and 960K uncompressed. The source contains around 20000 lines of C.





That makes it perfect
to fit inside other projects

Russian power


REDIS  2.6










Used in many games too.




World Of Warcraft



League of Legends


Minecraft






Every company may have a use for it!


Lua @ inConcert

  • LuaNode (Async IO for Lua)
  • redis-luanode (Redis client for LuaNode)
  • Route66 (simple URL routing for LuaNode)
  • TwitterProxy (Written in LuaNode)
  • LuaCassandra
  • inConcert Web Handler (HTTP 1.1 server that runs Lua)
  • JSON4Lua
  • FeelingsDetector (Detects feelings inside text)
  • luaoauth (Oauth library)
  • Nozzle (Write filters and chain them together into pipeline)
  • Extensible Middleware Scripts (InteractionRouter)
  • Every REST API around

Luarocks

Deployment and management system for Lua modules.

Webframeworks


Lapis 
 https://github.com/leafo/lapis

GIN 
http://gin.io/


(Ambos corren sobre OpenResty)










There is a debugger too, if you need it ;-)




 
You can apply Lua philosophy to your actual code.
   You don't need to drop your current lang,
   you just need to find the perfect time to use a tool.






Thanks!
Made with Slides.com