toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

274
active users

#stdout

0 posts0 participants0 posts today
Kim<p><span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>b0rk</span></a></span> </p><p>has a neat way to demonstrate; 2&amp;&gt;1</p><p>this has always been a tricky thing to explain to folks new to the shell</p><p><a href="https://vk5fj.net/tags/shell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shell</span></a><br><a href="https://vk5fj.net/tags/stderr" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stderr</span></a><br><a href="https://vk5fj.net/tags/stdout" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdout</span></a><br><a href="https://vk5fj.net/tags/pipes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pipes</span></a><br><a href="https://vk5fj.net/tags/redirects" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>redirects</span></a></p>
JdeBP<p><span class="h-card" translate="no"><a href="https://mastodon.well.com/@rk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>rk</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@cks" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cks</span></a></span> </p><p>I was going to ask how many system calls it was making. If the Go runtime library is choosing no buffering when the standard output is the null device, that could be a lot of syscalls, compared to full buffering.</p><p>How is the Go runtime library deciding what buffering policy to use for standard streams? Is it even using buffers for standard streams? Does it vary that decision for character and TTY devices?</p><p><a href="https://tty0.social/tags/go" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>go</span></a> <a href="https://tty0.social/tags/stdout" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdout</span></a> <a href="https://tty0.social/tags/bufio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bufio</span></a></p>
otheorange_tag<p>Wrote this <a href="https://mstdn.social/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a> hello world <a href="https://mstdn.social/tags/gui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gui</span></a> <a href="https://mstdn.social/tags/cloud" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cloud</span></a> app last few minutes, just smart enough to draw and exit on right click. Just uses <a href="https://mstdn.social/tags/stdin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdin</span></a> <a href="https://mstdn.social/tags/stdout" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdout</span></a> output same as the <a href="https://mstdn.social/tags/bash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bash</span></a> and <a href="https://mstdn.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> implementations (setq x "Fo 0 999 3\nF 0 255\nL$ 0 0 800\"Hello world\"\nZ \n")<br>(while (setq p (asc (fgets stdin))) (cond ((== p 100) (write 1 x (strlen x))) ((== p 51) (exit 0)))) This code is out on bitbucket timcdoc antibrowser lisp hello (sub C or bash for lisp to see others)</p>
otheorange_tag<p>Graphing part is working, just hard coded fns for now, but it's a start! <a href="https://mstdn.social/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a> <a href="https://mstdn.social/tags/antibrowser" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>antibrowser</span></a> <a href="https://mstdn.social/tags/cloud" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cloud</span></a> <a href="https://mstdn.social/tags/app" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>app</span></a> <a href="https://mstdn.social/tags/thinclient" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>thinclient</span></a> <a href="https://mstdn.social/tags/NoFont" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NoFont</span></a> <a href="https://mstdn.social/tags/stdin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdin</span></a> <a href="https://mstdn.social/tags/stdout" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdout</span></a> [[oh code, my lisp, ancient variant, out on <a href="https://bitbucket.org/timcdoc/antibrowser/src/master/lisp/sh73/" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">bitbucket.org/timcdoc/antibrow</span><span class="invisible">ser/src/master/lisp/sh73/</span></a></p>
Wayne Werner<p>Now remember - so far all of this is just to get two lists - my TableOfContents and all of the WikiWords that exist in my file.</p><p>If you use <a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> or <a href="https://fosstodon.org/tags/Unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unix</span></a> for any period of time (or <a href="https://fosstodon.org/tags/GnuLinux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GnuLinux</span></a> - where my pedants at?), you will probably have come across `sort`.</p><p>Now we get to talk about streams and files!</p><p>Everything in Linux is a file. Which is shockingly powerful. Input from the keyboard? A file you can read from. Output to the screen? A file you can write to. <a href="https://fosstodon.org/tags/stdin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdin</span></a> and <a href="https://fosstodon.org/tags/stdout" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stdout</span></a> are their names</p>