From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30732 invoked by uid 1002); 4 May 2003 23:58:39 -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 32216 invoked from network); 4 May 2003 23:58:39 -0000 From: Wesley Leggette To: gentoo-dev@gentoo.org In-Reply-To: <1052071932.4478.7.camel@nosferatu.lan> References: <1051956324.4516.21.camel@nosferatu.lan> <1052064323.1707.7.camel@cyr.kaylix.net> <1052071932.4478.7.camel@nosferatu.lan> Content-Type: text/plain Organization: Message-Id: <1052092114.7910.10.camel@cyr.kaylix.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1- Date: 04 May 2003 18:48:34 -0500 Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-dev] Init replacement X-Archives-Salt: 7bb2f4df-391b-4515-b6ac-90c2cfa57a58 X-Archives-Hash: dbb2f851602d241a09771e84b488a2ee On Sun, 2003-05-04 at 13:12, Martin Schlemmer wrote: > On Sun, 2003-05-04 at 18:05, Wesley Leggette wrote: > > On Sat, 2003-05-03 at 05:05, Martin Schlemmer wrote: > > > On Sat, 2003-05-03 at 11:08, Wouter van Kleunen wrote: > > > > > > > Yes. I have thought of adding a script-service. But i removed it, because > > > > i do not like scripts. I agree that they are convenient for executing a > > > > collection of commands, but bash is a very weak programming language. > > > > > > > > I will think about adding scripts. Maybe just to lower the difference > > > > between my init and sysvinit. But rather not bash, bash is ugly :-( > > > > > > > > it would be nice if people wrote more scripts using functional languages. > > > > (haskell, miranda, etc...) > > > > > > > > > > Point is, where say 80% people can code in sh/bash, much less can do > > > that in python, haskell, whatever. Thus dropping the 'user' interface > > > to the init system being in bash/sh, will make it unusable for many > > > users. > > > > Oh come on. Like XML is really than difficult. I'm sure 80% know the > > syntax, and Wouter's keywords are a lot simpler than Bash's. Besides, > > 80% is completly off for people who know bash (and XML syntax too). > > Let's face it. Wouter's XML is a lot easier for newbies to learn. It has > > actual english in it. I don't see why everyone is so defensive about > > their beloved bash scripts. > > > > Why are you so defensive about XML ? Anyhow, you missed the point > totally, as I have not even talked about XML. Is your point that bash is easy to use and that changing things will make the system unusable? Both are valid, sure. It is important for any new system to work well with the old bash scripts until everything is available in both formats (or forever, for that matter), so an XML based system should work well with the older one. On the other matter, I can see why you're saying that bash scripts are easy. My point is that I think that bash scripts aren't as easy and human readable as people give them credit for. Sure, a lot of people know how to read bash, so to them it's easy. But I'd argue that bash has a higher learning curve than XML does, since XML has a lot more english in it. As for the other scripting languages you mention, I don't think that's relavant because nobody's suggesting converting to python or haskell. As far as I can tell, the suggestion is to use XML. That's why I brought it back up. > > > > > > > Having the startup scripts/modules binary though, means you cannot > > > do quick changes, etc as well. > > > > > > And like many others did say, python/whatever have too large > > > dependencies. For example, having python initscripts will make > > > an initrd/diet_system a PITA to get running. > > > > > > Having SVC support build into init, now that is a reason why I would > > > change init. > > > > > > Another question that bothers me ... if everybody is so against bash > > > being slow, why don't they spent time to get bash's IO more optimised? > > > For example, getting bash to read the whole script, and then executing > > > it, and not reading line by line should already add much improvement. > > > > > > > > > Anyhow, just a few quick thoughts, -- Wesley Leggette -- gentoo-dev@gentoo.org mailing list