Gentoo Archives: gentoo-dev

From: Wesley Leggette <wleggette@××××.net>
To: azarah@g.o
Cc: Gentoo-Dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] Init replacement
Date: Sun, 04 May 2003 16:15:30
Message-Id: 1052064323.1707.7.camel@cyr.kaylix.net
In Reply to: Re: [gentoo-dev] Init replacement by Martin Schlemmer
1 On Sat, 2003-05-03 at 05:05, Martin Schlemmer wrote:
2 > On Sat, 2003-05-03 at 11:08, Wouter van Kleunen wrote:
3 >
4 > > Yes. I have thought of adding a script-service. But i removed it, because
5 > > i do not like scripts. I agree that they are convenient for executing a
6 > > collection of commands, but bash is a very weak programming language.
7 > >
8 > > I will think about adding scripts. Maybe just to lower the difference
9 > > between my init and sysvinit. But rather not bash, bash is ugly :-(
10 > >
11 > > it would be nice if people wrote more scripts using functional languages.
12 > > (haskell, miranda, etc...)
13 > >
14 >
15 > Point is, where say 80% people can code in sh/bash, much less can do
16 > that in python, haskell, whatever. Thus dropping the 'user' interface
17 > to the init system being in bash/sh, will make it unusable for many
18 > users.
19
20 Oh come on. Like XML is really than difficult. I'm sure 80% know the
21 syntax, and Wouter's keywords are a lot simpler than Bash's. Besides,
22 80% is completly off for people who know bash (and XML syntax too).
23 Let's face it. Wouter's XML is a lot easier for newbies to learn. It has
24 actual english in it. I don't see why everyone is so defensive about
25 their beloved bash scripts.
26
27 >
28 > Having the startup scripts/modules binary though, means you cannot
29 > do quick changes, etc as well.
30 >
31 > And like many others did say, python/whatever have too large
32 > dependencies. For example, having python initscripts will make
33 > an initrd/diet_system a PITA to get running.
34 >
35 > Having SVC support build into init, now that is a reason why I would
36 > change init.
37 >
38 > Another question that bothers me ... if everybody is so against bash
39 > being slow, why don't they spent time to get bash's IO more optimised?
40 > For example, getting bash to read the whole script, and then executing
41 > it, and not reading line by line should already add much improvement.
42 >
43 >
44 > Anyhow, just a few quick thoughts,
45 --
46 Wesley Leggette <wleggette@××××.net>
47
48
49 --
50 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Init replacement Martin Schlemmer <azarah@g.o>