public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "merv" <merv@spidernet.com.cy>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] initscripts in python
Date: Thu, 17 Apr 2003 21:25:26 +0300	[thread overview]
Message-ID: <3E9F1BC6.3027.F23C1B0@localhost> (raw)
In-Reply-To: <200304162327.39690.george@gentoo.org>

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


  reply	other threads:[~2003-04-17 18:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-16  1:29 [gentoo-dev] initscripts in python Justin Whitney
2003-04-16  4:09 ` Daniel Armyr
2003-04-16  5:38 ` merv
2003-04-16  7:25   ` Jeff Rose
2003-04-16  8:49     ` merv
2003-04-16  8:19   ` Paul de Vrieze
2003-04-16  8:52     ` Sven Vermeulen
2003-04-16 20:54       ` Justin Whitney
2003-04-17 20:05         ` merv
2003-04-17  5:49     ` Joseph Carter
2003-04-17  6:27       ` George Shapovalov
2003-04-17 18:25         ` merv [this message]
2003-04-17  7:42       ` Paul de Vrieze
2003-04-16 22:44   ` Abhishek Amit
2003-04-17  6:45     ` Sven Vermeulen
2003-04-17 20:56       ` merv
2003-04-17 22:26         ` Caleb Shay
2003-04-17 23:32           ` merv
2003-04-17 18:18     ` merv
2003-04-16 21:08 ` Brad Laue
2003-04-17  6:47   ` Sven Vermeulen
  -- strict thread matches above, loose matches on Subject: below --
2003-04-16 11:13 merv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E9F1BC6.3027.F23C1B0@localhost \
    --to=merv@spidernet.com.cy \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox