From: Roland Orre <roland.orre@neurologic.se>
Subject: Re: Uniform vectors, user survey
Date: Tue, 26 Oct 2004 05:03:07 +0200 [thread overview]
Message-ID: <1098759786.24796.77.camel@localhost> (raw)
I'm mainly using guile for data analysis (basically everything
what I'm doing) and I'm always used uniform vectors a lot.
I'm using uniform vectors as basic data structures and as interfaces.
The types I'm using are mainly:
#s() Float
#i() Double
#h() Short
#u() Integer
#t bits
As my habit is to implement things in scheme first and then go to
C-code I can gain incredible effects on performance compared to
e.g. using standard vectors, which I'm basically use for high
level data structures, to keep other vectors and things in.
With uniform vector gc goes to zero and the C-code becomes
very efficient.
I like the uniform vectors and consider them to be an essential
feature of guile. I've used them since guile started to be guile
ten years or so ago. I also use the shared vectors (as well as
shared substrings, nowadays priv impl.) for efficieny reasons.
I have to agree somewhat with Peter Christopher though, that
I'm not entirely enthusiastic about the prototypes, even though
they are quite intuitive (it's basically the difference between
float vectors and double vectors I'm not very fond of, as well
as the reading/printing syntax of uniform vectors maybe should
be more consistent. It may preferrably be something like:
type print/read proto
gen #() '() or 'v
float #f() 'f
double #d() 'd
complex #c() 'c
signint #i() 'i
uns.int #u() 'u
short #s() 's
llong #l() 'l
bit #*1010 '*
string #a() 'a
and so on, something like this would be more intuitive I think,
but this is just a wild suggestion.
Best regards
Roland Orre
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next reply other threads:[~2004-10-26 3:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-26 3:03 Roland Orre [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-22 14:19 Uniform vectors, user survey Marius Vollmer
2004-10-23 14:02 ` Neil Jerram
2004-10-24 16:04 ` Mikael Djurfeldt
2004-10-25 18:08 ` Stephen Compall
2004-10-25 18:34 ` Peter Christopher
2004-10-25 19:51 ` Ludovic Courtès
2004-10-25 22:00 ` Mike Gran
2004-10-26 2:50 ` Steve Tell
2004-11-04 17:48 ` Marius Vollmer
2004-11-05 17:01 ` Marius Vollmer
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=1098759786.24796.77.camel@localhost \
--to=roland.orre@neurologic.se \
/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).