Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GYJWU-0001Zg-6z for mharc-grub-devel@gnu.org; Fri, 13 Oct 2006 05:40:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GYJWR-0001Xg-KS for grub-devel@gnu.org; Fri, 13 Oct 2006 05:40:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GYJWO-0001Ue-Tb for grub-devel@gnu.org; Fri, 13 Oct 2006 05:40:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GYJWO-0001Tn-Go for grub-devel@gnu.org; Fri, 13 Oct 2006 05:40:04 -0400 Received: from [194.109.24.25] (helo=smtp-vbr5.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GYJeo-0002Y4-9A for grub-devel@gnu.org; Fri, 13 Oct 2006 05:48:46 -0400 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id k9D9e0qD021625 for ; Fri, 13 Oct 2006 11:40:00 +0200 (CEST) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <87fye2swwa.fsf@xs4all.nl> <1160707724.25749.6.camel@diesel> Mail-Copies-To: mgerards@xs4all.nl Date: Fri, 13 Oct 2006 11:48:32 +0200 In-Reply-To: <1160707724.25749.6.camel@diesel> (Hollis Blanchard's message of "Thu, 12 Oct 2006 21:48:44 -0500") Message-ID: <87r6xcy2a7.fsf@xs4all.nl> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Scripting (IMPORTANT!) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2006 09:40:08 -0000 Hollis Blanchard writes: > On Thu, 2006-10-05 at 15:41 +0200, Marco Gerards wrote: >> I'm looking forwards to your ideas, questions, suggestions, criticism >> and bug reports. :-) > > How hard do you think it will be to implement all these features (and > handle the bugs)? Most of it is implemented already. Other features will be implemented. Some things are easy to implement. Like the test and expr commands. I hope I can move the iterators to modules as well. Modules are easier to maintain, because of its interfaces. But of course there are things that I do not like, when talking about maintainability: - The lexer is handcoded, I prefer a generated scanner. - Preventing memory leaks is annoying. - Perhaps more thoughts about error handling is required. > I wonder if we wouldn't be better served by a simpler scripting > language, rather than trying to emulate bash. I think it is simple already. But suggestions to make the code easier to read, increase maintainability and flexibility are always welcome. -- Marco