Still working towards v0.1.1.
The next "patch" bump is almost all docs.
This commit is contained in:
parent
7aa8580ee3
commit
aabe19036f
|
|
@ -65,17 +65,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -167,17 +167,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1499,17 +1499,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -174,17 +174,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -136,17 +136,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -234,17 +234,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -16,6 +16,13 @@ behaviour of the original version(s) written in C. The main difference
|
||||||
between Thun and the originals, other than being written in Python, is
|
between Thun and the originals, other than being written in Python, is
|
||||||
that it works by the "Continuation-Passing Style".
|
that it works by the "Continuation-Passing Style".
|
||||||
|
|
||||||
|
Joy is:
|
||||||
|
|
||||||
|
* `Purely Functional <https://en.wikipedia.org/wiki/Purely_functional_programming>`__
|
||||||
|
* `Stack-based <https://en.wikipedia.org/wiki/Stack-oriented_programming_language>`__
|
||||||
|
* `Concatinative`_ ( See also `concatenative.org <http://www.concatenative.org/wiki/view/Concatenative%20language>`__)
|
||||||
|
* :doc:`Categorical <notebooks/Categorical>`
|
||||||
|
|
||||||
I hope that this package is useful in the sense that it provides an
|
I hope that this package is useful in the sense that it provides an
|
||||||
additional joy interpreter (the binary in the archive from La Trobe seems
|
additional joy interpreter (the binary in the archive from La Trobe seems
|
||||||
to run just fine on my modern Linux machine!) But I also hope that you
|
to run just fine on my modern Linux machine!) But I also hope that you
|
||||||
|
|
@ -24,6 +31,8 @@ itself.
|
||||||
|
|
||||||
.. _Joy: https://en.wikipedia.org/wiki/Joy_(programming_language)
|
.. _Joy: https://en.wikipedia.org/wiki/Joy_(programming_language)
|
||||||
|
|
||||||
|
.. _Concatinative: https://en.wikipedia.org/wiki/Concatenative_programming_language
|
||||||
|
|
||||||
|
|
||||||
Quick Start
|
Quick Start
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
@ -76,7 +85,6 @@ Documentation on Thun Dialect
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
The following is specific information for this dialect of Joy.
|
The following is specific information for this dialect of Joy.
|
||||||
There are also some Jupyter notebooks.
|
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
|
||||||
|
|
@ -444,17 +444,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -41,6 +41,13 @@ stay very close to the spirit of Joy but does not precisely match the
|
||||||
behaviour of the original version(s) written in C. The main difference
|
behaviour of the original version(s) written in C. The main difference
|
||||||
between Thun and the originals, other than being written in Python, is
|
between Thun and the originals, other than being written in Python, is
|
||||||
that it works by the “Continuation-Passing Style”.</p>
|
that it works by the “Continuation-Passing Style”.</p>
|
||||||
|
<p>Joy is:</p>
|
||||||
|
<ul class="simple">
|
||||||
|
<li><a class="reference external" href="https://en.wikipedia.org/wiki/Purely_functional_programming">Purely Functional</a></li>
|
||||||
|
<li><a class="reference external" href="https://en.wikipedia.org/wiki/Stack-oriented_programming_language">Stack-based</a></li>
|
||||||
|
<li><a class="reference external" href="https://en.wikipedia.org/wiki/Concatenative_programming_language">Concatinative</a> ( See also <a class="reference external" href="http://www.concatenative.org/wiki/view/Concatenative%20language">concatenative.org</a>)</li>
|
||||||
|
<li><a class="reference internal" href="notebooks/Categorical.html"><span class="doc">Categorical</span></a></li>
|
||||||
|
</ul>
|
||||||
<p>I hope that this package is useful in the sense that it provides an
|
<p>I hope that this package is useful in the sense that it provides an
|
||||||
additional joy interpreter (the binary in the archive from La Trobe seems
|
additional joy interpreter (the binary in the archive from La Trobe seems
|
||||||
to run just fine on my modern Linux machine!) But I also hope that you
|
to run just fine on my modern Linux machine!) But I also hope that you
|
||||||
|
|
@ -79,8 +86,7 @@ interesting aspects. It’s quite a treasure trove.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="documentation-on-thun-dialect">
|
<div class="section" id="documentation-on-thun-dialect">
|
||||||
<h2>Documentation on Thun Dialect<a class="headerlink" href="#documentation-on-thun-dialect" title="Permalink to this headline">¶</a></h2>
|
<h2>Documentation on Thun Dialect<a class="headerlink" href="#documentation-on-thun-dialect" title="Permalink to this headline">¶</a></h2>
|
||||||
<p>The following is specific information for this dialect of Joy.
|
<p>The following is specific information for this dialect of Joy.</p>
|
||||||
There are also some Jupyter notebooks.</p>
|
|
||||||
<div class="toctree-wrapper compound">
|
<div class="toctree-wrapper compound">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="joy.html">Joy Interpreter</a><ul>
|
<li class="toctree-l1"><a class="reference internal" href="joy.html">Joy Interpreter</a><ul>
|
||||||
|
|
@ -119,6 +125,8 @@ There are also some Jupyter notebooks.</p>
|
||||||
<li class="toctree-l2"><a class="reference internal" href="notebooks/Trees.html">Treating Trees</a></li>
|
<li class="toctree-l2"><a class="reference internal" href="notebooks/Trees.html">Treating Trees</a></li>
|
||||||
<li class="toctree-l2"><a class="reference internal" href="notebooks/Newton-Raphson.html">Newton’s method</a></li>
|
<li class="toctree-l2"><a class="reference internal" href="notebooks/Newton-Raphson.html">Newton’s method</a></li>
|
||||||
<li class="toctree-l2"><a class="reference internal" href="notebooks/Quadratic.html">Quadratic formula</a></li>
|
<li class="toctree-l2"><a class="reference internal" href="notebooks/Quadratic.html">Quadratic formula</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="notebooks/NoUpdates.html">No Updates</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="notebooks/Categorical.html">Categorical Programming</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -182,20 +190,14 @@ There are also some Jupyter notebooks.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/index.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -124,20 +124,14 @@ executed.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/joy.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1381,20 +1381,14 @@ soley of containers, without strings or numbers or anything else.)</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/lib.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -827,20 +827,14 @@ from each list. The smallest list sets the length of the result list.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/library.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Binary file not shown.
|
|
@ -133,20 +133,14 @@ Any unbalanced square brackets will raise a ParseError.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/parser.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -106,20 +106,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/pretty.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -105,17 +105,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -77,17 +77,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -162,20 +162,14 @@ where they would be redundant.)</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearer"></div>
|
<div class="clearer"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer" role="contentinfo">
|
||||||
©2018, Simon Forman.
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">
|
||||||
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" />
|
||||||
|
|
</a>
|
||||||
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.7.3</a>
|
<br />
|
||||||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.10</a>
|
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Thun Documentation</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://joypy.osdn.io/" property="cc:attributionName" rel="cc:attributionURL">Simon Forman</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://osdn.net/projects/joypy/" rel="dct:source">https://osdn.net/projects/joypy/</a>.
|
||||||
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.3.
|
||||||
|
|
|
||||||
<a href="_sources/stack.rst.txt"
|
|
||||||
rel="nofollow">Page source</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -16,6 +16,13 @@ behaviour of the original version(s) written in C. The main difference
|
||||||
between Thun and the originals, other than being written in Python, is
|
between Thun and the originals, other than being written in Python, is
|
||||||
that it works by the "Continuation-Passing Style".
|
that it works by the "Continuation-Passing Style".
|
||||||
|
|
||||||
|
Joy is:
|
||||||
|
|
||||||
|
* `Purely Functional <https://en.wikipedia.org/wiki/Purely_functional_programming>`__
|
||||||
|
* `Stack-based <https://en.wikipedia.org/wiki/Stack-oriented_programming_language>`__
|
||||||
|
* `Concatinative`_ ( See also `concatenative.org <http://www.concatenative.org/wiki/view/Concatenative%20language>`__)
|
||||||
|
* :doc:`Categorical <notebooks/Categorical>`
|
||||||
|
|
||||||
I hope that this package is useful in the sense that it provides an
|
I hope that this package is useful in the sense that it provides an
|
||||||
additional joy interpreter (the binary in the archive from La Trobe seems
|
additional joy interpreter (the binary in the archive from La Trobe seems
|
||||||
to run just fine on my modern Linux machine!) But I also hope that you
|
to run just fine on my modern Linux machine!) But I also hope that you
|
||||||
|
|
@ -24,6 +31,8 @@ itself.
|
||||||
|
|
||||||
.. _Joy: https://en.wikipedia.org/wiki/Joy_(programming_language)
|
.. _Joy: https://en.wikipedia.org/wiki/Joy_(programming_language)
|
||||||
|
|
||||||
|
.. _Concatinative: https://en.wikipedia.org/wiki/Concatenative_programming_language
|
||||||
|
|
||||||
|
|
||||||
Quick Start
|
Quick Start
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
@ -76,7 +85,6 @@ Documentation on Thun Dialect
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
The following is specific information for this dialect of Joy.
|
The following is specific information for this dialect of Joy.
|
||||||
There are also some Jupyter notebooks.
|
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
|
||||||
|
|
@ -3,32 +3,28 @@
|
||||||
`Quadratic formula <https://en.wikipedia.org/wiki/Quadratic_formula>`__
|
`Quadratic formula <https://en.wikipedia.org/wiki/Quadratic_formula>`__
|
||||||
***********************************************************************
|
***********************************************************************
|
||||||
|
|
||||||
.. code:: ipython2
|
`The Quadratic formula <https://en.wikipedia.org/wiki/Quadratic_formula>`__
|
||||||
|
|
||||||
from notebook_preamble import J, V, define
|
|
||||||
|
|
||||||
Cf.
|
|
||||||
`jp-quadratic.html <http://www.kevinalbrecht.com/code/joy-mirror/jp-quadratic.html>`__
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
-b +/- sqrt(b^2 - 4 * a * c)
|
|
||||||
-----------------------------
|
|
||||||
2 * a
|
|
||||||
|
|
||||||
:math:`\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`
|
:math:`\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}`
|
||||||
|
|
||||||
Write a straightforward program with variable names.
|
In
|
||||||
====================================================
|
`jp-quadratic.html <http://www.kevinalbrecht.com/code/joy-mirror/jp-quadratic.html>`__
|
||||||
|
a Joy function for the Quadratic formula is derived (along with one of my favorite combinators ``[i] map``,
|
||||||
|
which I like to call ``pam``) starting with a version written in Scheme. Here we investigate a different approach.
|
||||||
|
|
||||||
|
Write a program with variable names.
|
||||||
|
====================================
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
b neg b sqr 4 a c * * - sqrt [+] [-] cleave a 2 * [truediv] cons app2
|
b neg b sqr 4 a c * * - sqrt [+] [-] cleave a 2 * [truediv] cons app2
|
||||||
|
|
||||||
|
We use ``cleave`` to compute the sum and difference ("plus-or-minus") and then ``app2`` to finish computing both roots using a quoted program ``[2a truediv]`` built with ``cons``.
|
||||||
|
|
||||||
Check it.
|
Check it.
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
::
|
Evaluating by hand::
|
||||||
|
|
||||||
b neg b sqr 4 a c * * - sqrt [+] [-] cleave a 2 * [truediv] cons app2
|
b neg b sqr 4 a c * * - sqrt [+] [-] cleave a 2 * [truediv] cons app2
|
||||||
-b b sqr 4 a c * * - sqrt [+] [-] cleave a 2 * [truediv] cons app2
|
-b b sqr 4 a c * * - sqrt [+] [-] cleave a 2 * [truediv] cons app2
|
||||||
|
|
@ -42,13 +38,15 @@ Check it.
|
||||||
-b -b+sqrt(b^2-4ac) -b-sqrt(b^2-4ac) [2a truediv] app2
|
-b -b+sqrt(b^2-4ac) -b-sqrt(b^2-4ac) [2a truediv] app2
|
||||||
-b -b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a
|
-b -b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a
|
||||||
|
|
||||||
Codicil
|
(Eventually we'll be able to use e.g. Sympy versions of the Joy commands to do this sort of thing symbolically. This is part of what is meant by a "categorical" language.)
|
||||||
|
|
||||||
|
Cleanup
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
-b -b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a roll< pop
|
-b -b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a roll< pop
|
||||||
-b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a -b pop
|
-b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a -b pop
|
||||||
-b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a
|
-b+sqrt(b^2-4ac)/2a -b-sqrt(b^2-4ac)/2a
|
||||||
|
|
||||||
Derive a definition.
|
Derive a definition.
|
||||||
|
|
@ -62,6 +60,10 @@ Derive a definition.
|
||||||
b a c a [[[neg] dupdip sqr 4] dipd * * - sqrt [+] [-] cleave] dip 2 * [truediv] cons app2 roll< pop
|
b a c a [[[neg] dupdip sqr 4] dipd * * - sqrt [+] [-] cleave] dip 2 * [truediv] cons app2 roll< pop
|
||||||
b a c over [[[neg] dupdip sqr 4] dipd * * - sqrt [+] [-] cleave] dip 2 * [truediv] cons app2 roll< pop
|
b a c over [[[neg] dupdip sqr 4] dipd * * - sqrt [+] [-] cleave] dip 2 * [truediv] cons app2 roll< pop
|
||||||
|
|
||||||
|
.. code:: ipython2
|
||||||
|
|
||||||
|
from notebook_preamble import J, V, define
|
||||||
|
|
||||||
.. code:: ipython2
|
.. code:: ipython2
|
||||||
|
|
||||||
define('quadratic == over [[[neg] dupdip sqr 4] dipd * * - sqrt [+] [-] cleave] dip 2 * [truediv] cons app2 roll< pop')
|
define('quadratic == over [[[neg] dupdip sqr 4] dipd * * - sqrt [+] [-] cleave] dip 2 * [truediv] cons app2 roll< pop')
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
Essays about Programming in Joy
|
Essays about Programming in Joy
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
|
These essays are adapted from Jupyter notebooks. I hope to have those hosted somewhere where people can view them "live" and interact with them, possibly on MS Azure. For now, Sphinx does such a great job rendering the HTML that I am copying over some notebooks in ReST format and hand-editing them into these documents.
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:glob:
|
:glob:
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
@ -10,4 +12,6 @@ Essays about Programming in Joy
|
||||||
Trees
|
Trees
|
||||||
Newton-Raphson
|
Newton-Raphson
|
||||||
Quadratic
|
Quadratic
|
||||||
|
NoUpdates
|
||||||
|
Categorical
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue