unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Aidan Kehoe <kehoea@parhasard.net>
To: aemoncannon@gmail.com
Cc: emacs-devel@gnu.org
Subject: Re: Difficulties byte-compiling very large .el file
Date: Tue, 25 Aug 2009 11:16:06 +0100	[thread overview]
Message-ID: <19091.47590.276871.440616@parhasard.net> (raw)
In-Reply-To: <794057160908191449t4b23080cjf2b85cb0f8e4f589@mail.gmail.com>


 Ar an naoú lá déag de mí Lúnasa, scríobh Aemon Cannon: 

 > [...] Here's the source in question:
 > http://aemon.com/file_dump/as3_elispParser.el
 > 
 > If you're interested in trying to compile, you'll need:
 > http://github.com/aemoncannon/antlr-elisp/raw/c411f29743e3182523e0ad27a9384b6c4210d55e/src/runtime/ELisp/a3el-runtime.el
 > 
 > I don't think the error is actually related to the content of the
 > file, as there are no non-ascii characters in the file, and deleting
 > seemingly arbitrary chunks makes the error go away.

Tangentially to this, you should be aware that several of your integer
constants are silently overflowing in that file. With an XEmacs with 31-bit
integers and no bignum support, the Lisp reader throws an overflow error
twice for me; GNU Emacs has (IIRC) 27-bit integers on 32-bit platforms and
doesn’t error on reading integers it can’t represent, so more than two of
your integer constants may be corrupt. 

The constants that overflow for me are 2147483647 on line 10006 and again on
line 2291. I can work around this (though there’s still lots of thrashing
when compiling the file) by using most-positive-fixnum instead, modifying
#'a3el-lookahead-let-bindings to call #'symbol-value on max-k if it doesn’t
satisfy #'numberp.

-- 
¿Dónde estará ahora mi sobrino Yoghurtu Nghe, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?




  parent reply	other threads:[~2009-08-25 10:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 21:49 Difficulties byte-compiling very large .el file Aemon Cannon
2009-08-20  8:27 ` Andreas Schwab
2009-08-20 13:07   ` Aemon Cannon
2009-08-20 13:23     ` Andreas Schwab
2009-08-20 14:29       ` Aemon Cannon
2009-08-20 18:30     ` Eli Zaretskii
2009-08-25 10:16 ` Aidan Kehoe [this message]
2009-08-25 11:07   ` Miles Bader
2009-08-25 11:50     ` Aidan Kehoe
2009-08-25 15:04       ` Aemon Cannon
2009-09-01 22:41         ` Aemon Cannon
2009-08-29  0:37   ` Stefan Monnier

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=19091.47590.276871.440616@parhasard.net \
    --to=kehoea@parhasard.net \
    --cc=aemoncannon@gmail.com \
    --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 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).