unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Carsten Mattner <carstenmattner@googlemail.com>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: gdb scripting language (was OSX crash)
Date: Mon, 19 Dec 2011 13:12:33 +0100	[thread overview]
Message-ID: <CACY+Hvpjg=Ke0ovSk26KufrSg+dm6DP7h3D-H1W==qHhxuzKuw@mail.gmail.com> (raw)

On Mon, Dec 19, 2011 at 12:53 PM, Stephen J. Turnbull
<stephen@xemacs.org> wrote:
> Carsten Mattner writes:
>  > On Mon, Dec 19, 2011 at 9:40 AM, Stephen J. Turnbull <stephen@xemacs.org> wrote:
>  > > Jan Djärv writes:
>  > >
>  > >  > I think [llbd] yses Python as a scripting language (yech ...).
>  > >
>  > > Tastes differ, but I think you are nuts if you prefer gdb command
>  > > language scripting to Python!
>  >
>  > Yes, but from a simplicity and size perspective Lua (even though I
>  > don't like it and wouldn't recommend it) would be better choice.
>  > >From a use-case point of view I'm sure that Guile or another LISP
>  > variant would be a more ideal fit.
>
> Eh?  You really think people who program only in C/C++/Java/FORTRAN
> would really prefer a Lispy scripting language?  People who use Emacs
> don't really count, as they (mostly) shouldn't need to care, they
> should just use gdb (or gud) mode.

Yes, because Lisps are way easier to learn and reason about than
any C variant with 20% of the behaviour being guess work and
undefined or plain system specific. Adding win32 and posix apis
with different *nixes makes it a minefield. There's a reason autoconf
still exists with all those oddball platforms having died long ago.
Most "scripting" languages either abstract away or provide a 1:1
wrapper of APIs only providing a good interface probably half of
the time. See the recent close(2) discussion started by tarsnap's
author for a trivial but unfortunate situation if you want to write
some posix code and run it on BSDs, Linux, and OSX.

> Anyway, my question is not "which idealized scripting language do you
> think should be used for an imaginary debugger's command language?"
> It's "which real debugger's actual scripting language do you prefer?"

I've never used debuggers extensively to have an opinion.

My whole argument is on using the best tool, not what is seemingly
familiar. If gdb is used by C and C++ authors, Python is not a language
they are automatically able to reason about. It's just not true, and only
made popular due to being the new Perl of the Linux distros.
Python being in lldb is one of problems FreeBSD faces with putting
LLDB in the base system.

I've changed the subject. If you want to discuss this, please let's
start a new thread, but this is not the gdb list, so most probably
is the wrong forum anyway.



             reply	other threads:[~2011-12-19 12:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-19 12:12 Carsten Mattner [this message]
2011-12-19 13:04 ` gdb scripting language (was OSX crash) Stephen J. Turnbull
2011-12-19 13:25   ` Carsten Mattner
2011-12-19 14:27     ` Stephen J. Turnbull
2011-12-19 14:50       ` Carsten Mattner
2011-12-19 20:47         ` Richard Stallman
2011-12-19 20:50           ` Carsten Mattner
2011-12-19 21:10           ` Carsten Mattner
2011-12-21 13:56             ` gdb scripting language Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACY+Hvpjg=Ke0ovSk26KufrSg+dm6DP7h3D-H1W==qHhxuzKuw@mail.gmail.com' \
    --to=carstenmattner@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=stephen@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).