2
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention">@<span>b0rk</span></a></span> oh you&#39;re right! that&#39;s on me then &gt;.&gt;</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> I am probably a bad person for saying this, but this is cool as shit and I would absolutely use this. 😶‍🌫️</p>
<p>&gt; There are additional benefits to this approach:<br />&gt; <br />&gt; * The old libstdc++ documentation calls this **the cool way**.</p><p>(stares)</p>
<p>&gt; libio is the glibc component which implements the foundations of FILE * streams support (printf and scanf are part of the stdio-common subdirectory.)<br />&gt;<br />&gt; Although libio is written in C, its streams are extensible with C++ classes.</p><p>glibc is doing *what*</p>
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention">@<span>b0rk</span></a></span> </p><p>this is where glibc makes the decision: <a href="https://github.com/bminor/glibc/blob/9c0903fb7388f645d23b26160ed3669a116189fe/libio/filedoalloc.c#L74-L107" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/bminor/glibc/blob/9</span><span class="invisible">c0903fb7388f645d23b26160ed3669a116189fe/libio/filedoalloc.c#L74-L107</span></a></p><p>this is where musl doesn&#39;t make a decision: <a href="https://github.com/bminor/musl/blob/master/src/stdio/stdout.c#L8" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/bminor/musl/blob/ma</span><span class="invisible">ster/src/stdio/stdout.c#L8</span></a></p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> <span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> interesting thanks, i’ll look at that!</p>
<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@simontatham" class="u-url mention">@<span>simontatham</span></a></span> <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention">@<span>b0rk</span></a></span> i looked it up out of curiosity and musl always has the buffer size for stdout set to 8192, so while i haven&#39;t specifically tested it, i think `unbuffer` won&#39;t work with musl-built binaries</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@film_girl" class="u-url mention">@<span>film_girl</span></a></span> that’s the exact same breakfast meal I get when traveling. I like your choices.</p>
Attached file 0
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@film_girl" class="u-url mention">@<span>film_girl</span></a></span> love those days</p>