Update templates
This commit is contained in:
parent
55b9e2523c
commit
b0ca171973
34 changed files with 536 additions and 707 deletions
|
@ -21,31 +21,25 @@
|
|||
</head>
|
||||
<body>
|
||||
<article>
|
||||
|
||||
<header>
|
||||
<nav>
|
||||
<nav>
|
||||
<a href="../">Home</a>
|
||||
<a href="../projects.html">Projects</a>
|
||||
<a href="../archive.html">Archive</a>
|
||||
<a href="../contact.html">Contact</a>
|
||||
</nav>
|
||||
<a href="../archive.html">Posts</a>
|
||||
<a href="../projects.html">Projects</a>
|
||||
<a href="../contact.html">Contact</a>
|
||||
</nav>
|
||||
|
||||
<h1 class="title">Ising model simulation in APL</h1>
|
||||
|
||||
|
||||
<p class="byline">March 5, 2018</p>
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<article>
|
||||
<section class="header">
|
||||
|
||||
</section>
|
||||
<section>
|
||||
<div id="toc"><h2>Table of Contents</h2><ul>
|
||||
<h1 class="title">Ising model simulation in APL</h1>
|
||||
|
||||
|
||||
<p class="byline">March 5, 2018</p>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<div id="toc"><h2>Table of Contents</h2><ul>
|
||||
<li><a href="#the-apl-family-of-languages">The APL family of languages</a>
|
||||
<ul>
|
||||
<li><a href="#why-apl">Why APL?</a></li>
|
||||
|
@ -243,10 +237,11 @@
|
|||
<p>The algorithm is very fast (I think it can be optimized by the interpreter because there is no branching), and is easy to reason about. The whole program fits in a few lines, and you clearly see what each function and each line does. It could probably be optimized further (I don’t know every APL function yet…), and also could probably be golfed to a few lines (at the cost of readability?).</p>
|
||||
<p>It took me some time to write this, but Dyalog’s tools make it really easy to insert symbols and to look up what they do. Next time, I will look into some ASCII-based APL descendants. J seems to have a <a href="http://code.jsoftware.com/wiki/NuVoc">good documentation</a> and a tradition of <em>tacit definitions</em>, similar to the point-free style in Haskell. Overall, J seems well-suited to modern functional programming, while APL is still under the influence of its early days when it was more procedural. Another interesting area is K, Q, and their database engine kdb+, which seems to be extremely performant and actually used in production.</p>
|
||||
<p>Still, Unicode symbols make the code much more readable, mainly because there is a one-to-one link between symbols and functions, which cannot be maintained with only a few ASCII characters.</p>
|
||||
</section>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<footer>
|
||||
Site proudly generated by
|
||||
<a href="http://jaspervdj.be/hakyll">Hakyll</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue