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: Mon, 12 Dec 2016 23:27:37 +0100 Organization: AvatarAcademy.nl Message-ID: <87lgvku6jq.fsf@gnu.org> References: <87pokwua3s.fsf@gnu.org> <87h9683i82.fsf@web.de> 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 1481581706 17248 195.159.176.226 (12 Dec 2016 22:28:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Dec 2016 22:28:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-user@gnu.org To: Arne Babenhauserheide Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Dec 12 23:28:21 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 1cGZ51-0003HK-W9 for guile-user@m.gmane.org; Mon, 12 Dec 2016 23:28:20 +0100 Original-Received: from localhost ([::1]:33871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGZ56-0000Na-Bf for guile-user@m.gmane.org; Mon, 12 Dec 2016 17:28:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGZ4j-0000ML-Ft for guile-user@gnu.org; Mon, 12 Dec 2016 17:28:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGZ4e-0006ac-4P for guile-user@gnu.org; Mon, 12 Dec 2016 17:28:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGZ4Q-0006Lx-MK; Mon, 12 Dec 2016 17:27:42 -0500 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:55706 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 1cGZ4Q-0003sx-1F; Mon, 12 Dec 2016 17:27:42 -0500 X-Url: http://AvatarAcademy.nl In-Reply-To: <87h9683i82.fsf@web.de> (Arne Babenhauserheide's message of "Mon, 12 Dec 2016 23:17:33 +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:13021 Archived-At: Arne Babenhauserheide writes: >> Mes aims to create an entirely source-based bootstrapping path. The >> target is to [have GuixSD] boostrap from a minimal, easily inspectab= le >> binary --that should be readable as source-- into something close to >> R6RS Scheme. > > This is really cool! Thank you for your work! Good, thanks! >> It currently has an interpreter written in C (mes) with Garbage >> Collector (Jam Scraper), a library of loadable Scheme modules with >> test suite just barely enough to support a simple REPL (repl.mes) >> and a proof-of-concept c-compiler (mescc.mes) that produces an elf >> from the simplest of C files. > > How do you compile the interpreter? 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. > Best wishes, Thanks, Greetings, Jan --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20