갑자기 루아가 끌립니다.

cppig1995의 이미지

http://lua.org

루아 프로그래밍 언어가 막 끌립니다.
사실은 최근 2년간 (2006, 2007) ㅍ 2개와 ㄹ 2개를 놓고 열심히 고민을 해왔는데,
그동안은 생각도 않던 루아가 막 끌리기 시작했습니다.

여러 스크립트 언어 쓰시는 고수분들께서 언어별 비교 같은 걸 해놓으신 게 있나 하고
열심히 기웃거리고 있습니다.

Programming in Lua 번역서 결제 5분 전입니다.

x = function(a, b) print("a = ", a, "type(a) = ", type(a)) print("b = ", b, "type(b) = ", type(b)) end

> x(x(0xdeadbeef, "DeadBeef"), x(x, x(x(x, type(x)), x(type(x), x(0xc0ffee, "Coffee")))))
a =     3735928559      type(a) =       number
b =     DeadBeef        type(b) =       string
a =     function: 008FA720      type(a) =       function
b =     function        type(b) =       string
a =     12648430        type(a) =       number
b =     Coffee  type(b) =       string
a =     function        type(a) =       string
b =     nil     type(b) =       nil
a =     nil     type(a) =       nil
b =     nil     type(b) =       nil
a =     function: 008FA720      type(a) =       function
b =     nil     type(b) =       nil
a =     nil     type(a) =       nil
b =     nil     type(b) =       nil
hongminhee의 이미지

Lua의 미니멀리즘에 반하셨다면 Io도 살펴보시면 좋을 것 같습니다. Lua의 미니멀리즘에 Lisp의 강력함(물론 Lisp도 미니멀리즘에 기초한 언어라고 볼 수 있겠지만요), Self의 프로토타입 기반 객체 모델 등이 어우러진 정말 깨끗한 언어입니다. 개발된지 5년 정도밖에 안되어서 부족한 부분도 많지만요.

Quote:
Io is a small, prototype-based programming language. The ideas in Io are mostly inspired by Smalltalk (all values are objects), Self (prototype-based), NewtonScript (differential inheritance), Act1 (actors and futures for concurrency), LISP (code is a runtime inspectable/modifiable tree) and Lua (small, embeddable).
SoulreaveR의 이미지

저는 하고 싶어도 실력이 딸려서 -_ㅠ