force use of pandoc version >= 3.1.12.2
The `bin/pandoc-wrapper.sh` tool will verify that the ssytem has a recent enough version of `pandoc(1)`. We explain why we insist on `pandoc(1)`. version >= 3.1.12.2 in comments where the $PANDOC_MIN_VERSION is set. Added `--wrap=preserve` as a default argument to `pandoc(1)`. While this change will impact every HTML file generated, we believe this will improve the ability of someone to look at the generated HTML and correlate with the original markdown. Changed `bin/pandoc-wrapper.sh` VERSION from "1.4.2 2024-03-17" to "1.4.3 2024-03-18". Performed `make www` to achieve all of the above and to generate HTML using the new `--wrap=preserve` `pandoc(1)` mode.
This commit is contained in:
1 parent
9eb7a54e9f
commit
b0b212acb1
402 files changed
+37061
-55132
No files matched your search
+38
-69
@@ -129,9 +129,9 @@
|
||||
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Freek_Wiedijk">Freek
|
||||
Wiedijk</a><br> Location: <a href="../../location.html#NL">NL</a> -
|
||||
<em>Kingdom of the Netherlands</em> (<em>Netherlands</em>) <br><br></li>
|
||||
<li>Name: <a href="../../authors.html#Freek_Wiedijk">Freek Wiedijk</a><br>
|
||||
Location: <a href="../../location.html#NL">NL</a> - <em>Kingdom of the Netherlands</em> (<em>Netherlands</em>)
|
||||
<br><br></li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -145,103 +145,72 @@ Wiedijk</a><br> Location: <a href="../../location.html#NL">NL</a> -
|
||||
<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">./prog</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">./try.sh</span></span></code></pre></div>
|
||||
<p>By default that will use <code>indent(1)</code> found by the shell
|
||||
<code>type -P indent</code> and <code>sed(1)</code> found by the shell
|
||||
<code>type -P sed</code> but if you want to change these, say to try a
|
||||
different beautifier, you can do it like:</p>
|
||||
<p>By default that will use <code>indent(1)</code> found by the shell <code>type -P indent</code> and
|
||||
<code>sed(1)</code> found by the shell <code>type -P sed</code> but if you want to change these, say
|
||||
to try a different beautifier, you can do it like:</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="va">INDENT</span><span class="op">=</span>bcpp <span class="ex">./try.sh</span></span></code></pre></div>
|
||||
<p>which would change it to use <code>bcpp(1)</code> instead of
|
||||
<code>indent(1)</code>. Do similar for <code>sed(1)</code> only use the
|
||||
name <code>SED</code>.</p>
|
||||
<p>which would change it to use <code>bcpp(1)</code> instead of <code>indent(1)</code>. Do similar for
|
||||
<code>sed(1)</code> only use the name <code>SED</code>.</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>C11 features definitely help this entry to be as concise as it
|
||||
is.</p>
|
||||
<p>The judges would like to think that they had almost understood how
|
||||
this entry works.</p>
|
||||
<p>C11 features definitely help this entry to be as concise as it is.</p>
|
||||
<p>The judges would like to think that they had almost understood how this entry works.</p>
|
||||
<p>If you win a bet by demonstrating this entry, please let us know.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<h3 id="remarks">Remarks</h3>
|
||||
<ul>
|
||||
<li>Computes the factorial function.</li>
|
||||
<li>No loops, no explicit recursion.</li>
|
||||
<li>Untyped C without any casts, using a <code>w</code> word
|
||||
datatype.</li>
|
||||
<li>Varargs not essential, <code>w(*)(w,w*)</code> works just as
|
||||
well.</li>
|
||||
<li>Untyped C without any casts, using a <code>w</code> word datatype.</li>
|
||||
<li>Varargs not essential, <code>w(*)(w,w*)</code> works just as well.</li>
|
||||
<li>Conforming to ISO C.</li>
|
||||
<li>No warnings when compiled with
|
||||
<code>-std=c99 -Wall -Wextra -pedantic</code>.</li>
|
||||
<li>No warnings when compiled with <code>-std=c99 -Wall -Wextra -pedantic</code>.</li>
|
||||
<li>Comments in the code explain what this really is about.</li>
|
||||
<li>C as a functional programming language: untyped lambda calculus
|
||||
compiled to executable C functions.</li>
|
||||
<li>Untagged closures (just a function pointer followed by some
|
||||
values).</li>
|
||||
<li>Recursion implemented through Curry’s paradoxical combinator
|
||||
<code>Y</code>.</li>
|
||||
<li>The readable implementation of <code>Y</code> is on lines
|
||||
29-30:</li>
|
||||
<li>C as a functional programming language: untyped lambda calculus compiled to
|
||||
executable C functions.</li>
|
||||
<li>Untagged closures (just a function pointer followed by some values).</li>
|
||||
<li>Recursion implemented through Curry’s paradoxical combinator <code>Y</code>.</li>
|
||||
<li>The readable implementation of <code>Y</code> is on lines 29-30:</li>
|
||||
</ul>
|
||||
<pre><code>W_f = \x.f(xx)
|
||||
Y = \f.W_f W_f</code></pre>
|
||||
<ul>
|
||||
<li>A mixture of strict and lazy evaluation, with a <code>_</code> force
|
||||
function (John Tromp notes that if Turing’s fixed-point combinator
|
||||
<code>(\xy.y\z.xxyz)(\xy.y\z.xxyz)</code> had been used, all
|
||||
applications could have been strict).</li>
|
||||
<li>Uses <code>Y</code> to implement factorial on native
|
||||
<code>int</code>s.</li>
|
||||
<li>A mixture of strict and lazy evaluation, with a <code>_</code> force function
|
||||
(John Tromp notes that if Turing’s fixed-point combinator
|
||||
<code>(\xy.y\z.xxyz)(\xy.y\z.xxyz)</code> had been used,
|
||||
all applications could have been strict).</li>
|
||||
<li>Uses <code>Y</code> to implement factorial on native <code>int</code>s.</li>
|
||||
<li>10! seconds = 6 weeks.</li>
|
||||
<li>Answers the <a
|
||||
href="https://hitchhikers.fandom.com/wiki/42">ultimate question of life,
|
||||
the universe and everything</a>.</li>
|
||||
<li>Answers the <a href="https://hitchhikers.fandom.com/wiki/42">ultimate question of life, the universe and
|
||||
everything</a>.</li>
|
||||
</ul>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0
|
||||
License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights
|
||||
Reserved. You are free to share and adapt this file under the terms of
|
||||
this license:</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0 License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
|
||||
You are free to share and adapt this file under the terms of this license:</p>
|
||||
<pre><code>Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</code></pre>
|
||||
<p>For more information, see:
|
||||
https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
<p>For more information, see: https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||||
|
||||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
<h1 id="inventory-for-2014wiedijk"><a name="inventory"></a>Inventory for
|
||||
2014/wiedijk</h1>
|
||||
<h1 id="inventory-for-2014wiedijk"><a name="inventory"></a>Inventory for 2014/wiedijk</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/prog.c">prog.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/prog.orig.c">prog.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/try.sh">try.sh</a>
|
||||
- how to run</li>
|
||||
<li><a href="2014_wiedijk.tar.bz2">2014_wiedijk.tar.bz2</a> - download
|
||||
entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/prog.c">prog.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/prog.orig.c">prog.orig.c</a> - original source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/try.sh">try.sh</a> - how to run</li>
|
||||
<li><a href="2014_wiedijk.tar.bz2">2014_wiedijk.tar.bz2</a> - download entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/.gitignore">.gitignore</a>
|
||||
- list of files that should not be committed under git</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||||
<li><a href=".path">.path</a> - directory path from top directory</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/wiedijk/README.md">README.md</a> - markdown source for index.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user