From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.user Subject: Re: on bootstrapping: first Mes 0.3 released Date: Sun, 25 Dec 2016 16:11:39 +0100 Organization: AvatarAcademy.nl Message-ID: <87oa00cac4.fsf@gnu.org> References: <87pokwua3s.fsf@gnu.org> <87mvfr3m90.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1482678754 21322 195.159.176.226 (25 Dec 2016 15:12:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2016 15:12:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-user@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 25 16:12:30 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLATN-0004aR-MX for guile-user@m.gmane.org; Sun, 25 Dec 2016 16:12:29 +0100 Original-Received: from localhost ([::1]:47135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLATP-00046f-5L for guile-user@m.gmane.org; Sun, 25 Dec 2016 10:12:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLASx-00046M-10 for guile-user@gnu.org; Sun, 25 Dec 2016 10:12:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLASt-00087P-RJ for guile-user@gnu.org; Sun, 25 Dec 2016 10:12:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLASc-00083R-O4; Sun, 25 Dec 2016 10:11:42 -0500 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:57396 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cLASc-0004Dt-5h; Sun, 25 Dec 2016 10:11:42 -0500 X-Url: http://AvatarAcademy.nl In-Reply-To: <87mvfr3m90.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 19 Dec 2016 17:40:59 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13051 Archived-At: Ludovic Court=C3=A8s writes: Hi! > Impressive! Thanks! > Is it a goal to try interpret a language as close as possible to that of > Guile, and have the same libraries? I guess that could help in the > future: we could use (system base lalr), nyacc, etc. We definitely want Nyacc and PEG, and who can live without lambda*? Other than that I intend to cut as many corners as I can get away with, also wrt Guile compatibility; at least for now. > Also, currently there=E2=80=99s approximately 2K lines of C. How do you = plan to > make sure that it doesn=E2=80=99t grow over time, or even that it shrinks= ? :-) It was worse, about 2600LOC. I worked very hard last week and also had a bit of luck. I found a performance clue-bat while reading Guile-1.8's eval.c; now macros are expanded only once. This helped so much that I finally started moving stuff from the C prototype into Scheme; about 1000LOC have been removed. The intepreter with all dependencies, including cell creation and garbage collector is now ~1000LOC. That is able to execute a Scheme program that has been loaded into memory. Another ~500LOC is spent to load a minimal Scheme program and to dump it, to provide a small posix interface, math functions and do some error reporting. Next up: 0.4 release. Then I want to start working on the now very simplistic compiler backend and hook it up to Nyacc's AST. As the current proof-of-concept C compiler runs in Guile too and Nyacc runs in Mes this can be all done in Guile or a joint Guile/Mes project. > This all sounds very promising, thanks a lot! Yay, quit happy to hack on this! Greetings, Jan --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20