singalen: (Default)
singalen ([personal profile] singalen) wrote2008-05-15 12:00 pm
Entry tags:

Please meet: Lua

Originally published at Fiberglass flowers. You can comment here or there.

Lua recently became very popular. I encountered Lua scripting in several applications including popular games, I believe it’s used in even more then Wikipedia says.

It’s extremely simple:

  • 6 data types (that’s counting “nul” and “function”),
  • no C++-style OOP out-of-box (but you can program one, he-he),
  • 400K of pure-C code

but is loaded with in-fashion features like

The only metaprogramming tutorial (with a ready code to implement virtual methods) is “Programming in Lua” book. Still, I don’t see a code to implement ad-hoc polymorphism… Maybe it’s a reason for another post :)

Redistributed book removed: it violated copyright.

[identity profile] mortang.livejournal.com 2008-05-16 12:51 pm (UTC)(link)
Продолжая оборванный разговор об ИДЕ:

http://www.unknownworlds.com/decoda

Вот эта вроде ничего.
Отладка возможна, использовать удобно.
netch: (Default)

[personal profile] netch 2008-05-18 05:51 pm (UTC)(link)
Но зачем повторять худшие болезни, например, перла?

> a = {}
> a.x = 1
> print(a.x)
1
> print(a.y)
nil

В питоне надо явно написать a.get('y', None), чтобы не свалилось на несуществующем элементе.