unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: Mark H Weaver <mhw@netris.org>, guile-devel <guile-devel@gnu.org>
Subject: Re: Inclusion of guile-log II
Date: Wed, 4 Apr 2012 18:33:55 +0200	[thread overview]
Message-ID: <CAGua6m0Yr8FZUU3G7vveDqZiKZRrPW5sHhXxOVEizGwbZSJrUw@mail.gmail.com> (raw)
In-Reply-To: <87r4w3eact.fsf@netris.org>

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

On Wed, Apr 4, 2012 at 6:21 PM, Mark H Weaver <mhw@netris.org> wrote:

> Hi Stefan,
>
> Did you intend to send this as private email?  Wouldn't it be better to
> discuss this on the mailing list?
>
> Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:
> > Because what would be cool though is to use an
> > assoc-list as in kanren and when it grows to large issue a batch
> > synchronisation and bring out that whole assoc into modifying the
> > thread0 datastructure in one go.
>
> Another possibility is to simply replace the assoc-list with a more
> efficient purely-functional map structure.  Guile already has vhashes,
> but even better would be persistent Hash Array Mapped Tries (HAMT) as
> used in Clojure.  See Phil Bagwell's paper "Ideal Hash Trees" for the
> basic idea, and the persistent purely-functional variant used in Clojure
> simply copies the path from the new leaf to the root in the obvious way
> to add or delete without mutation.  I'd like to add a highly-optimized
> implementation of this to Guile soon.
>

I do think that this can be interesting to try out. Also the lookup could
be coded in C in order
to speed up kanren for guile.

/Stefan

>
>   Regards,
>     Mark
>

[-- Attachment #2: Type: text/html, Size: 1792 bytes --]

  parent reply	other threads:[~2012-04-04 16:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03 19:18 Inclusion of guile-log II Stefan Israelsson Tampe
2012-04-04  0:05 ` Mark H Weaver
     [not found]   ` <CAGua6m1MFNHXgU+qam64Hf1Vt3iNEy=v==q4-Ua48a8AgcXz_Q@mail.gmail.com>
     [not found]     ` <CAGua6m0tu98=qHR5GdC4f84AF=noUdt2RpxJPReMVu8UaUMwzg@mail.gmail.com>
2012-04-04 16:30       ` Fwd: " Stefan Israelsson Tampe
     [not found]       ` <87r4w3eact.fsf@netris.org>
2012-04-04 16:33         ` Stefan Israelsson Tampe [this message]
2012-04-04 16:54     ` Stefan Israelsson Tampe
2012-04-04 21:52 ` Ludovic Courtès
2012-04-05  6:02   ` Stefan Israelsson Tampe
2012-04-09 20:15     ` Ludovic Courtès
2012-04-06 18:03   ` Stefan Israelsson Tampe
2012-04-09 20:16     ` Ludovic Courtès

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=CAGua6m0Yr8FZUU3G7vveDqZiKZRrPW5sHhXxOVEizGwbZSJrUw@mail.gmail.com \
    --to=stefan.itampe@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=mhw@netris.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).