<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed May 22 17:21:38 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/NREPL-18/NREPL-18.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[NREPL-18] Flush *out*/*err* after N characters</title>
                <link>http://dev.clojure.org/jira/browse/NREPL-18</link>
                <project id="10022" key="NREPL">tools.nrepl</project>
                        <description>&lt;p&gt;Not sure how this should be configured, but it would be nice if doing something like (println large-seq-here) would flush output automatically after some number of characters. This is so that output could stream constantly across the nrepl connection instead of waiting for the entire output to send as one message (assuming no manual flushes).&lt;/p&gt;</description>
                <environment></environment>
            <key id="15342">NREPL-18</key>
            <summary>Flush *out*/*err* after N characters</summary>
                <type id="4" iconUrl="http://dev.clojure.org/jira/images/icons/improvement.gif">Enhancement</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="cemerick">Chas Emerick</assignee>
                                <reporter username="trptcolin">Colin Jones</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Apr 2012 23:01:45 -0500</created>
                <updated>Wed, 20 Jun 2012 23:14:33 -0500</updated>
                    <resolved>Wed, 20 Jun 2012 23:14:33 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="28301" author="trptcolin" created="Sat, 28 Apr 2012 13:31:36 -0500"  >&lt;p&gt;There is a precedent for this, in the sense that many output buffers have some fixed size, and they are flushed when that size has been reached (e.g. &lt;a href=&quot;http://www.gnu.org/software/libc/manual/html_node/Flushing-Buffers.html&quot;&gt;http://www.gnu.org/software/libc/manual/html_node/Flushing-Buffers.html&lt;/a&gt;, &lt;a href=&quot;http://docs.oracle.com/javase/6/docs/api/java/io/BufferedWriter.html&quot;&gt;http://docs.oracle.com/javase/6/docs/api/java/io/BufferedWriter.html&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;We had talked about potential worries / headaches, where users may get partial lines printed at a time. But after more thought about it, I&apos;m thinking we may be OK: concurrent &lt;b&gt;out&lt;/b&gt;/&lt;b&gt;err&lt;/b&gt; writes can already interleave in interesting ways, and depending on the placement of (flush) calls (explicitly or implicitly) to make them more atomic is something I&apos;d already have expected to be fragile. Maybe others will see things I don&apos;t, though.&lt;/p&gt;

&lt;p&gt;The implementation I have uses 1024 as the default, but that&apos;s pretty arbitrary. A less dynamic way of setting the limit would be also be fine with me, though since we&apos;re already in I/O-land, I&apos;d assume performance isn&apos;t going to be bound by the dynamic var lookup.&lt;/p&gt;</comment>
                    <comment id="28851" author="trptcolin" created="Sun, 17 Jun 2012 18:09:27 -0500"  >&lt;p&gt;Any thoughts on this one? It would be great to be able to print big seqs incrementally.&lt;/p&gt;</comment>
                    <comment id="28884" author="cemerick" created="Wed, 20 Jun 2012 07:39:22 -0500"  >&lt;p&gt;Sorry for the delay, this fell through the cracks.&lt;/p&gt;

&lt;p&gt;Looks good to me, except: can we make the &quot;buffer size&quot; an argument to the &lt;tt&gt;session&lt;/tt&gt; middleware fn? That&apos;s where people will want to be able to customize it, if ever.&lt;/p&gt;

&lt;p&gt;Commit and close this at will. &lt;img class=&quot;emoticon&quot; src=&quot;http://dev.clojure.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="28885" author="trptcolin" created="Wed, 20 Jun 2012 23:14:27 -0500"  >&lt;p&gt;Done, thanks a bunch!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11121" name="0001-Flush-output-after-session-out-limit-characters.patch" size="4640" author="trptcolin" created="Sat, 28 Apr 2012 13:27:33 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10002">Code and Test</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                        </customfields>
    </item>
</channel>
</rss>