From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20279 invoked by uid 1002); 17 Apr 2003 18:14:13 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 15157 invoked from network); 17 Apr 2003 18:14:12 -0000 From: "merv" To: gentoo-dev@gentoo.org Date: Thu, 17 Apr 2003 21:25:26 +0300 MIME-Version: 1.0 Reply-to: merv@spidernet.com.cy Message-ID: <3E9F1BC6.3027.F23C1B0@localhost> Priority: normal References: <20030417054920.GD6054@galen.bluecherry.net> In-reply-to: <200304162327.39690.george@gentoo.org> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: [gentoo-dev] initscripts in python X-Archives-Salt: 25f1fe09-60cd-4651-89d0-2142d9d27fc8 X-Archives-Hash: aab45fa3d58f0d60787518feca6bb536 I agree, it would be more of an exercise, first off. IMHO, i feel that the concept of being able to select shell runtime variables such as script language or syntax would absolutely open up new possibilities. I agree with those who argue that any so-called "gain" would be debateable, but surely three important gains would be these: 1) gives more choice to fellow gentooers 2) is an exercise in rethinking things that are almost Unix "lore" 3) depending on the degree of success, we'll know it can be done! Thanks for the links too. On 16 Apr 2003 at 23:27, George Shapovalov wrote: > Though I still fail to see grand benefits, I must admit this is a neat little > idea :) (perheaps more of an excersise kind though). > A glimpse into possible implementation immediately makes me think about using > "appropriate" shell for the task, the one "designed to blend a traditional > shell with the power of Python". A short search on google turns up two such > projects: > http://pysh.sourceforge.net/ and > http://sourceforge.net/projects/pyshell/ > > Though looks like both weren't active for quite some time lately... > So, if anybody is motivated anough, I guess that person can try to pick-up > wherever those teams left it ;). Then its a matter of selecting appropriate > shell as your "basic" one and picking the corresponding baselayout (and > creating both + the appropriate profile specification of curse :)). > > While still not answering why we would want init scripts in python, this can > at least create on its way something to stay :). > > Anyway, just my 0.02$ ;). > > George > > > On Wednesday 16 April 2003 22:49, Joseph Carter wrote: > > On Wed, Apr 16, 2003 at 10:19:31AM +0200, Paul de Vrieze wrote: > > > > I for one would enjoy the clean-feel of Python in initscrit > > > > composition. That said, I would miss the very "Unix atmospherics" of > > > > awk and sed and the run-time interactivity of the shell scripting (I > > > > mean, it's potential for shorthand notation). > > > > > > As most init scripts are essentially nobrainer oneliners, I believe using > > > anything but sh is overkill. In the cases where something special is > > > required it is very well possible to use python/any other language either > > > embedded or instead of the standard interpreter. (You could even make > > > init scripts in c) > > > > I don't know.. Python has this great feature that sh does not: it byte > > compiles its scripts and will execute the pre-compiled one if it doesn't > > have to do anything else. If everything required to boot a Gentoo system > > were done in Python thusly, it'd boot pretty fast. (This I consider a > > very worthwhile goal!) > > > -- > gentoo-dev@gentoo.org mailing list > -- Merv Hammer mailto: merv@spidernet.com.cy -- gentoo-dev@gentoo.org mailing list