X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id EA65ADC19A1 for ; Mon, 5 Mar 2012 14:57:12 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 6EA82205A7 for ; Mon, 5 Mar 2012 09:57:12 -0500 (EST) Received: from web4.nyi.mail.srv.osa ([10.202.2.214]) by compute6.internal (MEProxy); Mon, 05 Mar 2012 09:57:12 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=cbCf2+vc7A78bVD7vkgNLflrQ+g=; b=FQL 0cFHeU7pw1403DFvLFotUpdqJ3RmgNc2xdkYNtr/zctRnYaMBis+UcgST13Ql+kT vPztwLeSXGveXcvni1ReVQdvLjTXoVE2+3Bc107Ah7pOqeK9EKly3De/68O7bF96 RAHA5Xe9S5X61aMaEPSyiTLKq7gepgske9mAB8G8= Received: by web4.nyi.mail.srv.osa (Postfix, from userid 99) id 34D043C1EE2; Mon, 5 Mar 2012 09:57:12 -0500 (EST) Message-Id: <1330959432.27492.140661045039645@webmail.messagingengine.com> X-Sasl-Enc: eKUj503PdWgbygFPqddpPLG7tEBFmvC2ARGBSJW0ijkA 1330959432 From: Jim Pryor To: alpine-devel@lists.alpinelinux.org X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <20120305152103.08b6b9d8@ncopa-desktop.nor.wtbts.net> References: <1330852060.31716.140661044540177@webmail.messagingengine.com><20120305094554.23727d3c@ncopa-desktop.nor.wtbts.net><1330941814.16357.140661044929169@webmail.messagingengine.com> <20120305152103.08b6b9d8@ncopa-desktop.nor.wtbts.net> Subject: Re: [alpine-devel] Understanding alpine-setup Date: Mon, 05 Mar 2012 09:57:12 -0500 On Mon, Mar 5, 2012, at 03:21 PM, Natanael Copa wrote: > I think it has been mentioned in IRC some time that it would have been > nice to integrate the setup-* scripts with ACF better. After all they > do partially same job. > > > Lua *is* a terrific and small-footprint language to use if something > > stronger than ash is needed. But to my novice eyes the existing > > scripts already look like a pretty good system. > > Ok, thanks for this feedback. Very nice to hear this from someone who > have read the code and actually understands it :) > > Yes, it does the job. We could improve the framework (I cloned some of > the functions from the openbsd installer functions and used them in > setup-vs-guest script: > > http://git.alpinelinux.org/cgit/aports/tree/main/util-vserver/setup-vs-guest > > But while working on all those scripts I have various times thought > that the shell things are a bit clumsy, and I miss arrays/hashtables. > Specially for things like setup-apkrepos, setup-interfaces and > setup-disk. I already have a lua moule in progress for parsing /sys and > fishing out disk and partition info in convenient data structures. Bash > is way to big be considered (it doesnt help that its slow either). > > I must admit that using shell if possible is a good thing. I just feel > that we are at the limit where something stronger is wanted. Hi Natanael, thanks for the explanations. I haven't yet gotten to know ACF, so have no appreciation of what better integration with that framework might call for. For things like arrays/hashtables, though, mightn't awk suffice? It's not sh, but it is still part of BusyBox. I'm not at all anti-Lua; I've written a number of Lua libraries. And I'm just beginning to learn your system, so can at best dimly understand the pressures you feel. But I've always liked lightweight solutions, that's what draws me to your distro. So I just thought I'd ask and try to understand this better. -- Jim Pryor jim@jimpryor.net --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---