unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: guile-user@gnu.org
Subject: Re: Scheme books [was: lat? and atom? not in guile?]
Date: Thu, 21 Jun 2018 07:01:36 -0700	[thread overview]
Message-ID: <6fd0d225-03f3-494c-d697-f3d1eed3c1be@gmail.com> (raw)
In-Reply-To: <878t78s17v.fsf@fastmail.com>

On 06/21/2018 06:44 AM, Joshua Branson wrote:
> Matt Wette <matt.wette@gmail.com> writes:
>
> And on this topic, I'm currently reading 'The Reasoned Schemer,' written
> in the same style.   The style gets the stuff into my head w/o resorting to
> trying out problems on the computer (yet).
> Hmmm. I've heard about the seasoned schemer, but not the reasoned one.
> I also have downloaded Structure and Interpretation of Computer
> Programs.  I need to actually spend some time going through it.
>
> I've just got several programming projects that I want to do, and I need
> to remind myself that I probably can't learn it all at once.  :)

The Reasoned Schemer is about miniKanren, a Scheme library thatuses
unification to generate a system of relations (versusfunctions).For
example, while (append '(a b) '(c d)) => '(a b c d), miniKanren can
solve "find x such that (append '(a b) x) yields '(a b c d)" :

   scheme@(guile-user)> (run* (x) (appendo '(a b) x '(a b c d)))
   $2 = ((c d))

where appendo is defined as:
(define appendo
   (lambda (l s ls)
     (conde
       ((== '() l) (== s ls))
       ((fresh (a d res)
      (== `(,a . ,d) l)
      (== `(,a . ,res) ls)
      (appendo d s res))))))

check https://dl.acm.org/citation.cfm?id=3110252

Matt




  reply	other threads:[~2018-06-21 14:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-19 15:18 lat? and atom? not in guile? Joshua Branson
2018-06-19 16:13 ` Thompson, David
2018-06-20 14:37   ` Joshua Branson
2018-06-20 14:40     ` John Cowan
2018-06-20 14:55       ` Thompson, David
2018-06-20 16:55         ` Joshua Branson
2018-06-20 23:47         ` Scheme books [was: lat? and atom? not in guile?] Matt Wette
2018-06-21 13:44           ` Joshua Branson
2018-06-21 14:01             ` Matt Wette [this message]
2018-06-20 16:54       ` lat? and atom? not in guile? Joshua Branson
2018-06-19 16:46 ` John Cowan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6fd0d225-03f3-494c-d697-f3d1eed3c1be@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).