unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Brainfuck branch
@ 2009-06-06 16:05 Daniel Kraft
  2009-06-06 16:53 ` Andreas Rottmann
  2009-06-24 11:19 ` Andy Wingo
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Kraft @ 2009-06-06 16:05 UTC (permalink / raw)
  To: guile-devel

Hi all,

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 ;)

BTW, it seems that I "accidentally" included syncase-in-boot-9 here, as 
I pulled this to get access to TreeIL for work on TreeIL -- is there 
some way to get rid of it again in my local branch so that it can 
eventually be committed to master (some time in the future) without 
including syncase-in-boot-9?

Cheers,
Daniel

PS: Andy, do you have some hints for me regarding the lexical-variables 
in TreeIL I mailed you about?  That would be cool!





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Brainfuck branch
  2009-06-06 16:05 Brainfuck branch Daniel Kraft
@ 2009-06-06 16:53 ` Andreas Rottmann
  2009-06-24 11:19 ` Andy Wingo
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Rottmann @ 2009-06-06 16:53 UTC (permalink / raw)
  To: Daniel Kraft; +Cc: guile-devel

Daniel Kraft <d@domob.eu> writes:

> Hi all,
>
> 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 ;)
>
> BTW, it seems that I "accidentally" included syncase-in-boot-9 here,
> as I pulled this to get access to TreeIL for work on TreeIL -- is
> there some way to get rid of it again in my local branch so that it
> can eventually be committed to master (some time in the future)
> without including syncase-in-boot-9?
>
Looking at the branch history (btw, gitg[0] is quite nice in visualizing
that), I think you can use "git rebase -i master" (having the brainfuck
branch checked out). This will select all commits from the current
(i.e. brainfuck) branch which are not in master already, allows you to
edit/reoder them in $EDITOR and finally replay those on top of master's
HEAD. This will linearize the history, such that directly after the
rebase, "git merge brainfuck" (in master) will be a fast-forward (which
may be desired when finally merging into master).

[0] http://trac.novowork.com/gitg/

HTH, Rotty




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Brainfuck branch
  2009-06-06 16:05 Brainfuck branch Daniel Kraft
  2009-06-06 16:53 ` Andreas Rottmann
@ 2009-06-24 11:19 ` Andy Wingo
  2009-06-24 18:25   ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Andy Wingo @ 2009-06-24 11:19 UTC (permalink / raw)
  To: Daniel Kraft; +Cc: guile-devel

Hi Daniel,

On Sat 06 Jun 2009 18:05, Daniel Kraft <d@domob.eu> 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/




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Brainfuck branch
  2009-06-24 11:19 ` Andy Wingo
@ 2009-06-24 18:25   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2009-06-24 18:25 UTC (permalink / raw)
  To: guile-devel

Hey!

Andy Wingo <wingo@pobox.com> writes:

>     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)> 

Wooow, this is... evil!    :-)

Ludo'.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-24 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-06 16:05 Brainfuck branch Daniel Kraft
2009-06-06 16:53 ` Andreas Rottmann
2009-06-24 11:19 ` Andy Wingo
2009-06-24 18:25   ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).