[devel] Fwd: Internal Lua support on RPM
Alexey Tourbin
=?iso-8859-1?q?at_=CE=C1_altlinux=2Eru?=
Пт Мар 19 12:21:28 MSK 2004
Здравствуйте.
Не понятно, почему бы в rpm не вкомпилировать default interpreter. :)
----- Forwarded message from Gustavo Niemeyer <niemeyer на conectiva> -----
Date: Tue, 16 Mar 2004 19:40:32 -0300
From: Gustavo Niemeyer <niemeyer на conectiva>
Subject: Internal Lua support on RPM
To: rpm-list на redhat, lua на bazar2.conectiva
User-Agent: Mutt/1.5.5.1i
I'm glad to announce that I've just committed into the RPM CVS
HEAD the internal support for Lua (http://www.lua.org) scripts.
Please, notice that this is EXPERIMENTAL stuff.
Why embedding Lua in RPM?
-------------------------
- Many scripts execute simple operations which in an internal
interpreter require no forking at all
- Internal scripts reduce or eliminate external dependencies
related to script slots
- Internal scripts operate even under unfriendly situations
like stripped chroots (anyone said installers?)
- Internal scripts in Lua are really fast
- Syntax errors in internal scripts are detected at
package building time
How it works?
-------------
Just use "-p <lua>" in any script slot (%pre, %post, etc).
E.g.
%pre -p <lua>
print("Wow! It really works!")
What is accessible from Lua?
----------------------------
The standard Lua library, the posix module (basic system access,
by Luiz Henrique de Figueiredo and Claudio Terra), and the rex
module (regular expressions, by Reuben Thomas).
Wow! This will bloat RPM!
-------------------------
No, it will not. The rpm library size will be increased by
about 150kb, without any additional dependencies.
When will it be available in the stable RPM?
--------------------------------------------
Some day. :-)
Where can I get more information?
---------------------------------
- RPM code
- #rpm at irc.freenode.org
- The Lua manual (http://www.lua.org/manual/5.0/manual.html)
- The documentation, once I write it
- Send me an email
Thanks
------
Thanks to Conectiva, to Jeff Johnson, to the Lua folks, and to
everyone who contributed in some way.
--
Gustavo Niemeyer
http://niemeyer.net
----- End forwarded message -----
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20040319/b81b85b3/attachment-0001.bin>
Подробная информация о списке рассылки Devel