From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Allan Webber Newsgroups: gmane.lisp.guile.user Subject: Re: on bootstrapping: first Mes 0.3 released Date: Fri, 16 Dec 2016 10:21:17 -0600 Message-ID: <87r357vo8y.fsf@dustycloud.org> References: <87pokwua3s.fsf@gnu.org> <87h9683i82.fsf@web.de> <87lgvku6jq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481905322 15710 195.159.176.226 (16 Dec 2016 16:22:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 16:22:02 +0000 (UTC) User-Agent: mu4e 0.9.16; emacs 25.1.1 Cc: guile-user@gnu.org To: Jan Nieuwenhuizen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Dec 16 17:21:57 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 1cHvGc-0002iC-Pl for guile-user@m.gmane.org; Fri, 16 Dec 2016 17:21:54 +0100 Original-Received: from localhost ([::1]:33082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHvGh-0004z5-5s for guile-user@m.gmane.org; Fri, 16 Dec 2016 11:21:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHvG7-0004ot-0z for guile-user@gnu.org; Fri, 16 Dec 2016 11:21:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHvG3-0002zx-Tu for guile-user@gnu.org; Fri, 16 Dec 2016 11:21:23 -0500 Original-Received: from dustycloud.org ([50.116.34.160]:45402) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHvG3-0002ze-PW; Fri, 16 Dec 2016 11:21:19 -0500 Original-Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id C8323266FB; Fri, 16 Dec 2016 11:21:17 -0500 (EST) In-reply-to: <87lgvku6jq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 50.116.34.160 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:13028 Archived-At: Jan Nieuwenhuizen writes: > The current interpeter I consider to be a prototype in C; I use gcc. > However, HACKING mentions two ways forward > > ** Move mes.c into hex? > One idea is to use OrianJ's amazing self-hosting > [[https://github.com/oriansj/stage0][stage0]] hex assembler and > minimal bootstrap binaries and rewrite the mes.c core to directly > bootstrap into Scheme. > > ** Rewrite mes.c and generate hex? > Another idea (thanks Rutger!) is to rewrite the mes.c core in a > C/Assembly variant and have mescc produce the simple, annotated > bootstrap binary. > > Possibly you have an even better idea? I am choosing to explore the > latter first: work on the compiler backend and write the interpreter in > its Assembly/C-like s-expressions. First, I'm really excited you're making progress on Mes! Second, Scheme48 did something similar to this, called "Pre-Scheme", which is how they bootstrapped Scheme48 iirc. Have you heard of it or looked at it? https://en.wikipedia.org/wiki/PreScheme