From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Crh0a-0002ro-CX for mharc-grub-devel@gnu.org; Thu, 20 Jan 2005 13:26:16 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Crgtm-0001IH-MZ for grub-devel@gnu.org; Thu, 20 Jan 2005 13:19:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Crgtd-0001Bf-Fr for grub-devel@gnu.org; Thu, 20 Jan 2005 13:19:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrgtZ-00019J-BN for grub-devel@gnu.org; Thu, 20 Jan 2005 13:19:01 -0500 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CrgXk-000307-LI for grub-devel@gnu.org; Thu, 20 Jan 2005 12:56:28 -0500 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 1FDF8F8DAFE1 for ; Thu, 20 Jan 2005 18:56:28 +0100 (CET) Received: from 127.0.0.1 ([127.0.0.1] helo=localhost) by ASSP-nospam ; 20 Jan 05 17:56:27 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Thu, 20 Jan 2005 18:56:47 +0100 User-Agent: KMail/1.7.1 References: <87acr5ccq4.fsf@yahoo.it> <41EFE5F9.2020202@list.ru> In-Reply-To: <41EFE5F9.2020202@list.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501201856.47799.okuji@enbug.org> Subject: Re: Pre-alpha scripting engine 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: Thu, 20 Jan 2005 18:26:15 -0000 On Thursday 20 January 2005 18:10, Serbinenko Vladimir wrote: > The problem with guile is that it has no $ before variable which > makes it difficult to integrate with shell. I discovered that bash > and PHP can even coexist!! As I said, Lisp is not good, because it is too difficult to use on the command-line interface. But I don't know if PHP is easy to use on it. I used PHP many years ago, but I forget it. > But I don't know bash very well so if I'm wrong please e-mail it. Now > I'm rewriting the parser for easier integrating(thanks Marco). There are many differences. The critical point is that you cannot write this in PHP: kernel /boot/vmlinuz root=/dev/hda1 This is not a valid expression in PHP. If you want to do the same in PHP, it could look like this: kernel("/boot/vmlinuz", "root=/dev/hda1") As I mentioned in the previous mail, I don't think it is a good idea to have multiple languages. So the important question here is if you want to use PHP on the command-line interface or not. I suspect that this is not feasible. If your intention is to make your scripting engine standard in GRUB, I'd recommend considering what you really want to do with a scripting language under GRUB. IIRC, you haven't described what your motivation is. I think the choice of a scripting language depends on what we really want to address. In other words, what do we want to define as the scope of a scripting language? Do we want to remove C code as much as possible, or, do we want to have a merely preprocessor? It is not a new idea to have a scripting language to make low-level functions (suppose Forth on Open Firmware), but I doubt if this is worth doing, because writing an interpreter can be more complex than writing device drivers. Okuji