Gentoo Archives: gentoo-dev

From: Joseph Carter <knghtbrd@×××.org>
To: Paul de Vrieze <gentoo-user@××××××××.net>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] initscripts in python
Date: Thu, 17 Apr 2003 05:49:23
Message-Id: 20030417054920.GD6054@galen.bluecherry.net
In Reply to: Re: [gentoo-dev] initscripts in python by Paul de Vrieze
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Wed, Apr 16, 2003 at 10:19:31AM +0200, Paul de Vrieze wrote:
5 > > I for one would enjoy the clean-feel of Python in initscrit composition.
6 > > That said, I would miss the very "Unix atmospherics" of awk and sed
7 > > and the run-time interactivity of the shell scripting (I mean, it's
8 > > potential for shorthand notation).
9 >
10 > As most init scripts are essentially nobrainer oneliners, I believe using
11 > anything but sh is overkill. In the cases where something special is required
12 > it is very well possible to use python/any other language either embedded or
13 > instead of the standard interpreter. (You could even make init scripts in c)
14
15 I don't know.. Python has this great feature that sh does not: it byte
16 compiles its scripts and will execute the pre-compiled one if it doesn't
17 have to do anything else. If everything required to boot a Gentoo system
18 were done in Python thusly, it'd boot pretty fast. (This I consider a
19 very worthwhile goal!)
20
21 - --
22 Joseph Carter <knghtbrd@×××.org> Only l33t on Thursdays
23
24 <stu> apt: !bugs
25 <apt> !bugs are stupid
26 <dpkg> apt: are stupid? what's that?
27 <apt> dpkg: i don't know
28 <dpkg> apt: Beauty is in the eye of the beer holder...
29 <apt> i already had it that way, dpkg.
30 -----BEGIN PGP SIGNATURE-----
31 Version: GnuPG v1.2.1 (GNU/Linux)
32 Comment: 1024D/20F62261F1857A3E79FC44F98FF7D7A3DCF9DAB3
33
34 iEYEARECAAYFAj6eQGAACgkQj/fXo9z52rNxIQCgi2k1eB+6GldIRHEL8JIO2I+o
35 aEoAoLCn/9qV8erbx2QreXptUfSQZWOX
36 =kAEI
37 -----END PGP SIGNATURE-----
38
39 --
40 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] initscripts in python George Shapovalov <george@g.o>
Re: [gentoo-dev] initscripts in python Paul de Vrieze <gentoo-user@××××××××.net>