Mail archive
alpine-devel

Re: [alpine-devel] Understanding alpine-setup

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Mon, 5 Mar 2012 17:00:12 +0100

On Mon, 05 Mar 2012 09:57:12 -0500
Jim Pryor <lists+alpine-devel_at_jimpryor.net> wrote:

> On Mon, Mar 5, 2012, at 03:21 PM, Natanael Copa wrote:

> >
> > 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.

Yes, awk could be used. I still feel it a bit clumsy compared to write
it all in Lua.

> 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.

I agree with you and I want be as lightweight as possible. In this case
I have considered Lua as an acceptable middle way. I will think of what
you say though. I am not married with Lua in this case :)

-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Mon Mar 05 2012 - 17:00:12 UTC