From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6201 invoked by alias); 10 Feb 2007 20:33:16 -0000 Received: (qmail 6189 invoked by uid 22791); 10 Feb 2007 20:33:15 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 10 Feb 2007 20:33:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1HFyuB-0007PA-VC for gdb@sourceware.org; Sat, 10 Feb 2007 15:33:08 -0500 Date: Sat, 10 Feb 2007 20:33:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: GDB and scripting languages - which Message-ID: <20070210203307.GA27502@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <20070108222005.GA27451@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00067.txt.bz2 On Sat, Feb 10, 2007 at 02:28:09PM +0200, Eli Zaretskii wrote: > > Date: Sat, 13 Jan 2007 10:31:51 +0200 > > From: Eli Zaretskii > > CC: gdb@sourceware.org > > > > I think adding Python would be a useful first step. It could be the > > last, or we could later consider Guile as well. > > On second thought, what about Lua (http://www.lua.org/)? It looks > like a language designed specifically for extending software packages. > > (Sorry for answering after such a long delay.) Jim wrote: > Python has more momentum than Guile in almost any way one might > measure it: > - number of users who are familiar with it > - body of large programs written in it > - number of modules available for reuse > - number of programs embedding it > - number of books available for learning it I found that very persuasive, and it applies to Lua, though not as strongly - I see a bit more done with Lua than with Guile, but it doesn't compare to Python. Also, I know Python, and I think a few others on this list do - I don't know if anyone here knows Lua. I spent a while reading the LuaVersusPython wiki page on the Lua Users wiki. I can't say that I found it very persuasive in either direction for our situation. Getting Python to work at all is likely to be more trouble, but not much more trouble, and I'm willing to take care of that myself. And GDB isn't a lightweight program, which is where much of Lua's advantage seems to be. Anyway, just my two cents. -- Daniel Jacobowitz CodeSourcery