[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another alternative string representation proposal
From: |
Keisuke Nishida |
Subject: |
Re: Another alternative string representation proposal |
Date: |
25 Sep 2000 18:37:08 -0400 |
User-agent: |
T-gnus/6.14.4 (based on Gnus v5.8.6) (revision 02) SEMI/1.13.7 (Awazu) Chao/1.14.0 (Momoyama) Emacs/20.7 (i686-pc-linux-gnu) MULE/4.1 (AOI) |
address@hidden (Carl R. Witty) writes:
> > Is owner_p really necessary? If a char-field is read-only, it is not
> > the owner of the character sequence. If it is mutable or immutable,
> > we can force the char-field to own the sequence.
>
> I can see at least one potential use for a mutable, not-owned string:
> it could be used by a guile wrapper for mmap. Although probably it
> would be better to use a different, specialized type for this; so
> that's not much of an argument...
If you modify mmap'ed memory, it is copied anyway, isn't it? And we'd
like to use shared mapping rather than private mapping, right? I think
mmap'ed memory should be read-only.
BTW, if I choose indirect threading with my VM, I can use shared mmap
for loading bytecode because no modification is needed at loading time.
Another reason to switch to indirect threading. I'll implement it later..