From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CrhaI-0005oW-TM for mharc-grub-devel@gnu.org; Thu, 20 Jan 2005 14:03:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrhaG-0005mm-E2 for grub-devel@gnu.org; Thu, 20 Jan 2005 14:03:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrhaE-0005mF-RI for grub-devel@gnu.org; Thu, 20 Jan 2005 14:03:07 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrhY4-0005DB-3D for grub-devel@gnu.org; Thu, 20 Jan 2005 14:00:52 -0500 Received: from [194.67.23.122] (helo=mx2.mail.ru) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Crh81-0007Rx-JL for grub-devel@gnu.org; Thu, 20 Jan 2005 13:33:57 -0500 Received: from [81.62.46.121] (port=1523 helo=[192.168.1.100]) by mx2.mail.ru with esmtp id 1Crh80-000LA5-00 for grub-devel@gnu.org; Thu, 20 Jan 2005 21:33:56 +0300 Message-ID: <41EFF9A9.5080109@list.ru> Date: Thu, 20 Jan 2005 19:34:17 +0100 From: Serbinenko Vladimir User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 References: <87acr5ccq4.fsf@yahoo.it> <41EFE5F9.2020202@list.ru> <200501201856.47799.okuji@enbug.org> In-Reply-To: <200501201856.47799.okuji@enbug.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected 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 19:03:09 -0000 Yoshinori K. Okuji wrote: >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 > > Normally not but it's easy to extend it >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. > > > Imho multiple languages will just wasting of time. As a matter of fact my prevous letter was just some thoughts >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. > > > My motivation is an automatisation of booting e.g. run different commands depending on circumstances (time, system crash, wake-on-..., undoing booting preparation(hide,unhide,...)) >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. > > > I think that low-level scripting language will be an error but perhaps some easy scripts like running cmp with MBR and file parsing its output and pausing booting if difference detected >Okuji > > > So I'm waiting for your decision about language. But after all now I think that bash will be good idea >_______________________________________________ >Grub-devel mailing list >Grub-devel@gnu.org >http://lists.gnu.org/mailman/listinfo/grub-devel > > > >