From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KavTB-0002FI-OO for mharc-grub-devel@gnu.org; Wed, 03 Sep 2008 12:44:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KavT9-0002Ac-Bp for grub-devel@gnu.org; Wed, 03 Sep 2008 12:44:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KavT7-000257-Bm for grub-devel@gnu.org; Wed, 03 Sep 2008 12:44:34 -0400 Received: from [199.232.76.173] (port=39233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KavT7-00024l-8V for grub-devel@gnu.org; Wed, 03 Sep 2008 12:44:33 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:51457 helo=kirsi2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KavT6-0008QC-Jh for grub-devel@gnu.org; Wed, 03 Sep 2008 12:44:32 -0400 Received: from [127.0.0.1] (88.193.32.97) by kirsi2.inet.fi (8.5.014) id 488DC54E01B171BE for grub-devel@gnu.org; Wed, 3 Sep 2008 19:44:30 +0300 Message-ID: <48BEBEF1.5090601@nic.fi> Date: Wed, 03 Sep 2008 19:44:33 +0300 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: The development of GRUB 2 References: <62F4EE6C50AF480CB6A355CDE1B0A632@WINSERVER2008> <20080903102532.GA29762@thorin> In-Reply-To: <20080903102532.GA29762@thorin> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: Quoted-Printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Can LUA e coming with future Grub2 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: Wed, 03 Sep 2008 16:44:35 -0000 Robert Millan wrote: > On Wed, Sep 03, 2008 at 04:25:12PM +0800, Bean wrote: >> On Wed, Sep 3, 2008 at 12:56 PM, y.volta wrote: >>> For the Grub2 internal script engine, yes, it is little. but need mor= e work >>> to be improved. About the size, i think, Lua can be a replacement if = this >>> lua.mod is available at runtime. at the same time, why not load gzipe= d mod >>> file from disk? this will reduce the size of lua module: 100,436 byte= s -> >>> 49,766. >>> >>> But the benifit of using Lua, i think, is for graphic menu. the gfxme= nu uses >>> a strange script engine, it is hard to learn for a common user; but t= he Lua, >>> it is easy. ;-) >>> >>> >>> So, it is good to have lua support in Grub2. >> Hi, >> >> In my suggestion to split normal mode, the script engine is separated >> and can be replaced, as long as they export a certain interface that >> return information like the menu items, etc. But now, I'm waiting for >> the handler patch, as it's the basic of the new model. >=20 > Note that size is still an issue, though. For example coreboot users w= ill > usually want to use scripting for the grub.cfg they store in their ROM. Hi, I like the idea of using Lua personally for graphical menu related scripting and in my opinion it could be additional script that could be used. User could in example defined scripting language in a bit same way that you do that in HTML pages: lua:"script-filename.lua" grub:"exec grub-script-filename" own-extension:"do this and this effect that is integrated to some other module" In order to one of those work, you need to load script module that registers handler for it. Do anyone have skills to decipher Lua's license is it compatible with GPLv3 ? Thanks, Vesa J=E4=E4skel=E4inen