Skip to content

Commit 5af66ee

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent eab3bd2 commit 5af66ee

23 files changed

Lines changed: 1473 additions & 198 deletions

File tree

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f36486bf
1+
ae5d5e30

civitas/authors.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676

7777

7878
<meta property="og:title" content="Authors – Clojure Civitas">
79+
<meta property="og:description" content="">
7980
<meta property="og:image" content="https://clojurecivitas.github.io/civitas/images/civitas-icon.svg">
8081
<meta property="og:site_name" content="Clojure Civitas">
8182
</head>
@@ -336,6 +337,8 @@ <h1 class="title">Authors</h1>
336337
</style>
337338
<script src="civitas/authors_files/md-default0.js" type="text/javascript"></script>
338339
<script src="civitas/authors_files/md-default1.js" type="text/javascript"></script>
340+
<p>You belong here!</p>
341+
<p>Thank you for sharing your ideas.</p>
339342
<div class="card-group"><div class="card"><img class="card-img-top" src="https://avatars.githubusercontent.com/u/171129?v=4"><div class="card-body"><h5 class="card-title anchored"><a href="https://github.com/puredanger">Alex Miller</a></h5></div><a href="https://github.com/puredanger"><i class="github"></i>GitHub</a>:clojure.core</div><div class="card"><img class="card-img-top" src="https://avatars.githubusercontent.com/u/36110?v=4"><div class="card-body"><h5 class="card-title anchored"><a href="https://chouser.us/">Chris Houser</a></h5></div><a href="https://github.com/chouser"><i class="github"></i>GitHub</a></div><div class="card"><img class="card-img-top" src="https://avatars.githubusercontent.com/u/5673102?v=4"><div class="card-body"><h5 class="card-title anchored"><a href="https://github.com/daslu">Daniel Slutsky</a></h5></div><a href="https://github.com/daslu"><i class="github"></i>GitHub</a>:scicloj</div><div class="card"><img class="card-img-top" src="https://avatars.githubusercontent.com/u/43875?v=4"><div class="card-body"><h5 class="card-title anchored"><a href="https://corfield.org">Sean Corfield</a></h5></div><a href="https://github.com/seancorfield"><i class="github"></i>GitHub</a><a href="https://tech.lgbt/@seancorfield"><i class="mastodon"></i>Mastodon</a>:clojurecamp</div><div class="card"><img class="card-img-top" src="https://media.licdn.com/dms/image/v2/D4E03AQGuYEubu1rpeA/profile-displayphoto-shrink_200_200/profile-displayphoto-shrink_200_200/0/1681232451970?e=1754524800&amp;v=beta&amp;t=YbMtki98RI584h2kge6dLdg8PF79uNb7NKt59wrpyVs"><div class="card-body"><h5 class="card-title anchored"><a href="https://github.com/srcerer">Tim Schafer</a></h5></div><a href="https://github.com/srcerer"><i class="github"></i>GitHub</a>:clojurecamp</div><div class="card"><img class="card-img-top" src="https://avatars.githubusercontent.com/u/49298?v=4"><div class="card-body"><h5 class="card-title anchored"><a href="https://timothypratley.blogspot.com/p/httpswww.html">Timothy Pratley</a></h5></div><a href="https://github.com/timothypratley"><i class="github"></i>GitHub</a>:hummi</div></div>
340343
<div style="background-color:grey;height:2px;width:100%;"></div>
341344
<div><pre><small><small>source: <a href="https://github.com/ClojureCivitas/clojurecivitas.github.io/blob/main/src/civitas/authors.clj">src/civitas/authors.clj</a></small></small></pre></div>

civitas/explorer.html

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

9-
<meta name="author" content="Timothy Pratley">
109

1110
<title>Civitas Explorer – Clojure Civitas</title>
1211
<style>
@@ -313,25 +312,10 @@ <h1 class="title">Civitas Explorer</h1>
313312
</div>
314313

315314

316-
<div class="quarto-title-meta-author column-page">
317-
<div class="quarto-title-meta-heading">Author</div>
318-
<div class="quarto-title-meta-heading">Affiliation</div>
319-
320-
<div class="quarto-title-meta-contents">
321-
<p class="author"><a href="https://timothypratley.blogspot.com/p/httpswww.html">Timothy Pratley</a> <a href="mailto:timothypratley@gmail.com" class="quarto-title-author-email"><i class="bi bi-envelope"></i></a> </p>
322-
</div>
323-
<div class="quarto-title-meta-contents">
324-
<p class="affiliation">
325-
<a href="https://hummi.app">
326-
Hummi
327-
</a>
328-
</p>
329-
</div>
330-
</div>
331315

332316
<div class="quarto-title-meta column-page">
333317

334-
318+
335319

336320

337321
</div>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"></html>

clojure/print_object/objection.jpg

-89.2 KB
Binary file not shown.

clojure/print_object/remove_extraneous.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,20 +401,20 @@ <h1 class="title">Clean object printing by removing extraneous</h1>
401401
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> (<span class="va">#'clojure.core/print-object</span> x w))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
402402
</div>
403403
<div class="printedClojure">
404-
<div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.lang.MultiFn <span class="bn">0x419046e3</span> <span class="st">"clojure.lang.MultiFn@419046e3"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
404+
<div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.lang.MultiFn <span class="bn">0x5fa32af4</span> <span class="st">"clojure.lang.MultiFn@5fa32af4"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
405405
</div>
406406
<div class="sourceClojure">
407407
<div class="sourceCode" id="cb3"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>(Object.)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
408408
</div>
409409
<div class="printedClojure">
410-
<div class="sourceCode" id="cb4"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>#object[java.lang.Object <span class="bn">0x3f2f83d5</span> <span class="st">"java.lang.Object@3f2f83d5"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
410+
<div class="sourceCode" id="cb4"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>#object[java.lang.Object <span class="bn">0x67a0e690</span> <span class="st">"java.lang.Object@67a0e690"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
411411
</div>
412412
<p>The syntax is <code>#object[CLASS-NAME HASH toString())]</code> and as you can see, the toString of an Object is <code>CLASS-NAME@HASH</code>. For most objects this becomes quite a long string.</p>
413413
<div class="sourceClojure">
414414
<div class="sourceCode" id="cb5"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>(async/chan)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
415415
</div>
416416
<div class="printedClojure">
417-
<div class="sourceCode" id="cb6"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.core.async.impl.channels.ManyToManyChannel <span class="bn">0x43f97ed</span> <span class="st">"clojure.core.async.impl.channels.ManyToManyChannel@43f97ed"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
417+
<div class="sourceCode" id="cb6"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.core.async.impl.channels.ManyToManyChannel <span class="bn">0x20789365</span> <span class="st">"clojure.core.async.impl.channels.ManyToManyChannel@20789365"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
418418
</div>
419419
<div class="quarto-figure quarto-figure-center">
420420
<figure class="figure">
@@ -427,14 +427,14 @@ <h1 class="title">Clean object printing by removing extraneous</h1>
427427
<div class="sourceCode" id="cb7"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>(<span class="kw">fn</span> [x] x)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
428428
</div>
429429
<div class="printedClojure">
430-
<div class="sourceCode" id="cb8"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.print_object.remove_extraneous$eval22450$fn__22451 <span class="bn">0x6bb35b0e</span> <span class="st">"clojure.print_object.remove_extraneous$eval22450$fn__22451@6bb35b0e"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
430+
<div class="sourceCode" id="cb8"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.print_object.remove_extraneous$eval22473$fn__22474 <span class="bn">0x44bff65c</span> <span class="st">"clojure.print_object.remove_extraneous$eval22473$fn__22474@44bff65c"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
431431
</div>
432432
<p>It’s quite easy to miss the fact that it is a function as we are looking for a tiny little <code>fn</code> in a sea of text. If, like me, you are fond of the <a href="../../code_interview/beating/with_stupid_stuff/z_combinator_gambit.html">odd lambda calculus excursion</a>, things get even more hectic.</p>
433433
<div class="sourceClojure">
434434
<div class="sourceCode" id="cb9"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>((<span class="kw">fn</span> [x] (<span class="kw">fn</span> [v] ((x x) v))) (<span class="kw">fn</span> [y] y))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
435435
</div>
436436
<div class="printedClojure">
437-
<div class="sourceCode" id="cb10"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.print_object.remove_extraneous$eval22454$fn__22455$fn__22456 <span class="bn">0x6a544178</span> <span class="st">"clojure.print_object.remove_extraneous$eval22454$fn__22455$fn__22456@6a544178"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
437+
<div class="sourceCode" id="cb10"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.print_object.remove_extraneous$eval22477$fn__22478$fn__22479 <span class="bn">0x16165af2</span> <span class="st">"clojure.print_object.remove_extraneous$eval22477$fn__22478$fn__22479@16165af2"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
438438
</div>
439439
<p>Yikes! what an eyesore. This is not an academic issue specific to lambda calculus. Any function created from inside a function is helpfully identifiable through the <code>fn$fn</code> nesting. We create these quite regularly, and they are often printed in stack traces. I’m sure you have seen them when you map an inline function across a seq, and there is a bug in the anonymous function.</p>
440440
<div class="sourceClojure">
@@ -449,7 +449,7 @@ <h1 class="title">Clean object printing by removing extraneous</h1>
449449
<div class="printedClojure">
450450
<div class="sourceCode" id="cb13"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a>[[clojure.lang.Numbers add <span class="st">"Numbers.java"</span> <span class="dv">155</span>]</span>
451451
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a> [clojure.lang.Numbers add <span class="st">"Numbers.java"</span> <span class="dv">3747</span>]</span>
452-
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a> [clojure.print_object.remove_extraneous$caesar_cipher$add2__22462 invoke <span class="st">"NO_SOURCE_FILE"</span> <span class="dv">0</span>]</span>
452+
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a> [clojure.print_object.remove_extraneous$caesar_cipher$add2__22485 invoke <span class="st">"NO_SOURCE_FILE"</span> <span class="dv">0</span>]</span>
453453
<span id="cb13-4"><a href="#cb13-4" aria-hidden="true" tabindex="-1"></a> [clojure.core$mapv$fn__8565 invoke <span class="st">"core.clj"</span> <span class="dv">7059</span>]]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
454454
</div>
455455
<p>See that part <code>caesar_cipher$add2</code>? That is <strong>very</strong> useful information. It tells us that the exception was inside <code>add2</code>, which is inside <code>caesar-cipher</code>. The stack trace doesn’t print functions as objects, but it illustrates that the thing that we care about is that they are a function, what their name is, and whether they were created from inside another function.</p>
@@ -463,7 +463,7 @@ <h1 class="title">Clean object printing by removing extraneous</h1>
463463
<div class="sourceCode" id="cb15"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a>(class-name ((<span class="kw">fn</span> [] (<span class="kw">fn</span> [y] y))))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
464464
</div>
465465
<div class="printedClojure">
466-
<div class="sourceCode" id="cb16"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="st">"clojure.print-object.remove-extraneous/eval22468/fn--22469/fn--22470"</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
466+
<div class="sourceCode" id="cb16"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="st">"clojure.print-object.remove-extraneous/eval22491/fn--22492/fn--22493"</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
467467
</div>
468468
<p>Next, we don’t need the eval identities.</p>
469469
<div class="sourceClojure">

0 commit comments

Comments
 (0)