From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fren Zeee Newsgroups: gmane.emacs.devel Subject: Re: What's the spec for emacs lisp virtual machine ? Date: Fri, 23 Jul 2010 09:18:48 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1279902362 6169 80.91.229.12 (23 Jul 2010 16:26:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2010 16:26:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: ams@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 23 18:25:59 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OcL4R-0002vJ-He for ged-emacs-devel@m.gmane.org; Fri, 23 Jul 2010 18:25:59 +0200 Original-Received: from localhost ([127.0.0.1]:45943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcKxj-0007y5-AB for ged-emacs-devel@m.gmane.org; Fri, 23 Jul 2010 12:19:03 -0400 Original-Received: from [140.186.70.92] (port=52232 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OcKxe-0007y0-5b for emacs-devel@gnu.org; Fri, 23 Jul 2010 12:18:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OcKxd-0005wt-0z for emacs-devel@gnu.org; Fri, 23 Jul 2010 12:18:58 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:59178) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OcKxc-0005wl-Ot; Fri, 23 Jul 2010 12:18:56 -0400 Original-Received: by gxk4 with SMTP id 4so218673gxk.0 for ; Fri, 23 Jul 2010 09:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JX6RcU+GcTizXebP1bHYeXNVNJyU2FhSLYj6I5klrfQ=; b=UF+f32oJFGSBAs6OUYgdgHN/ANbx4L+WLS5j3k07glAwn1rPH/ao6Px+1ioY6jlHoz W5foojNqURDiGXXDiT2MroB22/rJIUe6zBd4Emqe5lStsBHMvlaM+w8jC6OIva2xUeER VHJ3D7Q+8abT0WnCAalx7rYh0FE4zdpLaFclc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=m+vnMk5g4UWC26teuM2t/OVREe1DVu+1KnjZ4yCOSHECyZ2F+HqhIn15fwgbmx4DKq PARao9ERPwP6/xhv6iCr3uVy1QNZDl0Os4/ZIt1syWs7Kg4Vsh/9hz3O05U350RfwsRW Y/g/dcxcDDcNvJl0S1Pjnjby3I3FsGnYqE0uw= Original-Received: by 10.90.49.1 with SMTP id w1mr3815580agw.13.1279901928682; Fri, 23 Jul 2010 09:18:48 -0700 (PDT) Original-Received: by 10.231.199.80 with HTTP; Fri, 23 Jul 2010 09:18:48 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127709 Archived-At: On Fri, Jul 23, 2010 at 12:28 AM, Alfred M. Szmidt wrote: > =A0 I have done searches on wiki and other places but the things are not > =A0 entirely clear because they are not oriented to my goal of centering > =A0 around emacs. > > Have you tried looking at the source code for emacs? =A0It isn't that > complex and the code is well commented, it is also the best place for > any details regarding emacs. =A0The VM is located in emacs/src/eval.c, > the byte-code compiler in emacs/lisp/emacs-lisp/bytecomp.el. =A0You can > use the disassemble function to disassemble emacs byte-code. > I have looked at some header and C files on the savannah site, not this one= . I am waiting for a reply from the group and RMS on the earliest sources which were probably smaller also, like 13 to 16.56 which might be simpler for this newbie. Perhaps, you may put a snippet to actually show a few things to this newbie= . I think often its best to demonstrate then to direct particularly for those who say its easy for them. What type of scanner does the Lisp parser and interpreter use ? Is it listed ? Is there a FSM state transition table drawn ? Franz Xe