From: "merv" <merv@spidernet.com.cy>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] initscripts in python
Date: Wed, 16 Apr 2003 08:38:36 +0300 [thread overview]
Message-ID: <3E9D168C.10392.73F5440@localhost> (raw)
In-Reply-To: <1050456550.2602.24.camel@osiris.ripple.be>
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).
It may be a difficult one to call though. I imagine that many would feel
similar sentiments about the scripting advantages of both Python and
shell scripting. Maybe practicality would have the last say, however.
On machines with very limited resources (I have a box running Gentoo
on a Pentium 133Mhz and < 1GB harddrive with 64Mb RAM), Python
would be a death sentence for the box. Shell scripting is the only
option in such environments for job control etc etc.
Perhaps we might experiment with a build-time option for incorporating
*both* Python and shell scripting tools such as awk and sed in to the
shell (by having the Python *shell extras* turned on/off via a
compilation flag?). In such environments both would be available for
use as a shell scripting resource. Or perhaps again, we might set
about incorporating shell scripting notation in to Python and attempt to
ferment a hybrid for shell scripting purposes, initscrits and the like.
Interesting idea that has made me think more closely about what a
shell scripting language is and what it is for.
Will be good to see if this goes anywhere.
--Merv Hammer
On 15 Apr 2003 at 21:29, Justin Whitney wrote:
> Hi,
>
> I don't really like talking about these kinds of vague ideas (like I'm
> doing here), because that doesn't get them written - but this one I want
> feedback on first before I dive in... so...
>
> For a lot of reasons I'd like to implement the initscrits in something
> other than shell script. Something like python, say.
>
> Reasons for doing this would include:
>
> *writing (advanced) shellscripts requires learning awk/sed, and various
> other minor tools (mostly because their features aren't supported by the
> language). Use of a language with these features builtin lowers the
> learning requirement, or at least puts it all under one roof.
> *improved performance and bytecode-compilability
> *Speedups due to fewer exec calls (for awk/sed/etc)
>
> Reasons NOT to do this would include:
>
> *breaking from standard would mean packages with provided initscripts
> would require a rewrite.
> *slight increase in boot requirements (interpreter and libs must exist
> at least minimally on root partition)
> *probably needs a bit more memory
>
> other bits:
>
> *compatibility could obviously be maintained, as existing shell scripts
> could still be run without changes.
>
>
> Note: I am by no means proposing this as a standard feature of gentoo.
>
> That said, since gentoo already uses python for portage, selecting
> python as the language to use makes sense. Aside from the re-writes,
> and some other details, I don't see much disadvantage to the above
> design.
>
> Comments appreciated.
>
> --Justin Whitney
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
Merv Hammer
mailto: merv@spidernet.com.cy
------------------------------------------------------------------------------
-Working with Unix is like wrestling a worthy opponent...
-Working with windows is like attacking a small whining child
who is carrying a .38
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2003-04-16 5:27 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 [this message]
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
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=3E9D168C.10392.73F5440@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