<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: String building in Lisp</title>
	<atom:link href="http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/feed/" rel="self" type="application/rss+xml" />
	<link>http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/</link>
	<description>mostly tech, mostly rants</description>
	<pubDate>Thu, 20 Nov 2008 16:57:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: foobar</title>
		<link>http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5679</link>
		<dc:creator>foobar</dc:creator>
		<pubDate>Thu, 27 Dec 2007 00:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5679</guid>
		<description>should be:

(with-output-to-string (*standard-output*)
 (princ “foo”)
 (princ 19.3)
 (princ “bar”))

or even:

(with-output-to-string (*standard-output*) (mapc #'princ '("foo" 19.3 "bar")))</description>
		<content:encoded><![CDATA[<p>should be:</p>
<p>(with-output-to-string (*standard-output*)<br />
 (princ “foo”)<br />
 (princ 19.3)<br />
 (princ “bar”))</p>
<p>or even:</p>
<p>(with-output-to-string (*standard-output*) (mapc #&#8217;princ &#8216;(&#8221;foo&#8221; 19.3 &#8220;bar&#8221;)))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foobar</title>
		<link>http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5675</link>
		<dc:creator>foobar</dc:creator>
		<pubDate>Thu, 27 Dec 2007 00:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5675</guid>
		<description>(concatenate 'string "foo" (princ-to-string 19.3) "bar")

(with-output-to-string (*standard-output*)
   (princ "foo")
   (princ-to-string 19.3)
   (princ "bar"))

Note that WITH-OUTPUT-TO-STRING also takes optionally a preallocated (even adjusting with fill-pointer) string - so you can reduce consing by reusing a string buffer.</description>
		<content:encoded><![CDATA[<p>(concatenate &#8217;string &#8220;foo&#8221; (princ-to-string 19.3) &#8220;bar&#8221;)</p>
<p>(with-output-to-string (*standard-output*)<br />
   (princ &#8220;foo&#8221;)<br />
   (princ-to-string 19.3)<br />
   (princ &#8220;bar&#8221;))</p>
<p>Note that WITH-OUTPUT-TO-STRING also takes optionally a preallocated (even adjusting with fill-pointer) string - so you can reduce consing by reusing a string buffer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5672</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 26 Dec 2007 21:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5672</guid>
		<description>Zach: updated to include *PRINT-PRETTY* settings.  That is quite a difference.</description>
		<content:encoded><![CDATA[<p>Zach: updated to include *PRINT-PRETTY* settings.  That is quite a difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach Beane</title>
		<link>http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5670</link>
		<dc:creator>Zach Beane</dc:creator>
		<pubDate>Wed, 26 Dec 2007 20:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://ryepup.unwashedmeme.com/blog/2007/12/26/string-building-comparison-with-lisp/#comment-5670</guid>
		<description>FORMAT's performance characteristics change dramatically if *PRINT-PRETTY* is nil. Check it out.</description>
		<content:encoded><![CDATA[<p>FORMAT&#8217;s performance characteristics change dramatically if *PRINT-PRETTY* is nil. Check it out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.869 seconds -->
