ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Fwd: Internal Lua support on RPM
@ 2004-03-19  9:21 Alexey Tourbin
  2004-03-19 11:50 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Tourbin @ 2004-03-19  9:21 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]

Здравствуйте.
Не понятно, почему бы в 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 -----

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-19 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19  9:21 [devel] Fwd: Internal Lua support on RPM Alexey Tourbin
2004-03-19 11:50 ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git