From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Brainfuck branch Date: Wed, 24 Jun 2009 13:19:04 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245842355 12506 80.91.229.12 (24 Jun 2009 11:19:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 11:19:15 +0000 (UTC) Cc: guile-devel@gnu.org To: Daniel Kraft Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 24 13:19:07 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJQVO-0008TZ-M5 for guile-devel@m.gmane.org; Wed, 24 Jun 2009 13:19:06 +0200 Original-Received: from localhost ([127.0.0.1]:41273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJQVO-0004XA-25 for guile-devel@m.gmane.org; Wed, 24 Jun 2009 07:19:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJQVI-0004Wt-9B for guile-devel@gnu.org; Wed, 24 Jun 2009 07:19:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJQVC-0004WV-2r for guile-devel@gnu.org; Wed, 24 Jun 2009 07:18:58 -0400 Original-Received: from [199.232.76.173] (port=43370 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJQVB-0004WK-VK for guile-devel@gnu.org; Wed, 24 Jun 2009 07:18:53 -0400 Original-Received: from a-sasl-quonix.sasl.smtp.pobox.com ([208.72.237.25]:47235 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJQVB-0005Pr-LF for guile-devel@gnu.org; Wed, 24 Jun 2009 07:18:53 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 9CFB122134; Wed, 24 Jun 2009 07:18:49 -0400 (EDT) Original-Received: from unquote (unknown [83.44.189.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id B1DC622133; Wed, 24 Jun 2009 07:18:47 -0400 (EDT) In-Reply-To: (Daniel Kraft's message of "Sat, 06 Jun 2009 18:05:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: CA8B17A6-60B0-11DE-8529-DC021A496417-02397024!a-sasl-quonix.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8753 Archived-At: Hi Daniel, On Sat 06 Jun 2009 18:05, Daniel Kraft writes: > I just re-pushed the brainfuck branch (but should contain not much new > as compared to the last push) after the savannah break-down. I think it > should have gotten right this time, too, but I again had to struggle a > bit with git ;) Thanks for the patches! I cherry-picked the relevant work to master. It's a cool compiler! And, it brought out some other bugs that I had been meaning to fix. I added a Tree-IL compiler, because I thought it would be more illustrative. Then I fixed some repl bugs so that brainfuck can be compiled with `,c', and input works now too. I'm still not happy with the generated code (produced by the tree-il->glil compiler), but I think I have some ideas about how to make that better. But for now: scheme@(guile-user)> ,L brainfuck Guile Brainfuck interpreter 1.0 on Guile 1.9.0 Copyright (C) 2001-2008 Free Software Foundation, Inc. Enter `,help' for help. brainfuck@(guile-user)> ++++++++++ initializes cell zero to 10 ... [ ... >+++++++>++++++++++>+++>+<<<<- ... ] this loop sets the next four cells to 70/100/30/10 ... >++. print 'H' ... >+. print 'e' ... +++++++. 'l' ... . 'l' ... +++. 'o' ... >++. space ... <<+++++++++++++++. 'W' ... >. 'o' ... +++. 'r' ... ------. 'l' ... --------. 'd' ... >+. '!' ... >. newline ... ] Hello World! brainfuck@(guile-user)> Cheers, Andy -- http://wingolog.org/