all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: cyd@stupidchicken.com, emacs-devel@gnu.org
Subject: Re: Intervals crash
Date: Sat, 25 Sep 2010 23:34:08 +0900	[thread overview]
Message-ID: <87sk0x28pr.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <83fwwztq4e.fsf@gnu.org>

Eli Zaretskii writes:
 > > From: "Stephen J. Turnbull" <stephen@xemacs.org>
 > > Cc: cyd@stupidchicken.com,
 > >     emacs-devel@gnu.org
 > > Date: Fri, 24 Sep 2010 17:52:28 +0900
 > > 
 > > Eli Zaretskii writes:
 > > 
 > >  > If you really need the full range of size_t or EMACS_UINT,
 > >  > there's little you can do in practice.
 > > Practically speaking, Emacs doesn't ever *really* need the full
 > > range of size_t, since Lisp can't represent it in a fixnum.  It
 > > might be nice to have a way to store them, but you can use conses
 > > of fixnums, floats, or the occasionally-requested bignums for
 > > that.
 > 
 > I didn't mean in APIs exposed to Lisp.  I meant Emacs internals.

What makes you think I don't understand that?  I will repeat what I
said earlier: *XEmacs internals don't have EMACS_UINT any more*, and
XEmacs works spectacularly better (in the sense of fewer crashes,
which I consider spectacularly bad things to have happen, YMMV), and
is easier to understand.

What's not to like about that?  Yes, I understand a lot of work needs
to be done to get there.  But (unless Emacs has some lingering
Heisencrashes that aren't understood but might be related to
infrequently called APIs that sometimes return negative numbers that
are cast to unsigned, which of course I'm sure it doesn't ;-) there's
no hurry.  Take your time; I'm just suggesting that EMACS_UINT removal
is a worthy long term goal as every such variable is an accident
waiting to happen with no compensating benefits.

That doesn't mean that we don't have unsigneds; of course we do,
because they're part of the POSIX API.  We just don't allow them to
exist in XEmacs proper any longer than it takes to test for overflow
and convert them to EMACS_INT, or to convert from EMACS_INT to
unsigned and pass to the external API.




  reply	other threads:[~2010-09-25 14:34 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 18:23 Intervals crash Chong Yidong
2010-09-23 18:52 ` Chong Yidong
2010-09-23 19:01   ` Eli Zaretskii
2010-09-23 19:09     ` Chong Yidong
2010-09-23 19:32       ` Eli Zaretskii
2010-09-23 18:57 ` Eli Zaretskii
2010-09-24  6:12   ` Stephen J. Turnbull
2010-09-24  8:16     ` Eli Zaretskii
2010-09-24  8:52       ` Stephen J. Turnbull
2010-09-24 10:03         ` Eli Zaretskii
2010-09-25 14:34           ` Stephen J. Turnbull [this message]
2010-09-25 16:10             ` Eli Zaretskii
2010-09-25 18:54               ` Stephen J. Turnbull
2010-09-25 22:07                 ` Eli Zaretskii
2010-09-26 13:08                   ` Stephen J. Turnbull
2010-09-26 19:22                     ` Miles Bader
2010-09-26 19:33                       ` David Kastrup
2010-09-27  4:53                       ` Stephen J. Turnbull
2010-09-27  6:55                         ` David Kastrup
2010-09-27  7:42                           ` Jan Djärv
2010-09-27  8:34                             ` Eli Zaretskii
2010-09-27  9:02                               ` David Kastrup
2010-09-27 11:02                                 ` Eli Zaretskii
2010-09-27  8:36                           ` Eli Zaretskii
2010-09-27  8:50                           ` Stephen J. Turnbull
2010-09-27  9:39                             ` David Kastrup
2010-09-27  9:45                               ` Lars Magne Ingebrigtsen
2010-09-27 10:11                               ` Stephen J. Turnbull
2010-09-24 10:31 ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=87sk0x28pr.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=cyd@stupidchicken.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.