unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Re: rfi: immutable strings
@ 2011-01-07 18:52 Mike Gran
  2011-01-08 21:57 ` Ludovic Courtès
  2011-01-27 16:31 ` Andy Wingo
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Gran @ 2011-01-07 18:52 UTC (permalink / raw)
  To: Andy Wingo, guile-devel

> Hello,
> 
> Guile needs immutable strings.  String literals should be immutable, so
> that its characters can come directly from objcode.  Also, the result of
> (symbol->string 'foo) should be immutable; currently symbol->string
> conses up a new shared substring every time.

How is this different from read-only strings?

(BTW, you guys are doing some cool stuff right now.  I wish I could dig in,
but I'll be AWOL for a few more weeks trying to get updates of my other
projects out the door.)

-Mike



^ permalink raw reply	[flat|nested] 4+ messages in thread
* rfi: immutable strings
@ 2011-01-07 16:57 Andy Wingo
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2011-01-07 16:57 UTC (permalink / raw)
  To: guile-devel

Hello,

Guile needs immutable strings.  String literals should be immutable, so
that its characters can come directly from objcode.  Also, the result of
(symbol->string 'foo) should be immutable; currently symbol->string
conses up a new shared substring every time.

In practice this means a flag on the stringbuf.

Takers? :)

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-27 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 18:52 rfi: immutable strings Mike Gran
2011-01-08 21:57 ` Ludovic Courtès
2011-01-27 16:31 ` Andy Wingo
  -- strict thread matches above, loose matches on Subject: below --
2011-01-07 16:57 Andy Wingo

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).