From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Wilfred Hughes Newsgroups: gmane.lisp.guile.bugs Subject: bug#24363: Clarify the VM docs Date: Sun, 4 Sep 2016 01:04:51 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1249c21b383c053ba7825e X-Trace: blaine.gmane.org 1472965579 26933 195.159.176.226 (4 Sep 2016 05:06:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Sep 2016 05:06:19 +0000 (UTC) To: 24363@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Sep 04 07:06:16 2016 Return-path: Envelope-to: guile-bugs@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 1bgPdF-0006Dy-Ur for guile-bugs@m.gmane.org; Sun, 04 Sep 2016 07:06:14 +0200 Original-Received: from localhost ([::1]:48776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgPdD-000561-GZ for guile-bugs@m.gmane.org; Sun, 04 Sep 2016 01:06:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgPd7-00055v-HS for bug-guile@gnu.org; Sun, 04 Sep 2016 01:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgPd4-0002M8-Bc for bug-guile@gnu.org; Sun, 04 Sep 2016 01:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgPd4-0002M4-8C for bug-guile@gnu.org; Sun, 04 Sep 2016 01:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bgPd4-0003xs-00 for bug-guile@gnu.org; Sun, 04 Sep 2016 01:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wilfred Hughes Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 04 Sep 2016 05:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24363 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147296552715192 (code B ref -1); Sun, 04 Sep 2016 05:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Sep 2016 05:05:27 +0000 Original-Received: from localhost ([127.0.0.1]:49080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgPcU-0003wy-QC for submit@debbugs.gnu.org; Sun, 04 Sep 2016 01:05:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgPcT-0003wd-QD for submit@debbugs.gnu.org; Sun, 04 Sep 2016 01:05:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgPcN-0002F6-Ki for submit@debbugs.gnu.org; Sun, 04 Sep 2016 01:05:20 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgPcN-0002Ez-Hl for submit@debbugs.gnu.org; Sun, 04 Sep 2016 01:05:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgPcL-00050X-0l for bug-guile@gnu.org; Sun, 04 Sep 2016 01:05:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgPcG-0002Bx-Pz for bug-guile@gnu.org; Sun, 04 Sep 2016 01:05:15 -0400 Original-Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:34300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgPcG-0002Br-KP for bug-guile@gnu.org; Sun, 04 Sep 2016 01:05:12 -0400 Original-Received: by mail-qt0-x22a.google.com with SMTP id 38so40440974qte.1 for ; Sat, 03 Sep 2016 22:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilfred-me-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=9HI5zrXAPINMx9jNScgDcJ5aMM0VRYzsa/ZMK9Yc3F0=; b=sPSUi/E6/x7Gm7Bt5Kl9ToN7xylmfEhqEGbAukONzbmsezBYHMMdmefiyxI800FVZ5 wlSnbhGQRMF+ZSzMZr2xOyZt85P3KnhSDWecCw8E5mx+0202hTJ6yKg1uUXK2Pm1PiSy fVrQuIlgxn+1lDWF3dI6G0j70EuniApulkKO4AUi9xsVcuBnoGUgV85+Y5xQ/PsLewJ1 UnAt9+u5vnhPl3fOm7fcpGTr1vXkH4/Z0A1x2ystD+qCntapt08O8CyFk+Z0T2KOmKj6 uHhggl7lSJeK1nK7o5GPkuui7oWhc1gZaJtF6vTZxYxYUQdn8B6snXxKTtK8HSOTLNhE Xuug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9HI5zrXAPINMx9jNScgDcJ5aMM0VRYzsa/ZMK9Yc3F0=; b=lRGkahg1oHjPQoDCjHE7br2codGJZxYDhC5o3vVgcVqHxIrPbS4HScQXRYm3LzOOox QyCluPnzGOUsL4FrJTD/9wJ6RdHb+FyPKcYzu5wb1oBhYqxIoKKjqhG6UwaY0ylJZOgv SsDsR95eGfSZ8xUFJbBIGDR27lzu4DZ3sC7ZMdd5c3Zhh/Fr34OL2RfhEIhWgsN6sGwa ktqrUScGXJmyM/h+0DDRgEPUddo37xkICCsyu+I7UCvaVK8Pb49Ja3FRzJdwiKx7fU/w iEbH3k8df1NTFWr2vmdIj/riiVazUlFCXtzByBp5Q6hjm5JDmQQuqtCTHOIs3EPhCuX8 Hosw== X-Gm-Message-State: AE9vXwMgFDirrELQwwDSsMRtvWxlMPW2j0HQ5sdFbfSvjptMJtYA5qLk773F1k1gbt6oiT6VkkoDuSLj25LvLA== X-Received: by 10.237.44.195 with SMTP id g61mr33315332qtd.105.1472965511945; Sat, 03 Sep 2016 22:05:11 -0700 (PDT) Original-Received: by 10.200.46.246 with HTTP; Sat, 3 Sep 2016 22:04:51 -0700 (PDT) X-Originating-IP: [146.115.86.181] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8403 Archived-At: --94eb2c1249c21b383c053ba7825e Content-Type: text/plain; charset=UTF-8 The docs currently state: > The easiest (and most fun) way to depend on a virtual machine is to implement the virtual machine within Guile itself. This way the virtual machine provides what Scheme needs (tail calls, multiple values, call/cc) and can provide optimized inline instructions for Guile (cons, struct-ref, etc.). This is a little confusing for new readers (like myself), who may consider Guile to by synonymous with Scheme. This led to interpret this as 'the VM is implemented in Scheme', which has a bootstrapping problem (what actually interprets your bytecode?). Instead, I propose adding an additional sentence: > The easiest (and most fun) way to depend on a virtual machine is to implement the virtual machine within Guile itself. Guile contains a bytecode interpreter (written in C) and a Scheme to bytecode compiler (written in Scheme). This way the virtual machine provides what Scheme needs (tail calls, multiple values, @code{call/cc}) and can provide optimized inline instructions for Guile (@code{cons}, @code{struct-ref}, etc.). --94eb2c1249c21b383c053ba7825e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The docs currently state:

> The e= asiest (and most fun) way to depend on a virtual machine is to implement the virtual machine within Guile itself. This way the virtual machine provides what Scheme needs (tail calls, multiple values, call/cc) and can provide optimized inline instructions for Guile (cons, struct-ref, etc.).

= This is a little confusing for new readers (like myself), who may consider = Guile to by synonymous with Scheme.

This led to interpret this= as 'the VM is implemented in Scheme', which has a bootstrapping pr= oblem (what actually interprets your bytecode?).

Instead, I pr= opose adding an additional sentence:

> The easiest (and most fun)= way to depend on a virtual machine is to
implement the virtual machine = within Guile itself. Guile contains a
bytecode interpreter (written in C= ) and a Scheme to bytecode compiler
(written in Scheme). This way the vi= rtual machine provides what Scheme
needs (tail calls, multiple values, @= code{call/cc}) and can provide
optimized inline instructions for Guile (= @code{cons}, @code{struct-ref},
etc.).
--94eb2c1249c21b383c053ba7825e--