Sunday, April 8, 2012

Lua Programming Language

今天系上有一隻動物問我"Lua",一種程式語言,以前自己也不曾聽過,於是乎稍稍查了一下、作筆記。

首先在電腦(Fedora)上裝Lua,
$sudo yum install lua
Package lua-5.1.4-7.fc14.x86_64 already installed and latest version
發現他本來已經裝好了!

然後vim helloworld.lua
#!/usr/bin/lua
print ("Hello World!")

then,
$chmod +x helloworld.lua
$./helloworld 



看到helloworld的程式碼,當下覺得跟python很像,必定是scripting language。

Lua特點

  • Scripting Language
  • Light Weight
  • Multi-Paradigm
相對的,我發現Lua的資料並沒有很多,我則針對Lua v.s. Python做了搜尋:

2 comments:

  1. Hello,Heron the Almighty.<(_ _)>
    I'm Ruinland.
    Camel gave me this website address. :PPP

    ReplyDelete
  2. Hello Maskman,
    she said that she's a squirrel.
    like this:
    http://1.bp.blogspot.com/_4NvgfQt80xs/TTsVcEKr4JI/AAAAAAAACc0/MB1psK-ghEM/s400/SquirrelBazooka.jpg

    ReplyDelete