unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mikael Djurfeldt <djurfeldt@nada.kth.se>
Cc: djurfeldt@nada.kth.se, guile-devel@gnu.org
Subject: Re: Shared arrays
Date: Thu, 28 Oct 2004 13:54:14 +0200	[thread overview]
Message-ID: <xy7d5z33vo9.fsf@nada.kth.se> (raw)
In-Reply-To: <ljr7njt65u.fsf@troy.dt.e-technik.uni-dortmund.de> (Marius Vollmer's message of "Thu, 28 Oct 2004 13:48:29 +0200")

Marius Vollmer <marius.vollmer@uni-dortmund.de> writes:

> What worries me a bit right now is that one-dimensional shared
> arrays look like (uniform) vectors, but you can't use them in all
> the places that you can use (uniform) vectors.
>
> For example (excuse the density):
>
>   (vector? (make-shared-array (make-array 1 3 3) (lambda (i) (list i i)) 3))
>   => #f
>
> although one can of course argue that the diagonal of a 2-d array is a
> vector.

Yes,

I think it's ugly to have two alternative representations for a
1-dimensional list of numbers (uniform vector + 1D uniform array).
Just as we convert bignums small enough to fit in an inum, we should,
in my opinion, only use the uniform vector representation.

Or, perhaps even simpler, represent uniform vectors as 1D arrays.

M


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2004-10-28 11:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-28  9:31 Shared arrays Mikael Djurfeldt
2004-10-28 11:48 ` Marius Vollmer
2004-10-28 11:54   ` Mikael Djurfeldt [this message]
2004-10-28 12:15     ` Marius Vollmer
2004-10-30 14:38 ` Neil Jerram

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=xy7d5z33vo9.fsf@nada.kth.se \
    --to=djurfeldt@nada.kth.se \
    --cc=guile-devel@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).