update manifest as per recent file changes
This commit is contained in:
1 parent
4c4e4fd5a7
commit
bcc69ae454
19 files changed
+113
-36
No files matched your search
@@ -42,6 +42,14 @@
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "original source"
|
||||
},
|
||||
{
|
||||
"file_path" : "try.sh",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "shellscript",
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "how to run"
|
||||
},
|
||||
{
|
||||
"file_path" : "1995_heathbar.tar.bz2",
|
||||
"inventory_order" : 300,
|
||||
|
||||
@@ -126,7 +126,7 @@ href="/temp-test-ioccc/location.html#null">unknown</a></p>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./heathbar</span> num num</span></code></pre></div>
|
||||
<p>where num is a non-negative number.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./heathbar</span> 4253 2281</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>The main reason we liked this entry was mainly because the main
|
||||
effect of the source was self documenting! :-)</p>
|
||||
@@ -183,6 +183,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/heathbar/Mak
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/heathbar/heathbar.orig.c">heathbar.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/heathbar/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="1995_heathbar.tar.bz2">1995_heathbar.tar.bz2</a> - download
|
||||
winning source</li>
|
||||
</ul>
|
||||
|
||||
@@ -41,6 +41,14 @@
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "original source"
|
||||
},
|
||||
{
|
||||
"file_path" : "try.sh",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "shellscript",
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "how to run"
|
||||
},
|
||||
{
|
||||
"file_path" : "1995_savastio.tar.bz2",
|
||||
"inventory_order" : 300,
|
||||
|
||||
@@ -119,11 +119,18 @@ href="/temp-test-ioccc/location.html#null">unknown</a></p>
|
||||
<!-- END: next line ends content generated by: bin/gen-author.sh -->
|
||||
<h2 id="to-build">To build:</h2>
|
||||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> all</span></code></pre></div>
|
||||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||||
<p>The current status of this entry is:</p>
|
||||
<pre><code>STATUS: INABIAF - please **DO NOT** fix</code></pre>
|
||||
<p>For more detailed information see <a
|
||||
href="/bugs.md#1995-savastio">1995 savastio in bugs.md</a>.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./savastio</span></span>
|
||||
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="co"># enter a number such as 100</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./savastio</span></span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="co"># enter a POSITIVE number such as 100</span></span></code></pre></div>
|
||||
<p>NOTE: if you specify a negative number it will get stuck, showing no
|
||||
output. But what happens if you give a non-number?</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> 42 <span class="kw">|</span> <span class="ex">./savastio</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>I know an l when I see a 1.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
@@ -173,6 +180,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/savastio/Mak
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/savastio/savastio.orig.c">savastio.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/savastio/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="1995_savastio.tar.bz2">1995_savastio.tar.bz2</a> - download
|
||||
winning source</li>
|
||||
</ul>
|
||||
|
||||
@@ -41,6 +41,14 @@
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "original source"
|
||||
},
|
||||
{
|
||||
"file_path" : "try.sh",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "shellscript",
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "how to run"
|
||||
},
|
||||
{
|
||||
"file_path" : "1995_schnitzi.tar.bz2",
|
||||
"inventory_order" : 300,
|
||||
|
||||
@@ -122,9 +122,7 @@ href="/temp-test-ioccc/location.html#null">unknown</a></p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./schnitzi</span> num</span></code></pre></div>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./schnitzi</span> 24</span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./schnitzi</span> 18</span>
|
||||
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="ex">./schnitzi</span> 30</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<p>WARNING: the author warns to not use too high a number! If you wish
|
||||
to ignore the warning it is an exercise to determine how high is too
|
||||
high. :-)</p>
|
||||
@@ -159,6 +157,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/schnitzi/Mak
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/schnitzi/schnitzi.orig.c">schnitzi.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/schnitzi/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="1995_schnitzi.tar.bz2">1995_schnitzi.tar.bz2</a> - download
|
||||
winning source</li>
|
||||
</ul>
|
||||
|
||||
@@ -50,6 +50,14 @@
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "original source"
|
||||
},
|
||||
{
|
||||
"file_path" : "try.sh",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "shellscript",
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "how to run"
|
||||
},
|
||||
{
|
||||
"file_path" : "1995_vanschnitz.tar.bz2",
|
||||
"inventory_order" : 300,
|
||||
|
||||
@@ -133,8 +133,7 @@ href="/bugs.md#1995-vanschnitz">1995 vanschnitz in bugs.md</a>.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./vanschnitz</span></span></code></pre></div>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> clobber all LEVEL=6</span>
|
||||
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./vanschnitz</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
<p>The authors provided a spoiler version of the program. Originally
|
||||
uuencoded we have decoded it for the wider audience in <a
|
||||
@@ -302,6 +301,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/vanschnitz/v
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/vanschnitz/vanschnitz.orig.c">vanschnitz.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/vanschnitz/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="1995_vanschnitz.tar.bz2">1995_vanschnitz.tar.bz2</a> -
|
||||
download winning source</li>
|
||||
</ul>
|
||||
|
||||
@@ -136,7 +136,7 @@ your compiler or use gcc.</p>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>This entry can feed on itself. If you C pre-process the source, you
|
||||
compile the interpreter:</p>
|
||||
can compile the interpreter:</p>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span> august.oc</span></code></pre></div>
|
||||
<p>We can now compile the interpreter as follows:</p>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="fu">cat</span> august.c august.oc <span class="kw">|</span> <span class="ex">./august</span> <span class="op">></span> august.oo</span></code></pre></div>
|
||||
|
||||
@@ -41,6 +41,14 @@
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "original source"
|
||||
},
|
||||
{
|
||||
"file_path" : "try.sh",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "shellscript",
|
||||
"display_via_github" : true,
|
||||
"winners_text" : "how to run"
|
||||
},
|
||||
{
|
||||
"file_path" : "1996_dalbec.tar.bz2",
|
||||
"inventory_order" : 300,
|
||||
|
||||
@@ -121,7 +121,7 @@ Location: <a href="/temp-test-ioccc/location.html#US">US</a></p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./dalbec</span></span></code></pre></div>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./dalbec</span> 3 <span class="kw">|</span> <span class="fu">head</span> <span class="at">-n</span> 29</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<p>Why does the output end with 121?</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>The output is mis-leading … why does it also print 2047?</p>
|
||||
@@ -185,6 +185,9 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1996/dalbec/Makef
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1996/dalbec/dalbec.orig.c">dalbec.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1996/dalbec/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="1996_dalbec.tar.bz2">1996_dalbec.tar.bz2</a> - download
|
||||
winning source</li>
|
||||
</ul>
|
||||
|
||||
+11
-15
@@ -128,12 +128,8 @@ rince in bugs.md</a>.</p>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> number number2</span></code></pre></div>
|
||||
<p>If <code>DISPLAY</code> is not set the program will very likely crash
|
||||
or do something different.</p>
|
||||
<p>This is supposed to happen. As is written in the <a
|
||||
href="http://catb.org/jargon/html/F/feature.html">The Jargon
|
||||
File</a>:</p>
|
||||
<pre><code>That's not a bug, that's a feature.</code></pre>
|
||||
<h2 id="try">Try:</h2>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<p>This will run the program several times with different parameters to
|
||||
show different types of things. See the author’s remarks for more
|
||||
details.</p>
|
||||
@@ -145,7 +141,7 @@ through visual observation.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="how-to-use-it">How to use it</h3>
|
||||
<p>The simplest way to run it is with no arguments. Just type:</p>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb5"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span></span></code></pre></div>
|
||||
<p>You will need to have access to X windows, although it doesn’t
|
||||
require desperately high resolution and there are no known limitations
|
||||
on colour depth.</p>
|
||||
@@ -155,12 +151,12 @@ program has a built in time machine. Indeed the program knows the speed
|
||||
of light, which is used to ensure that we see the “live” pictures.
|
||||
Simply specify the fraction of a day to skip forward for each screen
|
||||
refresh. I suggest:</p>
|
||||
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0.01</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb6"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0.01</span></code></pre></div>
|
||||
<p>To display the output (still guessing?) for a given date, specify two
|
||||
arguments. The first argument is as before and the second argument is a
|
||||
Julian day number (given as a fractional component). E.g.:</p>
|
||||
<div class="sourceCode" id="cb8"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 2441193.6</span>
|
||||
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0.01 2441193.6</span></code></pre></div>
|
||||
<div class="sourceCode" id="cb7"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 2441193.6</span>
|
||||
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0.01 2441193.6</span></code></pre></div>
|
||||
<p>A Julian day is defined to be the number of days since January 1st in
|
||||
the year <code>-4712 (4713BC)</code>, starting at 12 noon GMT.<a
|
||||
href="#fn1" class="footnote-ref" id="fnref1"
|
||||
@@ -240,14 +236,14 @@ Here he could see for himself that somehow, a planet could
|
||||
orbit the sun, and not leave a moon behind!</code></pre>
|
||||
<p>Thus we can plot Galileo’s discoveries using the following three
|
||||
plots:</p>
|
||||
<div class="sourceCode" id="cb12"><pre
|
||||
class="sourceCode sh"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 7.8 1 1610<span class="va">)</span></span>
|
||||
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 8.8 1 1610<span class="va">)</span></span>
|
||||
<span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 10.8 1 1610<span class="va">)</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb11"><pre
|
||||
class="sourceCode sh"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 7.8 1 1610<span class="va">)</span></span>
|
||||
<span id="cb11-2"><a href="#cb11-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 8.8 1 1610<span class="va">)</span></span>
|
||||
<span id="cb11-3"><a href="#cb11-3" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 10.8 1 1610<span class="va">)</span></span></code></pre></div>
|
||||
<p>However we can go one better by seeing what Galileo would have seen
|
||||
if it wasn’t cloudy on the 9th. Try:</p>
|
||||
<div class="sourceCode" id="cb13"><pre
|
||||
class="sourceCode sh"><code class="sourceCode bash"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 9.85 1 1610<span class="va">)</span></span></code></pre></div>
|
||||
<div class="sourceCode" id="cb12"><pre
|
||||
class="sourceCode sh"><code class="sourceCode bash"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./rince</span> 0 <span class="va">$(</span><span class="ex">./dmy2jd</span> 9.85 1 1610<span class="va">)</span></span></code></pre></div>
|
||||
<p>to see what he was missing out on. I wonder what he’d have made of
|
||||
that!</p>
|
||||
<p>Galileo discovered the fourth moon a few days later.</p>
|
||||
|
||||
+6
-6
@@ -175,16 +175,16 @@ resulting image.</p>
|
||||
properties. Apart from being quite big and a little bit noisy, it
|
||||
appears that when embedded into another image and extracted, the bitmap
|
||||
data is also a valid <a
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brain$#@$</a> program. It
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brainfuck</a> program. It
|
||||
is of course possible to get the bitmap data from the extracted image,
|
||||
and run it through any of the previous winning brain$#@$ interpreters,
|
||||
and run it through any of the previous winning brainfuck interpreters,
|
||||
but I thought it would be easier to include an interpreter in the
|
||||
program to avoid the hassle:</p>
|
||||
<div class="sourceCode" id="cb10"><pre
|
||||
class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./vik</span> e ioccc.png chocolate.png <span class="op">></span> encodedimg.png</span>
|
||||
<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./vik</span> b encodedimg.png</span></code></pre></div>
|
||||
<p>It is of course also possible to embed a <a
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brain$#@$</a> program as
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brainfuck</a> program as
|
||||
a text file (as explained above) and decode it, e.g.:</p>
|
||||
<div class="sourceCode" id="cb11"><pre
|
||||
class="sourceCode sh"><code class="sourceCode bash"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./vik</span> e ioccc.png .+<span class="pp">[</span><span class="ss">.+</span><span class="pp">]</span> <span class="op">></span> encodedimg.png</span>
|
||||
@@ -221,16 +221,16 @@ will cause the program to crash.</p>
|
||||
<h3 id="extendability">Extendability</h3>
|
||||
<p>Since a lot of care was taken to keep the code simple, it turned out
|
||||
to be quite easy to extend functionality. I did include a small <a
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brain$#@$</a> after I
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brainfuck</a> after I
|
||||
realized that the chocolate image had some interesting properties.</p>
|
||||
<p>But there is more functionality I added that didn’t fit within the
|
||||
size limits and could not remain included. For example, I added a method
|
||||
to format source code based on a PNG image. So the format of the program
|
||||
is actually done by the program itself.</p>
|
||||
<p>And to be honest, the chocolate image did not have a <a
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brain$#@$</a> program
|
||||
href="https://en.wikipedia.org/wiki/Brainfuck">brainfuck</a> program
|
||||
embedded to begin with. I added functionality to the program to embed a
|
||||
brain$#@$ into a PNG image and used it to create the image provided with
|
||||
brainfuck into a PNG image and used it to create the image provided with
|
||||
the entry.</p>
|
||||
<p>I also added a method to analyze PNG images, to print the size and
|
||||
format, as well as the scan line filters.</p>
|
||||
|
||||
@@ -297,10 +297,12 @@ environments.</p>
|
||||
the operating system it was birthed within. C is often criticized as a
|
||||
difficult, inscrutable language, but as this contest demonstrates, this
|
||||
is in parody. <em>Shell-gol</em> is one of those instances where someone
|
||||
<a href="http://ioccc.org/all/README">preferred a different
|
||||
language</a>, and (ab)used the preprocessor to re-mold C into something
|
||||
they found comfortable. Most of the rest of the system, especially in
|
||||
the kernel, are models of clarity and efficient expression.</p>
|
||||
<a
|
||||
href="https://web.archive.org/web/20180521074522/http://www.computerworld.com.au/article/279011/a-z_programming_languages_bourne_shell_sh/?pp=4">preferred
|
||||
a different language</a>, and (ab)used the preprocessor to re-mold C
|
||||
into something they found comfortable. Most of the rest of the system,
|
||||
especially in the kernel, are models of clarity and efficient
|
||||
expression.</p>
|
||||
<h3 id="tldr">TL;DR:</h3>
|
||||
<p>So which version is the shortest, portable hex dump?</p>
|
||||
<ul>
|
||||
|
||||
@@ -1152,6 +1152,7 @@
|
||||
1995,heathbar,heathbar.c,20,true,c,true,winning source
|
||||
1995,heathbar,Makefile,30,true,makefile,true,winner Makefile
|
||||
1995,heathbar,heathbar.orig.c,50,false,c,true,original source
|
||||
1995,heathbar,try.sh,100,true,shellscript,true,how to run
|
||||
1995,heathbar,1995_heathbar.tar.bz2,300,false,tbz2,false,download winning source
|
||||
1995,heathbar,README.md,4294967295,true,markdown,true,markdown source for index.html
|
||||
1995,heathbar,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git
|
||||
@@ -1181,6 +1182,7 @@
|
||||
1995,savastio,savastio.c,20,true,c,true,winning source
|
||||
1995,savastio,Makefile,30,true,makefile,true,winner Makefile
|
||||
1995,savastio,savastio.orig.c,50,true,c,true,original source
|
||||
1995,savastio,try.sh,100,true,shellscript,true,how to run
|
||||
1995,savastio,1995_savastio.tar.bz2,300,false,tbz2,false,download winning source
|
||||
1995,savastio,README.md,4294967295,true,markdown,true,markdown source for index.html
|
||||
1995,savastio,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git
|
||||
@@ -1190,6 +1192,7 @@
|
||||
1995,schnitzi,schnitzi.c,20,true,c,true,winning source
|
||||
1995,schnitzi,Makefile,30,true,makefile,true,winner Makefile
|
||||
1995,schnitzi,schnitzi.orig.c,50,true,c,true,original source
|
||||
1995,schnitzi,try.sh,100,true,shellscript,true,how to run
|
||||
1995,schnitzi,1995_schnitzi.tar.bz2,300,false,tbz2,false,download winning source
|
||||
1995,schnitzi,README.md,4294967295,true,markdown,true,markdown source for index.html
|
||||
1995,schnitzi,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git
|
||||
@@ -1209,6 +1212,7 @@
|
||||
1995,vanschnitz,Makefile,30,true,makefile,true,winner Makefile
|
||||
1995,vanschnitz,vanschnitz.alt.c,40,true,c,true,alternative source
|
||||
1995,vanschnitz,vanschnitz.orig.c,50,true,c,true,original source
|
||||
1995,vanschnitz,try.sh,100,true,shellscript,true,how to run
|
||||
1995,vanschnitz,1995_vanschnitz.tar.bz2,300,false,tbz2,false,download winning source
|
||||
1995,vanschnitz,README.md,4294967295,true,markdown,true,markdown source for index.html
|
||||
1995,vanschnitz,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git
|
||||
@@ -1231,6 +1235,7 @@
|
||||
1996,dalbec,dalbec.c,20,true,c,true,winning source
|
||||
1996,dalbec,Makefile,30,true,makefile,true,winner Makefile
|
||||
1996,dalbec,dalbec.orig.c,50,false,c,true,original source
|
||||
1996,dalbec,try.sh,100,true,shellscript,true,how to run
|
||||
1996,dalbec,1996_dalbec.tar.bz2,300,false,tbz2,false,download winning source
|
||||
1996,dalbec,README.md,4294967295,true,markdown,true,markdown source for index.html
|
||||
1996,dalbec,.gitignore,4294967295,true,gitignore,true,list of files that should not be committed under git
|
||||
|
||||
|
Binary file not shown.
@@ -1044,6 +1044,7 @@
|
||||
1995/heathbar/heathbar.c
|
||||
1995/heathbar/heathbar.orig.c
|
||||
1995/heathbar/index.html
|
||||
1995/heathbar/try.sh
|
||||
1995/leo/.gitignore
|
||||
1995/leo/.path
|
||||
1995/leo/.winner.json
|
||||
@@ -1069,6 +1070,7 @@
|
||||
1995/savastio/index.html
|
||||
1995/savastio/savastio.c
|
||||
1995/savastio/savastio.orig.c
|
||||
1995/savastio/try.sh
|
||||
1995/schnitzi/.gitignore
|
||||
1995/schnitzi/.path
|
||||
1995/schnitzi/.winner.json
|
||||
@@ -1077,6 +1079,7 @@
|
||||
1995/schnitzi/index.html
|
||||
1995/schnitzi/schnitzi.c
|
||||
1995/schnitzi/schnitzi.orig.c
|
||||
1995/schnitzi/try.sh
|
||||
1995/spinellis/.gitignore
|
||||
1995/spinellis/.path
|
||||
1995/spinellis/.winner.json
|
||||
@@ -1091,6 +1094,7 @@
|
||||
1995/vanschnitz/Makefile
|
||||
1995/vanschnitz/README.md
|
||||
1995/vanschnitz/index.html
|
||||
1995/vanschnitz/try.sh
|
||||
1995/vanschnitz/vanschnitz.alt.c
|
||||
1995/vanschnitz/vanschnitz.c
|
||||
1995/vanschnitz/vanschnitz.orig.c
|
||||
@@ -1114,6 +1118,7 @@
|
||||
1996/dalbec/dalbec.c
|
||||
1996/dalbec/dalbec.orig.c
|
||||
1996/dalbec/index.html
|
||||
1996/dalbec/try.sh
|
||||
1996/eldby/.gitignore
|
||||
1996/eldby/.path
|
||||
1996/eldby/.winner.json
|
||||
|
||||
@@ -1156,6 +1156,7 @@
|
||||
1995/heathbar/heathbar.c
|
||||
1995/heathbar/heathbar.orig.c
|
||||
1995/heathbar/index.html
|
||||
1995/heathbar/try.sh
|
||||
1995/leo/.gitignore
|
||||
1995/leo/.path
|
||||
1995/leo/.winner.json
|
||||
@@ -1185,6 +1186,7 @@
|
||||
1995/savastio/index.html
|
||||
1995/savastio/savastio.c
|
||||
1995/savastio/savastio.orig.c
|
||||
1995/savastio/try.sh
|
||||
1995/schnitzi/.gitignore
|
||||
1995/schnitzi/.path
|
||||
1995/schnitzi/.winner.json
|
||||
@@ -1194,6 +1196,7 @@
|
||||
1995/schnitzi/index.html
|
||||
1995/schnitzi/schnitzi.c
|
||||
1995/schnitzi/schnitzi.orig.c
|
||||
1995/schnitzi/try.sh
|
||||
1995/spinellis/.gitignore
|
||||
1995/spinellis/.path
|
||||
1995/spinellis/.winner.json
|
||||
@@ -1210,6 +1213,7 @@
|
||||
1995/vanschnitz/Makefile
|
||||
1995/vanschnitz/README.md
|
||||
1995/vanschnitz/index.html
|
||||
1995/vanschnitz/try.sh
|
||||
1995/vanschnitz/vanschnitz.alt.c
|
||||
1995/vanschnitz/vanschnitz.c
|
||||
1995/vanschnitz/vanschnitz.orig.c
|
||||
@@ -1235,6 +1239,7 @@
|
||||
1996/dalbec/dalbec.c
|
||||
1996/dalbec/dalbec.orig.c
|
||||
1996/dalbec/index.html
|
||||
1996/dalbec/try.sh
|
||||
1996/eldby/.gitignore
|
||||
1996/eldby/.path
|
||||
1996/eldby/.winner.json
|
||||
|
||||
@@ -834,6 +834,7 @@
|
||||
1995/heathbar/README.md
|
||||
1995/heathbar/heathbar.c
|
||||
1995/heathbar/heathbar.orig.c
|
||||
1995/heathbar/try.sh
|
||||
1995/leo/.gitignore
|
||||
1995/leo/.winner.json
|
||||
1995/leo/Makefile
|
||||
@@ -853,12 +854,14 @@
|
||||
1995/savastio/README.md
|
||||
1995/savastio/savastio.c
|
||||
1995/savastio/savastio.orig.c
|
||||
1995/savastio/try.sh
|
||||
1995/schnitzi/.gitignore
|
||||
1995/schnitzi/.winner.json
|
||||
1995/schnitzi/Makefile
|
||||
1995/schnitzi/README.md
|
||||
1995/schnitzi/schnitzi.c
|
||||
1995/schnitzi/schnitzi.orig.c
|
||||
1995/schnitzi/try.sh
|
||||
1995/spinellis/.gitignore
|
||||
1995/spinellis/.winner.json
|
||||
1995/spinellis/Makefile
|
||||
@@ -869,6 +872,7 @@
|
||||
1995/vanschnitz/.winner.json
|
||||
1995/vanschnitz/Makefile
|
||||
1995/vanschnitz/README.md
|
||||
1995/vanschnitz/try.sh
|
||||
1995/vanschnitz/vanschnitz.alt.c
|
||||
1995/vanschnitz/vanschnitz.c
|
||||
1995/vanschnitz/vanschnitz.orig.c
|
||||
@@ -888,6 +892,7 @@
|
||||
1996/dalbec/README.md
|
||||
1996/dalbec/dalbec.c
|
||||
1996/dalbec/dalbec.orig.c
|
||||
1996/dalbec/try.sh
|
||||
1996/eldby/.gitignore
|
||||
1996/eldby/.winner.json
|
||||
1996/eldby/Makefile
|
||||
|
||||
Reference in new issue
Block a user