💾 Archived View for siiky.srht.site › atom.xml captured on 2023-07-10 at 13:42:31.

View Raw

More Information

⬅️ Previous capture (2023-05-24)

➡️ Next capture (2023-09-08)

🚧 View Differences

-=-=-=-=-=-=-

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>siiky</name>
    <email>~siiky/public@lists.sr.ht</email>
  </author>
  <generator uri="https://github.com/ursetto/atom-egg" version="0.1.5">atom egg for Chicken</generator>
  <id>gemini://siiky.srht.site/atom.xml</id>
  <link href="https://siiky.srht.site/atom.xml" rel="self" type="application/atom+xml" hreflang="en" title="nothing interesting here" />
  <title type="text">nothing interesting here</title>
  <updated>2023-06-18T00:00:00Z</updated>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="2023/06/18" xml:lang="2023/06/18"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Division, remainder, mod ➗%❓&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/06/18&lt;br&gt;&lt;/br&gt;2023/06/18&lt;br&gt;&lt;/br&gt;2023/06/18&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/freeshell.de/gemlog/2023-06-18_Division__remainder__mod.gmi"&gt;Division, remainder, mod ➗%❓&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;I&amp;#39;m not qualified to say if that&amp;#39;s true (and I don&amp;#39;t really care)&lt;/blockquote&gt;&lt;p&gt;Yes, you are qualified. You can tell whether -1 and 1 are the same number.&lt;/p&gt;&lt;p&gt;And yes, as a programmer, you should care. Integers are the most basic atomic data type in a computer. As programmers we have to deal with integers and do integer arithmetic all the time. Both remainder and modulo are useful (the latter more so than the former, in my experience), and knowing which one we have in hands can be the difference between the program we just wrote doing what we expected or crashing.&lt;/p&gt;&lt;blockquote&gt;Whitespace was originally implemented in Haskell, and I wrote an interpreter in Java. These two languages disagree on what the operator % means for negative inputs, so I read what Wikipedia has to say on the differrence.&lt;br&gt;&lt;/br&gt;Oh, wow! What a mess.&lt;/blockquote&gt;&lt;p&gt;There&amp;#39;s no % operator in Haskell (AFAIK?), you usually either use rem or mod (an example of why you should care). And yeah, that Wikipedia page is not the friendliest...&lt;/p&gt;&lt;blockquote&gt;What integer do you round to if you can&amp;#39;t divide exactly? Wikipedia lists FIVE ways to decide on the result, with graphs. Ouch.&lt;/blockquote&gt;&lt;p&gt;Right, again, that page is not the best... Those graphs are just confusing.&lt;/p&gt;&lt;p&gt;There&amp;#39;s only one definition of &amp;quot;remainder&amp;quot;, the one based on Euclidean division. Both quotient and remainder are well defined functions, and easy to implement in any programming language too. The &amp;quot;different ways&amp;quot; are implementation details -- &amp;quot;how&amp;quot;, not &amp;quot;what&amp;quot;. However the integer division is implemented -- be it &amp;quot;truncating&amp;quot;, &amp;quot;flooring&amp;quot; or whatever else -- what matters is if the language implements the quotient, remainder, and modulo correctly.&lt;/p&gt;&lt;blockquote&gt;Once you&amp;#39;ve decided how integer division works, then you can decide what % means. Good luck. You won&amp;#39;t please everyone.&lt;/blockquote&gt;&lt;p&gt;There&amp;#39;s only one integer division definition (see above), so you only need to set % to the remainder or the modulo. Which of the two you pick is largely unimportant and, as you say, won&amp;#39;t please everyone -- hardly important either. And after that, only if you choose modulo do you have another decision to make.&lt;/p&gt;&lt;p&gt;(Fun fact: modulo is not a function, it&amp;#39;s a relation. We talk as if it was a function to save our brains from melting.)&lt;/p&gt;&lt;p&gt;That&amp;#39;s where the a choice comes from. For example, -5 ≣ -2 ≣ 1 ≣ 4 ≣ 7 ≣ 10 (mod 3) -- which of the relation &amp;quot;outputs&amp;quot; do you pick as the function result? There&amp;#39;s a single one sane option (which defines the &amp;quot;set of residues&amp;quot;).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Modular_arithmetic#Residue_systems"&gt;https://en.wikipedia.org/wiki/Modular_arithmetic#Residue_systems&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Math.floorMod() (...) does [what] siiky wanted.&lt;/blockquote&gt;&lt;p&gt;Indeed, that looks like what I need, thanks! Here&amp;#39;s a (probably less efficient) alternative in case you only have the remainder to work with:&lt;/p&gt;&lt;pre&gt;n `mod` m = ((n `rem` m) + m) `rem` m
&lt;/pre&gt;&lt;pre&gt;(n % m + m) % m
&lt;/pre&gt;&lt;pre&gt;(remainder (+ (remainder n m) m) m)
&lt;/pre&gt;&lt;blockquote&gt;My practical advice is that remainder and mod are the same, except for negative numbers, where language implementers live in a wild, Bohemian, devil-may-care world, and do what they like.&lt;/blockquote&gt;&lt;p&gt;That&amp;#39;s roughly correct, regarding remainder and modulo. The second part is largely correct too -- language implementers can do whatever the fuck they want... However, remember that there&amp;#39;s only one remainder definition and an infinite number of modulo implementations, only one of which is sane. A serious language should use those.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/algebra/re-division_remainder_mod.gmi</id>
    <published>2023-06-18T00:00:00Z</published>
    <title type="text">RE: Division, remainder, mod ➗%❓</title>
    <updated>2023-06-18T00:00:00Z</updated>
    <link href="https://siiky.srht.site/algebra/re-division_remainder_mod.html" rel="alternate" type="text/html" hreflang="2023/06/18" title="RE: Division, remainder, mod ➗%❓" />
    <link href="gemini://siiky.srht.site/algebra/re-division_remainder_mod.gmi" rel="alternate" type="text/gemtext" hreflang="2023/06/18" title="RE: Division, remainder, mod ➗%❓" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;MODULO IS NOT REMAINDER&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/06/17&lt;br&gt;&lt;/br&gt;2023/06/17&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Alright, you know what&amp;#39;s coming you smart cookies. This is a rant.&lt;/p&gt;&lt;h2&gt;The % operator&lt;/h2&gt;&lt;p&gt;Before going further, if you&amp;#39;re a programmer, try to remember whether % is the remainder or the modulo in the programming languages you know (obviously, only the ones that use %). No cheating! Don&amp;#39;t check online or try it in a REPL before answering mentally!&lt;/p&gt;&lt;p&gt;I&amp;#39;ll list these later: C, D, Go, JS, Lua, Python, Rust, Zig, Java.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/pl.c.html"&gt;../wiki/pl.c.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/pl.go.html"&gt;../wiki/pl.go.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/pl.lua.html"&gt;../wiki/pl.lua.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;What&lt;/h2&gt;&lt;p&gt;There are two related, though different, operations on integers called &amp;quot;remainder&amp;quot; and &amp;quot;modulo&amp;quot;. The &amp;quot;remainder&amp;quot; should need no introductions, it&amp;#39;s the remainder of integer division. The &amp;quot;modulo&amp;quot; may be more &amp;quot;obscure&amp;quot; but is somewhat similar.&lt;/p&gt;&lt;p&gt;For natural numbers (N), the remainder is the same as the modulo. That is, when both dividend and divisor are positive, the result is equal. Here are some examples in CHICKEN.&lt;/p&gt;&lt;pre&gt;#;1&amp;gt; (remainder 4 2)
0
#;2&amp;gt; (modulo 4 2)
0
#;3&amp;gt; (remainder 4 3)
1
#;4&amp;gt; (modulo 4 3)
1
#;5&amp;gt; (remainder 5 3)
2
#;6&amp;gt; (modulo 5 3)
2
&lt;/pre&gt;&lt;p&gt;However, when the dividend is a non-natural integer (Z\N, i.e. negative), the result may differ:&lt;/p&gt;&lt;pre&gt;#;7&amp;gt; (remainder -4 2)
0
#;8&amp;gt; (modulo -4 2)
0
#;9&amp;gt; (remainder -4 3)
-1
#;10&amp;gt; (modulo -4 3)
2
#;11&amp;gt; (remainder -5 3)
-2
#;12&amp;gt; (modulo -5 3)
1
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/pl.chicken.html"&gt;../wiki/pl.chicken.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;That should be enough to convince you that remainder and modulo are different.&lt;/p&gt;&lt;p&gt;If you want to learn more about modular arithmetic, you can read an older post of mine:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="groups.html"&gt;Groups&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Why am I annoyed?&lt;/h2&gt;&lt;p&gt;Unbeknownst to me, some people use remainder/modulo almost interchangeably online: they call the remainder &amp;quot;remainder&amp;quot;. Or sometimes &amp;quot;modulo&amp;quot; -- you can choose whichever you prefer. :) *similing but crying screaming inside*&lt;/p&gt;&lt;p&gt;Given the above, when you read &amp;quot;remainder&amp;quot; online you can be pretty sure it is &amp;quot;remainder&amp;quot; the writer meant. But when you read &amp;quot;modulo&amp;quot; you have to take a look outside: what&amp;#39;s the current phase of the moon?&lt;/p&gt;&lt;p&gt;Unfortunately, when one is looking for or reading documentation, one is not much in the mood to go outside, or in fact doesn&amp;#39;t have the time -- one needs to know NOW is it the remainder or the modulo quick QuiCk QUICK!&lt;/p&gt;&lt;p&gt;While researching to write this I found the following blog post.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://robconery.com/theory/mod-and-remainder-are-not-the-same"&gt;Mod and Remainder Are Not The Same&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;quot;Thank you!&amp;quot; I thought after reading the title. Then it starts:&lt;/p&gt;&lt;blockquote&gt;Get ready, here comes some fringe pedantry (...)&lt;/blockquote&gt;&lt;p&gt;&amp;quot;It&amp;#39;s neither fringe nor pedantry!&amp;quot; I thought now. And it continues:&lt;/p&gt;&lt;blockquote&gt;Anyway: last week I found out something weird that I thought I would share: mod and remainder are not the same thing.&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;I had to look this up too, just like the last time the subject came up. It&amp;#39;s one of those things that I know, but don&amp;#39;t retain.&lt;/blockquote&gt;&lt;p&gt;&amp;quot;Oh no, just another person who doesn&amp;#39;t know what the modulo is... :/&amp;quot;&lt;/p&gt;&lt;p&gt;I also found these two Wikipedia pages refering to the % operator as the &amp;quot;modulo operator&amp;quot;.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Modulo"&gt;https://en.wikipedia.org/wiki/Modulo&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/C_(programming_language)#Operators"&gt;https://en.wikipedia.org/wiki/C_(programming_language)#Operators&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Fuck me...&lt;/p&gt;&lt;h2&gt;The % operator (answers)&lt;/h2&gt;&lt;pre&gt;| C      | remainder    |
| D      | remainder(?) |
| Go     | remainder    |
| JS     | remainder    |
| Lua    | modulo       |
| Python | modulo       |
| Rust   | remainder    |
| Zig    | remainder    |
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://web.archive.org/web/20181230041359if_/http://www.open-std.org/jtc1/sc22/wg14/www/abq/c17_updated_proposed_fdis.pdf"&gt;C17 § 6.5.5 Multiplicative operators; point 5&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://dlang.org/spec/expression.html#mul_expressions"&gt;D Language Reference § 10.15 Mull Expressions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://go.dev/ref/spec#Arithmetic_operators"&gt;The Go Programming Language Specification § Arithmetic operators&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Remainder"&gt;MDN JavaScript Reference § Remainder (%)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.lua.org/manual/5.4/manual.html"&gt;Lua 5.4 Reference Manual § 3.4.1 Arithmetic Operators&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations"&gt;The Python Language Reference § 6.7 Binary arithmetic operations&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://doc.rust-lang.org/reference/expressions/operator-expr.html#arithmetic-and-logical-binary-operators"&gt;The Rust Reference § Arithmetic and Logical Binary Operators&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://ziglang.org/documentation/0.10.1/#Table-of-Operators"&gt;Zig Language Reference § Table of Operators&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Of these, D is the one I&amp;#39;m not sure about. Some parts of the docs say &amp;quot;remainder&amp;quot; others &amp;quot;modulo&amp;quot;. It&amp;#39;s probably remainder.&lt;/p&gt;&lt;p&gt;Lua and Python seem to compute the modulo indeed (no extensive testing, a single example should be enough assuming a well-working implementation).&lt;/p&gt;&lt;h2&gt;Why is this bad?&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;(Not so) fun fact #1: in Java the % operator is the remainder&lt;/li&gt;&lt;li&gt;(Not so) fun fact #2: in Java String.hashCode() (I guess Object.hashCode() generally) may return a negative number&lt;/li&gt;&lt;li&gt;(Not so) fun fact #3: 1+2 = index OOB&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://docs.oracle.com/javase/tutorial/java/nutsandbolts/op1.html"&gt;The Java Tutorials § The Arithmetic Operators&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;How?&lt;/h2&gt;&lt;p&gt;There&amp;#39;re two more very important questions left for me.&lt;/p&gt;&lt;p&gt;How did I come to believe that the % operator in C/C++, Go, Java, and Rust was the modulo? I started studying/using C 8~9 years ago. How was I wrong about this so very important detail for so long?&lt;/p&gt;&lt;p&gt;And how was I never bit by this so very important detail until yesterday?!&lt;/p&gt;&lt;p&gt;To answer the first, I guess the most likely cause is the &amp;quot;modulo is just another word remainder&amp;quot; ill together with never having been bit by it.&lt;/p&gt;&lt;p&gt;To answer the second, my best guess is that C, Go, and Rust all have unsigned numbers, unlike some other languages (fucking Jaba). JS, Lua, and Python don&amp;#39;t have unsigned integers either (or integers at all &amp;lt;_&amp;lt;) but I don&amp;#39;t use them much.&lt;/p&gt;&lt;h2&gt;Why is % the remainder?&lt;/h2&gt;&lt;p&gt;I have no idea... The modulo seems to be the most useful operation of the two. That&amp;#39;s good enough reason for % to be the modulo for me, but I&amp;#39;ll leave these data points.&lt;/p&gt;&lt;p&gt;A colleague sent this ChatGPT reply, but I wouldn&amp;#39;t trust it for anything:&lt;/p&gt;&lt;blockquote&gt;The reason why most programming languages chose to implement the % operator as a remainder operation rather than a modulo operation is largely historical and related to the way that division is typically implemented at the hardware level. In many hardware architectures, division is defined in such a way that it rounds towards zero, which naturally leads to a remainder operation when used with the % operator.&lt;/blockquote&gt;&lt;p&gt;In #chicken@libera.chat:&lt;/p&gt;&lt;blockquote&gt;&amp;lt;Bunny351&amp;gt; what is decisive is probably what the CPU does (e.g. &amp;quot;idiv&amp;quot;) as low level languages will use whatever the CPU does by default&lt;/blockquote&gt;&lt;p&gt;In #c@libera.chat:&lt;/p&gt;&lt;blockquote&gt;&amp;lt;supakeen&amp;gt; From what I recall it had to do with the implementation being allowed to pick what to do in the case `/` (round to -inf or round to 0)&lt;br&gt;&lt;/br&gt;&amp;lt;supakeen&amp;gt; So % automatically became its brother.&lt;br&gt;&lt;/br&gt;&amp;lt;supakeen&amp;gt; This was also defined at some point.&lt;br&gt;&lt;/br&gt;&amp;lt;supakeen&amp;gt; It likely has to do with / and % working together.&lt;br&gt;&lt;/br&gt;&amp;lt;siiky&amp;gt; so it&amp;#39;s just an historical implementation detail?&lt;br&gt;&lt;/br&gt;&amp;lt;supakeen&amp;gt; No, it&amp;#39;s that remainder plus integer division work well together.&lt;/blockquote&gt;&lt;h2&gt;Conclusion&lt;/h2&gt;&lt;p&gt;If you can take out of this post a single little thing, let it be this: REMAINDER IS NOT MODULO!&lt;/p&gt;&lt;p&gt;And please share the word!&lt;/p&gt;&lt;h2&gt;Replies&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/freeshell.de/gemlog/2023-06-18_Division__remainder__mod.gmi"&gt;Division, remainder, mod ➗%❓&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/algebra/mod_not_rem.gmi</id>
    <published>2023-06-17T00:00:00Z</published>
    <title type="text">MODULO IS NOT REMAINDER</title>
    <updated>2023-06-17T00:00:00Z</updated>
    <link href="https://siiky.srht.site/algebra/mod_not_rem.html" rel="alternate" type="text/html" hreflang="en" title="MODULO IS NOT REMAINDER" />
    <link href="gemini://siiky.srht.site/algebra/mod_not_rem.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="MODULO IS NOT REMAINDER" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;(Un)free public service&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/05/15&lt;br&gt;&lt;/br&gt;2023/05/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I was here reading this:&lt;/p&gt;&lt;blockquote&gt;Para solicitar cópia de um determinado conteúdo basta registar-se como utilizador e pressionar o botão LICENCIAR CONTEÚDO disponível na pagina de cada conteúdo, ou, caso o conteúdo que pretenda não esteja ainda disponível neste portal, aceder à área de Serviços e preencher e enviar o formulário de pedido de licenciamento.&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://arquivos.rtp.pt/sobre-o-arquivo"&gt;https://arquivos.rtp.pt/sobre-o-arquivo&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;In English (pretty direct translation):&lt;/p&gt;&lt;blockquote&gt;To request a copy of some content just register as a user and press the &amp;quot;LICENSE CONTENT&amp;quot; that&amp;#39;s available on the page of each content, or, if the content you&amp;#39;re looking for is not yet available in this portal, access the services area and fill and send a licensing request form.&lt;/blockquote&gt;&lt;p&gt;&amp;quot;Awesome!&amp;quot; I thought, &amp;quot;maybe I can download things to watch offline!&amp;quot; I had no account previously, so there I go create an account, add all my personal details[^0], and it even accepted my 30+ characters long randomly generated password[^1]!&lt;/p&gt;&lt;p&gt;I opened the EP01 page of &amp;quot;Vidas Proibidas - Ballet Rose&amp;quot; and hit the &amp;quot;LICENCIAR CONTEÚDO&amp;quot; button.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/cinema.ballet_rose.html"&gt;../wiki/cinema.ballet_rose.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;There&amp;#39;s a dropdown menu to specify usage (domestic/private, or education/research/cultural), three other dropdown menus with a single option each, and a radio button labeled &amp;quot;Ficheiro para download&amp;quot; (&amp;quot;File for download&amp;quot;). It&amp;#39;s looking good, promising!&lt;/p&gt;&lt;p&gt;And then... &amp;quot;Valor do licenciamento&amp;quot; (&amp;quot;Value of licensing&amp;quot;): 25€! Excluding tax! For domestic/private use, prices are determined only by length: 8€, 15€, and 25€, for &amp;lt;5min, &amp;lt;45min, and &amp;gt;45min, respectively.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://arquivos.rtp.pt/servicos"&gt;https://arquivos.rtp.pt/servicos&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://arquivos.rtp.pt/tabela-de-precos"&gt;https://arquivos.rtp.pt/tabela-de-precos&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;RTP is supposed to be a public service, so, in theory, the taxes I pay serve, at least in part, to fund it. But if I want to download material (to watch, nothing else) from this official &amp;quot;public service archive&amp;quot; I still have to pay... Go figure.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://pt.wikipedia.org/wiki/R%C3%A1dio_e_Televis%C3%A3o_de_Portugal"&gt;https://pt.wikipedia.org/wiki/R%C3%A1dio_e_Televis%C3%A3o_de_Portugal&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/R%C3%A1dio_e_Televis%C3%A3o_de_Portugal"&gt;https://en.wikipedia.org/wiki/R%C3%A1dio_e_Televis%C3%A3o_de_Portugal&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;[^0]: ID number, VAT number, and address -- weird, but ok...&lt;/p&gt;&lt;p&gt;[^1]: Unlike some government(!) sites that have a 13-character maximum lenght, and accept barely no symbol characters -- I&amp;#39;m looking at you Social Security!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/unfree-public-service.gmi</id>
    <published>2023-05-15T00:00:00Z</published>
    <title type="text">(Un)free public service</title>
    <updated>2023-05-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/unfree-public-service.html" rel="alternate" type="text/html" hreflang="en" title="(Un)free public service" />
    <link href="gemini://siiky.srht.site/kB45oC/unfree-public-service.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="(Un)free public service" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Two Energy Crises&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/05/12&lt;br&gt;&lt;/br&gt;2023/05/12&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/jsreed5.org/log/2023/202305/20230510-two-energy-crises.gmi"&gt;https://portal.mozz.us/gemini/jsreed5.org/log/2023/202305/20230510-two-energy-crises.gmi&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/textmonger.pollux.casa/gemlog/2023-05-11-02-re-rob-s-two-energy-crises.gmi"&gt;https://portal.mozz.us/gemini/textmonger.pollux.casa/gemlog/2023-05-11-02-re-rob-s-two-energy-crises.gmi&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;The second crisis is a crisis of energy stored in our own bodies: the modern pandemic of obesity. Fat is stored metabolic energy, and the richness of food available to use in the West--and particularly in the United States--is such that we ingest far more metabolic energy than our ancestors did.&lt;/blockquote&gt;&lt;blockquote&gt;I suspect the reliance on machines factor is negligible compared to the too-bad-we-can-no-longer-bring-ourselves-to-say-it gluttony forbid.&lt;/blockquote&gt;&lt;p&gt;Yes and yes! It could maybe be explained by (1) the need to sell more to make more money, or (2) some sort of cross-generational memory of &amp;quot;the harsher times&amp;quot;[^0].&lt;/p&gt;&lt;p&gt;(1) implies each producer/seller must produce a ton to make some money, because producing less than there is demand for would mean profit &amp;quot;loss&amp;quot; -- obviously! Because there&amp;#39;s so much stuff available, and because most people still have enough money to survive AND to spend on non-essential things, why spend a little more to get this small luxury/comfort? And after you buy it you won&amp;#39;t let it spoil, right? That would be a waste, right? And by the way... if all this stuff that&amp;#39;s for sale isn&amp;#39;t bought, it&amp;#39;ll spoil too! This way of living is a waste-producing machine.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list § Sex at Dawn&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/James_Suzman"&gt;https://en.wikipedia.org/wiki/James_Suzman&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;(2) it really sucks not to have enough to get by. The most obvious way to try to avoid it is to hoard everything you can while you can. And again, after you have it, you won&amp;#39;t let it spoil because (see above). On the other hand, most people in the city have so much at all times they won&amp;#39;t ever know what it is to not have enough to get by, so this hoarding feeling isn&amp;#39;t justified.&lt;/p&gt;&lt;p&gt;Small experiment: go to your fridge, cupboards, &amp;amp;c, and realistically think how long it would take you (plus whoever lives with you) to consume all that. I happened to do that yesterday here (just chance); my conclusion was about 2 weeks. It&amp;#39;s way too much for my circumstances (living in a city with shops, supermarkets, malls, &amp;amp;c close by).&lt;/p&gt;&lt;p&gt;Added both posts to the reclog.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../reclog.html"&gt;../reclog.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;[^0]: My grandma would often tell me when I was younger how &amp;quot;in the old days&amp;quot; (~40+ years ago) they sometimes didn&amp;#39;t have anything to eat. Often they had only a single small piece of bread to split between 6 or more people.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/re-two-energy-crises.gmi</id>
    <published>2023-05-12T00:00:00Z</published>
    <title type="text">RE: Two Energy Crises</title>
    <updated>2023-05-12T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/re-two-energy-crises.html" rel="alternate" type="text/html" hreflang="en" title="RE: Two Energy Crises" />
    <link href="gemini://siiky.srht.site/kB45oC/re-two-energy-crises.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Two Energy Crises" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: The Trouble With IDEs&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/05/12&lt;br&gt;&lt;/br&gt;2023/05/12&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/clanmorgan.org/gemlog/2023-05-12-the-trouble-with-ides.gmi"&gt;https://portal.mozz.us/gemini/clanmorgan.org/gemlog/2023-05-12-the-trouble-with-ides.gmi&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;IDEs aren’t exactly set up to succeed; the promise is right there in the name. They’re supposed to do everything—they are supposed to be the very environment in which you develop.&lt;/blockquote&gt;&lt;p&gt;That should be a hint to anyone that it&amp;#39;s a lost battle. If your projects&amp;#39; feature set includes everything under the sun and more... move on, go take a walk, much better use of your time.&lt;/p&gt;&lt;blockquote&gt;If you’ve ever tried an IDE then you’ve probably had an experience like Sean’s; you powered through irrelevant-seeming configuration, broken features and unreasonable hangs and slowdowns, then gave up.&lt;/blockquote&gt;&lt;p&gt;Yup, exactly my experience with the IDEs I&amp;#39;ve tried (admittedly, not many: 4?). And add &amp;quot;slow as molasses&amp;quot; to this feature set.&lt;/p&gt;&lt;p&gt;The first time I tried one I was at a workshop[^0], and they said we needed Visual Studio -- wasn&amp;#39;t announced beforehand, I guess they assumed everyone had it installed? And how was it, you ask? I spent half the workshop waiting for the 40GB download to end, a good few tens of minutes installing it, and a good few minutes waiting for it to start up. Finally I was ready to get shit done! Except the workshop was now at the end. Complete waste of my time. I uninstalled the fucking thing right away.&lt;/p&gt;&lt;p&gt;Why would anyone want to download an XXXGB program to do something an XMB program can do much better, faster, more reliably, ... ? Why would I have to suffer through all this just because some small % of users want(!) a feature I will NEVER need or want?&lt;/p&gt;&lt;p&gt;IMO it&amp;#39;s vastly better to go the other way around: take the smallest thing you can start working with, and add the features you need(!) on top -- no more, no less. This is what I&amp;#39;ve been doing since I started using (Neo)Vi(m), and it&amp;#39;s never failed me once, no matter the environment, computer, or configurations. Wherever I go, as long as I have Vi, I can program -- minus the very real &amp;quot;shit, I don&amp;#39;t have hjkl, what do I do now?&amp;quot;&lt;/p&gt;&lt;blockquote&gt;At that point you have a choice: you can give up and fall back to an editor that just works; or you can persevere and slowly build up the bag of tricks that you need in order to be productive with an IDE. Some things will make sense. Some things won’t. Sometimes there will be an update and it breaks under you and you have to figure out some new tricks.&lt;/blockquote&gt;&lt;p&gt;Except for the update breaking (which doesn&amp;#39;t happen with Vi), the same is said about the &amp;quot;classic&amp;quot; editors (Vi &amp;amp; Emacs)... Somehow the same arguments are a con for editors but a pro for IDEs?&lt;/p&gt;&lt;blockquote&gt;Be thankful that you had a choice.&lt;/blockquote&gt;&lt;p&gt;I certainly am enjoying it while I can! I&amp;#39;d prefer not to get the funny-sideways-looks -- &amp;quot;what do you use then, if not &amp;lt;insert your IDE of choice&amp;gt;?!&amp;quot;, every time I tell a fellow programmer for the first time that I don&amp;#39;t use any IDEs -- but at least I can still use whatever I want. At the end of the day, I feel for those who think they need an IDE to program, it&amp;#39;s sad.&lt;/p&gt;&lt;blockquote&gt;IDEs have been around for decades, and disliked for almost as long;&lt;/blockquote&gt;&lt;p&gt;With good reason, I&amp;#39;d say!&lt;/p&gt;&lt;p&gt;Start with an editor, a compiler/interpreter, maybe a build tool to automate compiling[^1]. This is strictly what a programmer ever needs to get shit done. Add to that a program for each smaller feature:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;text-based search&amp;amp;replace&lt;/li&gt;&lt;li&gt;syntax highlighting&lt;/li&gt;&lt;li&gt;linting (usually already a standalone program)&lt;/li&gt;&lt;li&gt;compile errors/warnings in-editor&lt;/li&gt;&lt;li&gt;tags (where things are defined, used, &amp;amp;c)&lt;/li&gt;&lt;li&gt;jump-to-definition&lt;/li&gt;&lt;li&gt;find-uses&lt;/li&gt;&lt;li&gt;search&amp;amp;replace (not text-based)&lt;/li&gt;&lt;li&gt;Git integration or w.e. (if only people started by learning how to use the git command and that Git != GitHub...)&lt;/li&gt;&lt;li&gt;&amp;amp;c&lt;/li&gt;&lt;li&gt;&amp;amp;c&lt;/li&gt;&lt;li&gt;&amp;amp;c&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Ideally, an IDE would be a collection of such composable, interoperable, and communicating programs, rather than a single program that tries but fails at all of these things.&lt;/p&gt;&lt;p&gt;I can live well without any of these features. Some are native to (Neo)Vim so I use them: text-based search&amp;amp;replace (:help :s), syntax highlighting[^2] (:syn on), tags (:help tags), jump-to-definition (&amp;lt;C-]&amp;gt;), compile errors/warnings in-editor (:help :make), ... I have a few niceties plugins, not many. Linting and other more advanced features are available through plugins too. There are some niceties that I would like to have but don&amp;#39;t because it&amp;#39;s just tmw setting them up. And I will never replace a good and reliable editor with a slow and unreliable IDE for any of them.&lt;/p&gt;&lt;p&gt;[^0]: Xamarin IIRC, I clearly didn&amp;#39;t know what I was getting myself into at the time. I know better now.&lt;/p&gt;&lt;p&gt;[^1]: Somehow, build tools is another one of those things trying to do everything under the sun and more... A couple weeks ago I had the misfortune of using Maven for a PA. I couldn&amp;#39;t for the life of me get the tests to run with Maven even though they run on my coleagues&amp;#39; IDEs (IntelliJ I think). AFAIU the IDE also used the Maven config files to determine how and which tests to run, but somehow, no no no, no tests here.&lt;/p&gt;&lt;p&gt;[^2]: Syntax highlighting is one of those that people strongly feel is necessary but, really, it isn&amp;#39;t. Try it for a couple of hours. If you can&amp;#39;t read your code without it, maybe your code needs more human-readability.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/programming/re-the-trouble-with-ides.gmi</id>
    <published>2023-05-12T00:00:00Z</published>
    <title type="text">RE: The Trouble With IDEs</title>
    <updated>2023-05-12T00:00:00Z</updated>
    <link href="https://siiky.srht.site/programming/re-the-trouble-with-ides.html" rel="alternate" type="text/html" hreflang="en" title="RE: The Trouble With IDEs" />
    <link href="gemini://siiky.srht.site/programming/re-the-trouble-with-ides.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: The Trouble With IDEs" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;just quotes&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/05/26&lt;br&gt;&lt;/br&gt;2023/05/10&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;h2&gt;2023-05-10&lt;/h2&gt;&lt;blockquote&gt;We know that the train carries all loads, so after getting on it why should we carry our small luggage on our head to our discomfort, instead of putting it down in the train and feeling at ease?&lt;/blockquote&gt;&lt;blockquote&gt;Under the tree the shade is pleasant; out in the open the heat is scorching. A person who has been going about in the sun feels cool when he reaches the shade. Someone who keeps on going from the shade into the sun and then back into the shade is a fool. A wise man stays permanently in the shade.&lt;/blockquote&gt;&lt;p&gt;From &amp;quot;Who Am I?&amp;quot;, questions 18 and 24, respectively.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/book.bhagavan_sri_ramana_maharshi.who_am_i.html"&gt;../wiki/book.bhagavan_sri_ramana_maharshi.who_am_i.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2023-02-01&lt;/h2&gt;&lt;blockquote&gt;Floki:&lt;br&gt;&lt;/br&gt;  This is your fault, Ragnar.&lt;br&gt;&lt;/br&gt;  Torstein has died fighting for a hill he did not want to own. For something which meant nothing to him. He has died a pointless death.&lt;br&gt;&lt;/br&gt;  How many more of us must die for your Christians? Or have you, in your heart, already renounced our gods and turned to the Christ God? Is that what your friend Athelstan has persuaded you to do?&lt;/blockquote&gt;&lt;blockquote&gt;Ragnar:&lt;br&gt;&lt;/br&gt;  [funny face: wtf are you talking about?]&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;Floki:&lt;br&gt;&lt;/br&gt;  But look. Here we are. Under an English sky. Burying our dead. Those we have sacrificed for Jesus Christ.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;Ragnar:&lt;br&gt;&lt;/br&gt;  We&amp;#39;re all fated to die on a certain day, yes? But it is our own choice to do as we please until that day comes.&lt;br&gt;&lt;/br&gt;  I did not force Torstein, or any of you, to come, for that matter. You all chose to be here.&lt;br&gt;&lt;/br&gt;  My heart is as heavy for Torstein as anyone&amp;#39;s, but I am sure that I will bump into him again soon.&lt;br&gt;&lt;/br&gt;  And in the meantime, Floki, shut your face.&lt;/blockquote&gt;&lt;p&gt;Floki and Ragnar, from Vikings S03E03.&lt;/p&gt;&lt;p&gt;After Ragnar was finished talking Floki looked convinced and trust restored.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Vikings_%28TV_series%29"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.imdb.com/title/tt2306299"&gt;IMDb&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2021-12-27&lt;/h2&gt;&lt;blockquote&gt;If one desires to be happy, sir, one must never understand duty; for, as soon as one has comprehended it, it is implacable.&lt;/blockquote&gt;&lt;p&gt;Jean Valjean to Marius Pontmercy, from Les Misérables, by Victor Hugo&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Les_Misérables"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://standardebooks.org/ebooks/victor-hugo/les-miserables/isabel-f-hapgood"&gt;Standard Ebooks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2021-06-08&lt;/h2&gt;&lt;blockquote&gt;6.371: At the basis of the whole modern view of the world lies the illusion that the so-called laws of nature are the explanations of natural phenomena.&lt;/blockquote&gt;&lt;p&gt;From Tractatus Logico-Philosophicus, by Ludwig Wittgenstein&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Tractatus_Logico-Philosophicus"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://standardebooks.org/ebooks/ludwig-wittgenstein/tractatus-logico-philosophicus/c-k-ogden"&gt;Standard Ebooks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2021-04-08&lt;/h2&gt;&lt;blockquote&gt;God&amp;#39;s power we allow is infinite: But neither man nor any other animal are happy: Therefore he does not will their happiness. His wisdom is infinite: He is never mistaken in choosing the means to any end: But the course of nature tends not to human or animal felicity: Therefore it is not established for that purpose. Through the whole compass of human knowledge, there are no inferences more certain and infallible than these. In what respect, then, do his benevolence and mercy resemble the benevolence and mercy of men?&lt;/blockquote&gt;&lt;p&gt;From Dialogues Concerning Natural Religion, by David Hume&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Problem_of_evil#Atheistic_viewpoint"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2020-11-20&lt;/h2&gt;&lt;blockquote&gt;The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which.&lt;/blockquote&gt;&lt;p&gt;From Animal Farm, by George Orwell&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Animal_Farm"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://gutenberg.net.au/plusfifty-n-z.html#orwell"&gt;Project Gutenberg Australia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2020-09-02&lt;/h2&gt;&lt;p&gt;This one is somewhat longer, and it&amp;#39;s not someone&amp;#39;s or some character&amp;#39;s quote,&lt;br&gt;&lt;/br&gt;but it&amp;#39;s a good paragraph from a good book.&lt;/p&gt;&lt;blockquote&gt;&amp;quot;A New Theory of Biology&amp;quot; was the title of the paper which Mustapha Mond had just finished reading. He sat for some time, meditatively frowning, then picked up his pen and wrote across the title-page. &amp;quot;The author&amp;#39;s mathematical treatment of the conception of purpose is novel and highly ingenious, but heretical and, so far as the present social order is concerned, dangerous and potentially subversive. _Not to be published_.&amp;quot; He underlined the words. &amp;quot;The author will be kept under supervision. His transference to the Marine Biological Station of St Helena may become necessary.&amp;quot; A pity, he thought, as he signed his name. It was a masterly piece of work. But once you began admitting explanations in terms of purpose -- well, you didn&amp;#39;t know what the result might be. It was the sort of idea that might easily recondition the more unsettled minds among the higher castes -- make them lose their faith in happiness as the Sovereign Good and take to believing, instead, that the goal was somewhere beyond, somewhere outside of the present human sphere; that the purpose of life was not the maintenance of well-being, but some intensification and refining of consciousness, some enlargement of knowledge. Which was, the Controller reflected, quite possibly true. But not, in the present circumstances, admissible. He picked up his pen again, and under the words _&amp;quot;Not to be published&amp;quot;_ drew a second line, thicker and blacker than the first; then sighed. &amp;quot;What fun it would be,&amp;quot; he thought, &amp;quot;if one didn&amp;#39;t have to think about happiness!&amp;quot;&lt;/blockquote&gt;&lt;p&gt;From Brave New World, by Aldous Huxley&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Brave_New_World"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2020-08-25&lt;/h2&gt;&lt;blockquote&gt;It&amp;#39;s the triumph of superior reason to live with folks who don&amp;#39;t have any.&lt;/blockquote&gt;&lt;p&gt;Socrates, from Socrates, by Voltaire&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gemi.dev/cgi-bin/wp.cgi/view?Socrates+(Voltaire)"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.gutenberg.org/ebooks/4683"&gt;Project Gutenberg&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2020-08-24&lt;/h2&gt;&lt;blockquote&gt;Lenina shook her head. &amp;quot;Was and will make me ill,&amp;quot; she quoted, &amp;quot;I take a gramme and only am.&amp;quot;&lt;/blockquote&gt;&lt;p&gt;Lenina, from Brave New World, by Aldous Huxley&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Brave_New_World"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;2020-06-13&lt;/h2&gt;&lt;blockquote&gt;He who knows best best knows how little he knows.&lt;/blockquote&gt;&lt;p&gt;Thomas Jefferson&lt;/p&gt;&lt;h2&gt;2020-06-12&lt;/h2&gt;&lt;blockquote&gt;Everyone you will ever meet knows something you don&amp;#39;t.&lt;/blockquote&gt;&lt;p&gt;Bill Nye&lt;/p&gt;&lt;h2&gt;2020-06-11&lt;/h2&gt;&lt;p&gt;My transcription, possibly wrong:&lt;/p&gt;&lt;blockquote&gt;おい、君は先、羊飼いの犬だと言ったな。犬でいいじゃないか。いい犬は羊を豊な牧草地へ導くことで、羊から多いに感謝されることもあるさ。&lt;/blockquote&gt;&lt;p&gt;影山、梶に、人間の條件 から&lt;/p&gt;&lt;p&gt;The subtitle&amp;#39;s translation:&lt;/p&gt;&lt;blockquote&gt;Listen. So you think you&amp;#39;d just be a shepherd&amp;#39;s dog. What&amp;#39;s wrong with that? A good dog can lead the sheep to greener pastures and earn their gratitude.&lt;/blockquote&gt;&lt;p&gt;Kageyama, to Kaji, from The Human Condition: No Greater Love&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://ja.wikipedia.org/wiki/%E4%BA%BA%E9%96%93%E3%81%AE%E6%A2%9D%E4%BB%B6_%28%E6%98%A0%E7%94%BB%29"&gt;Wikipedia (JP)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/The_Human_Condition_%28film_series%29"&gt;Wikipedia (EN)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.imdb.com/title/tt0053114"&gt;IMDb&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/words/quotes.gmi</id>
    <published>2023-05-10T00:00:00Z</published>
    <title type="text">just quotes</title>
    <updated>2020-05-26T00:00:00Z</updated>
    <link href="https://siiky.srht.site/words/quotes.html" rel="alternate" type="text/html" hreflang="en" title="just quotes" />
    <link href="gemini://siiky.srht.site/words/quotes.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="just quotes" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Abstraction is great&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/04/22&lt;br&gt;&lt;/br&gt;2023/04/22&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;... but read the code!&lt;/p&gt;&lt;p&gt;Yesterday a colleague found a deadlock situation in my code. After I explained in broad terms the whole flow, they asked &amp;quot;what if ...?&amp;quot;&lt;/p&gt;&lt;p&gt;Indeed there was a possible deadlock. But afterwards they started trying to prove to me that the deadlock wasn&amp;#39;t possible because &amp;quot;we can see beforehand if we need to lock here&amp;quot;, and I had to tell them that &amp;quot;no, that&amp;#39;s not how that goes, because before we can check if we need to lock, we have first to update some internal state for which we need the lock&amp;quot;. They even made some message sequence diagrams to explain the circumstances.&lt;/p&gt;&lt;p&gt;Basically, they were thinking of a previous version of the program. And I had to tell them that that&amp;#39;s not how the new program went, at least 3 times.&lt;/p&gt;&lt;p&gt;So, abstraction is great, but read the code!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/programming/abstraction-is-great.gmi</id>
    <published>2023-04-22T00:00:00Z</published>
    <title type="text">Abstraction is great</title>
    <updated>2023-04-22T00:00:00Z</updated>
    <link href="https://siiky.srht.site/programming/abstraction-is-great.html" rel="alternate" type="text/html" hreflang="en" title="Abstraction is great" />
    <link href="gemini://siiky.srht.site/programming/abstraction-is-great.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Abstraction is great" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Bitcoin Still 3x Better For Environment Than Cars&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/04/17&lt;br&gt;&lt;/br&gt;2023/04/17&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/mediocregopher.com/posts/bitcoin-co2.gmi"&gt;https://portal.mozz.us/gemini/mediocregopher.com/posts/bitcoin-co2.gmi&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Counter-arguments&lt;/h2&gt;&lt;blockquote&gt;If you own a car, you&amp;#39;re doing 3x the damage that I am by owning Bitcoin, so watch out where you throw those stones.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;This is the same shit as when we&amp;#39;re told we should be recycling and turning off lights in order to save the world. It&amp;#39;s just a distraction from the real culprits.&lt;/blockquote&gt;&lt;p&gt;Just no. Bitcoin is not 3x better for the environment than cars, it&amp;#39;s at most just 3x less bad for the environment than cars. Entirely different things. If X and Y are both bad, X being less bad than Y doesn&amp;#39;t somehow make it good, it&amp;#39;s just less bad.&lt;/p&gt;&lt;p&gt;You could argue, or try to, that X is more or less worth the badness in comparison to Y (considering their badness and what is gained by either). But concluding that X is more worth than Y does not imply that X is better than Y, nor does it even imply that X is less bad than Y (because badness is absolute while worth is relative).&lt;/p&gt;&lt;p&gt;And then, someone throwing stones at cryptocurrency mining (figuratively) is likely to also throw stones at cars &amp;amp;c (figuratively, but I wish also literally). That is allowed, one does not exclude the other.&lt;/p&gt;&lt;p&gt;Continuing from the second point, cars are actually pretty efficient at extracting/using the energy out of some given amount of dinosaur juice since we have some decades of research and engineering on that front. In contrast, PoW mining is just plain wasteful, like playing the lottery: 1M people spend 2€ so that maybe 1 person can earn 2M€[^0] -- completely unbalanced investment and return. And if nobody wins those sweet 2M€ this round, let&amp;#39;s go again and see how it goes!&lt;/p&gt;&lt;blockquote&gt;If you own a car, (...)&lt;/blockquote&gt;&lt;p&gt;Let&amp;#39;s nitpick this for a second.&lt;/p&gt;&lt;p&gt;My mom owns a car but uses it only 2 days a week (generally): to get to the volunteer firefighters headquarters and back home, and to commute to work and back home. That&amp;#39;s because buses either don&amp;#39;t operate or have shitty schedules on those days (it would take roughly the same amount of time to go by foot). The rest of the week she commutes by bus.&lt;/p&gt;&lt;p&gt;Now, does her owning a car do 3x the damage of your owning Bitcoin? What if she used it only once a month? Owning a car doesn&amp;#39;t pollute (roughly speaking, since we&amp;#39;re discussing fuel burning).&lt;/p&gt;&lt;blockquote&gt;(...) by owning Bitcoin, (...)&lt;/blockquote&gt;&lt;p&gt;And this.&lt;/p&gt;&lt;p&gt;What is meant by &amp;quot;owning Bitcoin&amp;quot;? If it doesn&amp;#39;t include mining, then it doesn&amp;#39;t pollute more than storing anything on a computer. We&amp;#39;re all using computers to read, write, and share these thoughts, so we generally think the resulting pollution is acceptable (we shouldn&amp;#39;t take that as a given).&lt;/p&gt;&lt;p&gt;If it does include the network maintenance, do you run your own node and mine with your own computers? Or are you &amp;quot;shifting responsibility&amp;quot; to this unknown group of miners?&lt;/p&gt;&lt;p&gt;If you don&amp;#39;t run your own node I&amp;#39;m not sure you truly believe in what Bitcoin was made for... If you do, then it could be that your &amp;quot;3x better&amp;quot; may be closer to &amp;quot;1x better^Wthe same&amp;quot;!&lt;/p&gt;&lt;h2&gt;Better arguments?&lt;/h2&gt;&lt;p&gt;Here&amp;#39;s a few things I can think of that could be better arguments for cryptocurrencies vs cars:&lt;/p&gt;&lt;p&gt;Compare the energy efficiency of the banking system with that of a cryptocurrency network. Good luck finding data on the banking system as that goes against the banking system&amp;#39;s interests.&lt;/p&gt;&lt;p&gt;Though Americans sometimes seem to believe so, the USA is not the world (a mere observation, no personal offense is meant towards any American)! There are more cars in world than in the USA alone (obviously), and there are more Bitcoin users in the world than in the USA alone (obviously, though users are probably more concentrated in the USA than outside). So compare the two. Because energy consumption and pollution of the Bitcoin network doesn&amp;#39;t grow with the number of users but with the number of miners, while energy consumption and pollution of cars grows with car users, the worth (gained/badness ratio) of the Bitcoin network over cars in the world greatly increases.&lt;/p&gt;&lt;p&gt;There are actual alternatives to cars and some awesome countries already show how it&amp;#39;s done (watch some NotJustBikes videos on YT if you don&amp;#39;t know what I&amp;#39;m talking about). You can&amp;#39;t say the same about banks/money-things. If you think there&amp;#39;s nothing wrong with banks and there&amp;#39;s no need of an alternative, then send me all of your money, I will keep it safe just for you, trust me[^1]. Banks go to shit, people lose their hard-earned money, and those responsible don&amp;#39;t give a shit because it wasn&amp;#39;t their money they lost. It&amp;#39;s happen once in PT during my (short-ish) lifetime (maybe twice, not certain), and it&amp;#39;s happening again now in some countries.&lt;/p&gt;&lt;p&gt;[^0] Not 100% 1:1 with real-life lottery because in real-life ~1M€ &amp;quot;vanish&amp;quot; nobody knows where to, but it serves the point well enough.&lt;/p&gt;&lt;p&gt;[^1] Similar to &amp;quot;Nothing to Hide&amp;quot;: &amp;quot;if you think you have nothing to hide, give me all your passwords, keys of your house, etc&amp;quot;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/re-bitcoin-co2.gmi</id>
    <published>2023-04-17T00:00:00Z</published>
    <title type="text">RE: Bitcoin Still 3x Better For Environment Than Cars</title>
    <updated>2023-04-17T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/re-bitcoin-co2.html" rel="alternate" type="text/html" hreflang="en" title="RE: Bitcoin Still 3x Better For Environment Than Cars" />
    <link href="gemini://siiky.srht.site/kB45oC/re-bitcoin-co2.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Bitcoin Still 3x Better For Environment Than Cars" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Societal slavery&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/03/19&lt;br&gt;&lt;/br&gt;2023/04/16&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Society seems to run as some kind of megaslavery system. Depending on the POV, it&amp;#39;s not quite as bad as actual slavery some mere centuries ago: the majority of us don&amp;#39;t work in back-breaking conditions, we&amp;#39;re not (as) starved, we&amp;#39;re not whipped, we have some sort of &amp;quot;dignity&amp;quot; (whatever this word means), and health is also mostly improved (apart from the usual suspects: cancer, sleep deprivation, obesity, diabetes, ... that I guess are kinda recent &amp;quot;inventions&amp;quot; but not sure).&lt;/p&gt;&lt;p&gt;The most obvious common aspect is the lack of freedom. Both now and then, &amp;quot;you go to work for me right now or else...!&amp;quot; The whip, as mentioned, is &amp;quot;not real&amp;quot;, not literal. We&amp;#39;re more civilized now, after all. The whole scheme is slightly different. It works more like a carrot &amp;amp; stick. The things you (think you) want are the carrot. And the stick is this magic thing that is extended as much as you don&amp;#39;t have the means to obtain the carrot.&lt;/p&gt;&lt;p&gt;There are things that we geniunely need, obio: air, water, food, shelter, ... Air we mostly get for free (in varying quality). Depending on where you live, you can get drinkable (or not) water for free or not. Shelter and food is a different story. It is possible to grow your own food and be more independent thus. But that would go against the scheme this society[^0] is built on. For this society it&amp;#39;s more beneficial if people are dumb and can&amp;#39;t become independent. Because of it, no effort is spent instructing society members on this sort of skill.&lt;/p&gt;&lt;p&gt;Money, the &amp;quot;silly paper&amp;quot; (as my boss put it), is the language of this civilized society. Everyone understands money, all of the different dialects. So in this society, money is the carrot-obtainium and the carrot can be anything that you can exchange for money. Even the essential needs (such as food and shelter). In fact, you&amp;#39;re mostly expected to get food and shelter in exchange for money.&lt;/p&gt;&lt;p&gt;We shorten the stick through work, you already know that. The thing is, the general population will never ever have a short enough stick that we can stop worrying about food, shelter, and the other necessities. Everyone is kept at that &amp;quot;just enough&amp;quot; level, so that we don&amp;#39;t have to worry about it at all times, but not enough so that we can go for any extended periods of time without worrying. And this is how &amp;quot;work or else&amp;quot; is enforced. Nobody (generally, I expect) is explicitly told that, true. But saying that you&amp;#39;re not forced to work is a sort of sick joke and in bad taste.&lt;/p&gt;&lt;p&gt;One resulting problem is that we&amp;#39;ve lived in this state for so long that work has become one of the &amp;quot;necessities&amp;quot; -- &amp;quot;of course you have to work!&amp;quot; If you say &amp;quot;oh I wish I didn&amp;#39;t have work&amp;quot; (in fact, you don&amp;#39;t), it&amp;#39;s likely you&amp;#39;ll hear someone next to say &amp;quot;I know, but is one to do?&amp;quot; That&amp;#39;s if you&amp;#39;re lucky, otherwise you&amp;#39;ll hear &amp;quot;get over it, everone has to work, how are you gonna get food, a house, ...?&amp;quot; Don&amp;#39;t listen. It&amp;#39;s not that they&amp;#39;re irremediable idiots or anything like that. It&amp;#39;s more like they don&amp;#39;t believe any other way of life is possible, and they&amp;#39;ll only kill your mood and any resemblance of hope with their replies. And it&amp;#39;s not even that they mean you ill: given what they believe in, it&amp;#39;s the only reply they can reasonably give!&lt;/p&gt;&lt;p&gt;And the other problem is that almost everyone is in a figurative hamster wheel -- the majority not even aware of it. We get a carrot in exchange for a more extended stick. We want a new carrot now, so we work to shorten the stick. Loop. Some are in a worse situation than others: they work so that they can work more, they can never shorten the stick enough to rest a little. And worse of all are those in that situation and aware of it. I can&amp;#39;t help but think that this meaningless loop is part of the reason some commit suicide.&lt;/p&gt;&lt;p&gt;It follows almost directly: if freedom was a measurable property of the physical Universe, money would be its SI unit[^1]. And from that it most naturally follows that good monetary practices are an indispensable skill for the free(-to-be) citizen of this society. It isn&amp;#39;t an easily acquired skill, and there are inumerous traps layed out across the land waiting for you to fall into, just like a pack of hunters each patiently waiting for prey. But you can practice and with some effort improve your situation.&lt;/p&gt;&lt;p&gt;At the heart of it I believe is frugality. I truly believe this is the single most important objective of all, not only for monetary freedom. And after that, recognizing traps and practicing their avoidance as much as feasible. Being anti-social is a must (I&amp;#39;ll try to explain).&lt;/p&gt;&lt;p&gt;First, some of the traps. At some point in time, it became generally socially acceptable to con every citizen (as many and as much as possible), as long as it&amp;#39;s within the &amp;quot;Law&amp;quot;[^2]. For example, everyone knows &amp;quot;teleshopping&amp;quot; is a bad idea. Even though it&amp;#39;s legal, &amp;quot;the first 10 to call get this  amazing discombobulator for free with their Samurai Plus[^3]&amp;quot; is a trap and you know it. Everyone knows it. Why? We&amp;#39;ve learned it with time: if it sounds too good to be true, it probably is! And we&amp;#39;ve learned to avoid this one too (I hope you have). Personally, I can&amp;#39;t help but laugh at and mock those ridiculous ads.&lt;/p&gt;&lt;p&gt;Probably the largest kind of trap operation we&amp;#39;ve set ourselves into is &amp;quot;special occasions&amp;quot;: You played your first concert, let&amp;#39;s celebrate! You &amp;quot;earned&amp;quot; your first job, let&amp;#39;s celebrate! You got your first paycheck, let&amp;#39;s celebrate! It&amp;#39;s my/your/our Nth X anniversary, ...! We&amp;#39;re having a baby, ...! We&amp;#39;re getting married, ...! We got married, ...! You passed the exam, ...! You graduated, ...! It&amp;#39;s Easter, ...! It&amp;#39;s Christmas, ...! It&amp;#39;s New Year&amp;#39;s, ...! It&amp;#39;s father&amp;#39;s day, ...! It&amp;#39;s mother&amp;#39;s day, ...! It&amp;#39;s women&amp;#39;s day, ...! It&amp;#39;s Valentine&amp;#39;s day, ...!&lt;/p&gt;&lt;p&gt;Give me a break! Some day we&amp;#39;ll be celebrating waking up, breathing, and taking a shit...&lt;/p&gt;&lt;p&gt;I have absolutely nothing against celebrating any of these occasions. I&amp;#39;ve celebrated many more minor events than these. It&amp;#39;s how we&amp;#39;re supposed to celebrate, according to norm and convention of this society (which necessarily involves extending the stick as much as possible), that&amp;#39;s the problem. My advice is to be as anti-social[^4] as you feasibly can. You DO NOT need to spend money to show an appreciation to your dad/mom/significant other, or your family during Christmas -- scientists say. Believe me, it&amp;#39;s true -- I have the authority of a scientist, and next year of an engineer too!&lt;/p&gt;&lt;p&gt;Another large set of traps is the necessities. Everyone needs a car, good and very varied clothes and shoes, a shitton of creams/lotions and other shit to pollute your body with, the best iShit phone of today (can&amp;#39;t be yesterday&amp;#39;s, nonono), a house (so motherfucking big you could lodge a whole small village some couple hundred years ago), and of course I wouldn&amp;#39;t forget, to travel and to be cultured. I say you don&amp;#39;t need any of these. None.&lt;/p&gt;&lt;p&gt;If you can avoid these traps you&amp;#39;re well on your way to be free. Really free. With some effort, striving to be more independent and self-reliant, you&amp;#39;ll be able one day to stop turning and to step off the wheel and catch your breath; not just to hear but to listen to the birds chirping and the still water moving; not just to look up at the sky but to see it, and to see the flowers blooming, the wagtails wagging their tails, the swallows gliding, the blackbirds hopping, and the eagles spying; to smell the pine trees, the eucalyptuses, ...; not just to hold and touch with your hands but to feel your dog&amp;#39;s and/or cat&amp;#39;s fluffy hair, the bark of the trees, and the soft humid moss.&lt;/p&gt;&lt;p&gt;And then you&amp;#39;ll know you&amp;#39;re free.&lt;/p&gt;&lt;p&gt;[^0] I explicitly say &amp;quot;this society&amp;quot; (several times) to get this very important point across: this society is NOT the only way that humans can live, or have lived, in community.&lt;/p&gt;&lt;p&gt;[^1] Implicit is the fact that SI units are an invention of this society.&lt;/p&gt;&lt;p&gt;[^2] It&amp;#39;s almost like &amp;quot;Law&amp;quot; was the (in)formal codification of the norms and conventions of this society.&lt;/p&gt;&lt;p&gt;[^3] I couldn&amp;#39;t find a video of the scene I was thinking of in Spanish, only in English but ew, gross! If you haven&amp;#39;t yet, I recommend watching the 2019 film &amp;quot;El hoyo&amp;quot;, it&amp;#39;s great.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.imdb.com/title/tt8228288"&gt;https://www.imdb.com/title/tt8228288&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/The_Platform_(film)"&gt;https://en.wikipedia.org/wiki/The_Platform_(film)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;[^4] Being &amp;quot;anti-social&amp;quot; does not mean to not socialize with others; it means to go against norm and convention of this society, or at the very least, to not go along it.&lt;/p&gt;&lt;h2&gt;Inspirations of this post&lt;/h2&gt;&lt;p&gt;These are the books I feel have a stronger/more obvious connection (alphabetically):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;quot;Brave New World&amp;quot; -- meaningless loop of life and how twisted this society is (see quotes);&lt;/li&gt;&lt;li&gt;&amp;quot;Budgeting 101&amp;quot; -- frugality and getting (financially) off the wheel;&lt;/li&gt;&lt;li&gt;&amp;quot;Gorgias&amp;quot; -- there is a difference between right and wrong, between good and bad, between being and appearing to be, between a physician and a cook (the best possible example of the &amp;quot;need&amp;quot; vs &amp;quot;want&amp;quot; distinction), and that each person has the (natural rather than legal) right and duty to choose between the two;&lt;/li&gt;&lt;li&gt;&amp;quot;Les Misérables&amp;quot; -- duty and how it&amp;#39;s like (see quote next);&lt;/li&gt;&lt;li&gt;&amp;quot;Sex at Dawn&amp;quot; -- opening my eyes to different kinds of liberties that were taken from us, how, and why, and for exposing me to different kinds of societies;&lt;/li&gt;&lt;li&gt;&amp;quot;Tao Te Ching&amp;quot; -- what really matters, what&amp;#39;s natural, and how to behave naturally, i.e., according to nature;&lt;/li&gt;&lt;li&gt;&amp;quot;Walden&amp;quot; -- expresses in words what I think, feel, and like about &amp;quot;the outdoors&amp;quot; (the fact that this expression exists is a sign to me that this society is fucked).&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;../wiki/books.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This quote from &amp;quot;Les Misérables&amp;quot;:&lt;/p&gt;&lt;blockquote&gt;If one desires to be happy, sir, one must never understand duty; for, as soon as one has comprehended it, it is implacable.&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../words/quotes.html"&gt;../words/quotes.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This video I watched in December with a &amp;quot;quote&amp;quot; from &amp;quot;Zhuangzi&amp;quot;:&lt;/p&gt;&lt;blockquote&gt;The ideal life is this: you live in a small village, you live around family and friends, and you have everything you need, you have everything you want. And then sometimes, if you go on a stroll, you can walk out at the edge of the village, and if you listen really hard you can hear the chickens from the village next to you, but never in your life do you actually feel like you ever need to go to that village, and you might forever be in the village you came up in.&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://invidious.snopyta.org/watch?v=VcHW0mpi9y8&amp;amp;t=28m30s"&gt;Luke Smith, &amp;quot;The Return to Normalcy&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Zhuangzi_(book)"&gt;&amp;quot;Zhuangzi&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Some chats with a friend about &amp;quot;Early Retirement Extreme&amp;quot; (they&amp;#39;ve read the book, I haven&amp;#39;t yet).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Jacob_Lund_Fisker"&gt;https://en.wikipedia.org/wiki/Jacob_Lund_Fisker&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://earlyretirementextreme.com"&gt;https://earlyretirementextreme.com&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And of course, my own life experience. I&amp;#39;m getting sick of having to work... even though I started only ~4 years ago!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../philosophy/flexibility-life.html"&gt;Flexibility &amp;amp; Life&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../psychology/fagots.html"&gt;Fagots&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../books/bill_gates.how_to_avoid_a_climate_disaster.html"&gt;Bill Gates, &amp;quot;How to Avoid a Climate Disaster&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/notrelated.html"&gt;&amp;quot;Not Related!&amp;quot; S02E06&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/v.raphael_treza.borneo_death_blow.html"&gt;&amp;quot;Borneo Death Blow&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../words/quotes.html"&gt;§ 2023-05-10, &amp;quot;Who Am I?&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Post scriptum&lt;/h2&gt;&lt;p&gt;With this above text alone I really can&amp;#39;t express my true disgust for a lot of this society. There&amp;#39;s so much more to it that I can&amp;#39;t begin to explain even to myself, let alone to someone else in spoken or written words...&lt;/p&gt;&lt;p&gt;And when I try (e.g. this post) I invariably think it turned out cheesy... hurgh!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/societal-slavery.gmi</id>
    <published>2023-04-16T00:00:00Z</published>
    <title type="text">Societal slavery</title>
    <updated>2023-03-19T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/societal-slavery.html" rel="alternate" type="text/html" hreflang="en" title="Societal slavery" />
    <link href="gemini://siiky.srht.site/philosophy/societal-slavery.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Societal slavery" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;WTF ASM&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/04/08&lt;br&gt;&lt;/br&gt;2023/04/08&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I was working yesterday on sbn and accidentally fixed digit subtraction (and consequently sbn subtraction).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/pl.c.html"&gt;../wiki/pl.c.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/c-utils/commit/070d452f67f63868137233dcecfd820f991e36d0"&gt;https://git.sr.ht/~siiky/c-utils/commit/070d452f67f63868137233dcecfd820f991e36d0&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Definitions needed to understand these excerpts: `sbn_digit` is `uint32_t`; `sbn_double_digit` is `uint64_t`; `sbn_double_digit_lower_half` is a macro that takes the 32 least-significant bits of a `sbn_double_digit`.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the old (wrong) version:&lt;/p&gt;&lt;pre&gt;static sbn_digit _sbn_sub_digits (sbn_digit _a, sbn_digit _b, sbn_digit * _carry)
{
	sbn_double_digit carry = *_carry;
	sbn_double_digit a = _a;
	sbn_double_digit b = _b; b += carry;

	return (a &amp;gt;= b) ?
		(*_carry = 0), sbn_double_digit_lower_half(a - b):
		(*_carry = 1), sbn_double_digit_lower_half(b - a);
}
&lt;/pre&gt;&lt;p&gt;Here&amp;#39;s the new (fixed) version:&lt;/p&gt;&lt;pre&gt;static sbn_digit _sbn_sub_digits (sbn_digit _a, sbn_digit _b, sbn_digit * _carry)
{
	sbn_double_digit carry = *_carry;
	sbn_double_digit a = _a;
	sbn_double_digit b = _b; b += carry;

	sbn_double_digit r = (a &amp;gt;= b) ?
		((*_carry = 0), (a - b)):
		((*_carry = 1), (b - a));

	return sbn_double_digit_lower_half(r);
}
&lt;/pre&gt;&lt;p&gt;What&amp;#39;s the difference? Why does one work correctly but the other doesn&amp;#39;t? I have no clue... Obviously I expected both to be the same.&lt;/p&gt;&lt;p&gt;It didn&amp;#39;t occur to me but a friend suggested taking a look at the assembly -- good idea! For some reason `gcc -S` generated a huge file like this:&lt;/p&gt;&lt;pre&gt;// ...
.LASF151:
	.string	&amp;quot;_sbn_sub_digits&amp;quot;
// ...
	.long	.LASF151
	.byte	0x5
	.value	0x186
	.byte	0x12
	.long	0x9e
	.long	0x1216
	.uleb128 0x1
	.string	&amp;quot;_a&amp;quot;
	.byte	0x5
	.value	0x186
	.byte	0x2d
	.long	0x9e
	.uleb128 0x1
	.string	&amp;quot;_b&amp;quot;
	.byte	0x5
	.value	0x186
	.byte	0x3b
	.long	0x9e
	.uleb128 0x2
// ...
&lt;/pre&gt;&lt;p&gt;No clue what this is either... So I turned to `objdump`, which was more helpful.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the old (wrong) version:&lt;/p&gt;&lt;pre&gt;0000000000401834 &amp;lt;_sbn_sub_digits&amp;gt;:
  401834:	8b 02                	mov    (%rdx),%eax
  401836:	89 ff                	mov    %edi,%edi
  401838:	89 f6                	mov    %esi,%esi
  40183a:	48 01 f0             	add    %rsi,%rax
  40183d:	48 39 c7             	cmp    %rax,%rdi
  401840:	72 09                	jb     40184b &amp;lt;_sbn_sub_digits+0x17&amp;gt;
  401842:	c7 02 00 00 00 00    	movl   $0x0,(%rdx)
  401848:	29 f8                	sub    %edi,%eax
  40184a:	c3                   	ret
  40184b:	c7 02 01 00 00 00    	movl   $0x1,(%rdx)
  401851:	eb f5                	jmp    401848 &amp;lt;_sbn_sub_digits+0x14&amp;gt;
&lt;/pre&gt;&lt;p&gt;Here&amp;#39;s the new (fixed) version:&lt;/p&gt;&lt;pre&gt;0000000000401834 &amp;lt;_sbn_sub_digits&amp;gt;:
  401834:	8b 0a                	mov    (%rdx),%ecx
  401836:	89 ff                	mov    %edi,%edi
  401838:	89 f6                	mov    %esi,%esi
  40183a:	48 01 f1             	add    %rsi,%rcx
  40183d:	48 39 cf             	cmp    %rcx,%rdi
  401840:	72 0d                	jb     40184f &amp;lt;_sbn_sub_digits+0x1b&amp;gt;
  401842:	c7 02 00 00 00 00    	movl   $0x0,(%rdx)
  401848:	48 89 f8             	mov    %rdi,%rax
  40184b:	48 29 c8             	sub    %rcx,%rax
  40184e:	c3                   	ret
  40184f:	c7 02 01 00 00 00    	movl   $0x1,(%rdx)
  401855:	48 89 c8             	mov    %rcx,%rax
  401858:	48 29 f8             	sub    %rdi,%rax
  40185b:	c3                   	ret
&lt;/pre&gt;&lt;p&gt;My ASM-fu was never very good but by now it&amp;#39;s non-existent. One thing I noticed though is that on the wrong version it&amp;#39;s using edi/eax (the 32bit registers right?), while the fixed version is using the rdi/rcx/rax (the 64bit registers right?). Is that it? But why? I can&amp;#39;t even remember what&amp;#39;s the arguments order: `sub X,Y` is `X-Y` or `Y-X`? `mov X,Y` is `X&amp;lt;-Y` or `X-&amp;gt;Y`?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/programming/wtf-asm.gmi</id>
    <published>2023-04-08T00:00:00Z</published>
    <title type="text">WTF ASM</title>
    <updated>2023-04-08T00:00:00Z</updated>
    <link href="https://siiky.srht.site/programming/wtf-asm.html" rel="alternate" type="text/html" hreflang="en" title="WTF ASM" />
    <link href="gemini://siiky.srht.site/programming/wtf-asm.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="WTF ASM" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Transitive reduction&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/03/04&lt;br&gt;&lt;/br&gt;2023/03/04&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;There&amp;#39;s this operation on graphs/relations called &amp;quot;transitive reduction&amp;quot; (I didn&amp;#39;t learn its name until very recently). It can be used on a graph/relation to compute another (possibly smaller) graph/relation that has no redundant edges (assuming transitivity). And I&amp;#39;ve been thinking about how to do it for about two years (dam), because I needed it for some POSet things (Scheme § poset). Some weeks ago I was walking home, not thinking about anything in particular, and an algorithm just popped into my brain out of nowhere!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Transitive_reduction"&gt;https://en.wikipedia.org/wiki/Transitive_reduction&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/transitive_reduction.html"&gt;../wiki/transitive_reduction.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/experiments/tree/main/item/transitive-reduction.scm"&gt;https://git.sr.ht/~siiky/experiments/tree/main/item/transitive-reduction.scm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/pl.scheme.html"&gt;Scheme (§ poset)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The idea is so simple that I&amp;#39;m flabbergasted I didn&amp;#39;t come up with it two years ago, when I was kinda obsessed. (Though I haven&amp;#39;t proven it works, intuitively I think it does).&lt;/p&gt;&lt;p&gt;Let&amp;#39;s say `a → b` means that node &amp;#39;b&amp;#39; is directly reachable from node &amp;#39;a&amp;#39; (&amp;quot;directly&amp;quot; means there are no intermediate nodes); and let&amp;#39;s say `a →* b` means that node &amp;#39;b&amp;#39; is reachable from node &amp;#39;a&amp;#39;, possibly through intermediate nodes (e.g. if `a → b → c`, we could say `a →* c`).&lt;/p&gt;&lt;p&gt;We&amp;#39;ll call our graph G=(V, E), where V is the set of all nodes, and E is the relation `a →* b` (a, b ∈ V). We&amp;#39;re looking to compute an E&amp;#39; from E that is the relation `a → b`.&lt;/p&gt;&lt;p&gt;And here it is at last: ∀a, c ∈ V: (a →* c ∧ ∃b ∈ V: b≠c ∧ `a → b` ∧ `b →* c`) ⇒ remove `a →* c` from E.&lt;/p&gt;&lt;p&gt;There&amp;#39;s one caveat with this algorithm: it only works for acyclic graphs (aka DAGs, graphs with no cycles). That&amp;#39;s not a problem for me (I wanted it for POSets after all; see § &amp;quot;Alternative definitions&amp;quot;) so I didn&amp;#39;t bother to think about the matter further, but beware.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Directed_acyclic_graph"&gt;https://en.wikipedia.org/wiki/Directed_acyclic_graph&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The implementation is also simple enough (see the ~siiky/experiments for previous versions):&lt;/p&gt;&lt;pre&gt;(import (srfi 42))

(define (reachable? E s d)
  (memq d (alist-ref s E)))

(define (transitive-reduction E)
  (list-ec (:list s*sE E)
           (:let s (car s*sE))
           (:let sE (cdr s*sE))
           (cons s
                 (list-ec (:list d sE)
                          (if (not (any?-ec (:list c sE)
                                            (and (not (eq? c d))
                                                 (reachable? E c d)))))
                          d))))
&lt;/pre&gt;&lt;p&gt;Very important note: this implementation assumes that E is the transitive closure! It may not compute the correct result otherwise. I just made this choice to KISS: this way I don&amp;#39;t have to recursively check reachability. When I apply it to the posets experiment I&amp;#39;ll be sure to change that.&lt;/p&gt;&lt;p&gt;I like how it turned out. SRFI 42 made it pretty.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://srfi.schemers.org/srfi-42/srfi-42.html"&gt;SRFI 42&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;A recursive `reachable?` could be something like this:&lt;/p&gt;&lt;pre&gt;(define (reachable? E s d)
  (let ((sE (alist-ref s E)))
    (or (memq d sE)
        (any?-ec (:list c sE)
                 (reachable? E c d)))))
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/programming/transitive-reduction.gmi</id>
    <published>2023-03-04T00:00:00Z</published>
    <title type="text">Transitive reduction</title>
    <updated>2023-03-04T00:00:00Z</updated>
    <link href="https://siiky.srht.site/programming/transitive-reduction.html" rel="alternate" type="text/html" hreflang="en" title="Transitive reduction" />
    <link href="gemini://siiky.srht.site/programming/transitive-reduction.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Transitive reduction" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Why we throw rice at weddings&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/02/26&lt;br&gt;&lt;/br&gt;2023/02/26&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;So here I was transcribing the excerpts I highlighted from &amp;quot;The Second Thoughts of an Idle Fellow&amp;quot; when this bit showed up:&lt;/p&gt;&lt;blockquote&gt;Our young men and women marry, and we kiss them and congratulate them; and, standing on the doorstep, throw rice and old slippers, (...)&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/book.jerome_klapka_jerome.seconds_thoughts_idle_fellow.html"&gt;../wiki/book.jerome_klapka_jerome.seconds_thoughts_idle_fellow.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I highlighted this excerpt, for sure, because I don&amp;#39;t know why, and because I was surprised they did it too in 1898. Here&amp;#39;s the answer (maybe):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.brides.com/why-do-people-throw-rice-at-weddings-5073735"&gt;Michelle M. Winner, &amp;quot;Why Do People Throw Rice at Weddings?&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;The rice toss is a symbolic wish to the just-married couple for a life of prosperity and fruitfulness, which to the ancients meant many children. As a blessing, guests shower the couple with rice as they exit the ceremony.&lt;/blockquote&gt;&lt;p&gt;So it&amp;#39;s not new, here&amp;#39;s more:&lt;/p&gt;&lt;blockquote&gt;The history and the tradition of showering newlyweds at a wedding with rice, seed, and grains predate Christianity. The Celts, mighty warriors, were also an agronomist culture who tossed rice, millet, and other grains to appease spirits and ask for blessing and fertility for the couple. Ancient Romans used wheat. Italians toss candies or sugared nuts. The Polish use rice but also place coins at the couple&amp;#39;s feet to ensure prosperity. In Morocco, it&amp;#39;s dried dates or figs and Eastern India&amp;#39;s tradition is a rain of flower petals.&lt;/blockquote&gt;&lt;p&gt;The rest of the page is a bit of bull so you can ignore it... But I checked another couple of pages and both said kind of the same thing (hopefully the authors didn&amp;#39;t just copy from each other to pass their pages as fact-checked).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/why-throw-rice-at-weddings.gmi</id>
    <published>2023-02-26T00:00:00Z</published>
    <title type="text">Why we throw rice at weddings</title>
    <updated>2023-02-26T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/why-throw-rice-at-weddings.html" rel="alternate" type="text/html" hreflang="en" title="Why we throw rice at weddings" />
    <link href="gemini://siiky.srht.site/kB45oC/why-throw-rice-at-weddings.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Why we throw rice at weddings" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Am I fucked in the head?&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/02/10&lt;br&gt;&lt;/br&gt;2023/02/10&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I saw this by chance in the Midnigh Pub.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/midnight.pub/posts/1263"&gt;A Death in the Family&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It reminded me of something I&amp;#39;ve thought about but kinda tried not to too much.&lt;/p&gt;&lt;p&gt;My paternal granddad died a few years back -- I&amp;#39;m the worst with dates, I&amp;#39;m gonna guess 4~5 years? But the thing is, it didn&amp;#39;t affect me much. It might not even be an understatement to say that it didn&amp;#39;t affect me at all. I remember one of my cousins asking me how I was doing and thinking to myself that I was just fine.&lt;/p&gt;&lt;p&gt;That bugged me.  That, concerned me more than the fact that my granddad had died. Then and now still.  And it goes meta: it concerns me more that, it concerns me more that it didn&amp;#39;t affect me than the fact he&amp;#39;s died, than the fact he&amp;#39;s died.&lt;/p&gt;&lt;p&gt;My paternal grandma died last year too. I know it was last year only because this was the first year I remember not celebrating her birthday (I did say I&amp;#39;m the worst with dates). Getting the news that she&amp;#39;d died was weird, totally unexpected to me. She was like this vigorous force, fierceness itself, nothing stopped her from doing whatever she wanted. Yes, she was over 90 and had some health issues, but she was also one of those old folks who don&amp;#39;t stand down in the face of anything -- &amp;quot;&amp;#39;tis but a scratch&amp;quot;. And again it barely affected me. More than my granddad, but only slightly.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://invidious.snopyta.org/watch?v=ZmInkxbvlCs"&gt;&amp;#39;Tis but a scratch&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Why is that? Am I an emotionless fuck? I&amp;#39;d say no, knowing what I know. Could it be I just wasn&amp;#39;t emotionally attached to either of them? That could be it... At least with my granddad; I have very few memories of him. In fact, I&amp;#39;ve almost exclusively memories of visiting him at the home (&amp;quot;lar&amp;quot; in PT, which means &amp;quot;lair&amp;quot; and only makes me think of Mayhem&amp;#39;s &amp;quot;Wolf&amp;#39;s Lair Abyss&amp;quot;). With my grandma, I wasn&amp;#39;t the most attached ever, not as much as most of my cousins (I&amp;#39;m one of the youngest), but I spent time with her. I remember doing things with her. So... what then?&lt;/p&gt;&lt;p&gt;There&amp;#39;s this other thing. Many springs ago I had a dog. He was a Pyrenean Mountain dog and he was the best, just the fucking best (&amp;quot;do caralho&amp;quot; in PT, or &amp;quot;de puta madre&amp;quot; in ES; you may have heard it in La Casa de Papel)! And there came a time around highschool when the vet diagnosed him with Alzheimer, which meant he sometimes didn&amp;#39;t remember us. That was dangerous because, being such a burly dog and naturally wary of strangers, he could very easily attack one of us puny humans seriously in an &amp;quot;episode&amp;quot;. He did threaten my dad once -- or probably more but I don&amp;#39;t remember well, maybe I didn&amp;#39;t or don&amp;#39;t want to believe it. So he &amp;quot;had&amp;quot; to be put down.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Pyrenean_Mountain_Dog"&gt;https://en.wikipedia.org/wiki/Pyrenean_Mountain_Dog&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I semi-frequently think about him and that time, and I feel like the worst, I feel really guilty about it. Among other things, because if only I&amp;#39;d pushed back harder, maybe he could&amp;#39;ve stayed with us for longer. Maybe it would&amp;#39;ve turned out well, maybe not. We just don&amp;#39;t know, we didn&amp;#39;t know, we couldn&amp;#39;t know, and we&amp;#39;ll never know.&lt;/p&gt;&lt;p&gt;But that&amp;#39;s kinda besides the point. What I think is the point, is that it was so much harder to deal with losing my dog than my paternal grandparents -- combined! So much so that I still haven&amp;#39;t resolved the former... (real oof, had to take some breaks writing the two previous paragraphs)&lt;/p&gt;&lt;p&gt;Now, is that bad? Is it bad that losing my grandparents didn&amp;#39;t affect me? Should one be unconditionally affected by the loss of one&amp;#39;s close family member? And is it bad that losing one of my dogs was worse an experience to me? Am I just more human scum? Am I fucked in the head?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/psychology/head-fucked.gmi</id>
    <published>2023-02-10T00:00:00Z</published>
    <title type="text">Am I fucked in the head?</title>
    <updated>2023-02-10T00:00:00Z</updated>
    <link href="https://siiky.srht.site/psychology/head-fucked.html" rel="alternate" type="text/html" hreflang="en" title="Am I fucked in the head?" />
    <link href="gemini://siiky.srht.site/psychology/head-fucked.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Am I fucked in the head?" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Fecking Bahamas&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/31&lt;br&gt;&lt;/br&gt;2023/01/31&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Just today Fecking Bahamas released their 8th compilation! Like the previous ones, it&amp;#39;s pay-what-you-want with no lower limit.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.com"&gt;Fecking Bahamas&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/album/viii-u-s-west-coast-pacific-northwest"&gt;VIII. U.S. West Coast // Pacific Northwest&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It&amp;#39;s been a really long time since I last was this excited about an album! I&amp;#39;m about halfway and it&amp;#39;s pretty good. But there&amp;#39;s this little something in Ireland and Australasia, even in France, missing here...&lt;/p&gt;&lt;p&gt;At first I was planning only a quick mention in the tinylog, but that doesn&amp;#39;t make justice to how much I appreciate these compilations. So let&amp;#39;s make a short summary of my favorite compilations and songs.&lt;/p&gt;&lt;h2&gt;IV. France&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/album/iv-france"&gt;IV. France&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It&amp;#39;s almost unfair to say this, but there&amp;#39;s not one song from VIII that beats the opening for France, Chevalier Bulltoe by Totorro. That PHAT BASS! HM HM HM! Pneu makes an appearance in track 6, nice. Didn&amp;#39;t know any of the other bands.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/totorro-chevalier-bulltoe"&gt;1. Totorro - Chevalier Bulltoe&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/deer-belling-caf-abstract-dynamics"&gt;10. Deer Belling Café - Abstract Dynamics&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/pneu-municipal-geographic"&gt;6. Pneu - Municipal Geographic&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/papier-tigre-im-someone-who-dies"&gt;21. Papier Tigre - I&amp;#39;m Someone Who Dies&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;III. Australasia&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/album/iii-australasia"&gt;III. Australasia&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;III is an obvious good contender, closing with Plini -- anything with Plini is a good contender out of the bat. But that opening by Sparkspitter? Perfect. Didn&amp;#39;t know any of the bands other than Plini.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/sparkspitter-sunrise-above-clouds-im-all-yours"&gt;1. Sparkspitter - Sunrise Above Clouds (I&amp;#39;m All Yours)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/skinny-jean-scales"&gt;19. Skinny Jean - Scales&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/plini-atlas"&gt;22. Plini - Atlas&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/seims-covet"&gt;2. SEIMS - COVET&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;VII. Portugal&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/album/vii-portugal"&gt;VII. Portugal&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;What was most impressive to me about the Portugal (VII) was that I didn&amp;#39;t know most of the bands! It has the mandatory Memória de Peixe and PAUS, of course! Although there&amp;#39;s no way to make the wrong choice when it comes to these two bands -- easily two of my favorite Portuguese bands -- that wasn&amp;#39;t the best choice for PAUS in my opinion. Quelle Dead Gazelle also makes an unexpected, though pleasant, appearance. And those are the three bands that I knew.&lt;/p&gt;&lt;p&gt;Otherwise, not that great a contender, sadly; there were no REALLY memorable tracks... To make it clear, VII is not one of my favorites, I enjoyed Japan (I) and Russia (II) more, and even those are probably behind Argentina (VI)! (short way of saying that VII is probably my least favorite)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/supercollider"&gt;1. Memória de Peixe - Supercollider&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/mi-ah-ha"&gt;2. Don Pie Pie - Mi-Ah-Ha&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/pelo-pulso"&gt;6. PAUS - Pelo Pulso&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/abismo"&gt;7. Quelle Dead Gazelle - Abismo&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;V. Ireland&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/album/v-ireland"&gt;V. Ireland&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And so we reach my favorite: Ireland! I knew none of the bands before. The opening is not as punchy as Australasia or even Portugal, but still a plusgood track. And what I think differs from this compilation to the others is that it&amp;#39;s so consistent. This compilation isn&amp;#39;t my favorite because of two or three fucking awesome tracks; it&amp;#39;s my favorite because all the tracks are fucking great! You don&amp;#39;t feel like in a rollercoaster -- now we&amp;#39;re at the top, next we&amp;#39;re at the bottom. Instead, the tracks fluctuate in a children-safe rollercoaster up there around the clouds!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/adebisi-shank-world-in-harmony"&gt;18. Adebisi Shank - World In Harmony&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/enemies-indian-summer"&gt;20. Enemies - Indian Summer&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/ganglions-chindogu"&gt;15. Ganglions - Chindogu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/alarmist-morning-kepler"&gt;5. Alarmist - Morning Kepler&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/leo-drezden-green-fire-magic"&gt;4. Leo Drezden - Green Fire Magic&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://feckingbahamas.bandcamp.com/track/philharmongrel-100th-monkey"&gt;17. Philharmongrel - 100th Monkey&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It was hard not to list the whole thing here...&lt;/p&gt;&lt;h2&gt;Next compilation?&lt;/h2&gt;&lt;p&gt;It would be awesome if the next compilation was from somewhere more &amp;quot;exoctic&amp;quot;! I&amp;#39;d love to see Turkey or Greece, or just about any country from Africa, Asia or the middle east.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/music/fecking_bahamas.gmi</id>
    <published>2023-01-31T00:00:00Z</published>
    <title type="text">Fecking Bahamas</title>
    <updated>2023-01-31T00:00:00Z</updated>
    <link href="https://siiky.srht.site/music/fecking_bahamas.html" rel="alternate" type="text/html" hreflang="en" title="Fecking Bahamas" />
    <link href="gemini://siiky.srht.site/music/fecking_bahamas.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Fecking Bahamas" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;No problem there&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/20&lt;br&gt;&lt;/br&gt;2023/01/20&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://nitter.net/ErikVoorhees/status/1616160532150775808"&gt;Someone just sent me this:&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Behind the scenes, ShapeShift DAO has been building something called Arkeo.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;It&amp;#39;s a decentralized backend for nodes.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;If you&amp;#39;ve ever thought, &amp;quot;sucks that everyone uses centralized node infrastructure like Infura...&amp;quot; then you&amp;#39;ll understand what Arkeo is solving.&lt;/blockquote&gt;&lt;blockquote&gt;ShapeShift decided to build this because it ran into this very problem: how can we be a *truly* decentralized app when we&amp;#39;re calling blockchain data from centralized node companies?&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;If your node provider can shut off your access, it ain&amp;#39;t permissionless. Arkeo is.&lt;/blockquote&gt;&lt;blockquote&gt;Arkeo works by incentivizing independent node operators to run arbitrary nodes on whatever chains they wish. Someone could run a Bitcoin node only, or a suite of nodes across multiple chains.&lt;/blockquote&gt;&lt;blockquote&gt;Services that consume node data pay for that data (@infura_io is great... but they can censor you: they&amp;#39;re centralized).&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;With Arkeo, all such services now have a permissionless alternative.&lt;/blockquote&gt;&lt;blockquote&gt;The entire project has been DAO organized and funded.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;No VCs own it&lt;br&gt;&lt;/br&gt;No corporate entities control it&lt;br&gt;&lt;/br&gt;It ain&amp;#39;t &amp;quot;based&amp;quot; anywhere&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;The revolution will not be centralized. Enjoy!&lt;/blockquote&gt;&lt;img src="https://upload.wikimedia.org/wikipedia/commons/a/a5/Mus%C3%A9e_Rodin_1.jpg" alt="The Thinker"&gt;&lt;/img&gt;&lt;p&gt;Gee, wouldn&amp;#39;t it be fuckin&amp;#39; A if we didn&amp;#39;t need to trust any one single entity to interact with a distributed network?!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/no-problem.gmi</id>
    <published>2023-01-20T00:00:00Z</published>
    <title type="text">No problem there</title>
    <updated>2023-01-20T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/no-problem.html" rel="alternate" type="text/html" hreflang="en" title="No problem there" />
    <link href="gemini://siiky.srht.site/kB45oC/no-problem.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="No problem there" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="pt" xml:lang="pt"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Faz bem rezar (RE: Es bueno rezar)&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/15&lt;br&gt;&lt;/br&gt;2023/01/15&lt;br&gt;&lt;/br&gt;pt&lt;/p&gt;&lt;p&gt;(Para os não falantes de Português: os tradutores (tanto o G quanto o DeepL) traduzem surpreendentemente bem este texto, mesmo não sendo em Português bem escrito.)&lt;/p&gt;&lt;p&gt;Este é o meu primeiro post em Português (de Portugal!) desde que comecei a escrever aqui há cerca d&amp;#39;um quarto de dúzia d&amp;#39;anos. Em geral escrevo em Inglês porque m&amp;#39;é mais natural (dado&amp;#39;s tópicos que m&amp;#39;interessam e o que costumo ler). Até já escrevi em Japonês antes de escrever na minha língua materna! Porquê este post em Português? Primeiro, p&amp;#39;ra mostrar que não há só Inglês e outras línguas germânicas aqui no Gemini. Segundo, acho que faz sentido e vai ficar bem ao lado do Espanhol (Castelhano?). E terceiro, p&amp;#39;r&amp;#39;experimentar esta escrita falada!&lt;/p&gt;&lt;p&gt;(Já&amp;#39;gora, não sei Espanhol e não usei nenhum tradutor, é bem possível que tenha entendido mal algum(ns) detalhe(s) lol)&lt;/p&gt;&lt;p&gt;---&lt;/p&gt;&lt;p&gt;Ao começar a ler este post, quem me conhece dev&amp;#39;achar que só vou dizer merda da religião, &amp;amp;c. Tenho ideias/opiniões/pontos de vista que se podem dizer um tanto extremistas no que toca à religião. Mas este não é esse post, surpreendam-se!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/yretek.com/articulos/2023-01-15_bueno_rezar.gmi"&gt;Yretek, &amp;quot;Es bueno rezar&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../reclog.html"&gt;Reclog&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;O Yretek escreveu:&lt;/p&gt;&lt;blockquote&gt;Da aprensión volver por al camino que todos han abandonado. Exagero, pero la convención social parece reducir la religión a la ceremonia y cuentos del pasado. Hablo desde España; quizás en otros lugares tendréis otra experiencia.&lt;/blockquote&gt;&lt;p&gt;Iss&amp;#39;é exactamente o que noto em Portugal também. Falando por mim, que não sou religioso nem apoio a instituição religiosa do país, acho q&amp;#39;é uma boa tendência mas ao mesmo tempo uma faca de dois gumes: por um lado, é bom que tenhamos deixado as superstições e crenças injustificadas associadas à religião; por outro, a população geral na verdade só trocou de conjunto de superstições e crenças injustificadas.[^0] :/&lt;/p&gt;&lt;p&gt;O que parece que vejo é q&amp;#39;as pessoas em geral usam a religião p&amp;#39;ra parecer que são religiosas e portanto boas pessoas[^1] -- fazem tatuagens de cruzes, de terços, do rosto de Jesus co&amp;#39;a coroa de espinhos, de Jesus na cruz, ... -- mas n&amp;#39;hora d&amp;#39;agir e mostrar que são boas pessoas, nem vê-los![^2] Se tiverem de berrar e insultar alguém só porque lhes passaram à frente na fila berram e insultam; ou s&amp;#39;um mendigo lhes pedir dinheiro p&amp;#39;ra comer ignoram-no[^3] (sorte a dele) ou até o insultam (&amp;quot;vai trabalhar que te faz bem&amp;quot;); &amp;amp;c, &amp;amp;c... E deixemos a pedofilia p&amp;#39;r&amp;#39;outro dia também...&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://pt.wikipedia.org/wiki/Ros%C3%A1rio_(catolicismo)"&gt;Terço&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://pt.wikipedia.org/wiki/Abuso_sexual_de_menores_por_membros_da_Igreja_Cat%C3%B3lica#Portugal"&gt;Abuso sexual de menores por membros da Igreja Católica&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;A primeira parte (tentar mostrar que são religiosos) acredito que tenh&amp;#39;a ver co&amp;#39;a cultura popular e desportista de cá: p&amp;#39;ra melhor ou pior, futebol é de facto O DESPORTO do país. E o que se vê mais num jogo de futebol são os jogadores a dar graças a Deus ou quê... Sim, deveras, se marcast&amp;#39;um golo foi porque Deus te deu&amp;#39;ma mão... Ah não, não se podem usar as mãos no futebol! Um pé, deu-t&amp;#39;um pé!&lt;/p&gt;&lt;p&gt;A segunda parte (não mostrarem co&amp;#39;acções que são boas pessoas) talvez porque ninguém quer saber de nada? Tud&amp;#39;é normal e trivializado. Mas não posso falar muito sobre isto...&lt;/p&gt;&lt;p&gt;Resumindo, deitámos fora&amp;#39;s partes estúpidas mas também as partes menos más.&lt;/p&gt;&lt;p&gt;O Yretek escreveu:&lt;/p&gt;&lt;blockquote&gt;Las preces son el momento donde predomina la oración de petición, son parecidas a las de la Misa, y acaban con el «Escucha Señor, nuestra oración» --o algo de ese estilo. En los demás momentos predomina la meditación y la alabanza. Se quiere estar con Dios y escucharle. Solo eso.&lt;/blockquote&gt;&lt;p&gt;S&amp;#39;é p&amp;#39;ra fazer que se faça bem![^4] Especialmente a meditação e tentar &amp;quot;estar com Deus&amp;quot;. Não basta ir à missa ouvir o padre, há que ter empenho e levar os rituais a sério. Pensar sobr&amp;#39;a vida, sobr&amp;#39;o que fizemos e fazemos no dia-a-dia, como nos podemos melhorar, ...&lt;/p&gt;&lt;p&gt;O Yretek escreveu:&lt;/p&gt;&lt;blockquote&gt;Se tarda un tiempo, pero mucho menos del que se malgasta en otras cosas peores.&lt;/blockquote&gt;&lt;p&gt;Acredito e bem. Mesmo não sendo religioso e não acreditando num&amp;#39;entidade superior, acredito q&amp;#39;esta prática empenhada traga bem-estar a longo prazo. E isso acreditando ou não em Deus, tendo ou não fé. E o tempo q&amp;#39;uma pessoa desperdiça no telemóvel ou a ver &amp;quot;notícias&amp;quot; que não interessam nem ao menino Jesus[^5]... Não há desculpa.&lt;/p&gt;&lt;p&gt;O Tolstoy (em &amp;quot;A Confession&amp;quot;) tentou recorrer à religião (Ortodoxa Cristã, se não m&amp;#39;engano) mas não foi a &amp;quot;solução&amp;quot; p&amp;#39;r&amp;#39;ele. Talvez não se tenha empenhado a sério, ou então só não tinha a fé necessária, dado q&amp;#39;era um realista. De facto, no fim o que lhe &amp;quot;faltou&amp;quot; foi conseguir justificar a existência de Deus. (Pessoalmente, a justificação do Descartes não me convence...)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://pt.wikipedia.org/wiki/Liev_Tolst%C3%B3i"&gt;Leo Tolstoy&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://pt.wikipedia.org/wiki/Igreja_Ortodoxa_Russa"&gt;Igreja Ortodoxa Russa&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://pt.wikipedia.org/wiki/Medita%C3%A7%C3%B5es_sobre_Filosofia_Primeira"&gt;Descartes, &amp;quot;Meditações sobre Filosofia Primeira&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Lista de livros&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;[^0]: Em vez d&amp;#39;acreditar em Deus e no Diabo, no Céu e no Inferno, que São Pedro é que controla a chuva e os portões do Céu, &amp;amp;c, acreditam noutras merdas estúpidas que vêem online. O juízo que deviam ter cultivado mal deitaram fora&amp;#39;s crenças estúpidas da religião foi logo deitado fora junto co&amp;#39;as crenças.&lt;/p&gt;&lt;p&gt;[^1]: Vamos aproveitar este (não tão breve) momento p&amp;#39;r&amp;#39;uma boa gargalhada hahaha... Ok agora que já recuperámos o fôlego podemos continuar.&lt;/p&gt;&lt;p&gt;[^2]: Para não falantes de Português, &amp;quot;nem vê-los&amp;quot; é uma expressão que significa que &amp;quot;não existem&amp;quot;, semelhante a &amp;quot;nowhere to be found&amp;quot;.&lt;/p&gt;&lt;p&gt;[^3]: Claro, &amp;quot;quem nunca pecou que atire a primeira pedra&amp;quot;, mas não é p&amp;#39;ra me justificar aqui q&amp;#39;isto por si só dava um post.&lt;/p&gt;&lt;p&gt;[^4]: Esta enganou bem o tradutor! A ideia é de &amp;quot;If you&amp;#39;re gonna do something, do it well&amp;quot;.&lt;/p&gt;&lt;p&gt;[^5]: Tenho q&amp;#39;aproveitar p&amp;#39;ra mandar todas as piadas religiosas de que me lembro enquanto posso, não é todos os dias q&amp;#39;escrevo sobre religião, e muito menos em Português!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/words/re-bueno_rezar.gmi</id>
    <published>2023-01-15T00:00:00Z</published>
    <title type="text">Faz bem rezar (RE: Es bueno rezar)</title>
    <updated>2023-01-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/words/re-bueno_rezar.html" rel="alternate" type="text/html" hreflang="pt" title="Faz bem rezar (RE: Es bueno rezar)" />
    <link href="gemini://siiky.srht.site/words/re-bueno_rezar.gmi" rel="alternate" type="text/gemtext" hreflang="pt" title="Faz bem rezar (RE: Es bueno rezar)" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="ja" xml:lang="ja"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;村上 春樹、「夜中の汽笛について、あるいは物語の効用について」&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/06&lt;br&gt;&lt;/br&gt;2023/01/15&lt;br&gt;&lt;/br&gt;ja&lt;/p&gt;&lt;p&gt;何月か前に「New Penguin Parallel Text: Short Stories in Japanese」という本を買った。昨日やっと最初の話を読んだ。&lt;/p&gt;&lt;p&gt;意味はわかったと思う。英語の翻訳の一つ二つの細かい点にすれ違うが、大体いい。日本語の書写は全部で次に書いてある。その次は英語。&lt;/p&gt;&lt;h2&gt;日本語&lt;/h2&gt;&lt;blockquote&gt;女の子が男の子に質問する。「あなたはどれくらい私のことを好き?」&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;少年はしばらく考えてから、静かな声で、「夜中の汽笛くらい」と答える。&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;少女は黙って話の続きを待つ。そこにはきっと何かお話があるに違いない。&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;「あるとき、夜中にふと目が覚める」と彼は話し始める。「正確な時刻はわからない。だぶん二時か三時か、そんなものだと思う。でも何時かというのはそれほど重要なことじゃない。とにかくそれは真夜中で、僕はまったくのひとりぼっちで、まわりには誰もいない。いいかい、想像してみてほしい。あたりは真っ暗で、なにも見えないな。そして僕は突然、自分が知っている誰からも、自分が知っているどこの場所からも、信じられないくらい遠く隔てられ、引き離されているんだと感じる。自分がこの広い世界の中で誰からも愛されず、誰からも声をかけられず、誰にも思い出してももらえない存在になってしまっていることがわかる。たとえ僕がそのまま消えてしまったとしても誰も気付かないだろう。それはまるで厚い鉄の箱に詰められて、深い海の底に沈められたような気持ちなんだよ。気圧のせいで心臓が痛くて、そのままふたつにびりびりと張り裂けてしまいそうなーーそういう気持ちってわかるかな?」&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;少女はうなずく。たぶんわかると思う。&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;少年は続ける。「それはおそらく人間が生きている中で経験するいちばん辛いことのひとつなんだ。ほんとうにそのまま死んでしまいたいくらい悲しくて辛い気持ちだ。いや、そうじゃない、『死んでしまいたい』というようなことじゃなくて、そのまま放っておけば、箱の中の空気薄くなって『実際に』死んでしまうはずだ。それは『たとえ』なんかじゃない。ほんとうのことなんだよ。それが真夜中にひとりぼっちで、目が覚ますことの意味なんだ。それもわかる?」&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;少女はまた黙ってうなずく。少年は少し間を置く。&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;「でもそのときすっと遠くで汽笛の音が聞こえる。それはほんとうにほんとうに遠い汽笛なんだ。いったいどこに鉄道の線路なんかがあるのか、僕にもわからない。それくらい遠くなんだ。聞こえたか聞こえないかというくらいの音だ。でもそれが汽車の汽笛であることは僕にはわかる。間違いない。僕は暗闇の中でじっと耳を澄ます。そしてもう一度、その汽笛を耳にする。それから僕の心臓は痛むことことをやめる。時計の針は動き始める。鉄の箱は海面へ向けてゆっくり浮かび上がっていく。それはみんなその小さな汽笛のせいなんだね。聞こえるか聞こえないか、それくらい微かな汽笛のせいなんだ。そして僕はその汽笛と同じくらい君のことを愛している」&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;そこで少年の短い物語は終わる。今度は少女が自分の物語を語り始める。&lt;/blockquote&gt;&lt;h2&gt;英語&lt;/h2&gt;&lt;p&gt;翻訳者はMichael Emmerichで、タイトルは「Concerning the Sound of a Train Whistle in the Night, or On the Efficacy of Fiction」。&lt;/p&gt;&lt;blockquote&gt;The girl has a question for the boy: &amp;quot;How much do you love me?&amp;quot;&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;He thinks for a moment, then quietly replies, &amp;quot;As much as a train whistle in the night.&amp;quot;&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;She waits in silence for him to go on. Obviously there has to be a story there.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;&amp;quot;Sometimes, just like that, in the dead of night, I wake up,&amp;quot; he begins. &amp;quot;I don&amp;#39;t know what time it is, exactly. Maybe two or three, around then, I&amp;#39;d say. The time doesn&amp;#39;t actually matter. The point is that it&amp;#39;s the dead of night, and I&amp;#39;m totally alone, not a sould around. I want you to imagine that for me, okay? It&amp;#39;s completely dark, you can&amp;#39;t see anything. And there&amp;#39;s not a sound to be heard. You don&amp;#39;t even hear the hands of the clock, ticking out the time -- for all I know, the clock could well have stopped. And then all of a sudden, it hits me that I&amp;#39;ve become isolated, that I&amp;#39;m separated some unbelievable distance from everyone I know, from every familiar place. I realize that no one in this whole wide world loves me anymore, no one will talk to me, that I&amp;#39;ve become the kind of person no one even wants to remember. I could just disappear and no one would even notice. I feel like I&amp;#39;ve been pushed into a box with thick iron sides and sunk way down to the very bottom of the ocean. The pressure is so intense it makes my heart ache, I feel like I&amp;#39;m going to explode, to be torn in two -- you know that feeling?&amp;quot;&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;The girl nodes. She thinks she knows what he means.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;The boy continues. &amp;quot;I think that&amp;#39;s one of the most painful expereiences a person can have in life. I feel so sad and it hurts so much that I wish I could just go ahead and die, seriously. Actually I take that back, it&amp;#39;s not that /I wish I could die/: I can tell that if things go on in this way, the air in the box is going to get so thin that I really /will/ die. It&amp;#39;s not just a /metaphor/. It&amp;#39;s reality. That&amp;#39;s what it means to wake up all alone in the dead of night. You still following me?&amp;quot;&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;The girl nods again, saying nothing. The boy lets a moment go by.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;&amp;quot;And then, way off in the distance, I hear a train whistle. It&amp;#39;s really incredibly far off, this whistle. I don&amp;#39;t even know where the train tracks could be. That&amp;#39;s how far away the sound is. And it&amp;#39;s so faint that it&amp;#39;s right on the edge of being inaudible. Only I&amp;#39;m certain it&amp;#39;s a train whistle. There&amp;#39;s no doubt about that. So I lie perfectly still, in the darkness, listening as hard as I can. And then I heart it again. And my heart stops aching. The hands on the clock start moving. The iron box begins to rise up, nice and slow, toward the surface of the sea. And it&amp;#39;s all thanks to that little whistle, you see. A whistle so faint I could barely hear it. And the point is, I love you as deeply as that whistle.&amp;quot;&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;With that, the boy&amp;#39;s brief story is over. And the girl begins telling her own.&lt;/blockquote&gt;&lt;p&gt;もう言ったけどまた言う。大体いい翻訳だと思う。&lt;/p&gt;&lt;p&gt;だが!「少女」と「少年」の「好き」って、本当に「love」と言う言葉なのか?少年は「愛している」と最後に言うが、それなのに「好き」はそんなきつい気持ちではないと思う。だから「love」より「like」にすればよかったんだろう。&lt;/p&gt;&lt;p&gt;それより、ちょっとダサい気分するな。。。原作はこんな気楽な恋物語じゃないだろう?&lt;/p&gt;&lt;p&gt;なのに、鉄の箱の部分は最初はよくわからなかった。でも英語で読んだら「あ、そっか」と。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://ja.wikipedia.org/wiki/村上春樹"&gt;村上 春樹&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.penguin.co.uk/books/183166/short-stories-in-japanese-by-micahel-emmerich/9780143118336"&gt;Penguinのウェブサイト&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.tofugu.com/reviews/short-stories-in-japanese"&gt;Tofuguのブックレビュー&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;読んだ本&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/nihongo/murakami_hiroki.yonaka_no_kiteki.gmi</id>
    <published>2023-01-15T00:00:00Z</published>
    <title type="text">村上 春樹、「夜中の汽笛について、あるいは物語の効用について」</title>
    <updated>2023-01-06T00:00:00Z</updated>
    <link href="https://siiky.srht.site/nihongo/murakami_hiroki.yonaka_no_kiteki.html" rel="alternate" type="text/html" hreflang="ja" title="村上 春樹、「夜中の汽笛について、あるいは物語の効用について」" />
    <link href="gemini://siiky.srht.site/nihongo/murakami_hiroki.yonaka_no_kiteki.gmi" rel="alternate" type="text/gemtext" hreflang="ja" title="村上 春樹、「夜中の汽笛について、あるいは物語の効用について」" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;So you do like beer after all&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/09&lt;br&gt;&lt;/br&gt;2023/01/09&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I had a dream that continued the timeline of another dream I had some days ago, like consecutive episodes of a series. This is the first time it happened to me I think.&lt;/p&gt;&lt;p&gt;I was in an open space, at night, palm trees around and many lights, some kind of event, many people were around, almost like a festival or something of the sort. The place was somewhere in Asia (not because there were specific features I can point out to, but because it was a dream, I just know alright?). A guy crossed paths with me and asked if I didn&amp;#39;t like beer, or why I wasn&amp;#39;t drinking beer, or something like that. I replied that I don&amp;#39;t much appreciate beer. He gave me a dark, almost black, beer bottle, the label was black, and it was in Thai or similar (so I assume I was in Thailand). I gave it a sip and indeed not that bad, nothing like the crap I tasted in real life...&lt;/p&gt;&lt;p&gt;That was the other day. Today I was again at that same place, again at night, decoration was much the same -- palm trees and lights, very tropical-like -- and a multitude of people too. And I happened to cross that guy again. But this time I had one of those beer bottles in hand and he just rhetorically asked &amp;quot;so you do like beer after all?&amp;quot;&lt;/p&gt;&lt;p&gt;And then the dream quickly de-railed into weird shit: pepper shakers have wholes not only at the top but also on the sides of the metal head so that mosquitoes can get inside, while salt shakers don&amp;#39;t so mosquitoes don&amp;#39;t get inside those. Why that would be relevant or interesting I couldn&amp;#39;t possibly know.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Salt_and_pepper_shakers"&gt;Salt and pepper shakers&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Curious question: while reading the above, what ethnicity did you mentally assign to The Guy?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/psychology/so_you_like_beer.gmi</id>
    <published>2023-01-09T00:00:00Z</published>
    <title type="text">So you do like beer after all</title>
    <updated>2023-01-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/psychology/so_you_like_beer.html" rel="alternate" type="text/html" hreflang="en" title="So you do like beer after all" />
    <link href="gemini://siiky.srht.site/psychology/so_you_like_beer.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="So you do like beer after all" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;On Gemini mentions&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/09&lt;br&gt;&lt;/br&gt;2023/01/09&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I don&amp;#39;t know all the context because I&amp;#39;ven&amp;#39;t been following Geminispace life but I noticed this thing about &amp;quot;mentions&amp;quot; today. Some of the relevant posts roughly in chronological order:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gmi.bacardi55.io/gemlog/2022/02/27/my-take-on-gemlog-replies"&gt;My take on gemlog responses&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/pn.id.lv/20220227.gmi"&gt;Why Though? (seems to be offline)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/skyjake.fi/gemlog/2022-02_re-gemlog-responses.gmi"&gt;Re: Gemlog responses&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/szczezuja.flounder.online/gemlog/2022-02-27-Have-ones-cake-and-eat-it-likes-comments-backlinks.gmi"&gt;Have one&amp;#39;s cake and eat it - likes, comments, backlinks and so on&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gmi.bacardi55.io/gemlog/2022/02/28/why-did-i-work-on-gemini-mention"&gt;Why did I work on gemini mention&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/idiomdrottning.org/gem-mentions"&gt;In which I slag on the Gemini mentions proposal for half an hour&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gemini.conman.org/boston/2023/01/06.1"&gt;&amp;quot;The street finds its own uses for things.&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I didn&amp;#39;t take too much time reading everything in detail, but &amp;quot;Why though?&amp;quot; is also my thought.&lt;/p&gt;&lt;p&gt;I certainly won&amp;#39;t be using it. For one, my capsule is hosted on SourceHut, so I couldn&amp;#39;t use it even if I wanted. But most of all, I don&amp;#39;t see the point. I know that if I had something like that, something others could use to let me know they&amp;#39;d linked to a post of mine, I would get FOMO and that&amp;#39;s not cool. I understand this is very individual, maybe you get peace of mind by having this system giving you the latest mentions and whatnot, that&amp;#39;s alright. For me, &amp;quot;what if someone replied but didn&amp;#39;t let me know?&amp;quot; would be at the back of my mind too frequently, I can smell it. And that&amp;#39;s another reason to ask &amp;quot;why though?&amp;quot; If your RFC, that you wrote for yourself, requires others to adopt it to be useful to you, then it&amp;#39;s not much use, I don&amp;#39;t think.&lt;/p&gt;&lt;p&gt;If anyone replied to, or wrote about, any of my posts in these (not so) recent times that I&amp;#39;ve been away from Gemini, I missed those. If such a mentions/notifications systems existed it&amp;#39;s likely that I would have seen them. I would get the notification and feel the urge to read and reply. But there&amp;#39;s a reason I&amp;#39;ve been away from Gemini -- time&amp;#39;s been scarce around here and, unfortunately for me, it&amp;#39;s not because I&amp;#39;m so very cool and have a life :&amp;#39;( With those notifications in place, I would either not resist the urge to read and reply, or, worse, resist the urge but feel bad about it. &amp;quot;Preso por ter cão, preso por não ter&amp;quot;[^1]...&lt;/p&gt;&lt;p&gt;(Sorry to anyone who wrote about/replied to any of my posts expecting a reply back; I have at least one email to reply to about my Overpass page; you know who you are, sorry...)&lt;/p&gt;&lt;p&gt;bacardi55 wrote:&lt;/p&gt;&lt;blockquote&gt;Because I feel like it is painful to go and search for someone email on a capsule, or find a pseudo in an IRC channel. Many capsules don&amp;#39;t show any contact info at all. Maybe some don&amp;#39;t want to be contacted, maybe some other prefer not to put these type of data online and would prefer a more &amp;quot;discreet&amp;quot; type of solution.&lt;/blockquote&gt;&lt;p&gt;If you want to be reachable, cool! I do too btw, that&amp;#39;s why I set up a contacts page and a public ML. Though as you say, maybe some don&amp;#39;t want to be reached through those other means. Maybe they use Gemini so they don&amp;#39;t have to use those other means?&lt;/p&gt;&lt;p&gt;&amp;quot;Setting up&amp;quot; a contact means, even something as simple as a contacts page, is a conscious effort. Let&amp;#39;s assume for a second that everyone in Geminispace wants to be contacted directly through some medium outside Gemini about their Gemini content. If they didn&amp;#39;t take the effort of setting up something as simple as that contacts page, what makes you think they&amp;#39;ll start adhering to your RFC, which is much more involved?&lt;/p&gt;&lt;p&gt;A possible counter-argument is that they don&amp;#39;t want to be contacted outside Gemini but would still like to be contacted through Gemini (or at least learn of what others are writing about their own writings). That&amp;#39;s fair. But how hard is it to scrape a handful of pages? That&amp;#39;s a non-question, it&amp;#39;s not that hard. With a wget/curl-like Gemini client, pretty easy[^2]; and you don&amp;#39;t even need to do that yourself, see e.g. the gemrefinder CHICKEN egg by snan (different kind of approach). But hey, it&amp;#39;s even simpler than that: Cosmos, an aggregator-like capsule that organizes pages in threads.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/eggref/5/gemrefinder"&gt;https://wiki.call-cc.org/eggref/5/gemrefinder&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/skyjake.fi/~Cosmos/"&gt;https://portal.mozz.us/gemini/skyjake.fi/~Cosmos/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Szczeżuja wrote:&lt;/p&gt;&lt;blockquote&gt;Some other aspect of this thoughts is also centralization. I like Antenna and Cosmos projects, and I&amp;#39;m using them on everyday basis. But I realised that they slowly go beyond being a content aggregate. The scattering of content, which was the initial state, also had some effect on all of Geminispace. The content were like that &amp;quot;capsules in the space&amp;quot;, not distorted by any strong center. If you are interested in some topic, you will finally found it. Now content start to orbiting around that projects, which start to have some impact on it with a promise that this place gives the most appropriate / relevant / full content.&lt;/blockquote&gt;&lt;p&gt;A good argument against relying too much (or exclusively, one could say) on aggregators, but this RFC doesn&amp;#39;t seem to me to be the best approach around them -- indeed, it doesn&amp;#39;t seem to be &amp;quot;around them&amp;quot; at all -- let alone the simplest. Something simpler has floated around in the past I believe: we use word-of-mouth, we each of us keep our own lists of feeds and interesting capsules, we share our lists with each other publicly, we encourage browsing the Geminispace and chance encounters. With these lists I doubt it would be hard to keep a personal aggregator with better &amp;quot;coverage&amp;quot; than the centralized aggregators we have. Having said that, of course I won&amp;#39;t stop using Antenna, Cosmos, Callum&amp;#39;s gmisub, etc, I sometimes find new capsules through these aggretors. But I don&amp;#39;t rely on them, I keep my own list of feeds (that I don&amp;#39;t currently share publicly, shame on me).&lt;/p&gt;&lt;p&gt;Another thing I think would be cool is if more people kept a reclog (&amp;quot;recommendations log&amp;quot;). That way, not only can we &amp;quot;follow&amp;quot; what others are reading, we can find interesting capsules we didn&amp;#39;t know about before and read interesting posts. And it&amp;#39;s really simple to keep, too.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../reclog.html"&gt;This is mine&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Conman wrote:&lt;/p&gt;&lt;blockquote&gt;If others find it useful, so be it.&lt;/blockquote&gt;&lt;p&gt;In the end, this is basically it for me.&lt;/p&gt;&lt;p&gt;Reading back what I wrote it may give the impression I&amp;#39;m bashing on bacardi55 or others supporting their RFC, but that is not the intention at all! I&amp;#39;m trying to argue that we don&amp;#39;t need such a system, that&amp;#39;s all.&lt;/p&gt;&lt;p&gt;[^1]: lit. &amp;quot;arrested for having [a] dog, arrested for not having [a dog]&amp;quot;, meaning roughly that no matter what I do the result is unwanted. One of these days I should start a dictionary page of PT idioms and expressions... There&amp;#39;s a good idea for others of other countries! :) I know there are French, Swedes, Germans, Spanish, Swiss, Americans, Finnish, Russians, Serbs(?), etc around here! (sorry I can&amp;#39;t tell Cyrillic languages apart)&lt;/p&gt;&lt;p&gt;[^2]:&lt;/p&gt;&lt;pre&gt;gemget gemini://aggregator.com/ \
    | egrep &amp;#39;^=&amp;gt;\s*[^\s]*\s.*{body}amp;amp;#39; \
    | sed &amp;#39;s|^=&amp;gt;\s*||; s|\s.*$||;&amp;#39; \
    | sort -u \
    | while read url; do
        gemget &amp;quot;${url}&amp;quot; \
            | egrep &amp;#39;^=&amp;gt;\s*[^\s]*\s.*{body}amp;amp;#39; \
            | grep &amp;#39;you-own-urls-here&amp;#39; &amp;amp;&amp;amp; echo &amp;quot;${url}&amp;quot;
      done
&lt;/pre&gt;&lt;p&gt;But you probably already know that, your mentions bash script is already more complicated than I can understand.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/meta/gemini-mentions.gmi</id>
    <published>2023-01-09T00:00:00Z</published>
    <title type="text">On Gemini mentions</title>
    <updated>2023-01-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/meta/gemini-mentions.html" rel="alternate" type="text/html" hreflang="en" title="On Gemini mentions" />
    <link href="gemini://siiky.srht.site/meta/gemini-mentions.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="On Gemini mentions" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;All is fucked&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2023/01/09&lt;br&gt;&lt;/br&gt;2023/01/09&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;All is fucked.&lt;/p&gt;&lt;p&gt;I should be studying for this shit exam of this shit class I have tomorrow. &amp;quot;Requirements and Software Architecture&amp;quot; is the class, if you must know. Can you think of anything that&amp;#39;s more boring than this? I&amp;#39;m going through past exams to prepare (because we rarely did any such exercises during classes; grading is mostly based on a PA) and I&amp;#39;m wondering if it makes any difference. The (theory) lectures were so damn boring and uninteresting I couldn&amp;#39;t bear to be there, I couldn&amp;#39;t concentrate on what the professor said, I couldn&amp;#39;t not think to myself &amp;quot;what a bunch of bull!&amp;quot; So instead I stopped attending, naturally.&lt;/p&gt;&lt;p&gt;The exam I&amp;#39;m going through is mostly T/F. Example questions:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The Observer pattern statically specifies the observer objects.&lt;/li&gt;&lt;li&gt;An architectural pattern improves the coherency of the modules of a system.&lt;/li&gt;&lt;li&gt;In a risk oriented approach, risk is defined as the probability of failure divided by the impact of that failure.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Just lol... I tried reading the slides the prof used in the lectures before this but jesus, could they have been less interesting? If I did the exam, studied, and re-did the exam, I wonder if my grade would at all improve.&lt;/p&gt;&lt;p&gt;So here I am being more productive instead.&lt;/p&gt;&lt;p&gt;University is sucking ass because, even though I&amp;#39;m now on my master&amp;#39;s, I&amp;#39;m stuck with shit courses I couldn&amp;#39;t care less about -- another one is &amp;quot;Applications and Computation Services in the Cloud&amp;quot;... what the fuck is this? Getting Employed at Scale? Corporate Programming 101? StackOverflow for Dummies? I can&amp;#39;t wait for the second semester to finally have the classes I&amp;#39;m interested in again, those that I picked, why I applied to the damn degree...&lt;/p&gt;&lt;p&gt;And I started thinking about the tuition money. Not a trivial amount. Still, almost only half of what I used to pay while on my bachelor&amp;#39;s, that&amp;#39;s good! But then... wait a second. I pay monthly (we pay, it&amp;#39;s a shared expense) 82.496% of the YEARLY University tuition in rent! I&amp;#39;m fucked! We&amp;#39;re fucked! All&amp;#39;s fucked!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/all_is_fucked.gmi</id>
    <published>2023-01-09T00:00:00Z</published>
    <title type="text">All is fucked</title>
    <updated>2023-01-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/all_is_fucked.html" rel="alternate" type="text/html" hreflang="en" title="All is fucked" />
    <link href="gemini://siiky.srht.site/kB45oC/all_is_fucked.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="All is fucked" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Overpass&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/03/26&lt;br&gt;&lt;/br&gt;2022/12/28&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Overpass is an interface used to query OSM data. Overpass Turbo is an Overpass web client you can use to query OSM data, export it, &amp;amp;c.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://overpass-turbo.eu"&gt;Overpass Turbo&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Overpass_turbo"&gt;Overpass Turbo (OSM Wiki)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL"&gt;Overpass Query Language&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Overpass_API"&gt;Overpass API&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Useful Queries&lt;/h2&gt;&lt;p&gt;This is a list of useful queries I&amp;#39;ve learned over time.&lt;/p&gt;&lt;h3&gt;Features last modified by an user&lt;/h3&gt;&lt;p&gt;Nodes, ways, or relations last modified by &amp;quot;user name&amp;quot;:&lt;/p&gt;&lt;pre&gt;nwr(user:&amp;quot;user name&amp;quot;)({{bbox}});
out body;
&lt;/pre&gt;&lt;h3&gt;Features modified between two dates&lt;/h3&gt;&lt;p&gt;Node, way, or relation amenities modified between 2022-02-04T00:00:00Z and &amp;quot;to-date&amp;quot;:&lt;/p&gt;&lt;pre&gt;// to-date is optional and defaults to now
[diff:&amp;quot;2022-02-04T00:00:00Z&amp;quot;,&amp;quot;to-date&amp;quot;];
nwr[&amp;quot;amenity&amp;quot;]({{bbox}});
out body;
&lt;/pre&gt;&lt;h3&gt;Features around other features&lt;/h3&gt;&lt;p&gt;Picnic sites within a 1km radius of restaurants with takeaway:&lt;/p&gt;&lt;pre&gt;node[amenity=restaurant][takeaway=yes]({{bbox}});
node(around:1000)[tourism=picnic_site];
out body;
&lt;/pre&gt;&lt;h3&gt;Features inside some area object&lt;/h3&gt;&lt;p&gt;Libraries in Portugal:&lt;/p&gt;&lt;pre&gt;nwr[&amp;quot;amenity&amp;quot;=&amp;quot;library&amp;quot;](area:3600295480);
out body;

// Or:

area(3600295480)-&amp;gt;.searchArea;
(nwr[&amp;quot;amenity&amp;quot;=&amp;quot;library&amp;quot;](area.searchArea););
out body;
&amp;gt;;
out skel qt;
&lt;/pre&gt;&lt;p&gt;I don&amp;#39;t understand the difference between the two yet, but the latter is supposed to be more correct. All I know is that &amp;gt;; makes the query recursive (whatever that means).&lt;/p&gt;&lt;p&gt;Found on StackOverflow an explanation of the area:XXX:&lt;/p&gt;&lt;blockquote&gt;If the polygon you want to query inside of is an OSM feature, you can also query using an area ID.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;Area IDs are generated by the Overpass server to make querying data within existing polygons easier. You can determine the area ID for a way by adding 2400000000 to the way ID and the area ID for a relation by adding 3600000000 to the relation ID (assuming that the way or relation is a valid area feature).&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://stackoverflow.com/a/65982945"&gt;https://stackoverflow.com/a/65982945&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I found Portugal&amp;#39;s relation object, which is the relation 295480, and 3600000000+295480=3600295480.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.openstreetmap.org/relation/295480"&gt;https://www.openstreetmap.org/relation/295480&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;Color-coding OSM data by age&lt;/h3&gt;&lt;p&gt;Based on this diary entry by SK53:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.openstreetmap.org/user/SK53/diary/400570"&gt;Colour-coding OSM data by age in OverpassTurbo&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre&gt;[out:json][timeout:2500];
(
  nwr[&amp;quot;highway&amp;quot;]({{bbox}});
  nwr[&amp;quot;building&amp;quot;]({{bbox}});
);
(._;&amp;gt;;);
out meta;

{{style:

node {
  color: #00000000;
  fill-color: #00000000;
}

way[@timestamp=~/2022.*/] {
  color: #313695;
  fill-color: #313695;
}
way[@timestamp=~/2021.*/] {
  color: #4575B4;
  fill-color: #4575B4;
}
way[@timestamp=~/2020.*/] {
  color: #74ADD1;
  fill-color: #74ADD1;
}
way[@timestamp=~/2019.*/] {
  color: #ABD9E9;
  fill-color: #ABD9E9;
}
way[@timestamp=~/2018.*/] {
  color: #E0F3F8;
  fill-color #E0F3F8;
}
way[@timestamp=~/2017.*/] {
  color: #FFFFBF;
  fill-color: #FFFFBF;
}
way[@timestamp=~/2016.*/] {
  color: #FEE090;
  fill-color: #FEE090;
}
way[@timestamp=~/2015.*/] {
  color: #FDAE61;
  fill-color: #FDAE61;
}
way[@timestamp=~/2014.*/] {
  color: #F46D43;
  fill-color: #F46D43;
}
way[@timestamp=~/2013.*/] {
  color: #D73027;
  fill-color: #D73027;
}
way[@timestamp=~/2012.*/] {
  color: #A50026;
  fill-color: #A50026;
}
way[@timestamp=~/2011.*/] {
  color: #A50026;
  fill-color: #A50026;
}
way[@timestamp=~/2010.*/] {
  color: #A50026;
  fill-color: #A50026;
}
way[@timestamp=~/200.*/] {
  color: #A50026;
  fill-color: #A50026;
}
}}
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/osm/overpass.gmi</id>
    <published>2022-12-28T00:00:00Z</published>
    <title type="text">Overpass</title>
    <updated>2022-03-26T00:00:00Z</updated>
    <link href="https://siiky.srht.site/osm/overpass.html" rel="alternate" type="text/html" hreflang="en" title="Overpass" />
    <link href="gemini://siiky.srht.site/osm/overpass.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Overpass" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Trolley problem&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/11/20&lt;br&gt;&lt;/br&gt;2022/11/20&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Today I watched S02E01 of Mind Field, &amp;quot;The Greater Good&amp;quot;. It&amp;#39;s about people&amp;#39;s ability to act on a real situation where they have to choose between two groups of people which should be sacrificed over the other, and it&amp;#39;s based on a thought experiment: the trolley problem.&lt;/p&gt;&lt;p&gt;This post is in part about the thought experiment itself, and in part about the Mind Field episode.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Mind_Field"&gt;Mind Field&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Trolley_problem"&gt;Trolley problem&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It seems there&amp;#39;s been no previous empirical research on it, and Michael (the host aka Vsauce) intends on making it happen. As preparation, he interviewed Dr. Aaron Blaisdell (~4:10), a psychology professor of the UCLA Psychology Department, according to whom research shows that &amp;quot;most people say they would pull the switch&amp;quot;. However, Dr. Aaron believed most people would freeze instead of pulling the switch in a real situation.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://pigeonrat.psych.ucla.edu"&gt;https://pigeonrat.psych.ucla.edu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.psych.ucla.edu/faculty-page/aaron-blaisdell"&gt;https://www.psych.ucla.edu/faculty-page/aaron-blaisdell&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;The thought experiment&lt;/h1&gt;&lt;p&gt;Before I go into the episode I want to comment on this section on the Wikipedia page with criticism to the thought experiment.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/w/index.php?title=Trolley_problem&amp;amp;oldid=1120792086#Criticism"&gt;Trolley problem criticism&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;In a 2014 paper published in the Social and Personality Psychology Compass, researchers criticized the use of the trolley problem, arguing, among other things, that the scenario it presents is too extreme and unconnected to real-life moral situations to be useful or educational.&lt;/blockquote&gt;&lt;p&gt;Imagine a person being forced to go to war and kill &amp;quot;enemies&amp;quot; because such is the way of the world -- is that scenario also &amp;quot;too extreme and unconnected to real-life moral situations to be useful or educational&amp;quot;?&lt;/p&gt;&lt;blockquote&gt;Brianna Rennix and Nathan J. Robinson of Current Affairs go even further and assert that the thought experiment is not only useless, but also downright detrimental to human psychology. The authors opine that to make cold calculations about hypothetical situations in which every alternative will result in one or more gruesome deaths is to encourage a type of thinking that is devoid of human empathy and assumes a mandate to decide who lives or dies.&lt;/blockquote&gt;&lt;p&gt;How does it encourage anything? It&amp;#39;s only a thought experiment. Different theories/philosophies have different methods of deciding which is the right action to take, but the thought experiment itself is only used to &amp;quot;exercise&amp;quot; these methods. Add some details here or there and you get several different scenarios to think about. A popular variation is that of the baby: instead of a single person on the other track, there&amp;#39;s a baby. Another possible variation would be to assume that the people on the tracks are family/friends; or to assume that the five people are family/friends and the other a stranger; or to assume that the five people are strangers and the other family/a friend; ... If you don&amp;#39;t like the original &amp;quot;plain&amp;quot; scenario then think of something else. However, each variation exercises slightly differently your theory/philosophy.&lt;/p&gt;&lt;p&gt;And what if it assumes? That&amp;#39;s a pre-requisite of a thought experiment: you assume a certain situation, and you think about it.&lt;/p&gt;&lt;blockquote&gt;If I am forced against my will into a situation where people will die, and I have no ability to stop it, how is my choice a &amp;quot;moral&amp;quot; choice between meaningfully different options, as opposed to a horror show I&amp;#39;ve just been thrust into, in which I have no meaningful agency at all?&lt;/blockquote&gt;&lt;p&gt;The &amp;quot;meaningful agency&amp;quot; is choosing who to let live. Being forced or not has nothing to do with your role. Surely, if there are two possible future situations, and one may be considered through some criteria to be better than the other, then acting towards the better situation is the moral choice.&lt;/p&gt;&lt;h1&gt;The experiment&lt;/h1&gt;&lt;p&gt;Michael&amp;#39;s intention was to put people in an actually credible situation where they believe they have to choose between two groups of people which is to be saved and which is to be sacrificed.&lt;/p&gt;&lt;p&gt;Since the intention was not to traumatize any participants, they (I assume Michael, Dr. Aaron, and Dr. Greg Cason who shows up some minutes later) developed a screening process to filter out more psychologically &amp;quot;fragile&amp;quot; persons (my wording). For example, they would exclude people more prone to depression, or people already suffering from some sort of trauma, &amp;amp;c. Only people that can reasonably go through the traumatizing situation and recover from it, given that it wasn&amp;#39;t real, are accepted.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.drgregcason.com"&gt;https://www.drgregcason.com&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;My comment is on this point alone: doesn&amp;#39;t this segregation create a bias in the experiment? It&amp;#39;s possible that, in average, people of the different &amp;quot;groups&amp;quot; would act differently in the same situations. Thus running the experiment only on the &amp;quot;non-fragile&amp;quot; means getting biased results.&lt;/p&gt;&lt;p&gt;This is criticism in the sense of being critical, not in the sense of being &amp;quot;wrong&amp;quot;. I understand that they don&amp;#39;t want to intentionally put random people they find on the street in traumatizing situations For Science. It&amp;#39;s definitely a grey area and I can&amp;#39;t say I&amp;#39;m for one way or the other. Personally I think it would be awesome to be a part of this experiment, I&amp;#39;d like to know what I would actually do in that scenario.&lt;/p&gt;&lt;p&gt;It was very interesting to see how the subjects reacted and what their final action (or non-action) was.&lt;/p&gt;&lt;p&gt;If you don&amp;#39;t intend on watching and/or don&amp;#39;t mind spoilers, keep reading.&lt;/p&gt;&lt;h1&gt;Technical details &amp;amp; Results&lt;/h1&gt;&lt;p&gt;They recorded workers on the tracks, just standing there looking distracted. They also recorded a train going through both tracks, one and then the other. With some video editing they merged the recordings of the workers and of the train, so that it looked like the train was really going in the workers&amp;#39; direction. The subjects had a few screens playing those recordings of the tracks and after a short while with nothing happening the train appeared.&lt;/p&gt;&lt;p&gt;But the group was so small... Seven people! This is my only other criticism of the experiment. Seven people is not a large enough sample to be significant.&lt;/p&gt;&lt;p&gt;All of them without exception were very clearly and visibly perturbed by the experience.&lt;/p&gt;&lt;p&gt;And these were the results: two switched and five didn&amp;#39;t. The two that did switch were even more perturbed while and right after switching. The first had their hands shaking. And the second started crying while reflecting on it, after they&amp;#39;d already been told it was only an experiment!&lt;/p&gt;&lt;p&gt;The most affected of all was the second to switch, the one who started crying. They said they thought of the families of both groups of people and all. Must have been their trigger.&lt;/p&gt;&lt;p&gt;The ones that didn&amp;#39;t switch gave reasons such as that they expected the workers to eventually notice the train; they expected the train to have sensors and that the train would eventually stop before hitting anyone; they were really terrified and couldn&amp;#39;t act.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/trolley-problem.gmi</id>
    <published>2022-11-20T00:00:00Z</published>
    <title type="text">Trolley problem</title>
    <updated>2022-11-20T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/trolley-problem.html" rel="alternate" type="text/html" hreflang="en" title="Trolley problem" />
    <link href="gemini://siiky.srht.site/philosophy/trolley-problem.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Trolley problem" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Pagat Archive&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/11/09&lt;br&gt;&lt;/br&gt;2022/11/09&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Sent an email asking for permission to make a mirror/archive. This time it was for Pagat, a site with tons and tons of card games. And like last time, permission was given provided that I don&amp;#39;t make any archives/mirrors public. Fair enough!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.pagat.com"&gt;Pagat&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="mirrors.html"&gt;Content-based Mirrors&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;My Raspberry Pi has been busy downloading the whole thing:&lt;/p&gt;&lt;pre&gt;wget -o download.log -w 30 --random-wait --mirror -k -K -p -i links.txt
&lt;/pre&gt;&lt;p&gt;The links.txt file was generated from the sitemap.xml with this CHICKEN script:&lt;/p&gt;&lt;pre&gt;(import srfi-1 ssax)
(let* ((sitemap (ssax:xml-&amp;gt;sxml (current-input-port) &amp;#39;()))
       (entries (cdaddr sitemap))
       (urls (map (o car (cute alist-ref &amp;#39;http://www.sitemaps.org/schemas/sitemap/0.9:loc &amp;lt;&amp;gt;) cdr) entries)))
  (for-each print urls))
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.pagat.com/sitemap.xml"&gt;https://www.pagat.com/sitemap.xml&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Some details so far:&lt;/p&gt;&lt;pre&gt;$ find www.pagat.com/ -type f | wc -l
2941
$ find www.pagat.com/ -type f -iname &amp;#39;*.html&amp;#39; | wc -l
1812
$ du -bchs www.pagat.com/
66M	www.pagat.com/
66M	total
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/pagat-archive.gmi</id>
    <published>2022-11-09T00:00:00Z</published>
    <title type="text">Pagat Archive</title>
    <updated>2022-11-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/pagat-archive.html" rel="alternate" type="text/html" hreflang="en" title="Pagat Archive" />
    <link href="gemini://siiky.srht.site/kB45oC/pagat-archive.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Pagat Archive" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Exceptions (aka Conditions) in Scheme&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2019/08/13&lt;br&gt;&lt;/br&gt;2022/10/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;DISCLAIMER: I&amp;#39;m not a very advanced Schemer, and conditions in Scheme are especially confusing to me. Please excuse any possibly wrong terminology or claims. If you have any comments, shoot me a message.&lt;/p&gt;&lt;p&gt;Exceptions are (in general) very weird things, but even more so in Scheme. I have little (close to none) experience with them, and the little that I have was attained from need (i.e., &amp;quot;works? great!&amp;quot;).&lt;/p&gt;&lt;h2&gt;Conditions&lt;/h2&gt;&lt;p&gt;Conditions are objects that represent an exception (like instances of a subclass of Exception in Java, maybe?), and in Scheme you can use them just like any other object. You can create one, pass it around, and not even throw it. It&amp;#39;s also possible to throw non-condition objects (maybe for non-local or early return?).&lt;/p&gt;&lt;h2&gt;Exception Handling&lt;/h2&gt;&lt;h3&gt;Catching&lt;/h3&gt;&lt;p&gt;A neat way to catch exceptions is with condition-case.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/chicken/condition/condition-case"&gt;condition-case&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;You give it an expression that may throw, give it the kinds of exceptions you are expecting and how to deal with each of them, and voila:&lt;/p&gt;&lt;pre&gt;; General usage
(condition-case expression
  ((kind1 kind2) (print &amp;quot;kind1 kind2&amp;quot;) ...)
  ((kind) (print &amp;quot;kind&amp;quot;) ...)
  ; con needn&amp;#39;t be a condition
  (con () (print &amp;quot;some other kind: &amp;quot; con) ...))

; Concrete example
(condition-case
  (begin
    (print &amp;quot;This is part of the expression&amp;quot;)
    (car (/ 42 0)))
  ((exn type)
    (print &amp;quot;Wrong type&amp;quot;)
    #f)
  ((exn arithmetic)
    (print &amp;quot;Some arithmetic error&amp;quot;)
    0)
  (con ()
    (print con &amp;quot; ¯\\_(ツ)_/¯&amp;quot;)
    con))

;; prints:
;; This is part of the expression
;; Some arithmetic error
;; =&amp;gt; 0
&lt;/pre&gt;&lt;p&gt;If no exception is thrown when evaluating the expression, the value of the condition-case block is that of the expression. If an exception is thrown, then the value is that of the last of the expressions associated with the first matching branch. If there is no matching branch, the exception is propagated, until a handler for it is found (or none, in which case the program crashes).&lt;/p&gt;&lt;p&gt;The condition cases should be ordered from more specific to less specific, because the first one to match is picked. For example, a condition of kind (exn type) is also of kind (exn), so the former should be above the latter.&lt;/p&gt;&lt;pre&gt;(condition-case (car &amp;#39;some-val)
  ((exn)      (print &amp;quot;Wrong type&amp;quot;))
  ((exn type) (print &amp;quot;This will never happen&amp;quot;)))
&lt;/pre&gt;&lt;h3&gt;Throwing&lt;/h3&gt;&lt;p&gt;If you want to throw something, use signal. There are also abort and raise, but I don&amp;#39;t know why/when one should use them. In CHICKEN, SRFI-18&amp;#39;s raise is just signal, but this may change in the future and might not even be the case in other implementations.&lt;/p&gt;&lt;p&gt;UPDATE:&lt;/p&gt;&lt;blockquote&gt;The only thing I would change is that raise is more portable/standard than signal.&lt;/blockquote&gt;&lt;p&gt;-- jcowan on #chicken@libera.chat, 2022/10/15&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/chicken/condition/signal"&gt;signal&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/chicken/condition/abort"&gt;abort&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/srfi-18/raise"&gt;raise&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://srfi.schemers.org/srfi-18/srfi-18.html"&gt;SRFI-18&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Related Topics of Interest&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Continuable and non-continuable exceptions;&lt;/li&gt;&lt;li&gt;How is all this implemented?&lt;/li&gt;&lt;li&gt;How to make a condition and how to get things out of a condition object.&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/scheme/exceptions.gmi</id>
    <published>2022-10-15T00:00:00Z</published>
    <title type="text">Exceptions (aka Conditions) in Scheme</title>
    <updated>2019-08-13T00:00:00Z</updated>
    <link href="https://siiky.srht.site/scheme/exceptions.html" rel="alternate" type="text/html" hreflang="en" title="Exceptions (aka Conditions) in Scheme" />
    <link href="gemini://siiky.srht.site/scheme/exceptions.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Exceptions (aka Conditions) in Scheme" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Far vs Around Games&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/20&lt;br&gt;&lt;/br&gt;2022/09/20&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;It occurred to me the other day that while multiplayer games in the past were made to play/interact with people close to and around you, more and more games nowadays assume internet connectivity at all times and encourage you to play with strangers around the globe. This by itself isn&amp;#39;t bad, but you already know what follows... I myself met many cool people playing games online, from all over Europe, the US, and even as far as Japan! These connections were in many ways the types of connections we build over Gemini and other similar networks.&lt;/p&gt;&lt;p&gt;Being able to play with someone next to you (e.g. on the same phone, through Bluetooth, ...) is something so much into the remote past by now that it would probably be revolutionary again today. I wonder if anyone would notice that it wasn&amp;#39;t anything actually new, that this was the way to play games with others before the internet became ubiquitous.&lt;/p&gt;&lt;p&gt;In my (not that distant) past, I remember playing Worms World Party on my N-Gage with my cousins. We&amp;#39;d drain the battery in a couple of hours, charge the battery, rinse and repeat. Worms is one of my favorite games because of these times.&lt;/p&gt;&lt;p&gt;For last year&amp;#39;s xmas I bought a controller and Worms WMD on Steam. It was the first time re-playing Worms in many years! I liked it a lot. Everything is still funky, everything was pretty much as I remembered it from my N-Gage, just as fun! Maybe except for the vehicles and stationary weapons -- kinda cool, but not as fun as a good old bat to the face or a Holy Grenade. We also bought Carcassonne (our first real boardgame (except for Monopoly, but please...)) and it was awesome.&lt;/p&gt;&lt;p&gt;Nowadays, the only games I have on my phone are lichess -- that I use mostly offline to play with others -- and Soko++ -- still haven&amp;#39;t beaten all Microban levels!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/far-vs-around-games.gmi</id>
    <published>2022-09-20T00:00:00Z</published>
    <title type="text">Far vs Around Games</title>
    <updated>2022-09-20T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/far-vs-around-games.html" rel="alternate" type="text/html" hreflang="en" title="Far vs Around Games" />
    <link href="gemini://siiky.srht.site/kB45oC/far-vs-around-games.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Far vs Around Games" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="ja" xml:lang="ja"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;NHK Easy News&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/19&lt;br&gt;&lt;/br&gt;2022/09/20&lt;br&gt;&lt;/br&gt;ja&lt;/p&gt;&lt;p&gt;今度のポストを書いてからまた毎日NHK Easy Newsの記事を読み始めた。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="jikoshoukai.html"&gt;自己紹介&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;で、例えば、イギリスのエリザベス女王が死んだことはNHKで初耳。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www3.nhk.or.jp/news/easy/k10013810241000/k10013810241000.html"&gt;イギリス エリザベス女王が96歳で亡くなる&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www3.nhk.or.jp/news/easy/k10013826991000/k10013826991000.html"&gt;イギリスでエリザベス女王のお葬式 天皇陛下も出席&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;リモコンでゴキブリを動かせることもNHKで分かった。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www3.nhk.or.jp/news/easy/k10013804421000/k10013804421000.html"&gt;「サイボーグ昆虫」 離れた所から昆虫を動かす研究&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;面白い記事もあった:一番安い寿司ざらの値段は110円から115円にするって。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www3.nhk.or.jp/news/easy/k10013807081000/k10013807081000.html"&gt;「くら寿司」 1皿110円から115円に値段を上げる&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/nihongo/nhk-easy-news.gmi</id>
    <published>2022-09-20T00:00:00Z</published>
    <title type="text">NHK Easy News</title>
    <updated>2022-09-19T00:00:00Z</updated>
    <link href="https://siiky.srht.site/nihongo/nhk-easy-news.html" rel="alternate" type="text/html" hreflang="ja" title="NHK Easy News" />
    <link href="gemini://siiky.srht.site/nihongo/nhk-easy-news.gmi" rel="alternate" type="text/gemtext" hreflang="ja" title="NHK Easy News" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Technology and Conscience&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/19&lt;br&gt;&lt;/br&gt;2022/09/19&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/the-brannons.com/tech-and-conscience"&gt;Technology and Conscience&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;I suppose the counterpoint would be made with nuclear weapons, which as of now have no use other than causing massive loss of life. (...)  I don&amp;#39;t believe that technology and tools are always value-neutral, though this is frequently the case.  Mustard gas and atomic bombs are my counter-propositions.&lt;/blockquote&gt;&lt;p&gt;Technology does seem to me to be neutral -- it doesn&amp;#39;t know right or wrong and doesn&amp;#39;t care whether it&amp;#39;s nailing a nail or hammering a fly. On the other hand, users aren&amp;#39;t neutral, because they can choose what to do with the tools at hand. And even such technologies as nuclear weapons may have their good uses (maybe nuclear weapons specifically is debatable, but hold on).&lt;/p&gt;&lt;p&gt;Porcupines and hedgehogs have spines on their backs that could very well be used for bad rather than good, but they use the spines only for protection.&lt;/p&gt;&lt;p&gt;Or, if I&amp;#39;m walking down the street next to my rottweiler, pit bull, or German shepherd, I&amp;#39;m VERY unlikely to get attacked/robbed/w.e. and that&amp;#39;s a good thing (for me, at least)! Having my dogs with me doesn&amp;#39;t imply me telling them to attack randos on the street either. (Pretending for a second that dogs are vicious biting machines... It&amp;#39;s a damn shame these dogs are conditioned and trained to be very aggressive -- a topic for another day)&lt;/p&gt;&lt;p&gt;Related:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="knives.html"&gt;On knives and their uses&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/re-tech-and-conscience.gmi</id>
    <published>2022-09-19T00:00:00Z</published>
    <title type="text">RE: Technology and Conscience</title>
    <updated>2022-09-19T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/re-tech-and-conscience.html" rel="alternate" type="text/html" hreflang="en" title="RE: Technology and Conscience" />
    <link href="gemini://siiky.srht.site/philosophy/re-tech-and-conscience.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Technology and Conscience" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;On knives and their uses&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/18&lt;br&gt;&lt;/br&gt;2022/09/18&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Anyone here against knives because they are/can be used to harm other beings raise your hands!&lt;/p&gt;&lt;p&gt;I can&amp;#39;t believe many will be raised, even knowing that it is true that knives can be used to kill other beings, human or otherwise, because they are very useful tools. They can be used for cooking, eating, cutting paper, or pealing fruit. They can also be used for stabbing, cutting up, killing, and skinning people and animals. That doesn&amp;#39;t make them undesirable or less appealing in any way. It&amp;#39;s not why/how most would use them, and I wonder how we&amp;#39;d go about our lives without knives!&lt;/p&gt;&lt;p&gt;A similar point could be made about other tools -- screwdrivers, hammers, crowbars, rope, syringes, ... I&amp;#39;m not of a very creative mind but I could probably go on.&lt;/p&gt;&lt;p&gt;This post was triggered by a post by @hyperreal, who doesn&amp;#39;t want to be associated with Web3/NFT/crypto crap. I can totally understand it as I try to steer away from such connections myself -- and sometimes I&amp;#39;m repulsed away, e.g. when I find a possibly cool project but learn that it&amp;#39;s written in fucking JS/TS/BullshitScript-of-the-day, or that it&amp;#39;s &amp;quot;AI/ML/blockchain-powered&amp;quot;... give me a fucking break please!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/hyperreal.coffee/gemlog/2022-09-17-considering-using-ipfs-for-content-hosting.gmi"&gt;Considering using IPFS for content hosting&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;I&amp;#39;m just not sure about its adjacency to the NFT/Web3 scene.&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;Still, though, I don&amp;#39;t like the idea of being complicit in the NFT/Web3 hype. Aside from the environmental hazards involved in minting NFTs and mining cryptocurrency, it&amp;#39;s a Ponzi scheme that deceives people into investing monetary value into something that is inherently valueless and thrives off the delusion that they own the thing.&lt;/blockquote&gt;&lt;p&gt;By simply using IPFS you wouldn&amp;#39;t be as complicit in anything to do with the NFT/Web3 bullshittery any more than you&amp;#39;d be complicit in someone using a crowbar to bash another person&amp;#39;s head in, or someone using a rope to hang themselves -- if you don&amp;#39;t take part in any of the bullshittery then you&amp;#39;re not complicit in said bullshittery!&lt;/p&gt;&lt;p&gt;My intention was not to pick or call out on you in the least so please don&amp;#39;t take it personally!&lt;/p&gt;&lt;p&gt;DISCLAIMER: I like IPFS!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../alt.html"&gt;Alternative ways to access this capsule&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../projects/ipfs.html"&gt;ipfs.scm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../projects/gemini-ipfs-gateway.html"&gt;Gemini IPFS gateway&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../care/list.html"&gt;Care list&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../kB45oC/mirrors.html"&gt;Content-based Mirrors&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Related:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="re-tech-and-conscience.html"&gt;RE: Technology and Conscience&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/knives.gmi</id>
    <published>2022-09-18T00:00:00Z</published>
    <title type="text">On knives and their uses</title>
    <updated>2022-09-18T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/knives.html" rel="alternate" type="text/html" hreflang="en" title="On knives and their uses" />
    <link href="gemini://siiky.srht.site/philosophy/knives.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="On knives and their uses" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;The Toothpaste Argument&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/15&lt;br&gt;&lt;/br&gt;2022/09/16&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.scottsantens.com/the-toothpaste-argument-for-universal-basic-income-ubi-gotz-werner"&gt;The Toothpaste Argument for Universal Basic Income&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I read this post that was mentioned on some other post I read on Gemini, but I don&amp;#39;t remember which and can&amp;#39;t find it anymore.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../contact.html"&gt;Send me a message if you know!&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The author seems to be too much into it to be thinking/expressing ideas clearly. There&amp;#39;s too much fluff and rainbows and &amp;quot;if only UBI was here&amp;quot;. I&amp;#39;m not into the subject and I barely know left from right, so ignore the sarcasm and bits of pedantry if you will, and enlighten me if you&amp;#39;ll please!&lt;/p&gt;&lt;h2&gt;Toothpaste&lt;/h2&gt;&lt;blockquote&gt;If you go shopping, and take a tube of toothpaste from a shelf then you all think, when you go to the checkout, that you are paying for this toothpaste. That is an error. Because the tube of toothpaste that you are taking from the shelf is already paid for, is already paid, else it couldn&amp;#39;t be on the shelf. What you are paying at the checkout, is that you are enabling the creation of another tube of toothpaste. That&amp;#39;s how you have to see it. Payment is never backwards-oriented. Payment is always forward-oriented. Payment doesn&amp;#39;t balance out, but when you are buying something, you are ordering its continued production and sale.&lt;/blockquote&gt;&lt;p&gt;This is a chicken &amp;amp; egg problem: no money means no toothpaste; no toothpaste means no money. It&amp;#39;s easy to think that someone must have paid for the first toothpaste ever produced (&amp;quot;payment is always forward-oriented&amp;quot;), but there are two problems:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Some people make things (for free before any sort of payment) hoping they&amp;#39;ll be able to sell them for money in the future (e.g. Leatherman&amp;#39;s multitool).&lt;/li&gt;&lt;li&gt;Where did the first money come from?&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://yewtu.be/watch?v=QJwyIF4VBTk"&gt;The Tim Leatherman Multitool Story&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Developing&lt;/h2&gt;&lt;blockquote&gt;if one wants to live in this world, one needs an income. Or else you can&amp;#39;t live... Human beings want to develop. For developing, I need work. For existing I need income.&lt;/blockquote&gt;&lt;p&gt;A few fallacies here too:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&amp;quot;This world&amp;quot; seemingly meaning &amp;quot;today&amp;#39;s society&amp;quot;.&lt;/li&gt;&lt;li&gt;&amp;quot;Humans want to develop&amp;quot; -- what does it mean &amp;quot;to develop&amp;quot;? Do all humans want to &amp;quot;develop&amp;quot;, really?&lt;/li&gt;&lt;li&gt;Depending on what it means &amp;quot;to develop&amp;quot;, does one really need work?&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Work&lt;/h2&gt;&lt;blockquote&gt;And then I realized, after doing hundreds of job interviews, inevitably, that income isn&amp;#39;t the payment for the work, but the prerequisite. That is our mistake in thinking. Our error in reasoning is, that we think, through the work, the income is generated. The reverse is true. Because we have the income, we can work.&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;income is not the fruit born from the seed of work, but instead work is the fruit born of the seed of income&lt;/blockquote&gt;&lt;p&gt;Using &amp;quot;work&amp;quot; in the context of today&amp;#39;s society, i.e., a &amp;quot;job&amp;quot; or &amp;quot;employment&amp;quot;, this just isn&amp;#39;t true. I don&amp;#39;t want to work for someone else -- in truth, I don&amp;#39;t want to &amp;quot;work&amp;quot; at all! -- especially not for a company that doesn&amp;#39;t value my values. If your only motivation to work is to get money and you already have the money, then why would you work? Therefore, we don&amp;#39;t work because we have to money to be able to work, it&amp;#39;s the other way around!&lt;/p&gt;&lt;p&gt;That doesn&amp;#39;t mean I wouldn&amp;#39;t contribute back. Indeed, I already try to contribute here and there (OSM, FLOSS projects, iNaturalist, Wikipedia, ...), but I wouldn&amp;#39;t ever call that work.&lt;/p&gt;&lt;h2&gt;Unpaid work&lt;/h2&gt;&lt;blockquote&gt;But when you recognize that income is the fuel that makes work possible, it&amp;#39;s easier to see that basic income will enable far more work for multiple reasons. For one, having basic income means that people can choose unpaid or paid work.&lt;/blockquote&gt;&lt;p&gt;Amen to that (still wouldn&amp;#39;t call it &amp;quot;work&amp;quot;)! And it seems you don&amp;#39;t need to recognize that &amp;quot;because we have the income, we can work&amp;quot; to believe volunteering would in fact increase.&lt;/p&gt;&lt;h2&gt;Local voting&lt;/h2&gt;&lt;blockquote&gt;Second, basic income also means that there are a greater number of people with a greater amount of money that they are able to spend at the businesses in their local communities. That money is essentially a form of voting on what work the community wants local businesses to continue doing.&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;Werner&amp;#39;s realization was that people with basic income could choose to shop at his stores and vote on which products they wanted his chain of stores to keep buying and selling to customers, (...)&lt;/blockquote&gt;&lt;p&gt;This seems reasonable to me, and a good thing too! Nowadays basically only the big supermarket chains make it. The small greengrocers around the corner hardly make enough to stay open, because everyone goes to the big guys. I would like to see more of this.&lt;/p&gt;&lt;p&gt;It goes well in hand with my interest in decentralized/distributed networks. Let&amp;#39;s not concentrate power in the hands of a select few, please, and instead distribute it over the network participants.&lt;/p&gt;&lt;h2&gt;Today&amp;#39;s resources&lt;/h2&gt;&lt;blockquote&gt;Realizing that income is forward-oriented instead of backward-oriented also enabled Werner to realize that of course we can afford basic income, because all of the basic needs it would secure already exist. They are already produced.&lt;/blockquote&gt;&lt;p&gt;It may very well be that the resources to meet today&amp;#39;s needs already exist today. But given the above, if nobody is willing to work given UBI, how will the resources to meet tomorrow&amp;#39;s needs be created? They won&amp;#39;t fall from the sky.&lt;/p&gt;&lt;h2&gt;No resources shortage&lt;/h2&gt;&lt;blockquote&gt;There isn&amp;#39;t a shortage of food. There&amp;#39;s just a shortage of ability to buy food. So just create the money people need to buy food, and provide it to them so they can tell businesses to keep making the food they prefer to eat.&lt;/blockquote&gt;&lt;p&gt;Yeah, tell that to anyone who can&amp;#39;t actually get the food, I&amp;#39;m sure it&amp;#39;ll be an easy sell.&lt;/p&gt;&lt;blockquote&gt;Dear Sir/Ma&amp;#39;m,&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;The reason you do not have any food is not that there is no food to be had, but that you do not have the money to acquire it. Therefore, if you wish to acquire some food you must first acquire some money.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;In order to acquire some money you may proceed to your closest money-making facilities and/or engage in any of several money-making activities.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;We&amp;#39;re so very sorry for the inconvenience and thank you for your understanding.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;Sincerely,&lt;br&gt;&lt;/br&gt;Your most sympathetic government&lt;/blockquote&gt;&lt;p&gt;Again, specifically for food, if there&amp;#39;s nobody to work at food-making-businesses, then there are no food-making-businesses to make food, and therefore there&amp;#39;s no food. And how could there still be food-making-businesses? A tiny fraction of people, from the goodness of their heart, with no obligation whatsoever, and with barely any reward (money they don&amp;#39;t need), would work in these food-making-businesses to produce food for the rest of the world? Doesn&amp;#39;t make any sense to me.&lt;/p&gt;&lt;p&gt;I don&amp;#39;t actually believe we&amp;#39;d be out of food if UBI came into existence. Just, let&amp;#39;s not pretend everything would still be all the same except better. Even if there were no food-making-businesses (among other kinds of businesses), since individuals need food they would have to make food themselves, or organize amongst themselves in small groups to distribute tasks -- e.g., if I&amp;#39;m good at planting and keeping fruit trees, then I can give the fruits of my trees to my neighbors, if they share in return some of their labor; if I&amp;#39;m good at making some sweet cocktails, I can make cocktails for my neighbors if they provide me with some fruits and spirits; &amp;amp;c.&lt;/p&gt;&lt;blockquote&gt;(...) ask, where are the goods, then you will see that we have never been as rich as today. We have never been as rich as today. We have enough goods and services for each person in our society to live a humble but dignified life. (...) So, when we have these goods and services, we have to ask ourselves, then why are we affording ourselves poverty?&lt;/blockquote&gt;&lt;p&gt;In a way, I have to agree. So much shit goes to waste just because it was made and nobody consumed it... In a way, it really is like we have a shortage of money and not of resources.&lt;/p&gt;&lt;p&gt;But in actuality, it&amp;#39;s probably more like we have resource shortages AND, on top of that, a shit resource management system. Such that, not only do we make more than we consume, leading to waste, but at the same time, some people cannot get access to resources they need.&lt;/p&gt;&lt;p&gt;It reminds me of an interview of James Suzman (I&amp;#39;ll maybe try to find it someday...)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/James_Suzman"&gt;James Suzman&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Conclusion?&lt;/h2&gt;&lt;p&gt;There&amp;#39;s nothing resembling one, really. This post is kind of a mess and if anything it just shows how little I know about this shit... For the opinions of someone who understands this better than me read for example some of snan&amp;#39;s posts.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/idiomdrottning.org/ubi"&gt;Unconditional Basic Income&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/toothpaste-argument.gmi</id>
    <published>2022-09-16T00:00:00Z</published>
    <title type="text">The Toothpaste Argument</title>
    <updated>2022-09-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/toothpaste-argument.html" rel="alternate" type="text/html" hreflang="en" title="The Toothpaste Argument" />
    <link href="gemini://siiky.srht.site/kB45oC/toothpaste-argument.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="The Toothpaste Argument" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;No bookbinding for you&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/15&lt;br&gt;&lt;/br&gt;2022/09/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I went to a bookbinding shop today asking if they would teach me some of their craft but the owner, an old guy, was so harsh... Almost rude.&lt;/p&gt;&lt;p&gt;After a flat out &amp;quot;No&amp;quot;, he said something along the lines of:&lt;/p&gt;&lt;blockquote&gt;This is not a school, it&amp;#39;s a bookbinding shop, I can&amp;#39;t teach you. If I spend my time teaching just about anybody who comes around with interest I won&amp;#39;t have the time to do what my customers ask me, and then where does the money come from?&lt;/blockquote&gt;&lt;p&gt;I mean, sure, but, I didn&amp;#39;t expect anyone to be teaching me anything full-time, I have shit to do too!&lt;/p&gt;&lt;p&gt;At the end he asked me why I wanted to learn about it, what kinds of books I read and am interested in, what I do &amp;quot;for a living&amp;quot;, how I found them, ... Very weird, almost as if testing me or something. And would you ever believe me if I told you he started pulling out his massive book knowledge phallus? At least I got some new contacts and places to check out.&lt;/p&gt;&lt;p&gt;It was very disheartening TBH...&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/no-bookbinding.gmi</id>
    <published>2022-09-15T00:00:00Z</published>
    <title type="text">No bookbinding for you</title>
    <updated>2022-09-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/no-bookbinding.html" rel="alternate" type="text/html" hreflang="en" title="No bookbinding for you" />
    <link href="gemini://siiky.srht.site/kB45oC/no-bookbinding.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="No bookbinding for you" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Moving tons&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/09/12&lt;br&gt;&lt;/br&gt;2022/09/12&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;How stupid is it to move around by (mainstream) motorized vehicles? Can we make up a scale?&lt;/p&gt;&lt;p&gt;Sorry in advance to physicists: I used weight and mass interchangeably. If it helps make up for it, I do know the difference!&lt;/p&gt;&lt;p&gt;I found online some numbers that I&amp;#39;ll present next. I didn&amp;#39;t include any trains because the weights I found varied too much to be reliable to me since I don&amp;#39;t understand much about them (e.g. one page said between 4t and 20t). For the coach bus, since they didn&amp;#39;t vary that much (relatively), I even picked the lightest. Some pages showed weights in pounds, which I assumed to be avoirdupois pounds and converted to kg with the unitconv CHICKEN egg:&lt;/p&gt;&lt;pre&gt;(exact-&amp;gt;inexact (unit-convert lb kg 2935))
; 1331.29360595
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Pound_(mass)"&gt;https://en.wikipedia.org/wiki/Pound_(mass)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/eggref/5/unitconv"&gt;https://wiki.call-cc.org/eggref/5/unitconv&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Now some of the weights I&amp;#39;ve found:&lt;/p&gt;&lt;pre&gt;+----------------+-----------------+---------------+
| Vehicle        | Weight (pounds) | Weight (tons) |
+----------------+-----------------+---------------+
| Smart Fortwo   | 1808lb          | 0.82t         |
| Ford Fiesta    | 2600lb          | 1.18t         |
| Ford Focus     | 2935lb          | 1.33t         |
| Jeep Wrangler  | 3941lb          | 1.79t         |
| Some coach bus | 49400lb         | 22.41t        |
+----------------+-----------------+---------------+
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://gogocharters.com/charter-bus-comparison-chart"&gt;Coach bus weights &amp;amp; number of seats&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://cars.lovetoknow.com/List_of_Car_Weights"&gt;Some car weights by make&amp;amp;model&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.bankrate.com/insurance/car/average-car-weight"&gt;More car weights (guestimates)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Let&amp;#39;s assume that the average person weighs around 80kg (which apparently is really the average in the USA?).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Human_body_weight"&gt;https://en.wikipedia.org/wiki/Human_body_weight&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;For an average person driving a Smart Fortwo (being generous here) to work/shopping/w.e., a total mass of 900kg has to be moved to move the 80kg meatbag that actually has/wants to be moved. That&amp;#39;s only 8.89% of the moved weight! Even if two people share that car, it&amp;#39;s only marginally improved to 16.32%! And you can&amp;#39;t get any better unless you put more people in the trunk or something... Does it even have a trunk? That thing is tiny...&lt;/p&gt;&lt;p&gt;For a smallish 5 seat car, like the Fiesta, 6.35% for a single person, 11.95% for two, and 25.33% for the full five.&lt;/p&gt;&lt;p&gt;For a wrangler, also 5 seat, it&amp;#39;s 4.28%, 8.22% and 18.28%, for one, two and five people, respectively.&lt;/p&gt;&lt;p&gt;Now for a coach bus, assuming 57 seats (driver + passengers). At half capacity (28 passengers) it&amp;#39;s 9.38%, and at full capacity (56 passengers) it&amp;#39;s 16.91%. To be honest, this was way less than I expected... If you add up some luggage (let&amp;#39;s be generous and say everyone carries 10kg), that&amp;#39;s 10.43% at half-capacity and 18.63% at full capacity.&lt;/p&gt;&lt;p&gt;Just WOW! I never realized how grossly inefficient it is in numbers. Think about that: on the most efficient of these 4 examples (in terms of the &amp;quot;want to move&amp;quot; over &amp;quot;have to move&amp;quot; mass ratio) ONLY A QUARTER of the moved mass is what effectively has to be moved!&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/moving-tons.gmi</id>
    <published>2022-09-12T00:00:00Z</published>
    <title type="text">Moving tons</title>
    <updated>2022-09-12T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/moving-tons.html" rel="alternate" type="text/html" hreflang="en" title="Moving tons" />
    <link href="gemini://siiky.srht.site/kB45oC/moving-tons.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Moving tons" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="ja" xml:lang="ja"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;自己紹介&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/27&lt;br&gt;&lt;/br&gt;2022/08/28&lt;br&gt;&lt;/br&gt;ja&lt;/p&gt;&lt;p&gt;いや、うそ。。。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../about.html"&gt;もう知ってるはずだ。&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../kB45oC/re-brain_fart.html"&gt;何も日本語で読んでも喋ってもないと最近書いた。&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;今日起きたら「日本語で何かを書く!」と決めたんだ。それでは。&lt;/p&gt;&lt;p&gt;2016から2019まで、三年間ぐらい日本語を授業で勉強してた。大体「みんなの日本語」だけ使ってた。その間自分でTae KimのA Guide to Japanese Grammarも時々読んでた。&lt;/p&gt;&lt;p&gt;JPLTはまだしてない(先生はN3が出来るって言うが、俺はそんなに自信がないな)。が、オフィシャル的にCEFのB1レベルになってきた!本当にB1レベルだか知らないけど、別に上手じゃないのに、下手でもないと思う。&lt;/p&gt;&lt;p&gt;知ってるのは語彙力(ただ今辞書に調べてきた)全然足りない!マンガを読むといい気分になる。小説を読むと悲しみ。今までもうマンガの何冊も読んだのに、小説まだ一冊しか読んでない。いつも語彙力が足りないんだから。。。何回かAnkiも手で書くのもやってみたも。。。ちなみに、読めた小説は奥田英朗の「サウスバウンド」。&lt;/p&gt;&lt;p&gt;今更このまま。&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://guidetojapanese.org/learn"&gt;Tae Kim, &amp;quot;A Guide to Japanese Grammar&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Common_European_Framework_of_Reference_for_Languages"&gt;CEF&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://ja.wikipedia.org/wiki/%E3%82%B5%E3%82%A6%E3%82%B9%E3%83%90%E3%82%A6%E3%83%B3%E3%83%89"&gt;奥田 英朗、「サウスバウンド」&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/nihongo/jikoshoukai.gmi</id>
    <published>2022-08-28T00:00:00Z</published>
    <title type="text">自己紹介</title>
    <updated>2022-08-27T00:00:00Z</updated>
    <link href="https://siiky.srht.site/nihongo/jikoshoukai.html" rel="alternate" type="text/html" hreflang="ja" title="自己紹介" />
    <link href="gemini://siiky.srht.site/nihongo/jikoshoukai.gmi" rel="alternate" type="text/gemtext" hreflang="ja" title="自己紹介" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Open content that you can contribute to&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/25&lt;br&gt;&lt;/br&gt;2022/08/25&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gemini.bunburya.eu/gemlog/posts/2022-08-22-open-content.gmi"&gt;@bunburya shared several open crowdsourcing projects.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I didn&amp;#39;t know some of them, while others I knew only the name. Here I&amp;#39;d like to add that OpenFoodFacts has a couple of sister projects:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://world.openpetfoodfacts.org"&gt;Open Pet Food Facts&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://world.openbeautyfacts.org"&gt;Open Beauty Facts&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And would also like to mention iNaturalist, where people can contribute observations of animals, plants, fungi, &amp;amp;c. Photos are shared under user-chosen terms, but they recommend using some CC licenses compatible with Wikimedia Commons.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.inaturalist.org"&gt;iNaturalist&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.inaturalist.org/pages/developers"&gt;Datasets (end of the page)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://commons.wikimedia.org"&gt;Wikimedia Commons&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I can&amp;#39;t find now the &amp;quot;official documentation&amp;quot; regarding the recommended license but I found these related pages instead:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.inaturalist.org/blog/48165-we-want-you-to-license-your-inaturalist-photos-before-april-15th"&gt;https://www.inaturalist.org/blog/48165-we-want-you-to-license-your-inaturalist-photos-before-april-15th&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.inaturalist.org/blog/49564-inaturalist-licensed-observation-images-in-the-amazon-open-data-sponsorship-program"&gt;https://www.inaturalist.org/blog/49564-inaturalist-licensed-observation-images-in-the-amazon-open-data-sponsorship-program&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.gbif.org/news/82812/licensing-milestone-for-data-access-in-gbiforg"&gt;https://www.gbif.org/news/82812/licensing-milestone-for-data-access-in-gbiforg&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../reclog.html"&gt;Added to the reclog.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/re-open-content.gmi</id>
    <published>2022-08-25T00:00:00Z</published>
    <title type="text">RE: Open content that you can contribute to</title>
    <updated>2022-08-25T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/re-open-content.html" rel="alternate" type="text/html" hreflang="en" title="RE: Open content that you can contribute to" />
    <link href="gemini://siiky.srht.site/kB45oC/re-open-content.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Open content that you can contribute to" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RFC: alist-let&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/22&lt;br&gt;&lt;/br&gt;2022/08/23&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;(Reply (and an example) at the end)&lt;/p&gt;&lt;p&gt;If you&amp;#39;re a Lisper, even if you&amp;#39;re not a Schemer, please don&amp;#39;t skip this post! :)&lt;/p&gt;&lt;h2&gt;History&lt;/h2&gt;&lt;p&gt;Almost two years ago I wrote a macro to make it easier to work with values of an alist (&amp;quot;association list&amp;quot; i.e. list of key/value pairs; Scheme&amp;#39;s &amp;quot;default&amp;quot; dictionary-like structure). It was called let-aref at first and it could be used to introduce a single variable with the value associated with a key of an alist -- sort of like let but for alists and for a single variable. Soon I realized I could use it for several variables if I changed it only slightly, which became alist-let.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/transmission.scm/commit/fe13fe48e7cf9f0045c1aaa4a3e6f0b54cd2f4d7#tests/run.scm"&gt;First version of let-aref&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/transmission.scm/commit/688f9d996b00d834a8e7dfd94947b46862fa962b#tests/run.scm"&gt;First version of alist-let&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;At the time I didn&amp;#39;t think much about it, just another tiny macro to make my life easier. But much later (only a few months ago) I needed something like it again. I went searching instead of copying it over and found nothing. Why the heck doesn&amp;#39;t something like this exist? The only pattern matcher I know of doesn&amp;#39;t seem to support it either.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/eggref/5/matchable"&gt;matchable&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;A bit over a month ago I started thinking of making it more general, because there were lots of assumptions in the original alist-let (most relevant: keys were &amp;quot;simple&amp;quot; symbols, that is, the unquoted key was a valid variable identifier); and also of introducing it to the broader Scheme community.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/transmission.scm/tree/master/item/transmission.utils.scm"&gt;Latest (original) alist-let (and variants)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Now&lt;/h2&gt;&lt;p&gt;I first tested the waters on #scheme and some people acknowledged such syntax would be useful, and nobody came up with readily available alternatives. A few days later I sent an RFC to srfi-discuss:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://srfi-email.schemers.org/srfi-discuss/msg/19986652/"&gt;alist-let: let-like alist destructuring syntax&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The goal (even though the &amp;quot;project&amp;quot; is for now still called alist-let) is to define some common pattern/syntax for the different dictionary-like types. You can find the latest (new) alist-let in this repo:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/alist-let"&gt;https://git.sr.ht/~siiky/alist-let&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;If you&amp;#39;re a Schemer, what do you think? Send your comments to the list (preferably) or to me directly. If you&amp;#39;re a Lisper, even if you&amp;#39;re not a Schemer, I would also appreciate your comments. Does your Lisp of choice have something like this? How is it? Let me know!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Reply&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gemini.ctrl-c.club/~stack/gemlog/2022-08-22.alists.gmi"&gt;@stack replied with lots of confusion.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Reading back what I wrote I can understand why...&lt;/p&gt;&lt;blockquote&gt;Not very useful, as it is a tautology for the let macro in the first place!&lt;/blockquote&gt;&lt;p&gt;Indeed but that&amp;#39;s not it. :p&lt;/p&gt;&lt;blockquote&gt;First question: what is the purpose of alist-let?&lt;/blockquote&gt;&lt;p&gt;It seems you&amp;#39;re thinking it&amp;#39;s supposed to destructure alists at macro-expansion time? But that&amp;#39;s not it, it&amp;#39;s for destructuring alists at runtime.&lt;/p&gt;&lt;p&gt;In case you know JavaScript, alist-let is more like the following destructuring syntax:&lt;/p&gt;&lt;pre&gt;const obj = { a: 1, b: 2, c: 3 }
const { a, c } = obj
// Do something with a and c
console.log(&amp;quot;a=&amp;quot;, a, &amp;quot; b=&amp;quot;, b)
&lt;/pre&gt;&lt;p&gt;If you don&amp;#39;t know JavaScript, and because I don&amp;#39;t like JavaScript and &amp;quot;an example is worth a thousand words&amp;quot; or something: if you&amp;#39;re writing a CLI program you&amp;#39;re likely to need to parse the command line arguments into (positional) arguments, flags and options. Let&amp;#39;s say the program has the flags &amp;quot;--recursive&amp;quot;, &amp;quot;--raw-leaves&amp;quot; and &amp;quot;--trickle&amp;quot;, and the options &amp;quot;--cid-version&amp;quot; and &amp;quot;--hash&amp;quot;.&lt;/p&gt;&lt;pre&gt;;(defun main (opts) ...)
(define (main opts)
  (alist-let string=? opts
             ; VAR         KEY           DEFAULT (optional)
             ((recursive   &amp;quot;recursive&amp;quot;   #f)
              (cid-version &amp;quot;cid-version&amp;quot; 1)
              (raw-leaves  &amp;quot;raw-leaves&amp;quot;  ) ; #f is implicitly used as the default
              (trickle     &amp;quot;trickle&amp;quot;     )
              (hash        &amp;quot;hash&amp;quot;        &amp;quot;sha2-256&amp;quot;))
    (print
      &amp;quot;recursive=&amp;quot; recursive #\n     ; recursive=#t
      &amp;quot;cid-version=&amp;quot; cid-version #\n ; cid-version=42
      &amp;quot;raw-leaves=&amp;quot; raw-leaves #\n   ; raw-leaves=#t
      &amp;quot;trickle=&amp;quot; trickle #\n         ; trickle=#f
      &amp;quot;hash=&amp;quot; hash #\n               ; hash=&amp;quot;sha2-256&amp;quot;
      )))

; parse-arguments turns something like this: &amp;#39;(&amp;quot;--recursive&amp;quot; &amp;quot;--raw-leaves&amp;quot; &amp;quot;--cid-version&amp;quot; &amp;quot;42&amp;quot;)
; Into this: &amp;#39;((&amp;quot;recursive&amp;quot; . #t) (&amp;quot;raw-leaves&amp;quot; . #t) (&amp;quot;cid-version&amp;quot; . 42))
(main (parse-arguments (command-line-arguments)))
&lt;/pre&gt;&lt;p&gt;The only (current) alternative I know of is to manually alist-ref each key (mentioned at the top of the email):&lt;/p&gt;&lt;pre&gt;;      VAR                     KEY                         DEFAULT (optional)
(let ((recursive   (alist-ref &amp;quot;recursive&amp;quot;   opts string=?  #t))
      (cid-version (alist-ref &amp;quot;cid-version&amp;quot; opts string=?  1))
      (raw-leaves  (alist-ref &amp;quot;raw-leaves&amp;quot;  opts string=?  #f))
      (trickle     (alist-ref &amp;quot;trickle&amp;quot;     opts string=?  ))
      (hash        (alist-ref &amp;quot;hash&amp;quot;        opts string=?  &amp;quot;sha2-256&amp;quot;)))
  ; Do something with recursive, cid-version, raw-leaves, trickle, hash
  (print
    &amp;quot;recursive=&amp;quot; recursive #\n
    &amp;quot;cid-version=&amp;quot; cid-version #\n
    &amp;quot;raw-leaves=&amp;quot; raw-leaves #\n
    &amp;quot;trickle=&amp;quot; trickle #\n
    &amp;quot;hash=&amp;quot; hash #\n))
&lt;/pre&gt;&lt;p&gt;(alist-ref key alist) is more or less (cdr (assoc key alist))&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/chicken/base/alist-ref"&gt;alist-ref&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;p&gt;BTW I thought plists were flat alists: (k1 v1 k2 v2 ...) ?&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/scheme/alist-let.gmi</id>
    <published>2022-08-23T00:00:00Z</published>
    <title type="text">RFC: alist-let</title>
    <updated>2022-08-22T00:00:00Z</updated>
    <link href="https://siiky.srht.site/scheme/alist-let.html" rel="alternate" type="text/html" hreflang="en" title="RFC: alist-let" />
    <link href="gemini://siiky.srht.site/scheme/alist-let.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RFC: alist-let" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Brain Fart&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/21&lt;br&gt;&lt;/br&gt;2022/08/21&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I just read these posts by ew0k and really they hit the spot... Added to the reclog of today.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/warmedal.se/~bjorn/posts/2022-08-18-brain-fart.gmi"&gt;Brain Fart&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/warmedal.se/~bjorn/posts/2021-12-17-do-you-ever-feel-stuck-in-a-loop.gmi"&gt;Do You Ever Feel Stuck in a Loop?&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/warmedal.se/~bjorn/posts/2022-04-28-no-you-don-t-have-time-for-another-project.gmi"&gt;No, You Don&amp;#39;t Have Time For Another Project&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../reclog.html"&gt;Reclog&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;It&amp;#39;s just that I have all these ideas that I&amp;#39;d like to deliver on.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;But at the same time I have neither the time nor the energy to take any of them on, frankly.&lt;br&gt;&lt;/br&gt;&lt;br&gt;&lt;/br&gt;You&amp;#39;d think I&amp;#39;d learned by now, but no.&lt;/blockquote&gt;&lt;blockquote&gt;Stuck in a loop, having a hard time breaking out.&lt;/blockquote&gt;&lt;blockquote&gt;There&amp;#39;s never time. Maybe you feel like you&amp;#39;ll have time, so you start something today. It&amp;#39;ll just be a few hours this week and then it&amp;#39;s done.&lt;/blockquote&gt;&lt;p&gt;I could quote almost the whole thing verbatim in here and just say &amp;quot;this ^&amp;quot;.&lt;/p&gt;&lt;p&gt;I can relate 100% with them. I&amp;#39;m like a squirrel chasing new nuts every 5 seconds, almost as if the nuts I catch rot by the touch. It&amp;#39;s completely irrational to take on so many things simultaneously, and yet, here we are. I have more than 4 ongoing books for some reason. I haven&amp;#39;t read a single word of any of them for the past... 2 weeks? Maybe more? Shiet...&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I&amp;#39;m honestly surprised I&amp;#39;ve been able to keep at it on the Petri nets. Fingers crossed it continues that way because I think they&amp;#39;ll be key to getting some new doors open.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../petri_nets/logs.html"&gt;Petri nets logs&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And the cherry on top: all the while I feel bad for putting other things to the side (in no particular order):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;OSM editing&lt;/li&gt;&lt;li&gt;ARM64 Salmonella machine for CHICKEN&lt;/li&gt;&lt;li&gt;alist-let&lt;/li&gt;&lt;li&gt;save-for-later (a project I really would like to get done but feels daunting)&lt;/li&gt;&lt;li&gt;Books I still haven&amp;#39;t finished&lt;/li&gt;&lt;li&gt;Books I still haven&amp;#39;t started&lt;/li&gt;&lt;li&gt;Learning some basic survival skills&lt;/li&gt;&lt;li&gt;Topics I still haven&amp;#39;t read about&lt;/li&gt;&lt;li&gt;(Natural) languages: haven&amp;#39;t practiced my Japanese in a long while and I&amp;#39;ve stopped the Language Transfer Greek course at least 3 times now&lt;/li&gt;&lt;li&gt;(Programming) languages: Erlang, Elixir, Rust, Go, Common Lisp, Idris, FORTH, ...&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The list could go on and on for a really long time. I have literally hundreds of tabs open on Firefox of things that I at some point wanted to read but didn&amp;#39;t have the time at the time. To put it in scale: I use one of those sidetabs plugins; the scrollbar is about the size of a tab; one screenful of tabs is 29 tabs; so I have roughly 29²=841 open tabs.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="zettelkasten_utility.html"&gt;As I&amp;#39;ve said before, I may be a hoarder...&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;(BTW ew0k, in case you read this, some of the links in those pages seem to be broken)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/re-brain_fart.gmi</id>
    <published>2022-08-21T00:00:00Z</published>
    <title type="text">RE: Brain Fart</title>
    <updated>2022-08-21T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/re-brain_fart.html" rel="alternate" type="text/html" hreflang="en" title="RE: Brain Fart" />
    <link href="gemini://siiky.srht.site/kB45oC/re-brain_fart.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Brain Fart" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;gemini:// to Gemini Portal&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/21&lt;br&gt;&lt;/br&gt;2022/08/21&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I just modified my gmi-&amp;gt;md script to rewrite gemini:// links to the Gemini Portal. With only 8 new (readable) lines the HTTPS/HTML version of the capsule became that much user friendlier. A handful of links are now broken in the process (gemini://localhost links from the gemini-ipfs-gateway) but no problem, they weren&amp;#39;t valid anyway.&lt;/p&gt;&lt;p&gt;Pretty happy with the results and with how easy it was. Good thing Gemtext is so simple.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the diff:&lt;/p&gt;&lt;pre&gt;--- a/gmi2md.scm
+++ b/gmi2md.scm
@@ -4,15 +4,30 @@
   (chicken io)
   (chicken pathname)
   (chicken process-context)
+  (srfi 13)
   (srfi 197)
   gmi)

 (define-constant source-extensions &amp;#39;(&amp;quot;gmi&amp;quot; &amp;quot;md&amp;quot; &amp;quot;org&amp;quot;))
 (define-constant image-extensions &amp;#39;(&amp;quot;svg&amp;quot; &amp;quot;png&amp;quot; &amp;quot;jpg&amp;quot; &amp;quot;jpeg&amp;quot; &amp;quot;webp&amp;quot;))
+(define-constant gemini:// &amp;quot;gemini://&amp;quot;)

 (define ((? p? f g) x) ((if (p? x) f g) x))
 (define phi (cute ? &amp;lt;&amp;gt; &amp;lt;&amp;gt; identity))

+(define (gemini-link? l)
+  (and (gmi:link? l)
+       (string-prefix? gemini:// (gmi:link:uri l))))
+
+
+(define (gemini-&amp;gt;portal l)
+  (gmi:link (chain (gmi:link:uri l)
+                   (substring/shared _ (string-length gemini://))
+                   (string-append &amp;quot;https://portal.mozz.us/gemini/&amp;quot; _))
+            ((phi (o not string-null?)
+                  (cute string-append &amp;quot;(Gemini Portal) &amp;quot; &amp;lt;&amp;gt;))
+             (gmi:link:text l))))
+

 (define ((convert? gemini-root) l)
   (and (gmi:link? l)
@@ -98,11 +113,14 @@
        &amp;quot;&amp;quot;))
     ))

+(define (rewrite-links gemini-root)
+  (o (phi gemini-link? gemini-&amp;gt;portal)
+     (phi (convert? gemini-root) extension/gmi-&amp;gt;html)))

 (define (main args)
   (let ((gemini-root (make-absolute-pathname (current-directory) (car args))))
     (chain (gmi:read)
-           (map (phi (convert? gemini-root) extension/gmi-&amp;gt;html) _)
+           (map (rewrite-links gemini-root) _)
            (group-links _)
            (map grouped-gmi-element-&amp;gt;md-element _)
            (concatenate _)
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us"&gt;Gemini Portal&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../projects/gemini-ipfs-gateway.html"&gt;Gemini IPFS gateway&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../projects/gemtext.html"&gt;Scheme Gemtext Reader&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/meta/portal.gmi</id>
    <published>2022-08-21T00:00:00Z</published>
    <title type="text">gemini:// to Gemini Portal</title>
    <updated>2022-08-21T00:00:00Z</updated>
    <link href="https://siiky.srht.site/meta/portal.html" rel="alternate" type="text/html" hreflang="en" title="gemini:// to Gemini Portal" />
    <link href="gemini://siiky.srht.site/meta/portal.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="gemini:// to Gemini Portal" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Log #006&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/19&lt;br&gt;&lt;/br&gt;2022/08/19&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Following the call with Statebox from last week I sent an email with some questions. One of them was if/how they&amp;#39;re thinking of (formally &amp;amp; technically) dealing with &amp;quot;OR transitions&amp;quot;.&lt;/p&gt;&lt;p&gt;I first read about &amp;quot;OR transitions&amp;quot; in the paper &amp;quot;The Application of Petri Nets to Workflow Management&amp;quot; (#004; &amp;quot;conditional routing&amp;quot;). In more detail (including the places between transitions), an &amp;quot;OR transition&amp;quot; is a transition that produces tokens to only one of its output places. I think this is useful to model computations that may fail (e.g. non-total functions) or that produce values from distinct subsets (&amp;quot;good&amp;quot;/&amp;quot;bad&amp;quot;). For example: subtracting in the naturals; dividing; making a web request (HTTP 4xx/5xx, timeouts, ...); determining if a value satisfies a property or not (x &amp;gt;= 42); ...&lt;/p&gt;&lt;p&gt;In the end, OR transitions aren&amp;#39;t necessary -- we&amp;#39;re used to doing these things in code already. It may not even make sense or be worth the effort sometimes to model the alternatives, but there are certainly cases where it would be useful. I talked about it with my TL and we got a workaround, like a boilerplate pattern.&lt;/p&gt;&lt;p&gt;Some names: let&amp;#39;s say the OR transition is called R, the &amp;quot;good case&amp;quot; place &amp;amp; transition are result &amp;amp; T, and the &amp;quot;bad case&amp;quot; are error &amp;amp; C. T and C produce a token in f, which is to be consumed by a single transition F.&lt;/p&gt;&lt;img src="example_or.svg" alt="Example (SVG)"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="example_or.png" alt="Example (PNG)"&gt;&lt;/img&gt;&lt;p&gt;First, R must be modified to produce an Either Error Result token, duplicated in each of the output places (result &amp;amp; error). The good and bad places remain the same. T and C must be modified to produce a token in a single (common) place (let&amp;#39;s call it m, for middleman), and their types must change from:&lt;/p&gt;&lt;pre&gt;T :: Result -&amp;gt; Result&amp;#39;
C :: Error -&amp;gt; Error&amp;#39;
&lt;/pre&gt;&lt;p&gt;To:&lt;/p&gt;&lt;pre&gt;T :: Either Error Result -&amp;gt; Maybe (Either Error Result)
C :: Either Error Result -&amp;gt; Maybe (Either Error&amp;#39; Result&amp;#39;)
&lt;/pre&gt;&lt;p&gt;T and C must do nothing (i.e. return Nothing) for the cases they aren&amp;#39;t supposed to handle. So T should return Nothing if the value is an Error, and C should return Nothing if the value is a Result. In the case they&amp;#39;re supposed to handle they work as before these boilerplate changes, except they must rewrap it in the Either and in a Just (more details in code shortly).&lt;/p&gt;&lt;p&gt;Finally, an extra transition (let&amp;#39;s call it M, for merge) must be added with m as its input place of multiplicity 2 (the number of the output places of R). M should filter out the Nothings, pick the only Just, and produce it (unwrapped) in f. In theory, F doesn&amp;#39;t need to know about this dance.&lt;/p&gt;&lt;img src="example_or_em.svg" alt="Example using this pattern (SVG)"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="example_or_em.png" alt="Example using this pattern (PNG)"&gt;&lt;/img&gt;&lt;p&gt;Generally, the pattern goes like this:&lt;/p&gt;&lt;img src="general_or.svg" alt="Generalized pattern (SVG)"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="general_or.png" alt="Generalized pattern (PNG)"&gt;&lt;/img&gt;&lt;p&gt;Algebraically, in pseudo-Haskell (note on notation afterwards):&lt;/p&gt;&lt;pre&gt;R : () -&amp;gt; (A1 + A2 + ... + An)^n
ak : (A1 + A2 + ... + An)
T&amp;#39;k : (A1 + A2 + ... + An) -&amp;gt; Maybe (A&amp;#39;1 + A&amp;#39;2 + ... + A&amp;#39;n)
M : Maybe (A&amp;#39;1 + A&amp;#39;2 + ... + A&amp;#39;n)^n -&amp;gt; ()

unSingle [a] = a
M = fromJust . unSingle . filter isJust

N = const Nothing
J = Just

Tk : Ak -&amp;gt; A&amp;#39;k
hk = J . ik . Tk
T&amp;#39;k = [N, N, ..., hk, ..., N, N]
&lt;/pre&gt;&lt;p&gt;(NOTE: The A + B notation is coproduct of A and B; ik is coproduct injection; and [f, g, ...] is not the usual list notation but the coproduct &amp;quot;either&amp;quot;, e.g. [f, g] (i1 x) = f x; [f, g] (i2 x) = g x)&lt;/p&gt;&lt;p&gt;For the simpler success/failure case, if R produces tokens of type Either Error Result:&lt;/p&gt;&lt;pre&gt;handleResult&amp;#39; = [J . Right . handleResult, N]
handleError&amp;#39;  = [N,                        J . Left . handleError]
&lt;/pre&gt;&lt;p&gt;And thus I will end this log. Let&amp;#39;s see what Statebox replies.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="log004.html"&gt;#004&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="logs.html"&gt;Logs index&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/log006.gmi</id>
    <published>2022-08-19T00:00:00Z</published>
    <title type="text">Petri Nets Log #006</title>
    <updated>2022-08-19T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/log006.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Log #006" />
    <link href="gemini://siiky.srht.site/petri_nets/log006.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Log #006" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Reclog&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/17&lt;br&gt;&lt;/br&gt;2022/08/17&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Sometimes I read posts that I find interesting and that I would like to share with others but that I don&amp;#39;t have anything particularly good to say about. Following a recent post introducing Re:logs, I just had the idea of starting a &amp;quot;recommendations log&amp;quot;.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/warp.geminispace.club/~freezr/gemlog/2022-08-04-relog.gmi"&gt;Introducing the Re:log concept&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../reclog.html"&gt;Reclog&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/meta/reclog.gmi</id>
    <published>2022-08-17T00:00:00Z</published>
    <title type="text">Reclog</title>
    <updated>2022-08-17T00:00:00Z</updated>
    <link href="https://siiky.srht.site/meta/reclog.html" rel="alternate" type="text/html" hreflang="en" title="Reclog" />
    <link href="gemini://siiky.srht.site/meta/reclog.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Reclog" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Log #005&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/15&lt;br&gt;&lt;/br&gt;2022/08/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I had a call with Statebox last week! \o/ Unfortunately one of the main devs couldn&amp;#39;t attend so there was no technical discussion... But it was good to get a point of contact (now I have &amp;quot;permission&amp;quot; to ask them questions), and they gave us accounts to use the platform they&amp;#39;re working on. It looks really neat, but I still haven&amp;#39;t gotten around to try it out for real.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://statebox.tv/act2022/tutorial"&gt;To get an idea check out Statebox TV&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;If I understood correctly they still don&amp;#39;t have an actual programming language for people to use. But several people can work on the same document simultaneously like in Overleaf, CoCalc, Google Colab, Google Docs, &amp;amp;c.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="logs.html"&gt;Logs index&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/log005.gmi</id>
    <published>2022-08-15T00:00:00Z</published>
    <title type="text">Petri Nets Log #005</title>
    <updated>2022-08-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/log005.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Log #005" />
    <link href="gemini://siiky.srht.site/petri_nets/log005.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Log #005" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Zettelkasten Utility&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/10&lt;br&gt;&lt;/br&gt;2022/08/11&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I started almost a year ago (damn!) using Org Roam to finally try and organize my notes and random things I write. I heard about zettelkasten I don&amp;#39;t even remember whence anymore, but it stuck with me. I spent a couple of weeks learning more about it, searching for (software) systems, &amp;amp;c, until I finally settled on Org Roam. As a Vim user this was a very... interesting experience! But let&amp;#39;s leave that for another day.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/blog.schmidhuberj.de/2022/08/07/when-does-a-zettelkasten-become-useful"&gt;When does a Zettelkasten become useful?&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Here, my notes are basically a structure-note for every big topic linking to structure-notes of every sub-topic linking to the actual information that sometimes links back to already learned information, but not from other subjects. The problem here is, that this is easily converted to a linear note structure, (...)&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;To basically summarize what I (believe) am doing differently in my Zettelkasten, I emphasize on collecting the information in a way I understand and is easy to search instead of linking the notes to create new ideas. Maybe the word &amp;quot;wiki&amp;quot; might be closer to what I am doing, but as I was starting off with the idea of creating a Zettelkasten, this word has stuck for now.&lt;/blockquote&gt;&lt;p&gt;After reading both posts, I guess what I&amp;#39;m doing is more like a wiki too. I have a page/file for a topic usually, where I write about it and how it relates to other topics. I tried opening some random notes just now (in Doom: SPC n r a) and like 5 in a row were pretty much useless. Some of these were created during the first few days, when I was kind of filling it up with whatever came to mind, kind of trying things out. Reflecting on how I use it too (more next) in retrospect it makes sense now that opening random notes doesn&amp;#39;t prove too informative or interesting.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/rawtext.club/~mieum/relog/2022-08-08-zettelkasten_utility.gmi"&gt;Zettelkasten Utility&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;So much thought and energy went into organizing and maintaining a sensible structure that it became kind of unwieldy and was ultimately not very flexible.&lt;/blockquote&gt;&lt;p&gt;I sometimes feel this too, especially for larger pages it can become a yak shaving activity -- &amp;quot;would it be better if I laid things out this way or that way?&amp;quot; And whichever way I choose I lose, it&amp;#39;s never the right one, because every time I come back to the page I get that same feeling, that maybe it&amp;#39;s still not just right...&lt;/p&gt;&lt;blockquote&gt;It seems to me that one reason people will tend to impose structure in a zettelkasten-like system is that they are digesting information that is already structured. It seems like it would make sense to replicate that structure---that it would be useful---especially, as Schmiddi suggests, if the point of the lecture you are attending is for students to replicate its contents.&lt;/blockquote&gt;&lt;p&gt;Some of my most comprehensive and useful files are on Petri nets, and they exactly fit the description of this paragraph. I wrote these notes while reading the papers. Sometimes I would pause reading to take note or transcribe something directly on the computer, other times I would take note somewhere (a notebook or the paper itself) and later transcribe to the appropriate file. In general, the material wasn&amp;#39;t adapted very much from the original text.&lt;/p&gt;&lt;p&gt;mieum clearly knows their zettelkasten shit better than I do. After reading their post it became apparent to me that my &amp;quot;zettelkasten&amp;quot; isn&amp;#39;t that great quality. Even so! Not all is lost! I&amp;#39;m using Org mode after all. This took me a long while to get familiar with but damn, all the praise people throw at it is well deserved.&lt;/p&gt;&lt;p&gt;I use it for pretty much everything I want to document for myself now. Pages I want to read/write about, books/videos/movies/series I want to read/watch, events with notes available right there, &amp;amp;c, &amp;amp;c. Everything that isn&amp;#39;t in this capsule, or paper notebooks that I&amp;#39;ll never pick up again, is in there. I have a significant collection of Org Roam files now. When I want to search for something I can, and I usually find what I&amp;#39;m looking for. Things are tagged liberally (I had this insight early on luckily). I have URLs to external sources, associated files (PDFs, images, audio files, &amp;amp;c), my own notes, quotes, code sometimes, ... Everything!&lt;/p&gt;&lt;p&gt;I may be a hoarder, but I think this is great! It&amp;#39;s a lot better than my previous approach of writing random things in whichever random paper notebook is closest (I have 4 or 5 of these spread all over the place) and never getting around to re-read and transcribe it into some more organized notes system.&lt;/p&gt;&lt;p&gt;(BTW I have 714 files as of now, the first created on 2021/08/28 22:42:02 and the latest on 2022/08/09 17:13:50 according to their filenames)&lt;/p&gt;&lt;blockquote&gt;The other reason I find is that people don&amp;#39;t fully trust their tools, or their tools are cumbersome enough to inhibit a freer interaction with the zettelkasten, so it feels like structure is necessary to access or retrieve all the information it contains.&lt;/blockquote&gt;&lt;p&gt;This is an interesting thought. Yeah, it may be that I don&amp;#39;t trust the zettelkasten system and that leads me to try and organize monolithic notes from the start. But if that&amp;#39;s the case (me not trusting it) I think it&amp;#39;s more likely because I haven&amp;#39;t used it correctly, rather than because I don&amp;#39;t believe it works. I&amp;#39;ve thought about this in the past, even before and after settling on Org Roam: maybe I&amp;#39;m losing something for trying to use the zettelkasten system in a computer. It&amp;#39;s so easy to put anything in (SPC n r f); I&amp;#39;m not forced to think about what I&amp;#39;m putting in; and I can always edit it later!&lt;/p&gt;&lt;p&gt;I wonder if I should start one with pen&amp;amp;paper.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../petri_nets/logs.html"&gt;Petri Nets Logs&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/zettelkasten_utility.gmi</id>
    <published>2022-08-11T00:00:00Z</published>
    <title type="text">RE: Zettelkasten Utility</title>
    <updated>2022-08-10T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/zettelkasten_utility.html" rel="alternate" type="text/html" hreflang="en" title="RE: Zettelkasten Utility" />
    <link href="gemini://siiky.srht.site/kB45oC/zettelkasten_utility.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Zettelkasten Utility" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Gemini IPFS gateway&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/07&lt;br&gt;&lt;/br&gt;2022/08/08&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been slowly working on a read-only Gemini IPFS gateway -- or is it an IPFS Gemini gateway? I still don&amp;#39;t know... It&amp;#39;s a Gemini server you can use to access the IPFS network, like the Kubo&amp;#39;s HTTP gateway.&lt;/p&gt;&lt;p&gt;There&amp;#39;s a similar project by hsanjuan (who is one of the IPFS devs I think), but for one I didn&amp;#39;t want to mess with Go, and for another it starts up a new lite IPFS node instead of using the local node -- why not? It&amp;#39;s already running anyway.&lt;/p&gt;&lt;p&gt;There were lots of tiny details here and there that made things go wrong, but I think I got the Good Case a&amp;#39;workin&amp;#39;! I can browse my own capsule through it just fine. I don&amp;#39;t have anything else to try for now, and my plans for the gateway are still vague, but hopefully this&amp;#39;ll be interesting enough to people into both Gemini and IPFS that they give it a go.&lt;/p&gt;&lt;p&gt;It supports both IPFS and IPNS, but no CIDv0s (because it uses only the &amp;quot;subdomain trick&amp;quot;; see Usage). It&amp;#39;s based on Kooda&amp;#39;s geminid (with small changes from me), ipfs.scm, and ttltbl.scm (something I hacked together tonight).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/rawtext.club/~sloum/geminilist/005449.gmi"&gt;hsanjuan, &amp;quot;[ANN] Gemini-IPFS gateway&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.upyum.com/cgit.cgi/geminid"&gt;Kooda, geminid&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="ipfs.html"&gt;ipfs.scm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/geminid/tree/experiments"&gt;geminid (IPFS branch)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/ttltbl.scm"&gt;ttltbl.scm&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Usage&lt;/h2&gt;&lt;p&gt;How do you actually use it? The URLs are similar to those you&amp;#39;d see with the HTTP gateway.&lt;/p&gt;&lt;p&gt;Pick a CID (this capsule&amp;#39;s for example), and go here:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../ipfs.txt"&gt;Capsule CID&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/cid.ipfs.localhost/"&gt;https://portal.mozz.us/gemini/cid.ipfs.localhost/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;There&amp;#39;s also an example page:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/bafkreie5eda6jkhtxi5c3pcpaqqlwl2xfkgasqk555vtljcdrfy3uyio4a.ipfs.localhost/"&gt;https://portal.mozz.us/gemini/bafkreie5eda6jkhtxi5c3pcpaqqlwl2xfkgasqk555vtljcdrfy3uyio4a.ipfs.localhost/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../hello.html"&gt;../hello.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;As long as links are relative (link/to/some/../file.txt) or absolute but without scheme://hostname/ (/link/to/file.txt), everything just works inside the IPFS network.&lt;/p&gt;&lt;p&gt;Note that the server doesn&amp;#39;t list directories -- a little bit of intentionally and a little bit out of laziness. When you try to access a directory you&amp;#39;re redirected to /index.gmi (this is a Gemini server after all). If there&amp;#39;s no index.gmi then it borks. But it doesn&amp;#39;t work only with Gemini capsules either, ofc! It should serve any files the HTTP gateway would too.&lt;/p&gt;&lt;p&gt;To access IPNS, pick a CID or name, and go here:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/cid.ipns.localhost/"&gt;https://portal.mozz.us/gemini/cid.ipns.localhost/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/name.ipns.localhost/"&gt;https://portal.mozz.us/gemini/name.ipns.localhost/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;For example the IPFS site (apparently they changed domains from .io to .tech?):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/ipfs.io.ipns.localhost/index.html"&gt;https://portal.mozz.us/gemini/ipfs.io.ipns.localhost/index.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/ipfs.tech.ipns.localhost/index.html"&gt;https://portal.mozz.us/gemini/ipfs.tech.ipns.localhost/index.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Your Gemini client won&amp;#39;t render the HTML page probably, but you&amp;#39;ll get the content!&lt;/p&gt;&lt;p&gt;For some reason Lagrange doesn&amp;#39;t like one of these two, doesn&amp;#39;t even send a request to the gateway, instead saying &amp;quot;failed to look up hostname&amp;quot;. The other works fine, I have no idea why, but it really didn&amp;#39;t look like a problem with the gateway.&lt;/p&gt;&lt;h2&gt;Setup&lt;/h2&gt;&lt;p&gt;Install and run the Kubo node.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://ipfs.tech/#install"&gt;https://ipfs.tech/#install&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Install CHICKEN 5.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://code.call-cc.org"&gt;https://code.call-cc.org&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Install the ipfs egg:&lt;/p&gt;&lt;pre&gt;chicken-install ipfs
&lt;/pre&gt;&lt;p&gt;Install ttltbl:&lt;/p&gt;&lt;pre&gt;git clone --depth=1 https://git.sr.ht/~siiky/ttltbl.scm
cd ttltbl.scm
chicken-install
cd ..
&lt;/pre&gt;&lt;p&gt;Install the WIP IPFS branch of my geminid fork:&lt;/p&gt;&lt;pre&gt;git clone --depth=1 --branch experiments https://git.sr.ht/~siiky/geminid
cd geminid
chicken-install
&lt;/pre&gt;&lt;p&gt;Generate a cert (suggestions welcome, I don&amp;#39;t understand any of this shit):&lt;/p&gt;&lt;pre&gt;openssl req -new -subj &amp;#39;/CN=localhost&amp;#39; -addext &amp;#39;subjectAltName = DNS:*.localhost&amp;#39; -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -days 1825 -nodes -out wild-cert.pem -keyout wild-key.pem
&lt;/pre&gt;&lt;p&gt;Run the gateway:&lt;/p&gt;&lt;pre&gt;csi -s ipfs-server.scm
&lt;/pre&gt;&lt;h2&gt;Architecture&lt;/h2&gt;&lt;p&gt;Not much to say about it. The gateway accepts Gemini requests, interacts with the Kubo node through its RPC API (resolve IPNS CIDs/names if necessary, ask the type of a UnixFS object, and read the actual content), and sends back results.&lt;/p&gt;&lt;p&gt;The post so far described how the gateway works with the ipfs-request-handler, which dynamically accepts an IPFS/IPNS CID/Name and serves content the user asks for. There&amp;#39;s also constant-scheme/root-cid which, when given the scheme (ipfs/ipns) and CID/Name, works like any other Gemini server, serving content from that CID/Name tree only! This latter would be a pretty cool way to publish content. Similar to SourceHut pages but instead of sending a tarball with the content you send the CID/Name of the content.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/projects/gemini-ipfs-gateway.gmi</id>
    <published>2022-08-08T00:00:00Z</published>
    <title type="text">Gemini IPFS gateway</title>
    <updated>2022-08-07T00:00:00Z</updated>
    <link href="https://siiky.srht.site/projects/gemini-ipfs-gateway.html" rel="alternate" type="text/html" hreflang="en" title="Gemini IPFS gateway" />
    <link href="gemini://siiky.srht.site/projects/gemini-ipfs-gateway.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Gemini IPFS gateway" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Naturally Ungood&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/07&lt;br&gt;&lt;/br&gt;2022/08/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I had this thought like 2 days ago, that people aren&amp;#39;t naturally ungood and selfish, but instead do what seems to them to be the best way to minimize their own misery. Obviously it doesn&amp;#39;t lead to the globally optimal results (both intuitively and empirically), but what is one to do? What is one to do when everything around is so out of one&amp;#39;s control and in general so misery inducing?&lt;/p&gt;&lt;p&gt;I don&amp;#39;t know why it popped into my head while in the shower, but the thought was surely in part inspired by the recent &amp;quot;Human Un-nature&amp;quot;, and an interview with Aaron Swartz where he mentioned the book &amp;quot;Moral Mazes&amp;quot;. If memory serves me right (it&amp;#39;s been several months) his own description of the book was something like, the decisions people make in companies are rational and even morally good decisions, possibly the best, but somehow the results are what we see all around us. It&amp;#39;s in my reading list.&lt;/p&gt;&lt;p&gt;I think it&amp;#39;ll help me internally. I fail as much as anybody. It&amp;#39;ll help me tolerate the actions of others but also my own, hopefully.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/beyondneolithic.life/posts/human_un-nature.gmi"&gt;Beyond Neolithic Life, &amp;quot;Human Un-nature&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/degrowther.smol.pub/20220804_human_nature"&gt;degrowther, &amp;quot;Re: Human Un-nature&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://invidious.snopyta.org/watch?v=JUt5gjqNI1w"&gt;Aaron Swartz, &amp;quot;We Can Change The World&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Moral_Mazes"&gt;Robert Jackall, &amp;quot;Moral Mazes&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Aaron_Swartz"&gt;Aaron Swartz&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/psychology/naturally-ungood.gmi</id>
    <published>2022-08-07T00:00:00Z</published>
    <title type="text">Naturally Ungood</title>
    <updated>2022-08-07T00:00:00Z</updated>
    <link href="https://siiky.srht.site/psychology/naturally-ungood.html" rel="alternate" type="text/html" hreflang="en" title="Naturally Ungood" />
    <link href="gemini://siiky.srht.site/psychology/naturally-ungood.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Naturally Ungood" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Custom Gemini Handlers&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/06&lt;br&gt;&lt;/br&gt;2022/08/06&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Just learned how to setup custom handlers for the gemini scheme in Firefox and XDG.&lt;/p&gt;&lt;p&gt;For Firefox, go to about:config, create a new boolean variable named network.protocol-handler.expose.gemini and set it to false. Open a gemini URL, choose your Gemini client and you&amp;#39;re good to go.&lt;/p&gt;&lt;p&gt;For XDG, create a desktop file in ~/.local/share/applications/ (or your equivalent) with the following content, replacing Lagrange with your client of choice:&lt;/p&gt;&lt;pre&gt;[Desktop Entry]
Type=Application
Name=Lagrange Gemini Client
Exec=lagrange %u
StartupNotify=false
MimeType=x-scheme-handler/gemini;
&lt;/pre&gt;&lt;p&gt;And you&amp;#39;re good to go, opening gemini URLs with xdg-open or clicking things should work now. It seemed to take effect immediately here.&lt;/p&gt;&lt;p&gt;Reference:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/22729686/set-custom-protocol-handler-in-firefox"&gt;https://stackoverflow.com/questions/22729686/set-custom-protocol-handler-in-firefox&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://kb.mozillazine.org/Register_protocol#Firefox_3.5_and_above"&gt;https://kb.mozillazine.org/Register_protocol#Firefox_3.5_and_above&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler"&gt;https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/gemini-handlers.gmi</id>
    <published>2022-08-06T00:00:00Z</published>
    <title type="text">Custom Gemini Handlers</title>
    <updated>2022-08-06T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/gemini-handlers.html" rel="alternate" type="text/html" hreflang="en" title="Custom Gemini Handlers" />
    <link href="gemini://siiky.srht.site/kB45oC/gemini-handlers.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Custom Gemini Handlers" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Log #004&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/04&lt;br&gt;&lt;/br&gt;2022/08/04&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Started reading &amp;quot;The Application of Petri Nets to Workflow Management&amp;quot;, by W.M.P. van der Aalst last Friday and finished today. You need paid access to download the PDF but I can send it to you in case you&amp;#39;re interested, just contact me.&lt;/p&gt;&lt;p&gt;As the title suggests the paper is not about programming but workflow management. Specifically, it&amp;#39;s about how the processes executed in a company&amp;#39;s context can be modeled by Petri nets, and reasons why that is a good thing. A recurrent example was that of an insurance/complaints company, where customers may submit complaints and the company processes them to decide whether the customer is right or not.&lt;/p&gt;&lt;p&gt;The definition wasn&amp;#39;t too different from the Statebox one (see log #001), but lots of interesting little things are discussed in the paper that can also be applied to programming, and specifically a Petri nets programming language implementation (that I&amp;#39;m gonna call &amp;quot;execution environment&amp;quot;).&lt;/p&gt;&lt;h2&gt;Resources&lt;/h2&gt;&lt;p&gt;Resources are the entities that execute an enabled transition. In the context of the insurance company, a transition may be &amp;quot;reviewing a complaint form&amp;quot;, and the person that does the review is the resource (don&amp;#39;t squint too hard on the terminology). In the context of programming, a transition is a piece of code, and the resource that executes it may be a number of different things! In a strictly sequential execution environment, the resource is some CPU time of the process; in a parallel execution environment it could be some CPU time of an OS thread; but it could also be a whole green thread (read: Erlang (BEAM) process).&lt;/p&gt;&lt;p&gt;In the last case, I can think of at least two alternatives (using BEAM to make things more concrete): either there is a specific process for each transition, which executes only that specific transition when it is enabled; or a process is spawned each time a transition is fired, letting even the same transition execute concurrently (as long as both can fire, of course; e.g., they fire sequentially but execute in parallel).&lt;/p&gt;&lt;p&gt;Thus, an execution environment must either make decisions about the execution semantics and force these semantics down the throats of the programmers; or it must give the programmers the tools to choose the semantics they think fit their problems best.&lt;/p&gt;&lt;p&gt;The former is basically the case for ALL programming languages, which I can easily understand. It&amp;#39;s difficult enough to write a good implementation let alone several good implementations that may be used based on configurations or whatnot, possibly changed at runtime.&lt;/p&gt;&lt;h2&gt;Routing&lt;/h2&gt;&lt;p&gt;Something that isn&amp;#39;t mentioned in the Statebox monograph is different &amp;quot;routing&amp;quot; types. The WF-nets paper mentions four distinct types but I believe there are technically only two of them.&lt;/p&gt;&lt;p&gt;The four types are (a) sequential, (b) parallel, (c) conditional, and (d) iterative. Next follow my own representations of Fig. 3, as close to the real ones as I can (they don&amp;#39;t indeed have places represented, only transitions).&lt;/p&gt;&lt;img src="seq_routing.png" alt="Sequential routing"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="par_routing.png" alt="Parallel routing"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="cond_routing.png" alt="Conditional routing"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="iter_routing.png" alt="Iterative routing"&gt;&lt;/img&gt;&lt;p&gt;There&amp;#39;s nothing to say about sequential routing. There&amp;#39;s nothing much to say about parallel routing (the output of a transition is fed into two other transitions). And there&amp;#39;s nothing to say about iterative routing either -- the image didn&amp;#39;t come so well but notice that the result of B is fed back into B. All three of these are essentially the parallel routing, and there&amp;#39;s nothing in the Statebox definition preventing any of these cases.&lt;/p&gt;&lt;p&gt;Conditional routing is the new guy here. In conditional routing either B or C fire after A firing, but not both! Unless I completely missed it in the Statebox monograph, there&amp;#39;s no concept of conditionally sending tokens to this or that place. All transitions must always put their multiplicity of tokens in the destination places. In retrospect, I remember seeing some example model (the smart contract gambling one) where a transition could either succeed or fail, which had two &amp;quot;success&amp;quot; and &amp;quot;failure&amp;quot; transitions after it, and wondering why that choice wasn&amp;#39;t represented. See the &amp;quot;Fail&amp;quot; and &amp;quot;Pass&amp;quot; coming after &amp;quot;OracleCallback&amp;quot; in the following image.&lt;/p&gt;&lt;img src="gambling.png" alt="gambling.png"&gt;&lt;/img&gt;&lt;p&gt;Now I&amp;#39;m wondering how/if Statebox plan to tackle this.&lt;/p&gt;&lt;p&gt;Additionally two different kinds of conditional routing are presented in the WF-nets paper, but I haven&amp;#39;t transcribed and compiled all of my notes yet so this is it for now.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://doi.org/10.1142/S0218126698000043"&gt;https://doi.org/10.1142/S0218126698000043&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://blog.statebox.org/behavioral-programming-with-petri-nets-%C3%A0-la-functional-way-smart-contracts-96d801cef8cc"&gt;&amp;quot;Behavioral Programming with Petri Nets à la Functional Way -- Smart Contracts&amp;quot;, Fabrizio Romano Genovese&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="log001.html"&gt;Log #001&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="logs.html"&gt;Logs index&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/log004.gmi</id>
    <published>2022-08-04T00:00:00Z</published>
    <title type="text">Petri Nets Log #004</title>
    <updated>2022-08-04T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/log004.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Log #004" />
    <link href="gemini://siiky.srht.site/petri_nets/log004.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Log #004" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Post dates&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/06/23&lt;br&gt;&lt;/br&gt;2022/08/03&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Until now, I&amp;#39;d never &amp;quot;standardized&amp;quot; what the dates on my site mean, even though I&amp;#39;ve been consistent with them everywhere (not much to screw up anyway): both on the index and the posts themselves, the dates are always when I started writing the post (or created the file, at least). So there are unfinished (unstarted, even) posts that, were I to finish and publish, would get the date I first created them on the index. This isn&amp;#39;t great. And something similarly ungreat happens with posts that I take a long time to write (actually actively writing), sometimes across a few days of a week -- the post has a certain date, but in reality it&amp;#39;s published only some days later -- usually leading to interleaving of posts: start post A, start post B, publish post B, publish post A.&lt;/p&gt;&lt;p&gt;I started thinking about this because I&amp;#39;ve been lurking Geminispace for a bit now, and liking it a lot! So I&amp;#39;m planning on writing in Gemtext from now on, instead of Markdown or Org, and convert my site to a Gemini capsule (still making HTML available through HTTPS for anyone not with it &amp;lt;insert Dr. Evil reference here&amp;gt;). Turning the index, which is one of the most complex parts of my site, into a simple Gemtext page, is just... hmhmhm! And, other than the index being the front-page, serving at the same time as the &amp;quot;feed&amp;quot; that people can subscribe to is also just... hmhmhm!&lt;/p&gt;&lt;p&gt;But with that comes a problem, because I update posts, some more than others, some days more than others, but, posts don&amp;#39;t necessarily remain as they were first published. Because of it, and of the interleaving I mentioned above, I&amp;#39;ll start using a new convention -- slightly harder to maintain, but if I don&amp;#39;t screw up should be worth it:&lt;/p&gt;&lt;p&gt;Posts themselves will have the date of when I first started writing or first created the file, while the index (feed) will have the date of the last update instead. This way should give no jumps to the past when I publish new posts, and at the same time works as an updates notifier (though I still have to test how clients behave).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/meta/dates.gmi</id>
    <published>2022-08-03T00:00:00Z</published>
    <title type="text">Post dates</title>
    <updated>2022-06-23T00:00:00Z</updated>
    <link href="https://siiky.srht.site/meta/dates.html" rel="alternate" type="text/html" hreflang="en" title="Post dates" />
    <link href="gemini://siiky.srht.site/meta/dates.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Post dates" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;RE: Misadventures with bash shell&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/08/01&lt;br&gt;&lt;/br&gt;2022/08/02&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;As StackSmith prompted:&lt;/p&gt;&lt;blockquote&gt;In the meantime, if you have a few minutes, write about why you love your shell.  I really want to know.&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/gemini.ctrl-c.club/~stack/gemlog/2022-08-01.bash.gmi"&gt;Misadventures with bash shell&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I don&amp;#39;t love it, I even agree with some of the points raised, but after learning it one has to admit: most tasks are damn terse. And I can&amp;#39;t imagine any Lisp-like syntax that could come even close -- BTW it&amp;#39;s been tried at least once, that I know of:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://scsh.net"&gt;Scsh&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Scsh"&gt;Scsh (Wikipedia)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Maybe interesting, maybe not, but here are some of the features I use most often. I never know what&amp;#39;s the right if/then syntax either, so when I want this:&lt;/p&gt;&lt;pre&gt;(when (file-exists? &amp;quot;...&amp;quot;)
  (do-this)
  (and-that))

(unless (file-exists? &amp;quot;...&amp;quot;)
  (do-this)
  (and-that))
&lt;/pre&gt;&lt;p&gt;I write this instead:&lt;/p&gt;&lt;pre&gt;[ -f &amp;quot;...&amp;quot; ] &amp;amp;&amp;amp; (do-this; do-that)

[ -f &amp;quot;...&amp;quot; ] || (do-this; do-that)
&lt;/pre&gt;&lt;p&gt;No more guessing where the hell the bang should go.&lt;/p&gt;&lt;p&gt;Loops all follow the same pattern:&lt;/p&gt;&lt;pre&gt;for/while/until ...; do ...; done
&lt;/pre&gt;&lt;p&gt;You can put the body of the loop in the background too, but obviously be careful not to forkbomb yourself.&lt;/p&gt;&lt;pre&gt;for/while/until ...; do ... &amp;amp; done
&lt;/pre&gt;&lt;p&gt;Something I do often to start multiple terminals in the same Nix shell:&lt;/p&gt;&lt;pre&gt;exec nix-shell --run &amp;#39;sh -c &amp;quot;for i in {1..4}; do terminal &amp;amp; done&amp;quot;&amp;#39; &amp;amp;
&lt;/pre&gt;&lt;p&gt;The `exec ... &amp;amp;` makes the nix-shell and child processes &amp;quot;independent&amp;quot;, so that I can continue to use the current terminal and/or close it without affecting the others. `for i in {1..4}` is equivalent to `for i in 1 2 3 4`. I think this syntax is relatively &amp;quot;new&amp;quot;; if you don&amp;#39;t have it, you can use seq instead:&lt;/p&gt;&lt;pre&gt;for i in `seq 1 4`; do ...; done
&lt;/pre&gt;&lt;p&gt;Doing something for each line of input:&lt;/p&gt;&lt;pre&gt;some-command | while read line; do ...; done
&lt;/pre&gt;&lt;p&gt;read alone is a can of worms. It&amp;#39;s very useful for simple things so worth knowing.&lt;/p&gt;&lt;p&gt;And some of the most important stuff: strings! There are 3 &amp;quot;types&amp;quot;: single quote, double quote, and backtick (plus $(...)). If you&amp;#39;re unsure what type of string you need, go with single quotes because they&amp;#39;re the safest and least surprising. If you need to interpolate values into your string, use double quote strings. If you need the result of a command as a string, use backticks (like the seq above). Backticks can be embedded in other string types.&lt;/p&gt;&lt;pre&gt;test=hello
echo &amp;#39;hello world&amp;#39;         # &amp;quot;hello world&amp;quot;
echo &amp;#39;$test world&amp;#39;         # &amp;quot;$test world&amp;quot;
echo &amp;quot;$test world&amp;quot;         # &amp;quot;hello world&amp;quot;
echo `echo &amp;quot;$test world&amp;quot;`  # &amp;quot;hello world&amp;quot;
echo $(echo &amp;quot;$test world&amp;quot;) # &amp;quot;hello world&amp;quot;
&lt;/pre&gt;&lt;p&gt;(I got some examples wrong as I was writing this haha)&lt;/p&gt;&lt;p&gt;In extreme cases, even though it&amp;#39;s a mess to read, you can take advantage of automatic string concatenation to mix string types.&lt;/p&gt;&lt;pre&gt;echo &amp;#39;a string with a single quote (&amp;#39;&amp;quot;&amp;#39;&amp;quot;&amp;#39;)&amp;#39;
echo &amp;quot;a string with a double quote (&amp;quot;&amp;#39;&amp;quot;&amp;#39;&amp;quot;)&amp;quot;
&lt;/pre&gt;&lt;p&gt;I&amp;#39;ve tried escaping in the past and failed too many times. This has never failed me once.&lt;/p&gt;&lt;p&gt;As a sort of conclusion: for some reason bash is one of the most, if not the most, popular interactive shell. Probably because it&amp;#39;s the default in many Linux distros, especially the biggest ones. The default effect certainly worked with me because I&amp;#39;m still &amp;quot;stuck&amp;quot; with it. But bash isn&amp;#39;t the only one out there, so if you don&amp;#39;t like it, do yourself a favor and try a different one! Some shells I can think of: fish, zsh, ksh, ion (of RedoxOS), csh.&lt;/p&gt;&lt;p&gt;As for me, I&amp;#39;ve read my share of shit-throwing at bash, but it&amp;#39;s been working OK. I don&amp;#39;t need the fancy features offered by fish or zsh. If I tried any new interactive shell, it&amp;#39;d probably by zsh or ion.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/programming/shell.gmi</id>
    <published>2022-08-02T00:00:00Z</published>
    <title type="text">RE: Misadventures with bash shell</title>
    <updated>2022-08-01T00:00:00Z</updated>
    <link href="https://siiky.srht.site/programming/shell.html" rel="alternate" type="text/html" hreflang="en" title="RE: Misadventures with bash shell" />
    <link href="gemini://siiky.srht.site/programming/shell.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="RE: Misadventures with bash shell" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Offline Code Reviews&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/07/30&lt;br&gt;&lt;/br&gt;2022/07/31&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I&amp;#39;m looking for a simple offline code review tool/workflow. I&amp;#39;m used to the GitHub PR workflow, but I&amp;#39;d like to be able to do CRs offline too. Since I&amp;#39;m moving away to SourceHut I want to learn something different, maybe the email workflow. However, two things:&lt;/p&gt;&lt;p&gt;I want to change mail clients (Thunderbird needs too much mousework) but setting up terminal email clients looks like rocket science to me (looking at you (neo)mutt). Aerc was actually REALLY easy to setup! (except for my uni account) But unfortunately it doesn&amp;#39;t work offline. Conclusion: getting contributions by email is OK as long as I don&amp;#39;t need it for anything else.&lt;/p&gt;&lt;p&gt;At work I use GH PRs still. Other than being online, the problem with the GH PR review interface for me is that it&amp;#39;s slow for large PRs on my laptop. Having a tiny screen doesn&amp;#39;t help either. Plus, I already have all of the necessary code on my PC all the time because I add my teammates&amp;#39; forks as remotes.&lt;/p&gt;&lt;p&gt;When someone makes a PR, I should be able to make the code review completely offline without relying on the GH interface. And why should I have to use an interface to review code different from the one I use to program, anyway? On the browser I have some font I&amp;#39;m not used to, syntax highlighting I&amp;#39;m not used to, colors I&amp;#39;m not used to, keybindings (and lack thereof) I&amp;#39;m not used to, ... Some of this is probably partially fixable but... meh, I don&amp;#39;t want to have to muck with yet more browser settings that I have to replicate manually from setup to setup never to get it exactly the same anywhere.&lt;/p&gt;&lt;p&gt;There&amp;#39;s a vim diff mode and a helper alias vimdiff, which is actually pretty good. Vim also recognizes the Git diff format and highlights everything correctly. So using vim to do CRs I think would be pretty dope.&lt;/p&gt;&lt;h2&gt;Email workflow&lt;/h2&gt;&lt;p&gt;An aside on the email workflow: as I understand it, contributors are supposed to send patchsets to some mailing list, and reviewers make the review right there in the email itself? Sending comments and whatnot as replies.&lt;/p&gt;&lt;p&gt;How do people deal with big patchsets? What if you&amp;#39;re reviewing file A that uses some functions from file B but file B is in another email? You jump between emails to check both? That sounds so hurgh but maybe because I&amp;#39;m thinking in Thunderbird terms...&lt;/p&gt;&lt;h2&gt;webrev&lt;/h2&gt;&lt;p&gt;Searched a bit around and found webrev, a script developed and maintained by the illumos project. Downloaded and managed to get it running after some modifications. It needs another script, which_scm, but since I won&amp;#39;t use any VCS other than Git I removed all unnecessary code I could find.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://src.illumos.org/source/xref/illumos-gate/usr/src/tools/scripts/webrev.sh"&gt;webrev (latest by illumos)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://src.illumos.org/source/xref/illumos-gate/usr/src/tools/scripts/which_scm.sh"&gt;which_scm (latest by illumos)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The usage is simple enough though not clearly stated in the help message. It uses ksh which I don&amp;#39;t have installed, but Nix makes this easy. On the directory of the repo you want to review: checkout the branch you want to merge and then you run webrev.&lt;/p&gt;&lt;pre&gt;git checkout fix-bug-123
nix-shell -p ksh --run &amp;#39;webrev -p target-branch&amp;#39;
&lt;/pre&gt;&lt;p&gt;It creates a webrev directory with a bunch of files, one of which is index.html. This page has all the {add,chang,remov}ed files plus, for each: stats (total lines changed, additions, deletions, modified, unchanged); links to cdiff, udiff, sdiff; frames (not sure yet what this is); the before and the after; the patch; and the raw. Pretty neat.&lt;/p&gt;&lt;p&gt;One thing that I didn&amp;#39;t expect but should have: it&amp;#39;s not a plebian  git diff target-branch...fix-bug-1234  (the best I know)! It&amp;#39;s actually the list of new commits created on the fix-bug-123 branch. How it does this I would like to know. Have to read the code some day.&lt;/p&gt;&lt;p&gt;It has a couple of quirks though, like, why the heck does it say that the arguments  -p target-branch  are unused if the result is different when I don&amp;#39;t provide them? And why the heck doesn&amp;#39;t the -? flag present the full help message?&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://src.illumos.org/source/xref/illumos-gate/usr/src/tools/scripts/webrev.sh?r=bbf21555"&gt;webrev@bbf21555&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="webrev.patch"&gt;My Git only patch for webrev@bbf21555&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It&amp;#39;s neat that it creates a self contained set of files to review a specific PR, but it&amp;#39;s still not quite there. :/ First of all, obviously it still uses the browser. And second, there&amp;#39;s no way to mark a file as (un)reviewed, which is something I like from the GH and GitLab interfaces because it relieves me of the burden of wondering if I&amp;#39;ve already reviewed a certain file or not.&lt;/p&gt;&lt;h2&gt;The solution?&lt;/h2&gt;&lt;p&gt;I&amp;#39;m thinking if writing some helper scripts to make this flow easier would be doable or tmw.&lt;/p&gt;&lt;p&gt;I have to learn how webrev gets the list of commits introduced in a certain branch because it&amp;#39;s the most useful starting point. Then, having the state in a file or w.e. is probably the best way to go (with the feature/target branches &amp;amp; (un)reviewed files). Marking files as reviewed, and viewing the diff of a certain file (either with vimdiff or a git-diff in vim) should be easy enough.&lt;/p&gt;&lt;p&gt;Two harder problems to solve: review comments and branch (PR) updates.&lt;/p&gt;&lt;p&gt;How/Where to write and save review comments? Saving the git-diff somewhere and writing the comments there directly is the easiest way maybe, and maybe it&amp;#39;s good enough. I can&amp;#39;t think of any other way right now. AFAIK the email workflow works similarly (but in an email)?&lt;/p&gt;&lt;p&gt;That leaves only the updates problem. How to deal with new commits, rewritten branch history, &amp;amp;c? For this I still don&amp;#39;t have any good ideas. Re-reviewing the whole thing from scratch is not ideal... It should be possible to unmark the reviewed files if they&amp;#39;ve changed between the old and the new branch tips. But I don&amp;#39;t see any automatic way to reuse the old comments. In some cases they&amp;#39;ll certainly be obsolete, but in others they&amp;#39;ll still be valid. Making this step manual could be good enough...&lt;/p&gt;&lt;h2&gt;Conclusion&lt;/h2&gt;&lt;p&gt;I can&amp;#39;t imagine I&amp;#39;m the only one wanting to do code reviews offline. And I can&amp;#39;t imagine nobody before has wanted this either. After searching online almost all suggestions/ideas are complete overkill, like Gerrit, WTH! I just want to compare a bunch of files that I already have on my PC dammit! I shouln&amp;#39;t&amp;#39;ve to set up some full-blown server for this...&lt;/p&gt;&lt;p&gt;Hopefully I&amp;#39;ve missed something so obvious that everyone knows of. If you think that&amp;#39;s the case, dear reader, please! Send me an email!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/programming/ocr.gmi</id>
    <published>2022-07-31T00:00:00Z</published>
    <title type="text">Offline Code Reviews</title>
    <updated>2022-07-30T00:00:00Z</updated>
    <link href="https://siiky.srht.site/programming/ocr.html" rel="alternate" type="text/html" hreflang="en" title="Offline Code Reviews" />
    <link href="gemini://siiky.srht.site/programming/ocr.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Offline Code Reviews" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Flexibility &amp;amp; Relations&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/06/07&lt;br&gt;&lt;/br&gt;2022/07/28&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I recently wrote about how flexibility may be beneficial in your course of life.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../philosophy/flexibility-life.html"&gt;Flexibility &amp;amp; Life&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I&amp;#39;ve thought some times in the past how after I present myself in some way, I can no longer present myself some other (conflicting) way in the future to the same person(s). At least not with some friction.&lt;/p&gt;&lt;p&gt;In this post I&amp;#39;d like to write about that, yet another aspect of life where flexibility can be useful (and possibly a hindrance!): human relations.&lt;/p&gt;&lt;p&gt;I first came across a similar idea (maybe when I first thought about this, in fact) reading one of Descartes&amp;#39; books -- either &amp;quot;Discourse on the Method&amp;quot; or &amp;quot;Selections from the Principles of Philosophy&amp;quot;, I can&amp;#39;t remember. In that book he wrote that there were works he didn&amp;#39;t want to publish during his lifetime.¹ &amp;quot;Wut? why?&amp;quot; He explains that his works were often controversial due to the nature of their content -- religion and God were particularly controversial² -- and by not publishing them he could continue with his life and work without any impediments (read: being imprisoned and/or killed).&lt;/p&gt;&lt;p&gt;If you tell a friend one day that you like a nice and hot churro (or fartura, the inferior alternative), you can&amp;#39;t then tell them the next day that you don&amp;#39;t like it, right? It doesn&amp;#39;t make sense! It can look like you lied or are lying now.&lt;/p&gt;&lt;p&gt;Think of knowledge as a (consistent i.e. non-contradictory) set of propositions. From this point of view, acquiring knowledge is performing the set-union of the current propositions with the new. If a person knows that you like churros (P), and learns later that you /don&amp;#39;t/ like churros (¬P), their knowledge becomes inconsistent: { P, ¬P } is inconsistent, because (P ∧ ¬P) is a contradiction!&lt;/p&gt;&lt;p&gt;Of course, people can change their opinions, tastes, and whatnot but it&amp;#39;s a slow process, slow enough not to be flexible, the point of this post and the previous one.&lt;/p&gt;&lt;p&gt;&amp;quot;So what&amp;#39;s it mean?&amp;quot; If you&amp;#39;re of an opinion now that (you think) you&amp;#39;re likely to change in the future, then... maybe you&amp;#39;re better off not sharing it with others right now?&lt;/p&gt;&lt;p&gt;Because, if you change opinion in the future, it&amp;#39;ll take time for people to adjust their knowledge set to your newly changed opinion; people will judge you hard if said opinion is controversial or doesn&amp;#39;t go down their throats well; and, if you change opinion in the future, whatever negative side-effects came of your sharing it were most likely a net loss -- waste of time and energy, at best.&lt;/p&gt;&lt;p&gt;There&amp;#39;s a caveat, though. I&amp;#39;m here advocating that it may be a good idea to refrain from sharing details about yourself with other people, and I don&amp;#39;t make any distinctions between close or not. But if you do it too much, especially with a close relation, the other person won&amp;#39;t know that much about you, which may mean the relation isn&amp;#39;t that great, and it may end because of it.&lt;/p&gt;&lt;p&gt;And a possible alternative to the all-or-nothing: very clearly stating that this opinion of yours is something prone to change, something you are thinking of/working on right now, but are not quite sure about just yet.&lt;/p&gt;&lt;p&gt;I think this might be kinda hard to pull off. People may think you&amp;#39;re saying that just as an escape route in case shit hits the fan, for example. But I couldn&amp;#39;t possibly guess all the weird ways people might think, the same way I couldn&amp;#39;t possibly guess all the ways shit might hit the fan.&lt;/p&gt;&lt;p&gt;Just another tool in the toolbox... Maybe. Or not. ¯\__(ツ)_/¯&lt;/p&gt;&lt;p&gt;¹ There are cons to this, such as not discussing with as many people, but he was a pretty good thinker -- he had a strict method for reasoning, which was the subject of one of the two books (probably &amp;quot;Discourse on the Method&amp;quot; judging by the title). On top of that (IIRC) he had a few close relations with whom to discuss the more controversial topics.&lt;/p&gt;&lt;p&gt;² Not that they somehow went against the state of affairs of the time. He believed in God, (one of them is supposed to be a proof it exists) and was religious (even supported the church IIRC).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Descartes"&gt;Descartes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Churro"&gt;Churro&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Fartura_(food)"&gt;Fartura&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Consistent"&gt;Consistent&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Contradiction"&gt;Contradiction&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Proposition"&gt;Proposition&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/flexibility-relations.gmi</id>
    <published>2022-07-28T00:00:00Z</published>
    <title type="text">Flexibility &amp; Relations</title>
    <updated>2022-06-07T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/flexibility-relations.html" rel="alternate" type="text/html" hreflang="en" title="Flexibility &amp; Relations" />
    <link href="gemini://siiky.srht.site/philosophy/flexibility-relations.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Flexibility &amp; Relations" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Flexibility &amp;amp; Life&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/06/01&lt;br&gt;&lt;/br&gt;2022/07/28&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;To be able to withstand the punches life throws at you, being flexible is helpful, methinks. It allows you to focus on what matters to you, overlook what doesn&amp;#39;t, and dodge them punches like a pro. Not only that, but you can more easily experiment with things and try to find what works best. &amp;quot;If you don&amp;#39;t have the room to fail, you only have the room to remain&amp;quot; (if it almost rhymes it&amp;#39;s true, amirite?)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../psychology/fagots.html"&gt;Fagots&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Let me try to explain what I mean.&lt;/p&gt;&lt;p&gt;From my very limited knowledge of Chinese philosophy and martial arts philosophy, before anything else, what you need most is flexibility (DISCLAIMER: I&amp;#39;m neither student nor practitioner).&lt;/p&gt;&lt;p&gt;From the Tao Te Ching, the main takeaway I got is that you&amp;#39;ll have a hard time if you go against nature -- certainly harder than if you go along it. If you&amp;#39;re lucky (or maybe strong enough?) that&amp;#39;s all it will be, harder; more likely, however, you&amp;#39;ll simply lose.&lt;/p&gt;&lt;p&gt;Thus, from my (very likely wrong and/or incomplete) understanding, the Tao is to go with nature, accept nature, go with the flow, accept things as they are and that they&amp;#39;re rarely as you&amp;#39;d prefer them to be, that what happens through your course of life will happen whether you like it or not, and that often you have no say in it -- what will be, will be (this isn&amp;#39;t some &amp;quot;fate&amp;quot; BS or hard determinism, though it may sound like it the way I put it; more at the end).&lt;/p&gt;&lt;p&gt;A similar idea exists in Tai Chi boxing, where you don&amp;#39;t fight your opponent with force, but by trying to deflect their attacks, using their nature against them.&lt;/p&gt;&lt;p&gt;And what better way is there to &amp;quot;go with the flow&amp;quot; than by being flexible in your moves and in your mind?&lt;/p&gt;&lt;p&gt;More practically (but not necessarily by the Tao) I think of it as avoiding unnecessary (unnatural) imposed limits or goals; or as distilling what I really enjoy from what I don&amp;#39;t (as much). So that I may focus on what matters to me most without getting overly lost on &amp;quot;trivialities&amp;quot;.&lt;/p&gt;&lt;p&gt;For example, some decades ago someone declared that &amp;quot;one must eat every 3h~4h and must not go many hours without eating&amp;quot; (I can&amp;#39;t remember who nor why; have to research). Similarly, someone once declared that &amp;quot;breakfast is the most important meal of the day and therefore must also be the heaviest/fullest&amp;quot; (this one I do remember: Kellogg&amp;#39;s and some bacon company). I purposefully say &amp;quot;declared&amp;quot; because this wasn&amp;#39;t the result of a scientific study or some other method.&lt;/p&gt;&lt;p&gt;Saying a bunch of bullshit nobody pays heed to is quite alright -- no harm done, right? The problem is that these &amp;quot;truths&amp;quot; are actually accepted as truths in (at least some of) today&amp;#39;s western society!&lt;/p&gt;&lt;p&gt;Let&amp;#39;s imagine some scenarios:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;(1) You feel hungry, but you don&amp;#39;t eat (let&amp;#39;s say because you can&amp;#39;t)&lt;/li&gt;&lt;li&gt;(2) You don&amp;#39;t feel hungry, and you don&amp;#39;t eat (no matter why)&lt;/li&gt;&lt;li&gt;(3) You don&amp;#39;t feel hungry, but you eat anyway&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I&amp;#39;m not talking here about people that starve. I&amp;#39;m assuming you&amp;#39;re skipping only one, maybe two meals at most. Actually starving is serious, and I&amp;#39;m not trying in any way to downplay its seriousness!&lt;/p&gt;&lt;p&gt;If you don&amp;#39;t believe in any of the declared crap, all&amp;#39;s fine, you just go on with your day, in any of the 3 scenarios. But what if you do believe it?&lt;/p&gt;&lt;p&gt;In (1) and (2), what&amp;#39;s actually worse for your health: the fact that you haven&amp;#39;t eaten, or that you&amp;#39;re stressing because you believe it&amp;#39;s bad you haven&amp;#39;t eaten (whether you feel hungry or not)?&lt;/p&gt;&lt;p&gt;In (1), what&amp;#39;s worse: the fact that you haven&amp;#39;t eaten, or that you&amp;#39;re stressing because you feel hungry?&lt;/p&gt;&lt;p&gt;In (3) whatever food you have is arguably unnecessary -- your body didn&amp;#39;t feel it necessary, at least. It may simply be extra food to make you fatter.&lt;/p&gt;&lt;p&gt;And particulars matter, of course. If you do hard physical work, skipping a meal may be enough to have you pass out after a while. But many people nowadays don&amp;#39;t. And many (me included) eat tons of food. Food that they don&amp;#39;t need. For them, skipping a meal or even two, as long as they don&amp;#39;t feel ill/weak because of it, is very likely OK.&lt;/p&gt;&lt;p&gt;This deviated a bit... To get back on track: in these scenarios, is the food what really matters? This is possibly the most important question. I argue that it isn&amp;#39;t: you can survive the scenarios after all, and easily at that! On top of it, there&amp;#39;s nothing you can do right now to improve the situation.&lt;/p&gt;&lt;p&gt;So what do you think the better use of your energy is: worrying about something you can easily survive, or worrying about or enjoying something else that matters to you, something you like, something you want?&lt;/p&gt;&lt;p&gt;I also realize that it may not feel easy, especially when you&amp;#39;re feeling hungry; and that worrying more &amp;quot;productively&amp;quot; may not come naturally to you -- the opposite may be the case. But it is possible to train yourself. It is possible to condition yourself, distract yourself from that (easily survivable) unpleasant feeling. We weren&amp;#39;t raised up thus. In western society we learn that splurging is the way. And so we do. Then it feels uneasy when we can&amp;#39;t, like it shouldn&amp;#39;t be possible. We simply haven&amp;#39;t learned how to deal with it.&lt;/p&gt;&lt;p&gt;To try to exemplify how being free of these self-restrains gives you the needed freedom to experiment, I&amp;#39;ll go with food again (I don&amp;#39;t know why, it&amp;#39;s just what&amp;#39;s popping into my head).&lt;/p&gt;&lt;p&gt;If you go traveling, you should try to enjoy the place as much as possible while you&amp;#39;re still there -- this should be obvious?&lt;/p&gt;&lt;p&gt;Let&amp;#39;s say that you plan a walk at this place that may be completely unknown to you. You found some guides or whatever, you decided to go here and there, and you marked possible food stops (like restaurants or cafes).&lt;/p&gt;&lt;p&gt;Alas! The guides were outdated and the food places are closed! Quick! What do you do?&lt;/p&gt;&lt;p&gt;Should have been easy if you read it all thus far: ¯\__(ツ)_/¯ go with it, no big deal, it&amp;#39;s not a showstopper! Carry on with your plan, visit what other places you planned to visit. Enjoy them as much as you would weren&amp;#39;t the food places closed. After the walk you can be sure you&amp;#39;ll enjoy the food even more.&lt;/p&gt;&lt;p&gt;The alternatives I can think of are, to continue with the rest of the plan but be stuck with &amp;quot;oh no, I have no food!&amp;quot;, thus not enjoying the walk; or to abort the rest of the plan to go for food instead. Shit alternatives if you ask me...&lt;/p&gt;&lt;p&gt;This is getting long enough, but finally: no, the Tao isn&amp;#39;t an excuse to sit back and watch the time go by, and indeed, I&amp;#39;m in favor of the opposite. So why do I think it&amp;#39;s, as I described it at the top, not just some &amp;quot;fate&amp;quot; BS or hard determinism?&lt;/p&gt;&lt;p&gt;Because it isn&amp;#39;t about what&amp;#39;s gonna happen in the future. In no way does the Tao say that nature is the determining force of the future; or that if you do this thing that thing will happen. Only that things have an innate nature, a pre-disposition, a way of behaving and acting that feels right, if you will, for both animate and inanimate entities; and that you should try to learn of that way, both yours and your environment&amp;#39;s, and how best they can coexist and/or cooperate.&lt;/p&gt;&lt;p&gt;The best practical example I can think of is physics. It certainly is easier to let gravity do its thing than to go against it -- ever tried jumping and remaining in the air? Not that easy, right? But if you don&amp;#39;t go against it, ever, you&amp;#39;ll go nowhere. On the flip side of the coin, if you feel so strongly against it that you can only brood over it, you&amp;#39;ll also go nowhere, it&amp;#39;ll be miserable. Thus, the way (Tao means &amp;quot;way&amp;quot; or &amp;quot;path&amp;quot;, by the way) is through the middle ground, where you and your surroundings can meet.&lt;/p&gt;&lt;p&gt;Little side-note: in my view, this is one of the ideas that lead me to believe the best way of life is the one that ruffles leaves the least (in number and ruffled-ness). With regards to the planet specifically, I think that we should be striving to the best of our abilities not to screw it.&lt;/p&gt;&lt;p&gt;And that&amp;#39;s that. I spent a good workday of time on this, totally worth it! Feels like I beat a dead horse a bit, though... :/&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Chinese_philosophy"&gt;Chinese Philosophy&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Chinese_martial_arts"&gt;Chinese Martial Arts&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Tao_Te_Ching"&gt;Tao Te Ching&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Tao"&gt;Tao&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Fate"&gt;Fate&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Hard_determinism"&gt;Hard Determinism&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Tai_chi"&gt;Tai Chi&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.theguardian.com/lifeandstyle/2016/nov/28/breakfast-health-america-kellog-food-lifestyle"&gt;Breakfast (Kellogg&amp;#39;s and some bacon company)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/flexibility-life.gmi</id>
    <published>2022-07-28T00:00:00Z</published>
    <title type="text">Flexibility &amp; Life</title>
    <updated>2022-06-01T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/flexibility-life.html" rel="alternate" type="text/html" hreflang="en" title="Flexibility &amp; Life" />
    <link href="gemini://siiky.srht.site/philosophy/flexibility-life.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Flexibility &amp; Life" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Fagots&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/05/05&lt;br&gt;&lt;/br&gt;2022/07/28&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;After some recent events in my personal life 乱 (Ran) came to mind: what if our &amp;quot;mental strength&amp;quot;, or ability to withstand stress, is like a fagot of arrows?&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Ran_(film)"&gt;Akira Kurosawa, &amp;quot;Ran&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://ja.wikipedia.org/wiki/%E4%B9%B1_(%E6%98%A0%E7%94%BB)"&gt;黒澤 明、「乱」&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.merriam-webster.com/dictionary/fagot"&gt;Fagot (Merriam-Webster)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I think the analogy works well enough.&lt;/p&gt;&lt;p&gt;DISCLAIMER: I haven&amp;#39;t the faintest fucking clue what I&amp;#39;m talking about. All that I &amp;quot;know&amp;quot; about psychology is from Psych 101 by Paul Kleinman (maybe others meanwhile, check my book list), random Wikipedia pages, and a few random posts here and there (check my psychology links). I just had this thought after the already mentioned events and decided meditate on it.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="links.html"&gt;Psychology links&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;The Analogy&lt;/h2&gt;&lt;p&gt;One arrow corresponds to one &amp;quot;unit&amp;quot; of &amp;quot;mental strength&amp;quot;.&lt;/p&gt;&lt;p&gt;Greater number of arrows translates to increased ability to withstand stress, and vice versa: lesser number, decreased ability.&lt;/p&gt;&lt;p&gt;Repeated or continuous stress on the fagot eventually results in breakdown, assuming that the stress actually strains at least some of the arrows.&lt;/p&gt;&lt;p&gt;And rest, that is, lack of stress or strain, has some sort of &amp;quot;healing&amp;quot; effect. Immediately after you&amp;#39;ve gone through some stressful event you&amp;#39;re more likely to breakdown with another stressful event. However, give it some time and the second event is more manageable. This is possibly the case that translates worse. If an arrow starts to crack it won&amp;#39;t magically uncrack. But maybe that&amp;#39;s the wrong scale to think about -- arrows can be very flexible, so they can withstand a lot of stress in a very short interval with no damage (their &amp;quot;stress capacity&amp;quot; depletes as fast as it regenerates). On the other hand, if they are cracked, they have to be replaced -- like sharks replace their teeth? Or maybe the analogy plays perfectly right, and there&amp;#39;s no way to fix a broken fagot... shit, fingers crossed!&lt;/p&gt;&lt;p&gt;And lastly: two fagots are indistinguishable if not under stress. 20 arrows suspended in the air, or simply resting in your hands, don&amp;#39;t break by themselves -- you have a literal emergency in your hands if they do. But the same is true for one single arrow, it will comfortably withstand the atmospheric pressure. However, try to bend them or hang something at the tip, and the difference will be noticeable. This means that unless you&amp;#39;re under stress you can&amp;#39;t know how much stress you can really handle. And also that you can&amp;#39;t compare two different people in terms of their &amp;quot;mental strength&amp;quot; without putting them under stress.&lt;/p&gt;&lt;h2&gt;Fagots Fagot&lt;/h2&gt;&lt;p&gt;Now, how does this fit into the mind of some person?&lt;/p&gt;&lt;p&gt;The way I see it, there isn&amp;#39;t one single fagot to take it all. It seems more natural to me that there are several fagots, each with a different &amp;quot;purpose&amp;quot;, or for a different kind of aspect of life or relationship.&lt;/p&gt;&lt;p&gt;Why I think that&amp;#39;s the case: if I have a shit day at work, I won&amp;#39;t feel stressed with University because of it, or vice versa. Another example, probably more obviously: if I have a fight with someone, let&amp;#39;s say a really ugly one, I won&amp;#39;t feel stressed/angry when talking with someone else because of it; nor will I feel any ill will towards that someone else. SG(e)TM (Sounds Good enough To Me)!&lt;/p&gt;&lt;p&gt;So there&amp;#39;s at least some fagot of fagots. Maybe it&amp;#39;s really an hierarchy: there&amp;#39;s the main fagot, composed of the society/work fagot, the learning/University fagot, the personal life fagot, the general life fagot, ...&lt;/p&gt;&lt;p&gt;The society/work fagot may be split into the &amp;quot;social status&amp;quot; fagot, money fagot, career fagot (maybe tied to &amp;quot;social status&amp;quot;), ...&lt;/p&gt;&lt;p&gt;The learning/University fagot may be split into the self-learning fagot (the shit you like/want to learn), the research fagot (the shit the scientific community thinks is dope), the grades fagot (the shit grades you get at classes), ...&lt;/p&gt;&lt;p&gt;The personal life fagot may be split into a fagot for each relationship with a person, including the self-fagot.&lt;/p&gt;&lt;h2&gt;Main Fagot Breakdown&lt;/h2&gt;&lt;p&gt;There&amp;#39;s just this something I still can&amp;#39;t explain, and that doesn&amp;#39;t seem to translate well through the &amp;quot;Fagot Hierarchy Theory&amp;quot; I described above: what would bring one to the point of suicide?&lt;/p&gt;&lt;p&gt;From the theory it seems that suicide shouldn&amp;#39;t even be considered unless the main fagot breaks -- all the fagots under it break? But I don&amp;#39;t think that one would bring oneself to this point because of just one fagot either.&lt;/p&gt;&lt;p&gt;So what&amp;#39;s it take?&lt;/p&gt;&lt;h2&gt;How One Fagot Affects Another&lt;/h2&gt;&lt;p&gt;Could it be that different fagots have different strengths/capacities? Such that, for example, the main fagot&amp;#39;s main source of strength comes from, let&amp;#39;s say, the work fagot. In this case, if the work fagot goes to shit, the littlest strain on the other fagots could be enough to break them, and thus break the main fagot as well.&lt;/p&gt;&lt;p&gt;Almost as if the strain &amp;quot;leaked&amp;quot; from one fagot to the other.&lt;/p&gt;&lt;h2&gt;How Better Fagots Become&lt;/h2&gt;&lt;p&gt;How fagots get weakened it&amp;#39;s already been discussed. But how do we get to withstand higher levels of strain with time? Dunno...&lt;/p&gt;&lt;p&gt;Do we really become stronger and capable of taking more stress, or do we become &amp;quot;numb&amp;quot; and stop feeling that we&amp;#39;re under stress?&lt;/p&gt;&lt;p&gt;If the latter, is it really that we can take more stress? Maybe it&amp;#39;s like sleep and caffeine? In that we think we&amp;#39;re fine until we start to really feel the effects of the lack of sleep.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/psychology/fagots.gmi</id>
    <published>2022-07-28T00:00:00Z</published>
    <title type="text">Fagots</title>
    <updated>2022-05-05T00:00:00Z</updated>
    <link href="https://siiky.srht.site/psychology/fagots.html" rel="alternate" type="text/html" hreflang="en" title="Fagots" />
    <link href="gemini://siiky.srht.site/psychology/fagots.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Fagots" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Bill Gates, &amp;quot;How to Avoid a Climate Disaster&amp;quot;&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/04/09&lt;br&gt;&lt;/br&gt;2022/07/28&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Finished reading this book recently (ISBN 978-0-241-44830-4) and in this post I want to share my opinions/critique, and try to compile all the notes I took while and after reading.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/How_to_Avoid_a_Climate_Disaster"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I&amp;#39;ll put down page numbers in this post. If you have the same edition, cool, if not: the &amp;quot;Introduction&amp;quot; starts on p3, and &amp;quot;Climate Change and COVID-19&amp;quot; ends on p230. Hopefully that will help getting around. For figures and tables you can try the &amp;quot;Notes&amp;quot; where you can find the sources and corresponding page.&lt;/p&gt;&lt;p&gt;Because Gemtext is so limited, here are some notes to disambiguate formatting: titles of things will be surrounded by quotes &amp;quot;Like This&amp;quot;. ALL CAPS mean either italics or bold. Page numbers will be shown as p123, figures and tables as &amp;quot;fig p123&amp;quot; and &amp;quot;tbl p123&amp;quot; respectively, and sources as &amp;quot;src&amp;quot;. Tables will be formatted in code blocks, and will additionally have their page and source in the block&amp;#39;s alt text. The page numbers of other things (quotes, figures, &amp;amp;c) will always come afterwards, never before. Likewise, comments about quotes/figures/tables/&amp;amp;c should in general come afterwards, not before.&lt;/p&gt;&lt;h1&gt;Overview&lt;/h1&gt;&lt;p&gt;Here are some of my thoughts on the book in general, or the things I got out of it. Maybe you won&amp;#39;t agree with them, but that&amp;#39;s life (insert Frank Sinatra reference here).&lt;/p&gt;&lt;h2&gt;Tone&lt;/h2&gt;&lt;p&gt;First off, this is kinda personal preference, what makes me tick or makes me cringe, but I didn&amp;#39;t like the overall tone and his unquestionably stating that &amp;quot;progress&amp;quot; is good.&lt;/p&gt;&lt;p&gt;My impression, from reading this book alone, is that he REALLY believes that the increasing consumerism of resources -- be they electricity, water, minerals/metals, &amp;amp;c -- is a good thing, especially by &amp;quot;the poor&amp;quot;, as he puts it.&lt;/p&gt;&lt;p&gt;The exact thing that got us into this, he thinks should be liberally given to and used by &amp;quot;the poor&amp;quot;. So that they can wreck their own countries/land/habitat? Is this rational?&lt;/p&gt;&lt;p&gt;The acknowledgments chapter even has a huge list of people that supposedly contributed to the inception of the book in some way or another, including several researchers, professors, and renowned authors in the matter. Is it just me thinking about this? Or am I missing something that everyone else knows about?&lt;/p&gt;&lt;p&gt;It&amp;#39;s almost funny after he mentioned David Foster Wallace&amp;#39;s &amp;quot;This Is Water&amp;quot; (more later).&lt;/p&gt;&lt;p&gt;This is related to some of the themes discussed in &amp;quot;Sex at Dawn&amp;quot; from my point of view.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Sex_at_Dawn"&gt;Christopher Ryan, Cacilda Jethá, &amp;quot;Sex at Dawn&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Pollution of &amp;quot;greener&amp;quot; alternatives&lt;/h2&gt;&lt;p&gt;Throughout the whole book he continuously advocates for green energies (like solar and wind) and alternatives (like electric vehicles) but fails to mention even once the pollution involved in their production, and the fact that the current products/methods are not recyclable (see &amp;quot;The Dark Side of Green Energies&amp;quot;). Other actually greener production methods may exists, even if not as efficient as the currently in use -- as an example, see &amp;quot;How to Build a Low-tech Solar Panel?&amp;quot;. But for some reason there&amp;#39;s no interest in these other methods.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Guillaume_Pitron"&gt;Guillaume Pitron, &amp;quot;The Dark Side of Green Energies&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://solar.lowtechmagazine.com/2021/10/how-to-build-a-low-tech-solar-panel.html"&gt;Low-Tech Magazine, &amp;quot;How to Build a Low-tech Solar Panel?&amp;quot; (solar powered site)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.lowtechmagazine.com/2021/10/how-to-build-a-low-tech-solar-panel.html"&gt;Low-Tech Magazine, &amp;quot;How to Build a Low-tech Solar Panel?&amp;quot; (conventional always-on site)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Green premium&lt;/h2&gt;&lt;p&gt;Didn&amp;#39;t know the &amp;quot;green premium&amp;quot; term -- the extra price paid for greener alternatives. (I was familiar with the concept of course, just not the term)&lt;/p&gt;&lt;h2&gt;Reflect cost in price&lt;/h2&gt;&lt;p&gt;I like the idea of raising/lowering the price of something based on its environmental impact, thus better reflecting the true cost of something, and simultaneously discouraging &amp;quot;bad&amp;quot; alternatives over &amp;quot;good&amp;quot; alternatives.&lt;/p&gt;&lt;p&gt;The difficulty would be convincing people that this is a good thing. During the transition, the average Joe probably won&amp;#39;t be interested in the fact the new thing is better for the environment but rather that what they&amp;#39;re using currently became more expensive. In my view, this is of course irrational -- negative effects on the environment negatively affect everyone in the long run. But it&amp;#39;s not something easy to convince someone of, and I for sure commit the same mistake occasionally.&lt;/p&gt;&lt;p&gt;The &amp;quot;true cost&amp;quot; of something is what snan calls &amp;quot;externalities&amp;quot;.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/idiomdrottning.org/externalities"&gt;Idiomdrottning, &amp;quot;Externalities&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Sources &amp;amp; lack thereof&lt;/h2&gt;&lt;p&gt;Some of his statements are not backed by any sources, you&amp;#39;re supposed (I guess?) to just believe in his authority on the matter and go with it. Examples:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;money spent/saved over some period of time when comparing alternatives -- e.g. planting mangrove trees rather than not saves the world $80B/year;&lt;/li&gt;&lt;li&gt;amount of energy provided per amount of energy consumed by produced chickens, pigs, and cows -- 1/2, 1/3, 1/6, respectively; don&amp;#39;t even know if that&amp;#39;s the meat alone, or if it includes eggs, milk, &amp;amp;c;&lt;/li&gt;&lt;li&gt;the amount of CO2 absorbed by a tree during its lifetime -- &amp;quot;a good rule of thumb is 4 tons over the course 40 years.&amp;quot;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;At least graphs and the like usually have sources.&lt;/p&gt;&lt;h1&gt;Chapters&lt;/h1&gt;&lt;p&gt;Didn&amp;#39;t take notes on some of the chapters, so obviously those aren&amp;#39;t here. But just because it may be of interest, here&amp;#39;s the whole index:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Introduction: 51 Billion to Zero&lt;/li&gt;&lt;li&gt;1. Why Zero?&lt;/li&gt;&lt;li&gt;2. This Will Be Hard&lt;/li&gt;&lt;li&gt;3. Five Questions to Ask in Every Climate Conversation&lt;/li&gt;&lt;li&gt;4. How We Plug In&lt;/li&gt;&lt;li&gt;5. How We Make Things&lt;/li&gt;&lt;li&gt;6. How We Grow Things&lt;/li&gt;&lt;li&gt;7. How We Get Around&lt;/li&gt;&lt;li&gt;8. How We Keep Cool and Stay Warm&lt;/li&gt;&lt;li&gt;9. Adapting to a Warmer World&lt;/li&gt;&lt;li&gt;10. Why Government Policies Matter&lt;/li&gt;&lt;li&gt;11. A Plan for Getting to Zero&lt;/li&gt;&lt;li&gt;12. What Each of Us Can Do&lt;/li&gt;&lt;li&gt;Afterword: Climate Change and COVID-19&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;1. Why Zero?&lt;/h2&gt;&lt;p&gt;We went from almost 0 (in 1850) to almost 40 billion (in 2018) tons of CO2 (emitted per year, I suppose). (fig p24) The figure includes also the rise of the average temperature over the years.&lt;/p&gt;&lt;h2&gt;2. This Will Be Hard&lt;/h2&gt;&lt;p&gt;From David Foster Wallace&amp;#39;s speech &amp;quot;This Is Water&amp;quot; (p37-38):&lt;/p&gt;&lt;blockquote&gt;There are these two young fish swimming along, and they happen to meet an older fish swimming the other way, who nods at them and says, &amp;quot;Morning, boys, how&amp;#39;s the water?&amp;quot; And the two young fish swim on for a bit, and then eventually one of them looks over at the other and goes, &amp;quot;What the hell is water?&amp;quot;&lt;/blockquote&gt;&lt;p&gt;David&amp;#39;s explanation (p38):&lt;/p&gt;&lt;blockquote&gt;The immediate point of the fish story is that the most obvious, ubiquitous, important realities are often the ones that are the hardest to see and talk about.&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/This_Is_Water"&gt;David Foster Wallace, &amp;quot;This Is Water&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/David_Foster_Wallace"&gt;David Foster Wallace&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;Many farmers still have to use ancient techniques, which is one of the reasons they&amp;#39;re trapped in poverty. They deserve modern equipment and approaches, but right now using those tools means producing more greenhouse gases.&lt;/blockquote&gt;&lt;p&gt;(fig p43) Why assume that WE are the superior ones and that THEY have to &amp;quot;progress&amp;quot;? Until 1850 (according to fig p24) we barely made a dent to the climate. How can you assume that &amp;quot;progressing&amp;quot; was a good thing? Even agriculture may have been a mistake (&amp;quot;Sex at Dawn&amp;quot;)!&lt;/p&gt;&lt;h2&gt;3. Five Questions to Ask in Every Climate Conversation&lt;/h2&gt;&lt;pre&gt;|-----------------------+------------+------------------------------------------------|
| Activity              | Percentage | Description                                    |
|-----------------------+------------+------------------------------------------------|
| Making things         |        31% | Producing materials (cement, metals, plastics) |
| Plugging in           |        27% | Producing electricity                          |
| Growing things        |        19% | For food (plants &amp;amp; animals)                    |
| Getting around        |        16% | Cars, planes, ships, trains, trucks, ...       |
| Keeping warm and cool |         7% | Heating &amp;amp; cooling, refrigeration               |
|-----------------------+------------+------------------------------------------------|
&lt;/pre&gt;&lt;p&gt;Human activities and their percentage of greenhouse gases emitted. He gives a definition of what goes where in a footnote:&lt;/p&gt;&lt;blockquote&gt;These percentages represent global greenhouse gas emissions. When you&amp;#39;re categorizing emissions from various sources, one of the questions you have to decide is how to count products that cause emissions both when you make them and when you use them. For example, we produce greenhouse gases when we refine oil into gasoline and again when we burn the gasoline. In this book, I&amp;#39;ve included all the emissions from making things in &amp;quot;How we make things&amp;quot; and all the emissions from using them in their respective categories. So oil refining goes under &amp;quot;How we make things,&amp;quot; and burning gasoline is included in &amp;quot;How we get around.&amp;quot; The same goes for things like cars, planes, and ships. The steel that they&amp;#39;re made of is counted under &amp;quot;How we make things,&amp;quot; and the emissions from the fuels they burn go under &amp;quot;How we get around.&amp;quot;&lt;/blockquote&gt;&lt;p&gt;This (tbl p55) was possibly the most unexpected thing I learned from the book. I didn&amp;#39;t expect at all for production of materials to be at the top and electricity next. Even more for food (mainly animals) being worse than transport. Just shows how well (un)informed I am (or was)...&lt;/p&gt;&lt;pre&gt;|------------------------+--------------|
| Place                  | Energy       |
|------------------------+--------------|
| world                  | 5k gigawatts |
| US                     | 1k gigawatts |
| mid-size city          | 1 gigawatt   |
| small town             | 1 megawatt   |
| average American house | 1 kilowatt   |
|------------------------+--------------|
&lt;/pre&gt;&lt;p&gt;&amp;quot;How much power does it take?&amp;quot; -- Gates&amp;#39; cheatsheet on energy quantities.&lt;/p&gt;&lt;blockquote&gt;Whenever you hear &amp;quot;kilowatt&amp;quot;, think &amp;quot;house.&amp;quot; &amp;quot;Gigawatt&amp;quot;, think &amp;quot;city.&amp;quot; A hundred or more gigawatts, think &amp;quot;big country.&amp;quot;&lt;/blockquote&gt;&lt;p&gt;(p57)&lt;/p&gt;&lt;pre&gt;|----------------------+-----------|
| Energy source        |     W/m^2 |
|----------------------+-----------|
| Fossil fuels         | 500-10000 |
| Nuclear              |  500-1000 |
| Solar                |      5-20 |
| Hydropower           |      5-50 |
| Wind                 |       1-2 |
| Wood &amp;amp; other biomass |        &amp;lt;1 |
|----------------------+-----------|
&lt;/pre&gt;&lt;p&gt;&amp;quot;How much power can we generate per square meter?&amp;quot;. Has this note about solar:&lt;/p&gt;&lt;blockquote&gt;The power density of solar could theoretically reach 100 W/m^2, though no one has accomplished this yet.&lt;/blockquote&gt;&lt;h2&gt;4. How We Plug In&lt;/h2&gt;&lt;p&gt;Again suggesting it&amp;#39;s a good thing to increase energy usage. (p74)&lt;/p&gt;&lt;pre&gt;|-------------------+----------|
| Source            | Tons/TWh |
|-------------------+----------|
| Solar             |     16.4 |
| Hydropower        |     13.9 |
| Wind              |      9.9 |
| Geothermal        |      5.3 |
| Coal              |     1.39 |
| Nuclear (fission) |     0.99 |
| Natural gas       |     0.79 |
|-------------------+----------|
&lt;/pre&gt;&lt;p&gt;Histogram showing the amount of resources needed to build and run a power plant of different types, measured in tons of material per TWh, ordered from most to least material hungry. The numbers here are approximate, measured with a ruler.&lt;/p&gt;&lt;pre&gt;|-------------------+------------|
| Energy Source     | Deaths/TWh |
|-------------------+------------|
| Coal              |       24.6 |
| Oil               |       18.4 |
| Biomass           |        4.6 |
| Gas               |        2.8 |
| Nuclear (fission) |       0.07 |
|-------------------+------------|
&lt;/pre&gt;&lt;p&gt;Histogram showing number of deaths per unit of electricity generated. The numbers here are exact, each column had a label.&lt;/p&gt;&lt;blockquote&gt;Imagine if everyone had gotten together one day and said, &amp;quot;Hey, cars are killing people. They&amp;#39;re dangerous. Let&amp;#39;s stop driving and give up these automobiles.&amp;quot;&lt;/blockquote&gt;&lt;p&gt;Analogy with cars about how we stopped using and researching nuclear energy because of the past accidents. (p86)&lt;/p&gt;&lt;p&gt;It goes both ways too. We stopped using nuclear because of the accidents, but even though the other energy sources result in more deaths per unit of energy (tbl p85), we prefer using those.&lt;/p&gt;&lt;p&gt;Mentions TerraPower (p86). Some marketing words (mainly for me to read about later): traveling wave reactor, capable of running off of the waste of other reactors (that is, used up Uranium, Plutonium, &amp;amp;c). (p87)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/TerraPower"&gt;TerraPower&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Traveling_wave_reactor"&gt;Traveling wave reactor&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Direct Air Capture: taking CO2 right off the air. (p95) The alternative, which seems to be more practicable nowadays, is point carbon capture.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Direct_air_capture"&gt;Direct Air Capture (DAC)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Carbon_capture_and_storage"&gt;Point Carbon Capture&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;I used to scoff at the idea that using power more efficiently would make a dent in climate change. My rationale: If you have limited resources to reduce emissions (and we do), then you&amp;#39;d get the biggest impact by moving to zero emissions rather than by spending a lot trying to reduce the demand for energy.&lt;/blockquote&gt;&lt;p&gt;A comment about using less energy. (p95) Is it dumb or what? The following paragraph:&lt;/p&gt;&lt;blockquote&gt;Anything that reduces the scale we need to reach is helpful.&lt;/blockquote&gt;&lt;p&gt;(p96) Whouldathunkit! Finally he says something more sensible:&lt;/p&gt;&lt;blockquote&gt;There&amp;#39;s also a related approach called load shifting or demand shifting, which involves using power more consistently throughout the day.&lt;/blockquote&gt;&lt;p&gt;(p96) This sounds like a VERY good idea, for the reason he states afterwards:&lt;/p&gt;&lt;blockquote&gt;Right now, we tend to generate power when we use it -- for example, cranking up electric plants to run a city&amp;#39;s light at night. With load shifting, though, we do the opposite: we use more electricity when it&amp;#39;s cheapest to generate.&lt;/blockquote&gt;&lt;p&gt;(p96) And he goes on giving some examples of changes of thinking and habits.&lt;/p&gt;&lt;p&gt;This relates to a habit that I have to break... I tend to stay up late and wake up late.&lt;/p&gt;&lt;h2&gt;6. How We Grow Things&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Norman_Borlaug"&gt;Normam Borlaug&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Discoverer/inventor of &amp;quot;super crops&amp;quot;. (p115)&lt;/p&gt;&lt;p&gt;A grown chicken gives 1 calorie for every 2 calories that it consumes; a pig 1 for every 3 calories; cows 1 for every 6. That is, we get only 1/2, 1/3, and 1/6, respectively, of the energy &amp;quot;we put in&amp;quot; or &amp;quot;invest&amp;quot;. (p115; src: none)&lt;/p&gt;&lt;p&gt;Graph of the trend of meat consumption on some countries over the years, from 2000 to 2020, with predictions until 2028. (fig p116; src: OECD-FAO Agricultural Outlook 2020) In 2020, million tons of meat consumed (approximate numbers, measured with a ruler): Mexico, 9.6; Brazil, 19.2; EU, 40; USA, 42; China, 80.&lt;/p&gt;&lt;p&gt;After exposing how &amp;quot;growing&amp;quot; animals significantly contributes to global warming and how greenhouse gases come to be from this practice, and of ways to work around that or improve the situation (such as bioengineering animals to not produce greenhouse gases), this comes along:&lt;/p&gt;&lt;blockquote&gt;A hard-core vegan might propose another solution: /Instead of trying all these ways of reducing emissions, we should just stop raising livestock./ I can see the appeal of that argument, but I don&amp;#39;t think it&amp;#39;s realistic. For one thing, meat plays too important a role in human culture. In many parts of the world, even where it&amp;#39;s scarce, eating meat is a crucial part of festivals and celebrations. In France, the gastronomic meal -- including started, meat or fish, cheese, and dessert -- is officially listed as part of the country&amp;#39;s Intangible Cultural Heritage of Humanity. According to the listing on the UNESCO website, &amp;quot;The gastronomic meal emphasizes togetherness, the pleasure of taste, and the balance between human beings and the products of nature&amp;quot;&lt;/blockquote&gt;&lt;p&gt;Gates on &amp;quot;hard-core veganism&amp;quot;. (p118-119)&lt;/p&gt;&lt;p&gt;WHAT THE FUCK?&lt;/p&gt;&lt;p&gt;1st WTF: &amp;quot;hard-core vegan&amp;quot;? I&amp;#39;m pretty sure a vegan doesn&amp;#39;t have to be hardcore to be of that opinion.&lt;/p&gt;&lt;p&gt;2nd WTF: &amp;quot;Cultural Heritage&amp;quot;? My brain goes &amp;quot;computer says no&amp;quot; with this... The culture we&amp;#39;re leaving behind -- possibly literally -- is to destroy what made it possible to exist in the first place?&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Cultural_heritage"&gt;Cultural Heritage&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Computer_says_no"&gt;Computer says no&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;3rd WTF: UNESCO? Aren&amp;#39;t these the guys behind the SDGs (&amp;quot;Sustainable Development Goals&amp;quot;, quotes super apropes)?&lt;/p&gt;&lt;p&gt;The same guys that put &amp;quot;Climate action&amp;quot;, &amp;quot;Life below water&amp;quot;, and &amp;quot;Life on land&amp;quot; as ALMOST the least important goals (13, 14, and 15, respectively, out of 17 -- pic below)? So much for sustainable...&lt;/p&gt;&lt;p&gt;The same guys that put water (6) as less important than poverty (1), food (2), health &amp;amp; well being (3), quality education (4), and gender equality (5)? Yes, everybody knows you all your thirsts with knowledge quench! And what not...&lt;/p&gt;&lt;p&gt;And what the hell are &amp;quot;No poverty&amp;quot; (1), &amp;quot;Responsible consumption and production&amp;quot; (12) and &amp;quot;Partnerships for the goals&amp;quot; (17), anyway? Couldn&amp;#39;t they have been any vaguer?&lt;/p&gt;&lt;p&gt;(To be fair, I haven&amp;#39;t read each of the goals&amp;#39; descriptions yet)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Unesco"&gt;UNESCO&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Sustainable_Development_Goals"&gt;SDGs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/List_of_Sustainable_Development_Goal_targets_and_indicators"&gt;SDGs descriptions&lt;/a&gt;&lt;/li&gt;&lt;img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Sustainable_Development_Goals.svg" alt="SDGs diagram"&gt;&lt;/img&gt;&lt;/ul&gt;&lt;p&gt;4th WTF: &amp;quot;togetherness&amp;quot;? You have to eat an animal (or animal product) to feel close to other people, like your friends and family? Reminds me of an episode of FlashForward where a listener/commenter(?) said &amp;quot;a Sunday isn&amp;#39;t a Sunday without my chicken wings&amp;quot; or something of the sort. Ok, then... Maybe I&amp;#39;m really so very abnormally undemanding, but I&amp;#39;m good with a (literal) walk in the park.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.flashforwardpod.com/2016/08/10/episode-19-wheres-the-beef"&gt;FlashForward, &amp;quot;Where&amp;#39;s the Beef?&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;5th WTF: &amp;quot;pleasure of taste&amp;quot;? Hmmm... Let&amp;#39;s see. How do you season your meat or fish? Salt (lit. some rock out of sea water)? Spices (plants, seeds, roots, ...)? Butter (or, more likely, margarine -- plant)? Some garlic (plant) and/or onion (plant)? Maybe some alcoholic beverage (wine -- grapes; beer -- cereals; vodka -- cereals/potatoes; rum -- sugarcanes)? Why use so many non-animal products if the said &amp;quot;pleasure of taste&amp;quot; comes from the meat? Admittedly, nowhere does it say that the &amp;quot;pleasure of taste&amp;quot; does come from the meat, but why would it be mentioned otherwise?&lt;/p&gt;&lt;p&gt;6th WTF: &amp;quot;balance between human beings and the products of nature&amp;quot;? Must have been a typo for sure: &amp;quot;imbalance&amp;quot;. And yes, good thing we, the good, well intentioned humans, are here to consume all the products of nature, otherwise, what a waste! And y&amp;#39;all know that waste is a sin!&lt;/p&gt;&lt;p&gt;This must be the most stupidestest paragraph of the entire book... He does say he enjoys a good burger, but it would be only an assumption, of course, to think that this is his opinion or that he&amp;#39;s just sharing something he&amp;#39;s heard. Plus, he says he has invested in two companies working on &amp;quot;plant-based meat&amp;quot;: Beyond Meat and Impossible Foods. (I think calling it &amp;quot;plant-based meat&amp;quot; is stupid -- if it&amp;#39;s plant-based then it&amp;#39;s not meat -- but whatever, after that paragraph...)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Meat_substitutes"&gt;Plant-based meat&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Beyond_meat"&gt;Beyond Meat&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Impossible_Foods"&gt;Impossible Foods&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And yes, some of my comments above may be a bit exaggerated, but... WHAT THE FUCK?&lt;/p&gt;&lt;h3&gt;Planting trees&lt;/h3&gt;&lt;p&gt;Raises a few good questions about the idea of planting trees. (p128-129)&lt;/p&gt;&lt;p&gt;That bit mentioned at the top of the post:&lt;/p&gt;&lt;blockquote&gt;How much carbon dioxide can a tree absorb in its lifetime?&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;(...) a good rule of thumb is 4 tons over the course 40 years.&lt;/blockquote&gt;&lt;blockquote&gt;How long will the tree survive?&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;If it burns down, all the carbon dioxide it was storing will be released into the atmosphere.&lt;/blockquote&gt;&lt;blockquote&gt;What would&amp;#39;ve happened if you hadn&amp;#39;t planted that tree?&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;If a tree would&amp;#39;ve grown there naturally, you haven&amp;#39;t added any extra carbon absorption.&lt;/blockquote&gt;&lt;blockquote&gt;In what part of the world will you plant the tree?&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;(...) trees in snowy areas cause more warming than cooling, because they&amp;#39;re darker than the snow and ice (...). (...) trees in tropical forests cause more cooling than warming, because they release a lot of moisture, which becomes clouds, which reflect sunlight. Trees in the midlatitudes -- between the tropics and the polar circles -- are more or less a wash.&lt;/blockquote&gt;&lt;blockquote&gt;Was anything else growing in that spot?&lt;br&gt;&lt;/br&gt;(...)&lt;br&gt;&lt;/br&gt;If, for example, you eliminate a soybean farm and replace it with a fores, you&amp;#39;ve reduced the total amount of soybeans available, which will drive up their price, making it more likely that someone will cut down trees somewhere else to grow soybeans. This will offset at least some of the good you do by planting your trees.&lt;/blockquote&gt;&lt;h2&gt;8. How We Keep Cool and Stay Warm&lt;/h2&gt;&lt;p&gt;Mentions the Bullit Center, a supposedly uber environment friendly building in Seattle. (p157-158)&lt;/p&gt;&lt;p&gt;Mentions ACs a few times and how they&amp;#39;re oh so cool, but darn it they pollute...&lt;/p&gt;&lt;p&gt;Would have been a better use of paper talking about some alternatives not based on electricity. For heating, a rocket mass heater sounds like a very good idea (some people also call it a rocket stove, even though they seem to be different things). The Wikipedia page about ACs also presents some alternatives.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Bullitt_Center"&gt;Bullit Center&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Air_conditioning"&gt;ACs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Rocket_mass_heater"&gt;Rocket mass heater&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Rocket_stove"&gt;Rocket stove&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;9. Adapting to a Warmer World&lt;/h2&gt;&lt;blockquote&gt;All told, mangroves help the world avoid some $80 billion a year in losses from floods, and they save billions more in other ways. Planting mangroves is much cheaper than building breakwaters, and the trees also improve the water quality.&lt;/blockquote&gt;&lt;p&gt;Pros of planting mangrove trees. (p172-173; src: none)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Mangrove"&gt;Mangrove trees&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Mentioned books&lt;/h1&gt;&lt;p&gt;Books mentioned throughout the book -- may have missed some.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;p43, Vaclav Smil, &amp;quot;Energy Transitions&amp;quot;&lt;/li&gt;&lt;li&gt;p43, Vaclav Smil, &amp;quot;Energy Myths and Realities&amp;quot;&lt;/li&gt;&lt;li&gt;&amp;quot;Earth&amp;#39;s Changing Climate&amp;quot; -- can&amp;#39;t find much info on this one, but I believe the ISBN is 978-0-7166-2765-4&lt;/li&gt;&lt;li&gt;&amp;quot;Weather for Dummies&amp;quot;&lt;/li&gt;&lt;li&gt;Acknowledgments, David MacKay, &amp;quot;Sustainable Energy -- Without the Hot Air&amp;quot;&lt;/li&gt;&lt;li&gt;p113-114, Paul Ehrlich, &amp;quot;The Population Bomb&amp;quot; -- a best selling flop; predicted tons of people dying from hunger in the 1970s and 1980s, which didn&amp;#39;t happen&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Vaclav_Smil"&gt;Vaclav Smil&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/David_J._C._MacKay"&gt;David MacKay&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Paul_R._Ehrlich"&gt;Paul Ehrlich&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/The_Population_Bomb"&gt;Paul Ehrlich, &amp;quot;The Population Bomb&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Didn&amp;#39;t take note of the page of some of the books and I can&amp;#39;t find them now... If you&amp;#39;d like to help complete this list, contact me (see the bottom of the page).&lt;/p&gt;&lt;h1&gt;Conclusion&lt;/h1&gt;&lt;p&gt;It&amp;#39;s likely that there are sources out there to learn about the problem better than this book, but I learned some things from it. So to me it was worth reading even though there were a few negative points and where I&lt;/p&gt;&lt;pre&gt;- [ ] Strongly agree
- [ ] Agree
- [ ] Slightly agree
- [ ] Neither agree nor disagree
- [ ] Slightly disagree
- [ ] Disagree
- [X] Strongly disagree
&lt;/pre&gt;&lt;p&gt;The tone of the book really did turn me off a bit... But that&amp;#39;s probably just me. Other than that, a really big omission is that of the pollution of &amp;quot;greener&amp;quot; alternatives. However, to give him some credit, he seems to really be invested in the problem and to be investing some phat $$ into it.&lt;/p&gt;&lt;p&gt;Whether it&amp;#39;s worth reading for you depends on you, however. If you&amp;#39;re well into the topic, you probably learned nothing from this post, and in that case maybe you won&amp;#39;t learn nothing from the book that&amp;#39;s significantly worth it either. On the other hand, if you&amp;#39;re leaving this post more informed than you were before, you may want to give the book a try.&lt;/p&gt;&lt;p&gt;If you have a different view on points I&amp;#39;ve raised, contact me, I&amp;#39;m interested in what other people have to say about the topic. If you know your stuff and have reading suggestions, do contact me!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/books/bill_gates.how_to_avoid_a_climate_disaster.gmi</id>
    <published>2022-07-28T00:00:00Z</published>
    <title type="text">Bill Gates, "How to Avoid a Climate Disaster"</title>
    <updated>2022-04-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/books/bill_gates.how_to_avoid_a_climate_disaster.html" rel="alternate" type="text/html" hreflang="en" title="Bill Gates, &quot;How to Avoid a Climate Disaster&quot;" />
    <link href="gemini://siiky.srht.site/books/bill_gates.how_to_avoid_a_climate_disaster.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Bill Gates, &quot;How to Avoid a Climate Disaster&quot;" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""&gt;
&lt;head&gt;&lt;meta charset="utf-8"/&gt;&lt;/head&gt;
&lt;body&gt;

&lt;h1&gt;OpenStreetMap Cheat Sheet&lt;/h1&gt;
&lt;p&gt;siiky
2021/07/12
2022/07/28
en&lt;/p&gt;
&lt;p&gt;Here you'll find some personal notes I've gathered, or am still gathering, to
ease and quicken creating and correctly tagging common features on
OpenStreetMap.&lt;/p&gt;
&lt;p&gt;If you can't find what you want to map here, have a look at &lt;a href="https://wiki.openstreetmap.org/wiki/How_to_map_a"&gt;&lt;em&gt;How to map
a&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Water Source&lt;/h1&gt;
&lt;p&gt;For sources of water to be used (mainly) by humans. Water sources to used by
animals require a different tag
(&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=watering_place"&gt;&lt;code&gt;amenity=watering_place&lt;/code&gt;&lt;/a&gt;).
Likewise for water to be used to refill RV's deposits and the like
(&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=water_point"&gt;&lt;code&gt;amenity=water_point&lt;/code&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:drinking_water"&gt;&lt;code&gt;drinking_water=*&lt;/code&gt;&lt;/a&gt;:
  after defining the type of water source, you may specify whether the water is
  drinkable. Apart from the obvious &lt;code&gt;yes&lt;/code&gt; and &lt;code&gt;no&lt;/code&gt;, &lt;code&gt;conditional&lt;/code&gt; means &amp;quot;don't
  know&amp;quot; or &amp;quot;drink at your own risk&amp;quot;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:drinking_water:legal"&gt;&lt;code&gt;drinking_water:legal=*&lt;/code&gt;&lt;/a&gt;
  (optional): additionally, you may use to specify whether the water source is
  officially (un)safe to drink.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Other possibly interesting tags to take a look at are
&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:natural=water"&gt;&lt;code&gt;natural=water&lt;/code&gt;&lt;/a&gt; and
&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:natural=spring"&gt;&lt;code&gt;natural=spring&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Simple Water Source&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=drinking_water"&gt;&lt;code&gt;amenity=drinking_water&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is a simple source of water. Check the documentation
  for examples.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:drinking_water"&gt;&lt;code&gt;drinking_water=*&lt;/code&gt;&lt;/a&gt;
  (optional; &lt;code&gt;yes&lt;/code&gt;): specifies whether the water is drinkable. From my
  understanding, together with
  &lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=drinking_water"&gt;&lt;code&gt;amenity=drinking_water&lt;/code&gt;&lt;/a&gt;,
  not using this tag is the same as using &lt;code&gt;drinking_water=yes&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h2&gt;Ornamented Water Source&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=fountain"&gt;&lt;code&gt;amenity=fountain&lt;/code&gt;&lt;/a&gt;
  (&lt;a href="https://wiki.openstreetmap.org/wiki/Pt:Tag:amenity=fountain"&gt;PT&lt;/a&gt;):
  specifies the feature is a fountain. Check the documentation for examples.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:natural=water"&gt;&lt;code&gt;natural=water&lt;/code&gt;&lt;/a&gt;
  (optional): commonly used together to specify bodies of water next, around,
  under, etc the fountain.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1&gt;Waste&lt;/h1&gt;
&lt;p&gt;Features related to &lt;a href="https://wiki.openstreetmap.org/wiki/Waste_Processing"&gt;waste
processing&lt;/a&gt;, such as of
trash and recyclables.&lt;/p&gt;
&lt;h2&gt;Recycling Container&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=recycling"&gt;&lt;code&gt;amenity=recycling&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is of some sort of recycling type.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:recycling_type=container"&gt;&lt;code&gt;recycling_type=container&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is a recycling container, similar to &lt;a href="https://wiki.openstreetmap.org/wiki/File:Altglas.jpg"&gt;this one&lt;/a&gt; or
  &lt;a href="https://wiki.openstreetmap.org/wiki/File:Jt_osm_recycling_underfloor.jpg"&gt;this one&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:location"&gt;&lt;code&gt;location=*&lt;/code&gt;&lt;/a&gt; (optional):
  specifies where the feature is located, i.e., on the surface, under the
  surface, etc. Two common ones are
  &lt;a href="https://wiki.openstreetmap.org/wiki/Tag:location=overground"&gt;&lt;code&gt;location=overground&lt;/code&gt;&lt;/a&gt;
  (&lt;a href="https://wiki.openstreetmap.org/wiki/File:Altglas.jpg"&gt;pic&lt;/a&gt;) and
  &lt;a href="https://wiki.openstreetmap.org/wiki/Tag:location=underground"&gt;&lt;code&gt;location=underground&lt;/code&gt;&lt;/a&gt;
  (&lt;a href="https://wiki.openstreetmap.org/wiki/File:Jt_osm_recycling_underfloor.jpg"&gt;pic&lt;/a&gt;). It seems to be optional in the case of
  &lt;a href="https://wiki.openstreetmap.org/wiki/Tag:location=overground"&gt;&lt;code&gt;location=overground&lt;/code&gt;&lt;/a&gt;,
  as it seems to me to be implied by
  &lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=recycling"&gt;&lt;code&gt;amenity=recycling&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;recycling:&amp;lt;material&amp;gt;=yes/no&lt;/code&gt;: a list of materials can be found on
  &lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=recycling"&gt;&lt;code&gt;amenity=recycling&lt;/code&gt;&lt;/a&gt;,
  and as is mentioned on that page, if &lt;code&gt;recycling:X=*&lt;/code&gt; is omitted, then it is
  assumed to be &lt;code&gt;no&lt;/code&gt;, as if &lt;code&gt;recycling:X=no&lt;/code&gt; was present; &lt;em&gt;unless&lt;/em&gt; a tag of a
  supergroup of &lt;code&gt;X&lt;/code&gt; is present and &lt;code&gt;yes&lt;/code&gt;, in which case it's as if
  &lt;code&gt;recycling:X=yes&lt;/code&gt; was present.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h3&gt;The Big Three&lt;/h3&gt;
&lt;p&gt;By &amp;quot;big three&amp;quot; I mean paper, plastic, and glass:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Paper container (&amp;quot;papelão&amp;quot;): alongside paper itself, all kinds of
  paper-related and paper-derived materials, like cardboard, can be deposited.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Plastic container (&amp;quot;embalão&amp;quot;): all kinds of plastic and metal materials can
  be deposited. These include plastic bottles, plastic bags, tin cans, milk
  cartons, ...&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Glass container (&amp;quot;vidrão&amp;quot;): all kinds of glass objects, like glass bottles,
  glass cups, etc, can be deposited.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Some of these containers also have batteries containers (&amp;quot;pilhão&amp;quot;) next to
them, where you can deposit used batteries.&lt;/p&gt;
&lt;p&gt;The correct &lt;code&gt;recycling:&amp;lt;material&amp;gt;=yes/no&lt;/code&gt; tags, based on &lt;a href="https://wiki.openstreetmap.org/wiki/Pt:Tag:amenity=recycling"&gt;&lt;code&gt;amenity=recycling&lt;/code&gt;
(PT)&lt;/a&gt;, are the
following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;recycling:plastic=yes
recycling:plastic_bags=yes
recycling:plastic_bottles=yes
recycling:plastic_packaging=yes
recycling:cans=yes
recycling:PET=yes
recycling:paper=yes
recycling:paper_packaging=yes
recycling:beverage_cartons=yes
recycling:cardboard=yes
recycling:cartons=yes
recycling:magazines=yes
recycling:newspaper=yes
recycling:glass=yes
recycling:glass_bottles=yes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: I think styrofoam is allowed in the plastic container. However, I'm
not sure it actually is, nor if it's implied by the tags above.&lt;/p&gt;
&lt;p&gt;And in case there's a batteries basket, include also the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;recycling:batteries=yes
recycling:car_batteries=no
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Clothes &amp;amp; Footwear&lt;/h3&gt;
&lt;p&gt;The correct &lt;code&gt;recycling:&amp;lt;material&amp;gt;=yes/no&lt;/code&gt; tags, based on &lt;a href="https://wiki.openstreetmap.org/wiki/Pt:Tag:amenity=recycling"&gt;&lt;code&gt;amenity=recycling&lt;/code&gt;
(PT)&lt;/a&gt;, are the
following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;recycling:belts=yes
recycling:clothes=yes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: Footwear is accepted, according to the comments, even though there's
no &lt;code&gt;recycling:footwear=yes&lt;/code&gt; or similar. I guess it's implied by
&lt;code&gt;recycling:clothes=yes&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Trash&lt;/h2&gt;
&lt;p&gt;Use
&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=waste_disposal"&gt;&lt;code&gt;amenity=waste_disposal&lt;/code&gt;&lt;/a&gt;
if the feature is a container, or
&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=waste_basket"&gt;&lt;code&gt;amenity=waste_basket&lt;/code&gt;&lt;/a&gt;
if it is a basket.&lt;/p&gt;
&lt;p&gt;Additionally, specify the accepted kind of waste with
&lt;a href="https://wiki.openstreetmap.org/wiki/Key:waste"&gt;&lt;code&gt;waste=*&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;waste=trash;organic;dog_excrement
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If there's an ashtray attached, you can include &lt;code&gt;cigarettes&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;waste=trash;organic;dog_excrement;cigarettes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You may also include
&lt;a href="https://wiki.openstreetmap.org/wiki/Key:location"&gt;&lt;code&gt;location=*&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;Leisure&lt;/h1&gt;
&lt;h2&gt;Picnic Table&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:leisure=picnic_table"&gt;&lt;code&gt;leisure=picnic_table&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is picnic table.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:covered"&gt;&lt;code&gt;covered=*&lt;/code&gt;&lt;/a&gt; (optional):
  you may include this if it's covered, either completely or partially.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:material"&gt;&lt;code&gt;material=*&lt;/code&gt;&lt;/a&gt; (optional):
  specifies the material it's made of.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h2&gt;Bench&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=bench"&gt;&lt;code&gt;amenity=bench&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is a bench.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:backrest"&gt;&lt;code&gt;backrest=*&lt;/code&gt;&lt;/a&gt; (optional): specifies whether the bench has or not a backrest.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:material"&gt;&lt;code&gt;material=*&lt;/code&gt;&lt;/a&gt; (optional): specifies the material it's made of.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h2&gt;BBQ Grill&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=bbq"&gt;&lt;code&gt;amenity=bbq&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is a BBQ grill.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:fuel"&gt;&lt;code&gt;fuel=*&lt;/code&gt;&lt;/a&gt; (optional): the type
  of material you can use as fuel.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:covered"&gt;&lt;code&gt;covered=*&lt;/code&gt;&lt;/a&gt; (optional;
  &lt;code&gt;no&lt;/code&gt;): whether it's covered, either partially or completely.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1&gt;Tourism&lt;/h1&gt;
&lt;h2&gt;Viewpoint (Miradouro)&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:tourism=viewpoint"&gt;&lt;code&gt;tourism=viewpoint&lt;/code&gt;&lt;/a&gt;:
  specifies the feature is a viewpoint.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:name"&gt;&lt;code&gt;name=*&lt;/code&gt;&lt;/a&gt; (optional?):
  specifies the name of the viewpoint.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Key:direction"&gt;&lt;code&gt;direction=*&lt;/code&gt;&lt;/a&gt;
  (optional): the direction of the view; e.g., &lt;code&gt;0-360&lt;/code&gt; is &amp;quot;all-round&amp;quot;.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h1&gt;Education&lt;/h1&gt;
&lt;h2&gt;Study Center&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:amenity=prep_school"&gt;&lt;code&gt;amenity=prep_school&lt;/code&gt;&lt;/a&gt;
seems to be the most appropriate, but for more info see also &lt;a href="https://wiki.openstreetmap.org/wiki/Education_features"&gt;&lt;em&gt;Education
features&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Some other possible options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:education=centre"&gt;&lt;code&gt;education=centre&lt;/code&gt;&lt;/a&gt;:
  used for specialized areas.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:office=tutoring"&gt;&lt;code&gt;office=tutoring&lt;/code&gt;&lt;/a&gt;:
  looks like it's used for an office itself, not where students go to study?&lt;/li&gt;&lt;/ul&gt;
&lt;h1&gt;Popular Restaurant/Cafe/etc chains&lt;/h1&gt;
&lt;h2&gt;McDonald's&lt;/h2&gt;
&lt;p&gt;Tags common to all, from
&lt;a href="https://wiki.openstreetmap.org/wiki/Tag:name=McDonald's"&gt;McDonald's&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;amenity=fast_food
brand:wikidata=Q38076
brand=McDonald's
cuisine=burger
name=McDonald's
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I believe all McDonald's have takeaway, so:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;takeaway=yes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Some common tags that vary:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;outdoor_seating=yes/no
smoking=outside
drive_through=yes/no
opening_hours=*
wheelchair=yes/no/...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Don't forget to add &lt;code&gt;addr:*=*&lt;/code&gt; and &lt;code&gt;payment:*=*&lt;/code&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Overpass query to find McDonald's restaurants with no &lt;code&gt;brand&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[out:json][timeout:300];
(
  nwr[&amp;quot;name&amp;quot;~&amp;quot;^mcdonald.?s&amp;quot;, i]({{bbox}});
  nwr[&amp;quot;brand&amp;quot;~&amp;quot;^mcdonald.?s&amp;quot;, i]({{bbox}});
  nwr[&amp;quot;operator&amp;quot;~&amp;quot;^mcdonald.?s&amp;quot;, i]({{bbox}});
);
out body;
&amp;gt;;
out skel qt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Montalegrense&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;TODO&lt;/strong&gt;: &lt;code&gt;amenity=cafe&lt;/code&gt;, &lt;code&gt;amenity=bakery&lt;/code&gt;, &lt;code&gt;shop=confectionery&lt;/code&gt;, or something else?&lt;/p&gt;
&lt;h2&gt;Mixpão&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;TODO&lt;/strong&gt;: &lt;code&gt;amenity=cafe&lt;/code&gt;, &lt;code&gt;amenity=bakery&lt;/code&gt;, &lt;code&gt;shop=confectionery&lt;/code&gt;, or something else?&lt;/p&gt;
&lt;h1&gt;NIF/VAT number&lt;/h1&gt;
&lt;p&gt;Use &lt;a href="https://wiki.openstreetmap.org/wiki/Key:ref:vatin"&gt;&lt;code&gt;ref:vatin&lt;/code&gt;&lt;/a&gt;, e.g. &lt;code&gt;ref:vatin=PT123456789&lt;/code&gt;.&lt;/p&gt;
&lt;h1&gt;Adding turn restrictions&lt;/h1&gt;
&lt;p&gt;First, in this order, select the &amp;quot;from&amp;quot; way, the intersecting (&amp;quot;via&amp;quot;) node, and
the &amp;quot;to&amp;quot; way. Then, &amp;quot;Presets&amp;quot;&gt;&amp;quot;Relations&amp;quot;&gt;&amp;quot;Turn restriction&amp;quot;. Select the
correct restriction (e.g. &lt;code&gt;no_u_turn&lt;/code&gt;) and hit &amp;quot;New relation&amp;quot;. On the lower
left list of objects, select the &amp;quot;from&amp;quot; way and change its role to &amp;quot;from&amp;quot; (and
similarly to the &amp;quot;via&amp;quot; node and the &amp;quot;to&amp;quot; way). Hit &amp;quot;Ok&amp;quot; and you're done.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</content>
    <id>gemini://siiky.srht.site/osm/cheatsheet.md</id>
    <published>2022-07-28T00:00:00Z</published>
    <title type="text">OpenStreetMap Cheat Sheet</title>
    <updated>2021-07-12T00:00:00Z</updated>
    <link href="https://siiky.srht.site/osm/cheatsheet.html" rel="alternate" type="text/html" hreflang="en" title="OpenStreetMap Cheat Sheet" />
    <link href="gemini://siiky.srht.site/osm/cheatsheet.md" rel="alternate" type="text/gemtext" hreflang="en" title="OpenStreetMap Cheat Sheet" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Hard Determinism&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/12/30&lt;br&gt;&lt;/br&gt;2022/07/27&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Thoughts on Hard Determinism, as described in Philosophy 101, by Paul Kleinman.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Books list&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Hard determinism, as described in the book, states that everything is determined by past events. It is not clear from the book if it&amp;#39;s meant to be applied only to the physical world, beings&amp;#39; behavior, or both, but it treats only human behavior.&lt;/p&gt;&lt;p&gt;Applied to human behavior, the idea holds that we have no effect in future events, because we cannot do anything other than what we&amp;#39;re predetermined to do, essentially meaning that we have no free will.&lt;/p&gt;&lt;p&gt;This doesn&amp;#39;t sit right with me. How can we believe to have free will, believe to be able to make a choice, but not actually be able to make a choice? How can it be that when I choose to eat this instead of that, or listen to this song instead of that one, I&amp;#39;m not actually choosing, but it had been predetermined beforehand, since the beginning of time, that I would &amp;quot;choose&amp;quot; so?&lt;/p&gt;&lt;p&gt;As I write this, I wonder if I could have not written it. And, hadn&amp;#39;t I written this, had I merely thought of writing and chosen not to, I wonder if I could have actually written it.&lt;/p&gt;&lt;p&gt;It&amp;#39;s really depressing to think that we have no saying in the course of our lives; that whatever we think we do to improve them, or whatever luck or misfortune befalls us, happens simply because it must.&lt;/p&gt;&lt;p&gt;All the counter arguments listed on the book base themselves in the fact that making choices constitutes free will, and assume, in some way or another, that we can make choices. This boils down to &amp;quot;hard determinism is false, therefore hard determinism is false&amp;quot;.&lt;/p&gt;&lt;p&gt;However, the real problem is, I think, that we don&amp;#39;t know if this assumption is right.&lt;/p&gt;&lt;p&gt;On a positive note, this idea implies that, theoretically, one could predict the future after having witnessed the present. This is true, to a certain extent, in the physical world. But what would it mean to be able to know what our &amp;quot;choices&amp;quot; would be in the future? What would happen? On a less positive note, again, it would certainly not be a pleasant experience in certain scenarios, similar to being diagnosed with a terminal disease.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Hard_determinism"&gt;Hard determinism&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Free_will"&gt;Free will&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://plato.stanford.edu/entries/freewill"&gt;Free will (SEP)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;(haven&amp;#39;t read this SEP entry yet)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/hard_determinism.gmi</id>
    <published>2022-07-27T00:00:00Z</published>
    <title type="text">Hard Determinism</title>
    <updated>2020-12-30T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/hard_determinism.html" rel="alternate" type="text/html" hreflang="en" title="Hard Determinism" />
    <link href="gemini://siiky.srht.site/philosophy/hard_determinism.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Hard Determinism" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Log #003&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/07/23&lt;br&gt;&lt;/br&gt;2022/07/24&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;h2&gt;Language&lt;/h2&gt;&lt;p&gt;Following up with the idea of a Petri nets programming language, I now have some goals I want it to meet:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;It has to be a real programming language, not a modeling one!&lt;/li&gt;&lt;li&gt;Must be textual, human-friendly, and text-editor-friendly -- I don&amp;#39;t want to have to muck with a shitty, slow, and subpar GUI editor (as a bonus: this should be enough to make it VCS-friendly too)&lt;/li&gt;&lt;li&gt;In line with the first point: transitions are written in the &amp;quot;host&amp;quot; programming language, and the user must be able to reuse existing code of that language&lt;/li&gt;&lt;li&gt;Also in line with the first point: a program in this language must be runnable (even better if compiled) like any other program&lt;/li&gt;&lt;li&gt;It must be easy to convert to a graphical representation of places, transitions, and edges between them&lt;/li&gt;&lt;li&gt;It would be fucking great if transitions and nets were reusable and composable! This is possibly one of the hardest goals, so as a start I&amp;#39;m OK with supporting only monolithic nets&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Here&amp;#39;s a starting point: places can be identified, or referenced, in a Petri net by integers:&lt;/p&gt;&lt;pre&gt;(define-constant p0 0)
(define-constant p1 1)
(define-constant p2 2)
(define-constant p3 3)
&lt;/pre&gt;&lt;p&gt;There&amp;#39;s a DSL that makes it easy to define transitions. Transitions have the associated input and output places, and a transition procedure. This procedure is user code in the host language, and is how the net model ties with &amp;quot;normal&amp;quot; code.&lt;/p&gt;&lt;pre&gt;; Consumes two tokens from p0: x and y
(define-transition (t1 (x p0) (y p0))
  (p1 p2)
  ; Produces (+ x y) to p1, and #t to p2
  (values (+ x y) #t))

; Consumes res from p1 and succ? from p2
(define-transition (t2 (res p1) (succ? p2))
  (p3)
  ; The value of this expression isn&amp;#39;t used because p3 is a &amp;quot;terminal&amp;quot; place
  (when succ? (print &amp;quot;Successfully sumed: &amp;quot; a)))
&lt;/pre&gt;&lt;p&gt;Finally, a Petri net is simply the set of its transitions:&lt;/p&gt;&lt;pre&gt;(define-petri-net some-net t1 t2)
&lt;/pre&gt;&lt;img src="somenet.png" alt="Some net"&gt;&lt;/img&gt;&lt;p&gt;With two different macro implementations of define-transition and define-petri-net it&amp;#39;s easy to have the same source file expand to compilable code and to some graphical representation (such as GVS, which can be converted to GraphViz, which can be converted to PNG, SVG, &amp;amp;c, with a couple of commands).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../scheme/gv-dsl.html"&gt;GVS&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The detail I was most indecisive about was how to &amp;quot;present&amp;quot; input values to the transition procedure. Some of the alternatives I thought of were naming a single argument list to contain all of the values from all of the places; and, naming the input places and their multiplicities. Examples:&lt;/p&gt;&lt;pre&gt;(define-transition
  (t1 args (p1 2) (p2 3) ...)
  ((p3 1) (p4 2) ...)
  ; Alternatively, use matchable
  (let ((p1-1 (car args))
        (p1-2 (cadr args))
        (p2-1 (caddr args))
        (p2-2 (cadddr args))
        ...)
    ...))

(define-transition
  (t1 (p1-args p1 2) (p2-args p2 3) ...)
  ((p3 1) (p4 2) ...)
  ; Alternatively, use matchable
  (let ((p1-1 (car p1-args))
        (p1-2 (cadr p1-args))
        (p2-1 (car p2-args))
        (p2-2 (cadr p2-args))
        ...)
    ...))
&lt;/pre&gt;&lt;p&gt;My reasoning was: what if you need a ton of tokens from a single place? Are you gonna enumerate them all? But then... there&amp;#39;s this definition in the Statebox monograph of a k-bounded net, which is a net that never has more than k tokens in any place in any execution ever. And also the definition of a &amp;quot;safe net&amp;quot;, which is a 1-bounded net. So it&amp;#39;s a pretty big deal to have a very limitted number of tokens in a given place.&lt;/p&gt;&lt;p&gt;Because of that, and to get the most ergonomic bang for the typing buck, I think the syntax presented before is a good compromise.&lt;/p&gt;&lt;p&gt;There was also the question of representing the tokens produced. For that I quickly convinced myself that using Scheme&amp;#39;s values is a good choice: producing several tokens needs values, producing a single token needs no extra bureaucracy. Using the language&amp;#39;s native features is surely the way to go.&lt;/p&gt;&lt;h2&gt;Fold Recursive Model&lt;/h2&gt;&lt;p&gt;(Not the fold concept described in the last chapter of the Statebox monograph)&lt;/p&gt;&lt;p&gt;Tried modeling a fold (such as a sum), which is a recursive process, as a Petri net, basically the first on my own. Here&amp;#39;s a rough graphic (haven&amp;#39;t played with GraphViz settings yet):&lt;/p&gt;&lt;img src="folder1.png" alt="Folder w/ inspection"&gt;&lt;/img&gt;&lt;p&gt;Think of kons as add. The net must start execution with the initial value already in acc. The kons transition consumes the value from input and the value from acc, does its thing and produces the result into acc again. And peek consumes the value from acc and duplicates it into output and acc again. This transition could be a user-fired one, for example, to see the current state of the accumulator.&lt;/p&gt;&lt;p&gt;Alternatively it could consume the value from acc and not put it back. But that would need having a transition to produce a default value for acc. Example:&lt;/p&gt;&lt;img src="folder2.png" alt="Folder w/ default acc"&gt;&lt;/img&gt;&lt;p&gt;In this net acc may start empty, but bound must have a single token. When a token is produced to input, either kons or default-acc is enabled. If there&amp;#39;s no token in acc, then there must be a token in bound, and in that case default-acc is enabled; if there&amp;#39;s a token in ac, then there&amp;#39;s no token in bound, and in that case kons is enabled. kons behaves as before. On the other hand, peek may consume the token from acc at any time, but does not put it back, and instead puts a dummy token in bound. This place bound is only used to &amp;quot;signal&amp;quot; that acc has no tokens, so that default-acc may move one there. default-acc simply moves an input token to acc to initialize the accumulator.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="logs.html"&gt;Logs index&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/log003.gmi</id>
    <published>2022-07-24T00:00:00Z</published>
    <title type="text">Petri Nets Log #003</title>
    <updated>2022-07-23T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/log003.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Log #003" />
    <link href="gemini://siiky.srht.site/petri_nets/log003.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Log #003" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;ipfs.scm&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/07/23&lt;br&gt;&lt;/br&gt;2022/07/24&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I wrote a CHICKEN Scheme egg to control a Kubo node through its RPC API.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/ipfs.scm"&gt;Repository&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/eggref/5/ipfs"&gt;Documentation&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I&amp;#39;m really glad how it turned out. I think the list of endpoints along with their arguments is very easy to maintain (easily the most tedious job of such a library), and more importantly I think it&amp;#39;s very easy to use also.&lt;/p&gt;&lt;p&gt;A new version of Kubo was released some day of this past week, and today I spent a few hours updating the egg. I received nice comments from teiresias and a couple of improvements. That and the fact that they&amp;#39;re using the egg made today that much better.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://github.com/ipfs/kubo/releases/tag/v0.14.0"&gt;Kubo v0.14.0 release notes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/ipfs.scm/commit/0.0.4"&gt;ipfs.scm v0.0.4&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/the-brannons.com"&gt;teiresias&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;What prompted me to write this was Petri nets log #003, where I write about languages convertible to other target languages. The idea didn&amp;#39;t come to me while writing that log but because of this egg. After writing it and getting something already usable I thought of using IPFS where CHICKEN didn&amp;#39;t fit: some mpv hacks with its Lua interface. &amp;quot;Why not write an ipfs.lua?&amp;quot;, thought I. And so I did, the following couple of hours. I progressed along well, until I reached the point where only the endpoints were missing. Of course, I didn&amp;#39;t want to write them by hand yet again, screw that! Instead, I wrote a different version of export-rpc-call and voila: a Lua file with all the endpoints defined, ready to be used!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../petri_nets/log003.html"&gt;Petri Nets Log #003&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://git.sr.ht/~siiky/ipfs.lua"&gt;ipfs.lua&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Have to think what to do about the recent rename someday...&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/projects/ipfs.gmi</id>
    <published>2022-07-24T00:00:00Z</published>
    <title type="text">ipfs.scm</title>
    <updated>2022-07-23T00:00:00Z</updated>
    <link href="https://siiky.srht.site/projects/ipfs.html" rel="alternate" type="text/html" hreflang="en" title="ipfs.scm" />
    <link href="gemini://siiky.srht.site/projects/ipfs.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="ipfs.scm" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;IPFS Quickstart&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/04/05&lt;br&gt;&lt;/br&gt;2022/07/24&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;This is just a short pointer on how to use IPFS to access the care list, for anyone who doesn&amp;#39;t know and/or isn&amp;#39;t interested in learning more about it right now. To learn more you should go to the official website or search around.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="list.html"&gt;Care list&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://ipfs.io"&gt;https://ipfs.io&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;If you don&amp;#39;t want to install an IPFS node on your own computer(s) (I would highly recommend it) the way to access the network with just an HTTP browser is to use a public gateway.&lt;/p&gt;&lt;p&gt;If you install the IPFS browser companion, accessing IPFS URIs is just a matter of copy-pasting ipfs://XYZ or ipns://XYZ into your browser&amp;#39;s bar, the plugin does the rest. I would recommend it if you&amp;#39;re going to use IPFS semi-regularly.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://docs.ipfs.io/install/ipfs-companion"&gt;https://docs.ipfs.io/install/ipfs-companion&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Otherwise, this is how you do it manually: from ipfs://XYZ you copy the XYZ and go to https://XYZ.ipfs.dweb.link. If the URI has a ?filename=smth.txt query string, you should append it to the URI too: https://XYZ.ipfs.dweb.link?filename=smth.txt.&lt;/p&gt;&lt;p&gt;Last note: dweb.link is only one of the several public HTTP gateways available (and I believe it&amp;#39;s operated by Protocol Labs, the company behind IPFS). For others check this list:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://ipfs.github.io/public-gateway-checker"&gt;https://ipfs.github.io/public-gateway-checker&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/care/ipfs.gmi</id>
    <published>2022-07-24T00:00:00Z</published>
    <title type="text">IPFS Quickstart</title>
    <updated>2022-04-05T00:00:00Z</updated>
    <link href="https://siiky.srht.site/care/ipfs.html" rel="alternate" type="text/html" hreflang="en" title="IPFS Quickstart" />
    <link href="gemini://siiky.srht.site/care/ipfs.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="IPFS Quickstart" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Log #002&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/06/23&lt;br&gt;&lt;/br&gt;2022/07/23&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Unfortunately there are no uppercase subscript letters? When you see &amp;quot;_N&amp;quot; imagine &amp;quot;N&amp;quot; is in subscript. And I&amp;#39;m actually finishing writing this almost exactly one month later... :/ Some details of what I thought at the time escape me.&lt;/p&gt;&lt;p&gt;Finished reading Ch. 3 &amp;amp; 4 some weeks ago.&lt;/p&gt;&lt;p&gt;On Ch. 3 there wasn&amp;#39;t that much new to me -- notation was slightly different from what I was used to, but in general it wasn&amp;#39;t complicated to follow. There was terminology I didn&amp;#39;t remember too, but mostly just had to go back and read my notes from University.&lt;/p&gt;&lt;p&gt;Ch. 4, however, was an interesting one. They define two categories: one of Petri nets (called Petri), and another of Petri net executions.&lt;/p&gt;&lt;p&gt;with nets as objects; and another of Petri net executions of a given net (called F(N), with some Petri net N, and a fancy calligraphic F), with markings as objects, and transitions as morphisms.&lt;/p&gt;&lt;h2&gt;Petri&lt;/h2&gt;&lt;p&gt;The category of Petri nets as nets as objects (obviously), and morphisms are... weird.&lt;/p&gt;&lt;p&gt;A morphism N → M of the category Petri is a pair 〈f, g〉 where:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;f is a function between the transitions of N and those of M&lt;/li&gt;&lt;li&gt;g is a multiset homomorphism between the markings(?) of both nets&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Additionally, these morphisms must preserve a couple of properties:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;°(-)_M · f = g · °(-)_N&lt;/li&gt;&lt;li&gt;(-)°_M · f = g · (-)°_N&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I can&amp;#39;t explain these in words right now, so... exercise for the reader!&lt;/p&gt;&lt;p&gt;But I&amp;#39;ll try anyway with an example: suppose that f transforms transitions in such a way that they consume and produce double the amount of tokens, and that g doubles the amount of tokens of each place; then, if a particular place p of the net N has 2 tokens, and a transition t of the net N that consumes 2 tokens from p, there&amp;#39;s an &amp;quot;equivalent&amp;quot; place p in the net M with 4 tokens, and an &amp;quot;equivalent&amp;quot; transition t in the net M that consumes 4 tokens from p.&lt;/p&gt;&lt;p&gt;Altogether, I think these form a sort of super/subnet relation between nets, that visually looks a lot like super/subgraphs.&lt;/p&gt;&lt;p&gt;The category Petri can be restricted to a subcategory (Petri_G), which is the one used in practice, but I think the details aren&amp;#39;t relevant for this post (it has to do with the g, if you wish to know).&lt;/p&gt;&lt;h2&gt;Executions&lt;/h2&gt;&lt;p&gt;The possible executions of a given net form also a category if you take the markings as objects and the transitions as morphisms.&lt;/p&gt;&lt;p&gt;Markings are represented as products of places. For example, if your net has places p1 and p2, a marking of 3 tokens in p1 and 2 tokens in p2 could be represented as p1·p1·p1·p2·p2. This representation isn&amp;#39;t unique (and cannot be unique due to math reasons), since · is commutative -- p2·p1·p2·p1·p1 is another possible representation of the same marking.&lt;/p&gt;&lt;p&gt;In the formal definition of Petri nets, a token is a token, no matter if it was produced before or after another token in the same place. In other words, tokens of a place are indistinguishable from each other. However, when programming, it usually matters what the value of a thing is. In general, a function applied to two different values will compute two different values as well.&lt;/p&gt;&lt;p&gt;Magics of mathematics to the rescue! You can visualize the evolution of a net as a string diagram! Really cool.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/String_diagram"&gt;String diagrams&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://invidious.snopyta.org/watch?v=LY5H9uY7Gns"&gt;ACT 2020 Tutorial: Introduction to string diagrams (Fabrizio Genovese)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And even cooler because it brings an important detail in. Tokens in this graphical representation are not confused with each other: there&amp;#39;s clearly a string (hence the name) connecting a certain value in a certain point in time to all its &amp;quot;ancestors&amp;quot;, i.e., the order of firings and which tokens were consumed and produced to result in that value.&lt;/p&gt;&lt;p&gt;And even cooler cooler is that, while you can now tell tokens apart, nobody tells you what order they have to be consumed in! This may or may not be something useful, but I think it&amp;#39;s a neat detail to keep in mind. An implementation may provide different &amp;quot;token choosing&amp;quot; abilities: queues, stacks, sets (random), with or without priorities (e.g. you may want to always consume the smallest integer of a place), &amp;amp;c.&lt;/p&gt;&lt;h2&gt;Implementation&lt;/h2&gt;&lt;p&gt;About this time I started wondering... Are there Petri net implementations? What are they used for, modeling or programming? Strictly graphical or textual? Easy to work with? VCS-friendly?&lt;/p&gt;&lt;p&gt;Statebox supposedly had a prototype implementation that is no more. At least I can&amp;#39;t find it anymore and the people that I know knew about it don&amp;#39;t know about it no more either. I think they&amp;#39;re working on something new, but not publicly.&lt;/p&gt;&lt;p&gt;So wondering I continued, thinking of a possible language. I don&amp;#39;t have anything concrete yet&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://xkcd.com/297"&gt;but you can be sure there&amp;#39;ll be parens...&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="logs.html"&gt;Logs index&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/log002.gmi</id>
    <published>2022-07-23T00:00:00Z</published>
    <title type="text">Petri Nets Log #002</title>
    <updated>2022-06-23T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/log002.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Log #002" />
    <link href="gemini://siiky.srht.site/petri_nets/log002.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Log #002" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Log #001&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/05/16&lt;br&gt;&lt;/br&gt;2022/07/23&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I started studying Petri nets a few weeks ago, reading the Statebox monograph, and just finished today reading Ch. 2, the formalization of Petri nets and useful definitions.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Petri_net"&gt;Petri nets&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://statebox.org"&gt;Statebox site&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://statebox.org/research/publications/monograph"&gt;Statebox monograph&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://arxiv.org/abs/1906.07629"&gt;Statebox monograph (ArXiv)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;At first I didn&amp;#39;t understand the point of having places (seemingly analogous to &amp;quot;states&amp;quot; in more common automata theories) and transitions (analogous to arrows in more common automata theories) as disjunctive sets of nodes of a graph -- other than the obvious advantage of it being easier to specify several inputs/outputs of a transition. Plus, there&amp;#39;s no current &amp;quot;state&amp;quot; (the mentioned places), very different from other more common automata theories! Not only that, but what they call a &amp;quot;state&amp;quot; is the number of tokens in each place -- what?&lt;/p&gt;&lt;p&gt;Once I saw Fig. 2.8 and 2.9, however, it clicked: a transition is enabled (can fire, &amp;quot;execute&amp;quot;) if its input tokens can be satisfied by all its input places. So what&amp;#39;s currently a valid &amp;quot;step&amp;quot; in the system is determined by the number of tokens in each place, just like the &amp;quot;current state&amp;quot; of other automata determines the valid next transitions. And, several transitions may execute simultaneously (as long as their executions don&amp;#39;t prevent each other)!&lt;/p&gt;&lt;p&gt;Yesterday and today were good days in this regard. I now understand how Petri nets can represent concurrent/parallel behavior, because transitions are like independent &amp;quot;processes&amp;quot; (a la Erlang); and that places are more like variables, or resources, possibly shared between many transitions (processes).&lt;/p&gt;&lt;p&gt;There&amp;#39;s a site referenced right at the end of Ch. 2 where you can read the basics of the basics and play with some simple nets. Unfortunately you can only play with already defined ones, you can&amp;#39;t define new ones or change those of the website.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://petrinet.org"&gt;https://petrinet.org&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="logs.html"&gt;Logs index&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/log001.gmi</id>
    <published>2022-07-23T00:00:00Z</published>
    <title type="text">Petri Nets Log #001</title>
    <updated>2022-05-16T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/log001.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Log #001" />
    <link href="gemini://siiky.srht.site/petri_nets/log001.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Log #001" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Psychology Links&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/02/20&lt;br&gt;&lt;/br&gt;2022/07/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;h2&gt;Terapia de Divã (Portuguese)&lt;/h2&gt;&lt;p&gt;Interviews to Portuguese psychologists on various subjects.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.comunidadeculturaearte.com/tag/terapia-de-diva"&gt;https://www.comunidadeculturaearte.com/tag/terapia-de-diva&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.comunidadeculturaearte.com/tag/terapia-do-diva"&gt;https://www.comunidadeculturaearte.com/tag/terapia-do-diva&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Wikipedia&lt;/h2&gt;&lt;p&gt;Wikipedia, of course!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Psychology"&gt;https://en.wikipedia.org/wiki/Psychology&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/psychology/links.gmi</id>
    <published>2022-07-15T00:00:00Z</published>
    <title type="text">Psychology Links</title>
    <updated>2020-02-20T00:00:00Z</updated>
    <link href="https://siiky.srht.site/psychology/links.html" rel="alternate" type="text/html" hreflang="en" title="Psychology Links" />
    <link href="gemini://siiky.srht.site/psychology/links.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Psychology Links" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Philosophy Links&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/02/20&lt;br&gt;&lt;/br&gt;2022/07/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;h2&gt;Stanford Encyclopedia of Philosophy (SEP)&lt;/h2&gt;&lt;p&gt;Lots of detailed and in-depth articles about all sorts of topics. The RSS feed is for updates to articles.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://plato.stanford.edu/contents.html"&gt;https://plato.stanford.edu/contents.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://plato.stanford.edu/rss/sep.xml"&gt;https://plato.stanford.edu/rss/sep.xml&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Internet Encyclopedia of Philosophy (IEP)&lt;/h2&gt;&lt;p&gt;Another site full of in-depth articles, similar to SEP.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://iep.utm.edu"&gt;https://iep.utm.edu&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Wikipedia&lt;/h2&gt;&lt;p&gt;Wikipedia, of course!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Philosophy"&gt;https://en.wikipedia.org/wiki/Philosophy&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Wikiversity School of Philosophy&lt;/h2&gt;&lt;p&gt;Wikiversity pages on philosophy. The main page has a sizable list of books. The resources page has links to some big philosophy sites, such as SEP, IEP, &amp;amp;c, and to some freely available works.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikiversity.org/wiki/School:Philosophy"&gt;https://en.wikiversity.org/wiki/School:Philosophy&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikiversity.org/wiki/Philosophy/Resources"&gt;https://en.wikiversity.org/wiki/Philosophy/Resources&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/links.gmi</id>
    <published>2022-07-15T00:00:00Z</published>
    <title type="text">Philosophy Links</title>
    <updated>2020-02-20T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/links.html" rel="alternate" type="text/html" hreflang="en" title="Philosophy Links" />
    <link href="gemini://siiky.srht.site/philosophy/links.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Philosophy Links" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Groups&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/02/20&lt;br&gt;&lt;/br&gt;2022/07/15&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;This post is about groups (whouldathunkit).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Group_(mathematics)"&gt;https://en.wikipedia.org/wiki/Group_(mathematics)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Conventions/Notation&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;∀ v: P means P is true for all possible v&lt;/li&gt;&lt;li&gt;∃ v: P means P is true for at least one v&lt;/li&gt;&lt;li&gt;∃¹ v: P means P is true for exactly one v&lt;/li&gt;&lt;li&gt;∀ v1: ∀ v2: P will be abbreviated as ∀ v1, v2: P&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Sets are written as its elements surrounded by brackets. For example, ∅ is the empty set and { a, b, c } is a set with the elements a, b and c. Sets comprehension will be written as { expr : vars, restrictions } and the cardinal of a set will be written as #S.&lt;/p&gt;&lt;p&gt;N is the set of natural numbers (w/o zero), N₀ the set of natural numbers (w/ zero), Z the set of integers, and R the set of real numbers.&lt;/p&gt;&lt;p&gt;The modulo operator will be recurrent throughout this post. A couple of examples:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;4 mod 5 ≣ 9 mod 5 ≣ 4&lt;/li&gt;&lt;li&gt;5 mod 2 ≣ 1&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This operator is called % in C, modulo in Scheme and mod in Haskell.&lt;/p&gt;&lt;p&gt;A useful definition: p ≣ q (mod n) ⇔ p mod n ≣ q mod n.&lt;/p&gt;&lt;p&gt;&amp;quot;|&amp;quot; will be used to mean &amp;quot;divides&amp;quot;: &amp;quot;a | b&amp;quot; means &amp;quot;a divides b&amp;quot;, &amp;quot;b is a multiple of a&amp;quot;, or, with modulo, &amp;quot;a | b ⇔ b ≣ 0 (mod a)&amp;quot;.&lt;/p&gt;&lt;p&gt;We will be needing the concept of a &amp;quot;Congruential Equivalence Class&amp;quot; later on. They are written as [m]ₙ (∀ n ∈ N, m ∈ Z) and are defined as [m]ₙ = { x ∈ Z : x ≣ m (mod n) }.&lt;/p&gt;&lt;p&gt;Depending on context, + and ∗ will either be the usual addition and multiplication of numbers, or addition and multiplication of classes.&lt;/p&gt;&lt;p&gt;Addition and multiplication of classes are defined as [p]ₙ + [q]ₙ = [p+q]ₙ and [p]ₙ ∗ [q]ₙ = [p∗q]ₙ. Example: 2+2=4, [2]₃ + [1]₃ = [2+1]₃ = [0]₃.&lt;/p&gt;&lt;h1&gt;What is a Group?!&lt;/h1&gt;&lt;h2&gt;In general&lt;/h2&gt;&lt;p&gt;A group is just a pair (S, O), where S is a set and O is a binary operation on S (i.e., O : S ∗ S → S) with the following required properties:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;(R1) Associativity: ∀ a, b, c ∈ S: O(a, O(b, c)) = O(O(a, b), c)&lt;/li&gt;&lt;li&gt;(R2) Identity: ∃¹ id ∈ S: ∀ a ∈ S: O(a, id) = O(id, a) = a&lt;/li&gt;&lt;li&gt;(R3) Inverse: ∀ a ∈ S: ∃¹ a&amp;#39; ∈ S: O(a, a&amp;#39;) = O(a&amp;#39;, a) = id&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;From (R2) and (R3) we can conclude that id always has inverse, itself.&lt;/p&gt;&lt;p&gt;There is one extra optional property:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;(R4) Commutativity: ∀ a, b ∈ S: O(a, b) = O(b, a)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;A group with a commutative operation is called a commutative group or an abelian group.&lt;/p&gt;&lt;p&gt;Given G = (G, O) a group, G will be used to refer both to the group itself and its associated set.&lt;/p&gt;&lt;p&gt;A group G is said to be infinite if #G is infinite, and finite if #G is finite.&lt;/p&gt;&lt;p&gt;That is the generic definition. We will focus on groups with integer sets and + or ∗ as the operation, however.&lt;/p&gt;&lt;h2&gt;Integers&lt;/h2&gt;&lt;p&gt;When the operation is + we call the identity element &amp;quot;null element&amp;quot; and represent it with 0. When the operation is ∗ we call the identity element &amp;quot;unity element&amp;quot; and represent it with 1.&lt;/p&gt;&lt;p&gt;When the operation is + we call the inverse of an element a its symmetric and represent it as -a. When the operation is ∗ we call the inverse of an element a its inverse and represent it as a⁻¹.&lt;/p&gt;&lt;h3&gt;(N₀, +)&lt;/h3&gt;&lt;p&gt;N₀ is the set of natural numbers (w/ zero), and + is the usual addition on natural numbers. Is it a group?&lt;/p&gt;&lt;ul&gt;&lt;li&gt;∀ a, b, c ∈ N₀: a + (b + c) = (a + b) + c&lt;/li&gt;&lt;li&gt;0 is the identity of the group, because ∀ a ∈ N₀: a + 0 = 0 + a = a&lt;/li&gt;&lt;li&gt;∀ a, b ∈ N: a + b ≠ 0 (Note that N = N₀∖{0})&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;N₀ with + does not satisfy property R3, so it is not a group.&lt;/p&gt;&lt;h3&gt;(Z, +)&lt;/h3&gt;&lt;p&gt;Z is the set of integers, and + is the usual addition on integers. Is it a group?&lt;/p&gt;&lt;ul&gt;&lt;li&gt;∀ a, b, c ∈ Z: a + (b + c) = (a + b) + c&lt;/li&gt;&lt;li&gt;0 is the identity of the group, because ∀ a ∈ Z: a + 0 = 0 + a = a&lt;/li&gt;&lt;li&gt;∀ a ∈ Z: ∃¹ a&amp;#39; ∈ Z: a + a&amp;#39; = 0&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Z satisfies all 3 requirements so it is a group. We also know that addition is commutative, so Z is an abelian group (see property R4).&lt;/p&gt;&lt;h3&gt;Other examples&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;(R, +), where R is the set of real numbers, is a group&lt;/li&gt;&lt;li&gt;(R∖{0}, ∗) is also a group&lt;/li&gt;&lt;li&gt;(R, ∗) is not a group, because 0 has no inverse (R3)&lt;/li&gt;&lt;li&gt;(N, +) is not a group, because there is no identity and no inverse (R2 and R3)&lt;/li&gt;&lt;li&gt;(N, ∗) is not a group, because there is no inverse (R3)&lt;/li&gt;&lt;li&gt;(Z∖{0}, ∗) is not a group, because other than 1 and -1, no element has inverse (R3)&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;What&amp;#39;s next?&lt;/h1&gt;&lt;p&gt;Some more definitions.&lt;/p&gt;&lt;h2&gt;Subgroup&lt;/h2&gt;&lt;p&gt;Given a group G, H is called a subgroup of G if H is contained in G and it is also a group, and we write H ≤ G. Examples:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;∀ (G, +) group: (G, +) ≤ (G, +)&lt;/li&gt;&lt;li&gt;Trivial Subgroup: ∀ (G, +) group: ({0}, +) ≤ (G, +)&lt;/li&gt;&lt;li&gt;(2Z, +) ≤ (Z, +)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;A subgroup H of a group G that is not G itself (H ≠ G, or H ⊂ G) is called a &amp;quot;Proper Subgroup&amp;quot;, and we write H &amp;lt; G. Examples:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Trivial Subgroup: ∀ (G, +) group: ({0}, +) &amp;lt; (G, +)&lt;/li&gt;&lt;li&gt;(2Z, +) &amp;lt; (Z, +)&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Multiples/Powers of an element&lt;/h2&gt;&lt;p&gt;Given an element a of an additive group, a+...+a (n times) can be written as n∗a. Special case: 0∗a = 0.&lt;/p&gt;&lt;p&gt;Given an element a of a multiplicative group, a∗...∗a (n times) can be written as aⁿ. Special case: a⁰ = 1.&lt;/p&gt;&lt;p&gt;For negative n, n∗a = -((-n)∗a) = (-n)∗(-a); and aⁿ = (a⁻ⁿ)⁻¹ = (a⁻¹)⁻ⁿ.&lt;/p&gt;&lt;h2&gt;Order of an element&lt;/h2&gt;&lt;p&gt;The order of an element a is the minimum number of times it must be operated with itself until it turns into the identity, and is written as o(a). If no matter how many times you operate the element it doesn&amp;#39;t turn into the identity, its order is said to be infinite.&lt;/p&gt;&lt;p&gt;A more rigorous definition is:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;a has infinite order if ∀ n ∈ N: n∗a ≠ 0&lt;/li&gt;&lt;li&gt;a has finite order k, that is, o(a) = k, if: (1) k ∈ N; (2) k∗a = 0; (3) ∀ n ∈ N: n∗a = 0 ⇒ n ≤ k&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;In particular, the order of the identity is 1, and the identity is the only element with order 1.&lt;/p&gt;&lt;p&gt;Useful fact: ∀ G group: ∀ a ∈ G: o(a) | #G. From this comes that in a finite group no element has infinite order.&lt;/p&gt;&lt;h2&gt;Generated Subgroup&lt;/h2&gt;&lt;p&gt;Given a ∈ (G, +), 〈a〉 = { n∗a : n ∈ Z } is a subgroup of G and is called the &amp;quot;Subgroup of G generated by a&amp;quot;. In particular, if G = 〈a〉, a is said to generate G, or that G is generated by a. Note that #〈a〉 = o(a). An example of this is 〈1〉 = 〈-1〉 = Z.&lt;/p&gt;&lt;h1&gt;Zₙ Groups&lt;/h1&gt;&lt;p&gt;You can group integers together according to their (mod n), make a set out of them, and define a group with it. These groups are called Zₙ, for some n ∈ N, and are defined as Zₙ = { [m]ₙ : m ∈ { 0, ..., n-1 } }.&lt;/p&gt;&lt;p&gt;These will get repetitive after Z₂, but the reason why they&amp;#39;re here will become clear.&lt;/p&gt;&lt;h2&gt;(Z₁, +)&lt;/h2&gt;&lt;p&gt;According to definition above Z₁ = { [0]₁ }, but you can go further here:&lt;/p&gt;&lt;p&gt;[0]₁&lt;br&gt;&lt;/br&gt;  = { def [m]ₙ }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x ≣ 0 (mod 1) }&lt;br&gt;&lt;/br&gt;  = { def (mod n) }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x mod 1 = 0 mod 1 }&lt;br&gt;&lt;/br&gt;  = { 0 mod 1 = 0 }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x mod 1 = 0 }&lt;br&gt;&lt;/br&gt;  = { ∀ x ∈ Z: 1 | x }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z }&lt;br&gt;&lt;/br&gt;  = { def Z }&lt;br&gt;&lt;/br&gt;Z&lt;/p&gt;&lt;p&gt;Z₁ is a trivial group (#Z₁ = 1), so it isn&amp;#39;t that interesting, other than Z being its only element.&lt;/p&gt;&lt;p&gt;Some things we can find about it:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Since it is a trivial group, its only subgroup is itself&lt;/li&gt;&lt;li&gt;[0]₁ is the identity, so o([0]₁) = 1&lt;/li&gt;&lt;li&gt;Z₁ = 〈[0]₁〉&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;(Z₂, +)&lt;/h2&gt;&lt;p&gt;When n=2 we get Z₂ = { [0]₂, [1]₂ }.&lt;/p&gt;&lt;p&gt;[0]₂&lt;br&gt;&lt;/br&gt;  = { def [m]ₙ }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x = 0 (mod 2) }&lt;br&gt;&lt;/br&gt;  = { def (mod n) }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x mod 2 = 0 mod 2 }&lt;br&gt;&lt;/br&gt;  = { 0 mod 2 = 0 }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x mod 2 = 0 }&lt;br&gt;&lt;/br&gt;  = { x mod 2 = 0 ⇒ ∃ k ∈ Z: x = 2 ∗ k }&lt;br&gt;&lt;/br&gt;{ 2 ∗ x : x ∈ Z }&lt;br&gt;&lt;/br&gt;  = { def 2Z }&lt;br&gt;&lt;/br&gt;2Z&lt;/p&gt;&lt;p&gt;So [0]₂ = 2Z is the set of even integers. You can probably guess by now, but:&lt;/p&gt;&lt;p&gt;[1]₂&lt;br&gt;&lt;/br&gt;  = { def [m]n }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x = 1 (mod 2) }&lt;br&gt;&lt;/br&gt;  = { def (mod n) }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x mod 2 = 1 mod 2 }&lt;br&gt;&lt;/br&gt;  = { 1 mod 2 = 1 }&lt;br&gt;&lt;/br&gt;{ x : x ∈ Z, x mod 2 = 1 }&lt;br&gt;&lt;/br&gt;  = { x mod 2 = 1 ⇒ ∃ k ∈ Z: x = 2 ∗ k + 1 }&lt;br&gt;&lt;/br&gt;{ 2 ∗ x + 1 : x ∈ Z }&lt;br&gt;&lt;/br&gt;  = { def 2Z+1 }&lt;br&gt;&lt;/br&gt;2Z+1&lt;/p&gt;&lt;p&gt;And with that you see that [1]₂ is the set of odd integers.&lt;/p&gt;&lt;p&gt;Some things we can find about it:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;[0]₂ is the identity, so o([0]₂) = 1&lt;/li&gt;&lt;li&gt;[1]₂ ≠ [0]₂, but [1]₂ + [1]₂ = [1 + 1]₂ = [2]₂ = [0]₂, so o([1]₂) = 2&lt;/li&gt;&lt;li&gt;〈[0]₂〉 = { [0]₂ } &amp;lt; Z₂&lt;/li&gt;&lt;li&gt;〈[1]₂〉 = Z₂&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;(Z₃, +)&lt;/h2&gt;&lt;p&gt;Z₃ = { [0]₃, [1]₃, [2]₃ }&lt;/p&gt;&lt;p&gt;I&amp;#39;ll skip showing how to get to the definition of each of the classes from now. Also, you may have already noticed, but if not, [0]ₙ is the set of multiples of n, nZ.&lt;/p&gt;&lt;p&gt;[0]₃ = 3Z&lt;br&gt;&lt;/br&gt;[1]₃ = 3Z + 1&lt;br&gt;&lt;/br&gt;[2]₃ = 3Z + 2&lt;/p&gt;&lt;p&gt;And now things about Z₃:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;o([0]₃) = 1&lt;/li&gt;&lt;li&gt;o([1]₃) = 3; you may also have noticed that o([1]n) = n. This has to do with the fact that ∀ n ∈ Z: n ∗ 1 = n. So n ∗ [1]n = [n ∗ 1]n = [n]n = [0]n&lt;/li&gt;&lt;li&gt;o([2]₃) = 3; [2]₃ ≠ [0]₃, 2 ∗ [2]₃ = [1]₃ ≠ [0]₃, 3 ∗ [2]₃ = [0]₃ This one has to do with the fact that 2 and 3 are coprime, which means lcm(2, 3) = 6, and 6 / 2 = 3&lt;/li&gt;&lt;li&gt;〈[0]₃〉 = { [0]₃ } &amp;lt; Z₃&lt;/li&gt;&lt;li&gt;〈[1]₃〉 = 〈[2]₃〉 = Z₃&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;(Z₄, +)&lt;/h2&gt;&lt;p&gt;Z₄ = { [0]₄, [1]₄, [2]₄, [3]₄ }&lt;/p&gt;&lt;p&gt;[0]₄ = 4Z&lt;br&gt;&lt;/br&gt;[1]₄ = 4Z + 1&lt;br&gt;&lt;/br&gt;[2]₄ = 4Z + 2&lt;br&gt;&lt;/br&gt;[3]₄ = 4Z + 3&lt;/p&gt;&lt;p&gt;Once again, things about this group:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;o([0]₄) = 1&lt;/li&gt;&lt;li&gt;o([2]₄) = 2&lt;/li&gt;&lt;li&gt;o([1]₄) = o([3]₄) = 4&lt;/li&gt;&lt;li&gt;〈[2]₄〉 = { [0]₄, [2]₄ } &amp;lt; Z₄&lt;/li&gt;&lt;li&gt;〈[1]₄〉 = 〈[3]₄〉 = Z₄&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Now something interesting happened here! Remember that ∀ G group: ∀ a ∈ G: o(a) | #G&lt;/p&gt;&lt;p&gt;Because of this we know that the only possible orders are 1, 2 and 4.&lt;/p&gt;&lt;p&gt;This also means that it is possible for a subgroup of cardinal 2 to exist. In this case, the only one is 〈[2]₄〉. Why, though, did this happen with Z₄, but not with Z₁, Z₂ or Z₃? Z₁ is obvious: #Z₁ = 1, so the only possible subgroup is itself. Z₂ is also easy: its only elements are [0]₂ and [1]₂, and we know that:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;∀ n ∈ N: 〈[0]n〉 = { [0]n }; and that&lt;/li&gt;&lt;li&gt;∀ n ∈ N: 〈[1]n〉 = Zₙ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;For Z₃ it&amp;#39;s not as clear. The hint is, again: ∀ G group: ∀ a ∈ G: o(a) | #G&lt;/p&gt;&lt;p&gt;Both 2 and 3 are prime, which means, their only divisors are 1 and themselves. So it&amp;#39;s not possible for a subgroup of Z₃ with cardinal 2 to exist.&lt;/p&gt;&lt;h2&gt;(Z₅, +)&lt;/h2&gt;&lt;p&gt;Try this one yourself.&lt;/p&gt;&lt;h2&gt;(Zₙ, +)&lt;/h2&gt;&lt;p&gt;Summing up:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;∀ n ∈ N: Zₙ has more than one proper subgroup ⇔ n is not prime&lt;/li&gt;&lt;li&gt;∀ n ∈ N: Zₙ has exactly one proper subgroup ⇔ n is prime&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Proving this is easy: Let n ∈ N.&lt;/p&gt;&lt;p&gt;Suppose that Zₙ has more than one proper subgroup. We want to prove that n is not prime.&lt;/p&gt;&lt;p&gt;There is a proper subgroup H such that #H &amp;gt; 1. Since H is a proper subgroup, then #H &amp;lt; n. From this, and the fact that #H | n, we can conclude n is not prime.&lt;/p&gt;&lt;p&gt;Now the other way: Suppose n is not prime. We want to prove that Zₙ has more than one proper subgroup. Since n is not prime, then ∃ k ∈ N: 1 &amp;lt; k &amp;lt; n ∧ k | n.&lt;/p&gt;&lt;p&gt;Let k be such a number. Then ∃ a ∈ Zₙ: o(a) = k.&lt;/p&gt;&lt;p&gt;Let a be such an element. o(a) = k ⇒ #〈a〉 = k. We know that 〈a〉 ≤ Zₙ and that k &amp;lt; n, so 〈a〉 &amp;lt; Zₙ.&lt;/p&gt;&lt;h1&gt;TODO&lt;/h1&gt;&lt;p&gt;Groups that are isomorphic to some proper subgroup.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/algebra/groups.gmi</id>
    <published>2022-07-15T00:00:00Z</published>
    <title type="text">Groups</title>
    <updated>2020-02-20T00:00:00Z</updated>
    <link href="https://siiky.srht.site/algebra/groups.html" rel="alternate" type="text/html" hreflang="en" title="Groups" />
    <link href="gemini://siiky.srht.site/algebra/groups.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Groups" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Gnuplot Quickstart&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/01/12&lt;br&gt;&lt;/br&gt;2022/07/14&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I started learning Gnuplot for a PA because I didn&amp;#39;t want to deal with Python BS or whatnot, and Gnuplot has been around since like... even before the dinosaurs were invented, so it must be super specialized for this kinda thing, and it must be pretty good right?&lt;/p&gt;&lt;p&gt;Hopefully I&amp;#39;ll document well enough the things I&amp;#39;ve learned these past few days, for posterity or someone else. I&amp;#39;ve been using it to plot 2D graphs of recorded data, not functions/expressions, so my focus will be on that.&lt;/p&gt;&lt;p&gt;Gnuplot files don&amp;#39;t have a &amp;quot;standard&amp;quot; file extension, but some common ones seem to be .gp, .plot, .gnu, .gnuplot, .plt. I&amp;#39;ve been using .gp and will use .gp here.&lt;/p&gt;&lt;p&gt;To run Gnuplot scripts, just call gnuplot script.gp. It&amp;#39;s possible to pass arguments to the script by using the -c flag: gnuplot -c script.gp arg1 arg2 etc. And inside the script the arguments are available as the variables ARG1, ARG2, etc. As is common on other programming languages, ARG0 is the script name. I don&amp;#39;t know if there are, or what are the limits on the number of arguments, nor how to loop through them, but I&amp;#39;m guessing it&amp;#39;s possible.&lt;/p&gt;&lt;p&gt;Now let&amp;#39;s get going with some Gnuplot code. I said the focus would be on plotting datafiles, so let&amp;#39;s start with expressions:&lt;/p&gt;&lt;pre&gt;# The output &amp;quot;format&amp;quot;.
set terminal svg

# The output file.
set output &amp;quot;exp.svg&amp;quot;

# Enable gridlines.
set grid

# Where to place the lines/points/&amp;amp;c legend.
set key right bottom

# Legend of the XX/YY axes.
set xlabel &amp;quot;The passage of time...&amp;quot;
set ylabel &amp;quot;Shittiness of the web&amp;quot;

# Mirror or not the axes&amp;#39; tics -- notice the YY axis has tics on both the left
#   and right, but the XX axis has only on the bottom, not the top.
set ytics mirror
set xtics nomirror

# Use a logscale of base 7 for the XX axis -- the base is optional and defaults
#   to 10 I think.
set logscale y 7

# The actual plot: `exp(x)` is the expression to plot; `x` is &amp;quot;special&amp;quot; --
#   there are a few different variables you can use, but they seem to depend on
#   the available axes/dimensions, but I don&amp;#39;t know details of this so RTFM.
#
# `title &amp;quot;...&amp;quot;` sets this line&amp;#39;s legend.
plot exp(x) title &amp;quot;Super straight line&amp;quot;
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="exp.gp"&gt;exp.gp&lt;/a&gt;&lt;/li&gt;&lt;img src="exp.svg" alt="exp.svg"&gt;&lt;/img&gt;&lt;/ul&gt;&lt;p&gt;Notice how it starts to grow really fucking quick after t=5 -- right after HTML was invented.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s another one:&lt;/p&gt;&lt;pre&gt;set terminal svg
set output &amp;quot;rollercoaster.svg&amp;quot;

# The number of samples to use to plot the expression.
set samples 1000

# The ranges here specify the XX and YY ranges respectively.
plot [-50:50] [-5:5] x*sin(x)*cos(x)**x title &amp;quot;Rollercoaster&amp;quot;
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="rollercoaster.gp"&gt;rollercoaster.gp&lt;/a&gt;&lt;/li&gt;&lt;img src="rollercoaster.svg" alt="rollercoaster.svg"&gt;&lt;/img&gt;&lt;/ul&gt;&lt;p&gt;The website, with documentation and all (including a 300+ pages PDF of all the documentation, with proper PDF index!):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnuplot.info"&gt;http://www.gnuplot.info&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://gnuplot.sourceforge.net"&gt;http://gnuplot.sourceforge.net&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The first seems to be the &amp;quot;official&amp;quot; one, but is sometimes offline? The second looks like a mirror.&lt;/p&gt;&lt;p&gt;You can use the help command to read the documentation inside the Gnuplot REPL too.&lt;/p&gt;&lt;p&gt;An important concept is that of the terminal, as seen above being set to SVG. It&amp;#39;s nothing but an &amp;quot;output backend&amp;quot;, and Gnuplot has tons of those -- run set terminal and see for yourself; there&amp;#39;s even one to output ASCII art to the terminal! Different terminals may have different specific options -- RTFM for those.&lt;/p&gt;&lt;p&gt;Once you start messing around with line styles, line types, colors, and whatnot, it&amp;#39;s helpful to know what the valid values are. For that use the test command after setting the terminal (the result of the test command varies depending on the terminal, so it&amp;#39;s important to set it):&lt;/p&gt;&lt;pre&gt;set terminal svg
set output &amp;quot;gnuplot-test.svg&amp;quot;
test
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="gnuplot-test.gp"&gt;gnuplot-test.gp&lt;/a&gt;&lt;/li&gt;&lt;img src="gnuplot-test.svg" alt="gnuplot-test.svg"&gt;&lt;/img&gt;&lt;/ul&gt;&lt;p&gt;Variables are a thing, and you can define them just as you&amp;#39;d expect:&lt;/p&gt;&lt;pre&gt;some_var = 42
&lt;/pre&gt;&lt;p&gt;To plot data from files just pass the filename to plot:&lt;/p&gt;&lt;pre&gt;plot &amp;quot;/path/to/file.tsv&amp;quot; # ...
&lt;/pre&gt;&lt;p&gt;Gnuplot is supposed to support many different formats but I don&amp;#39;t know details here. I&amp;#39;ve been using TSV because it makes sense. For tabular data files (TSV, CSV, ...), this may be useful:&lt;/p&gt;&lt;pre&gt;set datafile separator tab
&lt;/pre&gt;&lt;p&gt;RTFM for details: help set datafile separator.&lt;/p&gt;&lt;p&gt;It&amp;#39;s possible to define datasets inside a Gnuplot script, too, like this:&lt;/p&gt;&lt;pre&gt;plot &amp;quot;-&amp;quot;
1 2
3 4
5 6
7 8
9 0
e
&lt;/pre&gt;&lt;p&gt;Notice the e at the end! You can even define more than one for the same plot command:&lt;/p&gt;&lt;pre&gt;plot &amp;quot;-&amp;quot;, &amp;quot;-&amp;quot;
1 2
3 4
5 6
7 8
9 0
e
2 1
4 3
6 5
8 7
0 9
e
&lt;/pre&gt;&lt;p&gt;Another arguably more useful way is to do it like so (notice the dollar!):&lt;/p&gt;&lt;pre&gt;$SomeData &amp;lt;&amp;lt; EOD
1 2
4 5
7 8
EOD
plot $SomeData # ...
&lt;/pre&gt;&lt;p&gt;This kind of inline data definition doesn&amp;#39;t seem to work on the REPL though... At least I couldn&amp;#39;t make it work.&lt;/p&gt;&lt;p&gt;For tabular data files, files may have many columns, some that you want, some that you don&amp;#39;t, some that are in the wrong order... To solve that, you use using:&lt;/p&gt;&lt;pre&gt;plot &amp;quot;-&amp;quot; using 1:3
1 2 3
4 5 6
7 8 9
&lt;/pre&gt;&lt;p&gt;The above uses the first and third columns of the dataset.&lt;/p&gt;&lt;p&gt;And with that, if you want to plot several graphs from the same dataset, you can do it like so:&lt;/p&gt;&lt;pre&gt;plot &amp;quot;/path/to/file.tsv&amp;quot; using 1:3, &amp;quot;&amp;quot; using 1:4
&lt;/pre&gt;&lt;p&gt;Assuming the data file has at least 4 columns, the above will plot a line/w.e. using the first and third columns, and then another using the first and fourth columns. The empty string there is a shortcut to mean &amp;quot;the previous dataset/file&amp;quot;.&lt;/p&gt;&lt;p&gt;For certain plot types, such as for errorlines or errorbars, you may want or need to use more than 2 columns of data.&lt;/p&gt;&lt;p&gt;And a final plot, pretty much the most advanced I can get right now. The dataset&amp;#39;s fields are separated by tabs but your browser or something may present them as spaces, so download the file for greater €€€profit€€€.&lt;/p&gt;&lt;pre&gt;$Dataset &amp;lt;&amp;lt; EOD
NELEMS	RTIME-MEAN	RTIME-MIN	RTIME-MAX	TOTCYC-MEAN	TOTCYC-MIN	TOTCYC-MAX	TOTINS-MEAN	TOTINS-MIN	TOTINS-MAX	L1DCM-MEAN	L1DCM-MIN	L1DCM-MAX	L2DCM-MEAN	L2DCM-MIN	L2DCM-MAX
100	51.5	51	52	153107.0	151836	154378	49774.5	42768	56781	912.5	849	976	557.0	528	586
1000	386.4	373	396	1117484.4	1076454	1145864	652026.8	634123	680188	5681.0	5118	5990	1660.4	1300	1793
10000	29215.8	29061	29364	21425394.0	10119054	26280869	15941285.8	6979549	22139082	619685.8	169351	1140152	298639.6	17765	644415
100000	2852669.8	2845788	2859074	708231510.6	119757602	1080138950	1145341284.8	184498435	1753956316	93553900.2	13537085	144424582	72470004.8	2110199	120731566
200000	11472829.2	11426994	11502233	922765811.8	181797852	3298279336	1480628498.6	268678225	5359163617	120437869.6	19420767	444041994	87885551.2	2726575	385487784
300000	25821154.8	25729787	25883755	7291510319.0	393353142	9962527951	11904840316.2	594020363	16257913776	988685146.8	45337229	1351805549	907188629.2	12260881	1258022140
400000	45910144.6	45833530	46047114	680904937.0	670501982	689922089	1033095368.6	1029084389	1038083524	80272464.4	80011372	80610671	30805397.6	29580829	32181760
500000	71859779.2	71703444	72007099	11187695199.8	1031362427	25645713435	18329461121.4	1586757574	42172405522	1521273469.8	125041982	3509799991	1394315157.4	56848580	3340745801
600000	103237386.5	103196178	103278595	1492849041.0	1484306515	1501391567	2238479602.0	2234440484	2242518720	177991124.0	177535409	178446839	93661585.0	93119294	94203876
EOD

set terminal svg
set output &amp;quot;errorlines.svg&amp;quot;

# Tell Gnuplot that fields are separated by a tab, as briefly mentioned before.
set datafile separator tab

set title &amp;quot;Some shitty performance right here...&amp;quot;
set key left top

# Ask Gnuplot to use log scales for the XX, YY, and YY2 (right side) axes.
set logscale xyy2 10

set xtics nomirror
set ytics nomirror
set y2tics nomirror

set xlabel &amp;quot;#Elements&amp;quot;
set ylabel &amp;quot;Time (s)&amp;quot;
set y2label &amp;quot;L1 Cache Misses&amp;quot;

set grid

# The `($n/1000000)` syntax asks Gnuplot to divide the values of the field `n`
#   by 1000000 (in this case, the time is in microseconds, so dividing by
#   1000000 converts to seconds).
#
# `with yerrorlines` changes the style of plot, in this case lines with error
#   bars. `yerrorbars` is the same but without the connecting lines.
# Other common styles are `points` (the default?), `lines`, &amp;amp; `linespoints`.
# RTFM for more: `help with`.
#
# The `yerrorlines` style requires additional values. There are some different
#   alternatives (RTFM), but in this case the columns are x:y:ymin:ymax. In
#   this dataset I&amp;#39;ve used the mean for the YY, but you may use whatever you
#   wish.
#
# `title columnheader` asks Gnuplot to automatically read the given line&amp;#39;s
#   legend from the input dataset. Note that Gnuplot supports some LaTeX-like
#   formatting syntax for text. E.g., the text &amp;quot;RTIME_MEAN&amp;quot; would be rendered
#   as &amp;quot;RTIMEMEAN&amp;quot; with the the &amp;quot;M&amp;quot; of &amp;quot;MEAN&amp;quot; in subscript.
#
# Finally, `axis x1y1` &amp;amp; `axis x1y2` set the axes the data should be plotted in
#   -- x1 &amp;amp; x2 for bottom &amp;amp; top XX respectively; y1 &amp;amp; y2 for left &amp;amp; right YY
#   respectively.
plot $Dataset using 1:($2/1000000):($3/1000000):($4/1000000) with yerrorlines title columnheader axis x1y1,\
     &amp;quot;&amp;quot;       using 1:11:12:13                               with yerrorlines title columnheader axis x1y2
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="errorlines.gp"&gt;errorlines.gp&lt;/a&gt;&lt;/li&gt;&lt;img src="errorlines.svg" alt="errorlines.svg"&gt;&lt;/img&gt;&lt;/ul&gt;&lt;p&gt;-----&lt;/p&gt;&lt;p&gt;Just a couple of notes on security, especially for someone wanting to develop an interface library. These are things that may be useful when writing and running scripts directly in Gnuplot, but that are a security nightmare if left as something to think about tomorrow.&lt;/p&gt;&lt;p&gt;system() a la C is a thing!&lt;/p&gt;&lt;p&gt;And so are backticks like in shell languages! The first line of the following Gnuplot code runs the echo command, but the second one doesn&amp;#39;t:&lt;/p&gt;&lt;pre&gt;&amp;quot;`echo hello from Gnuplot`&amp;quot;
&amp;#39;`echo hello from Gnuplot`&amp;#39;
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/gnuplot.gmi</id>
    <published>2022-07-14T00:00:00Z</published>
    <title type="text">Gnuplot Quickstart</title>
    <updated>2022-01-12T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/gnuplot.html" rel="alternate" type="text/html" hreflang="en" title="Gnuplot Quickstart" />
    <link href="gemini://siiky.srht.site/kB45oC/gnuplot.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Gnuplot Quickstart" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Faucets&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2021/07/23&lt;br&gt;&lt;/br&gt;2022/07/14&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Recently I asked a bunch of people which one out of two types of faucets they prefer. The answers were pretty surprising (to me), as everyone chose the same type.&lt;/p&gt;&lt;p&gt;In this post I&amp;#39;ll prove them wrong.&lt;/p&gt;&lt;h1&gt;The Problem&lt;/h1&gt;&lt;p&gt;The state of a faucet determines 2 things: output pressure and temperature. In real life, many things affect water temperature, including external factors: water pressure (especially for hot water), if the pipes are exposed to the sun, rain, etc. Also in real life, it&amp;#39;s not uncommon for the maximum hot water pressure to be lower than that of cold water. However, to KISS, we won&amp;#39;t take these details into account. In the case of pressure, we&amp;#39;ll just assume it&amp;#39;s the same for both hot and cold water.&lt;/p&gt;&lt;p&gt;So, in our simplified model, the state of a faucet alone will determine the water state: both water temperature and output pressure.&lt;/p&gt;&lt;p&gt;The plan is to prove that the faucet types are functionally equivalent to each other, and that each type is fully functional.&lt;/p&gt;&lt;p&gt;We&amp;#39;ll call two faucet types functionally equivalent iff they can both represent the same set of water states, i.e., if the codomain of the functions FaucetState → WaterState that represent each type is the same. And we&amp;#39;ll call a faucet type fully functional iff it can represent all water states, i.e., there&amp;#39;s a surjective function FaucetState → WaterState.&lt;/p&gt;&lt;p&gt;After proving that both types are equivalent in function, we&amp;#39;ll follow by proving that it&amp;#39;s not enough to be equivalent, and that in some respects one of them is better than the other.&lt;/p&gt;&lt;h1&gt;Water&lt;/h1&gt;&lt;p&gt;Instead of dealing with actual values and their correct units, we&amp;#39;ll simplify our model further and use percentages instead.&lt;/p&gt;&lt;p&gt;Water pressure will range from 0% (off, no water running), to 100% (water running to the faucet&amp;#39;s full capacity). Likewise, temperature will range from 0% (the coldest water you can get out of the faucet), to 100% (the hottest water you can get out of the faucet).&lt;/p&gt;&lt;p&gt;The water pressure and temperature considered are the output pressure and temperature, that is, what you&amp;#39;d feel right out of the faucet.&lt;/p&gt;&lt;p&gt;The types so far:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Percentage :: 101 (or (roughly) equivalently [0, 1])&lt;/li&gt;&lt;li&gt;WaterPressure :: Percentage&lt;/li&gt;&lt;li&gt;WaterTemperature :: Percentage -- we&amp;#39;ll say the temperature is the percentage of hot water in the total amount of water, which fits just right with the definition written in the paragraphs above&lt;/li&gt;&lt;li&gt;WaterState :: WaterPressure ∗ WaterTemperature ≈ Percentage²&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Faucets&lt;/h1&gt;&lt;p&gt;Let&amp;#39;s start by introducing both contenders:&lt;/p&gt;&lt;img src="type_a_faucet.png" alt="Type A faucet specimen"&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt;&lt;img src="type_b_faucet.png" alt="Type B faucet specimen"&gt;&lt;/img&gt;&lt;p&gt;And now let&amp;#39;s move on to the mathematical models.&lt;/p&gt;&lt;h2&gt;Type A&lt;/h2&gt;&lt;p&gt;This faucet type has two 1D handles, or knobs: one for cold water, and one for hot water.&lt;/p&gt;&lt;p&gt;In this type of faucet, the water pressure is simply the sum of hot water pressure and cold water pressure. There&amp;#39;s a catch, however: the pressure of hot and cold water being independent, the maximum hot and cold water pressure must be half of the maximum faucet water pressure.&lt;/p&gt;&lt;p&gt;And the water temperature is simply the ratio of hot water over the total amount of water: hot water pressure over faucet pressure.&lt;/p&gt;&lt;p&gt;This is what we have algebraically:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;HotPressure :: Percentage&lt;/li&gt;&lt;li&gt;ColdPressure :: Percentage&lt;/li&gt;&lt;li&gt;FaucetState :: HotPressure ∗ ColdPressure&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;fA :: FaucetState → WaterState&lt;br&gt;&lt;/br&gt;fA (h, c) ↦ ((h + c) / 2, h / (h + c))&lt;/p&gt;&lt;h3&gt;Proof&lt;/h3&gt;&lt;p&gt;We want to prove that fA is surjective, that is: ∀ (p, t) ∈ WaterState: ∃ (h, c) ∈ FaucetState: fA(h, c) = (p, t)&lt;/p&gt;&lt;p&gt;So, let&amp;#39;s fix some (p, t) ∈ WaterState; let&amp;#39;s find our (h, c) ∈ FaucetState:&lt;/p&gt;&lt;p&gt;fA(h, c) = (p, t)&lt;br&gt;&lt;/br&gt;  ≣ { exercise for the reader }&lt;br&gt;&lt;/br&gt;h = 2pt ∧ c = 2(p-pt)&lt;/p&gt;&lt;p&gt;Try fA(2pt, 2(p - pt)) if you don&amp;#39;t believe me. p-pt makes sense because p and t are percentages:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;The product of two percentages is also a percentage&lt;/li&gt;&lt;li&gt;p ≥ pt ⇔ p-pt ≥ 0. Alternatively: p ≥ pt ⇔ 1 ≥ t ⇔ t ≤ 1&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Another way to write c is 2p(1-t). Less obvious how to get to it, but more obvious what it means: the pressure of non-hot water, since t is the temperature (with greater meaning hotter).&lt;/p&gt;&lt;h2&gt;Type B&lt;/h2&gt;&lt;p&gt;This faucet type has only one 2D handle: one dimension controls the water pressure, and the other the hot/cold water mixture. In this type of faucet, both the water pressure and temperature are the faucet&amp;#39;s pressure and temperature, so its mathematical model is the simplest possible.&lt;/p&gt;&lt;p&gt;Algebraically:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;FaucetPressure :: Percentage&lt;/li&gt;&lt;li&gt;FaucetHotPerc :: Percentage -- to make things easy, we&amp;#39;ll say that the hot/cold water mixture dimension is to be represented simply as the percentage of hot water&lt;/li&gt;&lt;li&gt;FaucetState :: FaucetPressure ∗ FaucetHotPerc ≈ WaterState&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;fB :: FaucetState → WaterState&lt;br&gt;&lt;/br&gt;fB(p, h) = (p, h)&lt;/p&gt;&lt;h3&gt;Proof&lt;/h3&gt;&lt;p&gt;fB clearly is surjective, because it is the identity function.&lt;/p&gt;&lt;h2&gt;Of As and Bs&lt;/h2&gt;&lt;p&gt;Since both faucet types are fully functional they&amp;#39;re also functionally equivalent.&lt;/p&gt;&lt;h1&gt;As Used by Physical Beings through Mechanical Interaction&lt;/h1&gt;&lt;p&gt;Did you notice something with the mathematical models?&lt;br&gt;&lt;/br&gt;I&amp;#39;ll give you a hint: it&amp;#39;s obvious -- I&amp;#39;ve even mentioned it already.&lt;br&gt;&lt;/br&gt;Not there yet? Here&amp;#39;s another: type B.&lt;br&gt;&lt;/br&gt;Right?! It is the epitome of simplicity!&lt;/p&gt;&lt;p&gt;Did you notice something else?&lt;br&gt;&lt;/br&gt;Here&amp;#39;s a hint: it&amp;#39;s not obvious.&lt;br&gt;&lt;/br&gt;Still not obvious? Here: type A.&lt;br&gt;&lt;/br&gt;Right?! Not a damn clue! But squint harder...&lt;/p&gt;&lt;p&gt;Here goes by analogy: ever tried to move a (computer) cursor on a single axis (vertical, horizontal, doesn&amp;#39;t matter) with a (computer) mouse? I&amp;#39;ll bet you have! I&amp;#39;ll also bet you&amp;#39;ve very rarely (and barely) did so satisfactorily, even if trying very hard! This is easily explained, because while we aim to affect one dimension only, the controls we have available for use affect more than that one dimension, and one may simultaneously (and unintentionally) affect more than that one dimension.&lt;/p&gt;&lt;p&gt;How does this translate to the faucets discussion? Faucets B require you to set one or two parameters with a single 2D control, that is, set one or two parameters simultaneously. While with faucets A you&amp;#39;re only required to set a single parameter at a time, through a single 1D control for each parameter.&lt;/p&gt;&lt;p&gt;Imagine you&amp;#39;re enjoying the current temperature but not so much the current current. Or maybe you like the current but wish it was a tad hotter. What do you do if you have a faucet A? Just change the thing right away! What do you do if you have a faucet B? Roll for luck!&lt;/p&gt;&lt;p&gt;For us, physical beings using faucets through mechanical interaction, it follows that faucets A are superior.&lt;/p&gt;&lt;p&gt;I can think of more reasons to justify the superiority of faucets A, but I&amp;#39;ll leave them for another post, maybe.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/KISS_principle"&gt;KISS&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/algebra/faucets.gmi</id>
    <published>2022-07-14T00:00:00Z</published>
    <title type="text">Faucets</title>
    <updated>2021-07-23T00:00:00Z</updated>
    <link href="https://siiky.srht.site/algebra/faucets.html" rel="alternate" type="text/html" hreflang="en" title="Faucets" />
    <link href="gemini://siiky.srht.site/algebra/faucets.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Faucets" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Category Theory and Performance&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2019/10/15&lt;br&gt;&lt;/br&gt;2022/07/14&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Imagine for a second that we understand Category Theory. Now imagine that we have a fancy category, representing a part of a program, with two objects X and Y (representing the input and output types of our program respectively), and morphisms f : X → Y and g : Y → X (because this is a category). This is what we have:&lt;/p&gt;&lt;img src="ctp-cat.svg" alt="Some category"&gt;&lt;/img&gt;&lt;p&gt;Imagine now that there&amp;#39;s a (reasonable) way to determine if two morphisms are equal. That is, given f, g : X → Y, f and g are equal iff, ∀ x ∈ X: f(x) = g(x).&lt;/p&gt;&lt;p&gt;Imagine there&amp;#39;s also a way to analyze performance of a given morphism. We&amp;#39;ll represent the performance of a given morphism f as P(f). The lesser P(f) is, for any given morphism, the better.&lt;/p&gt;&lt;p&gt;From this category we&amp;#39;ll generate a new one where the morphisms are annotated along with their performance. We&amp;#39;ll represent an annotated morphism f as (f, P(f)). Like so:&lt;/p&gt;&lt;img src="ctp-cat-perf.svg" alt="Some category w/ performance analysis"&gt;&lt;/img&gt;&lt;p&gt;Application of a morphism to an object and composition of morphisms ignores the right component of the tuple:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;(f, P(f))(x) = f(x)&lt;/li&gt;&lt;li&gt;(g, P(g)) • (f, P(f)) = (g•f, P(g•f))&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And thus, for this post, I&amp;#39;ll say that &amp;quot;two morphisms are equal&amp;quot; to mean that the &amp;quot;plain morphism&amp;quot; is equal, that is, ignoring the right component of the tuples; and I&amp;#39;ll say that &amp;quot;two morphisms are the same&amp;quot; when both components of the tuple are equal. Think of two different implementations of a certain abstract algorithm. Both implementations perform the same operation, but they&amp;#39;re not the same implementation, they (may) have different properties. We&amp;#39;re interested in performance here.&lt;/p&gt;&lt;p&gt;Some properties right away:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Two equal morphisms do not necessarily have equal performance: ¬(f = g ⇒ P(f) = P(g)).&lt;/li&gt;&lt;li&gt;Two morphisms with the same performance aren&amp;#39;t necessarily equal: ¬(P(f) = P(g) ⇒ f = g)&lt;/li&gt;&lt;li&gt;Two morphisms with different performance aren&amp;#39;t necessarily different: ¬(P(f) ≠ P(g) ⇒ f ≠ g)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The latter two don&amp;#39;t add much to our toolbox.&lt;/p&gt;&lt;p&gt;Now, from our original category, we&amp;#39;ll forsake g, because who cares, and we&amp;#39;ll add to it a morphism h equal to f.&lt;/p&gt;&lt;img src="ctp-cat-perf-h.svg" alt="Category w/ performance analysis &amp;amp; h"&gt;&lt;/img&gt;&lt;p&gt;Because f = h, improving the performance of our program, without changing its results, consists in choosing the morphism with better performance. If P(f) &amp;lt; P(h), choose f; if P(h) &amp;lt; P(f), choose h; otherwise, ask your mirror for the prettier of the two.&lt;/p&gt;&lt;p&gt;&amp;quot;What&amp;#39;s this all good for?&amp;quot; you may ask! Nothing, really, if you don&amp;#39;t use it. We like imagining, so we&amp;#39;ll do it once more: there&amp;#39;s a complicated (imaginary) category representing our complicated (imaginary) program, with performance annotations. The program takes an input I and transforms it into some output O. For simplicity, we&amp;#39;ll only represent the most performant morphism between each two objects.&lt;/p&gt;&lt;img src="ctp-complicated-cat.svg" alt="Complicated Category"&gt;&lt;/img&gt;&lt;p&gt;Omitted labels because they clutter too much. {X, Y, Z, W} form a complete graph. Now finding the most performant way to write our program is finding the shortest weighted path between I and O, with the performance as the weight. The hardest part is coming up with different implementations and analyzing their performance, really, because even a computer can find the best way to optimize the program!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Category_theory"&gt;Category Theory&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Category_(mathematics)"&gt;Category&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/algebra/cat_theory_perf.gmi</id>
    <published>2022-07-14T00:00:00Z</published>
    <title type="text">Category Theory and Performance</title>
    <updated>2019-10-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/algebra/cat_theory_perf.html" rel="alternate" type="text/html" hreflang="en" title="Category Theory and Performance" />
    <link href="gemini://siiky.srht.site/algebra/cat_theory_perf.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Category Theory and Performance" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;GraphViz Scheme DSL&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2019/10/01&lt;br&gt;&lt;/br&gt;2022/07/14&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I&amp;#39;ve (loosely) defined a DSL to represent GraphViz DOT in Scheme, and created a converter library &amp;amp; program that takes the DSL as input and outputs .gv text. It almost certainly doesn&amp;#39;t support all of the features of DOT, but I intentionally left out &amp;quot;validation&amp;quot; of input, because I don&amp;#39;t know all of DOT and I don&amp;#39;t pretend to. The DSL is not only a Scheme representation but also saves some work.&lt;/p&gt;&lt;p&gt;I use it on this site, for example:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../algebra/cat_theory_perf.html"&gt;Category Theory and Performance&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The code can be found online, but try not to read it, it&amp;#39;s much too ugly. :/&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://github.com/siiky/gvs"&gt;https://github.com/siiky/gvs&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/scheme/gv-dsl.gmi</id>
    <published>2022-07-14T00:00:00Z</published>
    <title type="text">GraphViz Scheme DSL</title>
    <updated>2019-10-01T00:00:00Z</updated>
    <link href="https://siiky.srht.site/scheme/gv-dsl.html" rel="alternate" type="text/html" hreflang="en" title="GraphViz Scheme DSL" />
    <link href="gemini://siiky.srht.site/scheme/gv-dsl.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="GraphViz Scheme DSL" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Donating&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/02/01&lt;br&gt;&lt;/br&gt;2022/07/08&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;What if there was a way to force oneself to donate?&lt;/p&gt;&lt;p&gt;Donating to projects you use, enjoy, or believe in, is a way to help ensure their sustainability. However, for some reason that I haven&amp;#39;t figured out yet, it&amp;#39;s hard to get going. Won&amp;#39;t try to speak for anyone else, but as for me, there&amp;#39;s always a what if, such as, what if I had donated to this instead of that? what if this turns out to be evil?&lt;/p&gt;&lt;p&gt;My mom, who earns in a month less than me by half, used to donate more than me. I can&amp;#39;t believe I&amp;#39;m unique in that; I&amp;#39;m sure there are many people out there that can donate (have the monetary power) but don&amp;#39;t.&lt;/p&gt;&lt;p&gt;Think of everything that you use or have used for free, think only of things that are distributed freely by their creators and that you haven&amp;#39;t paid for nor donated to; realize that it took effort to create it, and that otherwise, e.g. with a book or a movie, you&amp;#39;d have to pay for it somewhere; given that you haven&amp;#39;t paid for it, it should be obvious that you&amp;#39;re committing &amp;quot;theft&amp;quot;. Theft is probably on everyone&amp;#39;s naughty list; assuming that we are and/or want to be ethical, then it&amp;#39;s something to avoid.&lt;/p&gt;&lt;p&gt;I understand that this is so oversimplified it almost couldn&amp;#39;t be at all helpful. And I&amp;#39;m sure I&amp;#39;ve overlooked many aspects of the whole situation.&lt;/p&gt;&lt;p&gt;But this isn&amp;#39;t supposed to be some very deep philosophical thinking. It&amp;#39;s just a bit of rhetoric to try and convince people to donate to things they enjoy and would like to keep afloat.&lt;/p&gt;&lt;p&gt;Using rhetoric to improve people... I bet Plato didn&amp;#39;t see that coming!&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.gutenberg.org/ebooks/1672"&gt;Plato, &amp;quot;Gorgias&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/donating.gmi</id>
    <published>2022-07-08T00:00:00Z</published>
    <title type="text">Donating</title>
    <updated>2022-02-01T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/donating.html" rel="alternate" type="text/html" hreflang="en" title="Donating" />
    <link href="gemini://siiky.srht.site/philosophy/donating.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Donating" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;prettymaps&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/01/22&lt;br&gt;&lt;/br&gt;2022/07/08&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Found this library reading WeeklyOSM 580 called prettymaps:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://weeklyosm.eu/archives/14825"&gt;WeeklyOSM 580&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://github.com/marceloprates/prettymaps"&gt;prettymaps&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;It does indeed create pretty maps!&lt;/p&gt;&lt;p&gt;Found also a website that exposes a limited set of options to the library.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://prettymaps-online-nzcbpymxfq-uc.a.run.app"&gt;https://prettymaps-online-nzcbpymxfq-uc.a.run.app&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And created this pretty thing from an area in Seia.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.openstreetmap.org/#map=16/40.4144/-7.7073"&gt;Seia&lt;/a&gt;&lt;/li&gt;&lt;img src="seia.png" alt="seia.png"&gt;&lt;/img&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/osm/prettymaps.gmi</id>
    <published>2022-07-08T00:00:00Z</published>
    <title type="text">prettymaps</title>
    <updated>2022-01-22T00:00:00Z</updated>
    <link href="https://siiky.srht.site/osm/prettymaps.html" rel="alternate" type="text/html" hreflang="en" title="prettymaps" />
    <link href="gemini://siiky.srht.site/osm/prettymaps.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="prettymaps" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Content-based Mirrors&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/06/09&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Contacted SEP yesterday asking if there was a way to make personal archives/mirrors of either the whole site or several entries.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://plato.stanford.edu"&gt;Stanford Encyclopedia of Philosophy&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;They kindly replied (awesome, and thanks!) quoting the Terms of Use¹, saying that I have permission to freely crawl/download entries for personal use, within reasonable network use (1. User Rights) -- I just can&amp;#39;t make them public (non-personal) (2b. &amp;amp; 2d. Limited Electronic Distribution Rights).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://plato.stanford.edu/info.html#terms"&gt;Terms of Use&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;While I don&amp;#39;t mean to convince them of anything, it gave me the idea for this post: big sites that publish content publicly for free use are a great fit for experimenting with novel means of distribution and archival other than the good (bad) old HTTP we have today.&lt;/p&gt;&lt;p&gt;More specifically, I&amp;#39;ll try to convince you that content-based content addressing is a better alternative to location-based content addressing (the current web), and try to explain how and why.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Content-addressable_network"&gt;Content-addressable network&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://docs.ipfs.io/concepts/glossary/#content-addressing"&gt;Content addressing (IPFS glossary)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;To make writing easier, I&amp;#39;ll pick the Debian package repos as a sort of &amp;quot;case study&amp;quot;, but other package repositories would work equally well (Arch, Nix, F-Droid, Flathub, ...). A good alternative would be any Wikimedia site, such as Wikipedia.² I&amp;#39;ll write about mirrors but much of it applies to archives equally well. Although some of the points I&amp;#39;ll raise may have nuances that make more sense to sites or to package repos, to archives or to mirrors, the spirit is there!&lt;/p&gt;&lt;h2&gt;Location-based Addressing&lt;/h2&gt;&lt;p&gt;Let&amp;#39;s start with content.&lt;/p&gt;&lt;p&gt;Setting up a mirror site isn&amp;#39;t for just about anyone. You can&amp;#39;t wake up one day and think &amp;quot;yup, feel like mirroring Debian&amp;#39;s repos starting today.&amp;quot; Ignoring technical requirements, there&amp;#39;s too much bureaucracy for you to decide it on such a whim.³ But is this bureaucracy necessary? I don&amp;#39;t think so, I think it&amp;#39;s only a symptom of the current web.&lt;/p&gt;&lt;p&gt;On the current web (location-based), when you go to https://example.com/some-page.html you don&amp;#39;t know what you&amp;#39;re gonna get. Hopefully whatever it is you&amp;#39;re looking for, but you just can&amp;#39;t know. Plus, the content you get from a location may change from today to tomorrow -- a very important point.&lt;/p&gt;&lt;p&gt;Imagine if anyone could claim to be a Debian mirror. Users set example.com/debian-repo in sources.list, thinking they&amp;#39;re getting the official Debian packages, but (dramatic plot twist) the mirror is malicious and all the packages play nyan cat in loop.&lt;/p&gt;&lt;p&gt;To emphasize it: there&amp;#39;s no way for a site to prove what content it&amp;#39;s serving, or for you to know that you&amp;#39;ll get what you&amp;#39;re expecting.⁴ When you visit some page on the current web, you have to trust the site. And because the content delivered from a particular location may change, the trustworthy sites of today may not be so tomorrow.&lt;/p&gt;&lt;p&gt;What would the consequences be if a hypothetical Debian mirror was/became malicious? Assuming it was an &amp;quot;official&amp;quot; one (listed on the mirrors): Debian would have to drop it from the list; damage to its users resulting from it couldn&amp;#39;t be undone (or very unlikely); but worst of all, the rules for registering as a mirror would very likely become stricter in an effort to avoid another incident, thus making the content more centralized.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.debian.org/mirror/list"&gt;Debian mirrors&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Content-based Addressing&lt;/h2&gt;&lt;p&gt;In contrast, in a content-based system, content is uniquely identified by something⁵, so that when you ask for content ABC you&amp;#39;ll get ABC, not XYZ. This has lots of implications!&lt;/p&gt;&lt;p&gt;Side note: a content-based system needn&amp;#39;t necessarily be a public P2P network, but since the post is about publicly shared &amp;amp; shareable content, it&amp;#39;s what makes most sense, and what I&amp;#39;ll use as a model here, with all the bad (good) that comes with it.&lt;/p&gt;&lt;p&gt;First, since the content is no longer tied to a trusted entity (site owner/operator), the content can be distributed by anyone, and the system can take care of making sure the content you get corresponds to the content you request.&lt;/p&gt;&lt;p&gt;With the trust deal sealed, the bureaucracy is no longer necessary. If Debian&amp;#39;s repos were available through such a system, deciding to mirror them from one day to the next wouldn&amp;#39;t be unthinkable! You could easily opt-in to mirror their repos, and they could trust the system to deliver users the (authentic) packages they request, independently of whom they get the packages from.&lt;/p&gt;&lt;p&gt;Since anyone can safely share the content with anyone else more easily, more people can join in and help share that content. I could share the packages I have installed on my own PCs, for example, helping others download them too.&lt;/p&gt;&lt;p&gt;Bonus benefit: Debian&amp;#39;s traffic would decrease, and file transfer would be more local, that is, you&amp;#39;d generally get the files from your closest neighbors (that have them, of course), making the whole packaging system more robust (resilient) -- even if Debian&amp;#39;s servers go down, I can install things as long as I can connect to anyone that has them.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Resilience_%28network%29"&gt;Network resiliency&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Unfortunately, however, this is only the ideal. For some reason unbeknownst to me, people prefer to stick with the archaic C-S architecture and the so very great HTTP centralized web.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Client%E2%80%93server_model"&gt;C-S architecture&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The only problem I haven&amp;#39;t mentioned yet is that we don&amp;#39;t want content to be immutable (one of the implications of content-based addressing). There must be a way to &amp;quot;update&amp;quot; content. Put another way, we still need some form of location-based addressing, of which there are some. One is for the content owner to provide the latest &amp;quot;root&amp;quot; address through some current means, e.g., https://debian.org/root-content, so that I can ask Debian for the latest content, but fetch it from other peers. Another is to bake a similar mechanism into the system itself -- entities may publish the latest &amp;quot;root&amp;quot; address to the network on a known address (location-based but not necessarily human-readable/human-friendly).&lt;/p&gt;&lt;h2&gt;IPFS&lt;/h2&gt;&lt;p&gt;Now, I didn&amp;#39;t come up with any of these ideas myself. I tried to make the post a bit generic, but always thinking of a particular network in the background. And it should be unsurprising that this network should be IPFS. It&amp;#39;s the best content-based addressable P2P content distribution network that I know of to date.&lt;/p&gt;&lt;p&gt;I won&amp;#39;t go into details here, but there&amp;#39;s a &amp;quot;namespace&amp;quot; of content-identifiers (CIDs), and two network schemes: one for content-based addressing (IPFS, ipfs://) and another for location-based addressing (IPNS, ipns://).⁶&lt;/p&gt;&lt;p&gt;Unfortunately, IPNS is yet to become generally practical. And, as is common of P2P content distribution networks, unpopular content is hard to get (especially slow to find). Finally, the &amp;quot;reference&amp;quot; IPFS node implementation, Kubo (previously known as go-ipfs), is a bit more resource hungry than BitTorrent clients.⁷&lt;/p&gt;&lt;h2&gt;Postscript&lt;/h2&gt;&lt;p&gt;I learned from one of @degrowther&amp;#39;s posts that Debian has tried some decentralization in the past using BitTorrent.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://portal.mozz.us/gemini/degrowther.smol.pub/20220808_libraries_internet"&gt;Libraries, the Internet we were promised, and the Internet we got&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.debian.org/DebTorrent"&gt;DebTorrent&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Footnotes&lt;/h2&gt;&lt;p&gt;¹ I hadn&amp;#39;t come across the ToU before while browsing the site (refreshing!) and even had some trouble finding them after the email.&lt;/p&gt;&lt;p&gt;² Except there are no &amp;quot;official&amp;quot; Wikipedia mirrors, and no restrictions or bureaucracies to become one.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Wikipedia:Mirrors_and_forks"&gt;Mirrors and forks&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Wikipedia:FAQ/Forking"&gt;Forking FAQ&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;³ Admittedly, much less than I would ever have expected: a manual request! But even this little is already too much...&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.debian.org/mirror/ftpmirror"&gt;Setting up a Debian archive mirror&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;⁴ In the particular case of package repos, a list of checksums, for example, could be downloaded from the official repos, and used to confirm individual files haven&amp;#39;t been altered (apt uses a simple &amp;quot;clock&amp;quot; version to detect outdated mirrors but nothing else). Authenticity of files could be checked using, for example, pubkey cryptography (apt does this), but still there are caveats -- you know a file came from who you expect, but not that it *is* the file you want.&lt;/p&gt;&lt;p&gt;⁵ This is a technical implementation detail, but if it makes it easier to understand you can think of it as a cryptographic hash of the content. It&amp;#39;s only important that the something be deterministic and based on the content itself.&lt;/p&gt;&lt;p&gt;⁶ The CID &amp;quot;namespace&amp;quot; is shared, so the same CID may identify different content depending on the scheme (ipfs:// or ipns://), as should be expected.&lt;/p&gt;&lt;p&gt;⁷ While you may be able to run a BT client on a phone, for example, a full IPFS node would likely be inefficient/slow -- a Raspberry Pi 2 can still manage it for light use. Version v0.13.0 introduced some changes that make &amp;quot;light nodes&amp;quot; closer to a possibility, but no such (working) node exists as of now, AFAIK. Also new in this version is resource management configuration, making it possible to limit certain resources based on configuration. Previously you could only have some heuristics to &amp;quot;garbage collect&amp;quot; connected peers; now you can limit the number of connections, open FDs, maximum memory, &amp;amp;c! My Raspberry Pi 2 is no longer beaten dead by IPFS. :3&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://github.com/ipfs/go-ipfs/releases/tag/v0.13.0#support-for-block-and-car-response-formats"&gt;IPFS v0.13.0 Release Notes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgr"&gt;IPFS resource management&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/mirrors.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Content-based Mirrors</title>
    <updated>2022-06-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/mirrors.html" rel="alternate" type="text/html" hreflang="en" title="Content-based Mirrors" />
    <link href="gemini://siiky.srht.site/kB45oC/mirrors.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Content-based Mirrors" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;The COVID Experience&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/05/31&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Late at the night of 2022/05/17, while reading Poe&amp;#39;s The Murders in the Rue Morgue before going to sleep, I started feeling sick -- tired, minor headache, and raspy throat that started earlier during the day. The following morning I felt like total shit: I could barely stand, my head was killing me (the first real head ache I&amp;#39;ve had in many years!), felt dizzy, my mouth dry as a bone yet water seemed like it did nothing. There was no goddamn paracetamol in the house, I would be alone until 19h~20h, and needless to say I couldn&amp;#39;t go to the pharmacy myself. Luckily, my dad managed to escape work for a bit to bring me some, at around 13h... or 14h?... Don&amp;#39;t remember now... Still hadn&amp;#39;t eaten anything the whole morning, and I wasn&amp;#39;t even hungry -- though this by itself isn&amp;#39;t surprising since I started skipping breakfast close to one year ago, but let&amp;#39;s leave that for another post -- and I slept most of the time -- sleeping was fuckin&amp;#39; great! The paracetamol really helped, my unscientific and uninformed guess of a reason being that I rarely take any meds -- don&amp;#39;t usually need &amp;#39;em or I just 我慢 motherfucker! Because I can. Anyway, this was basically it for the first day: sleep, sleep, sleep. At the end of the day I did a COVID self-test and it gave positive -- &amp;quot;Why settle for B- when you can have A+?&amp;quot;, says Nicole&amp;#39;s dad (insert appropriate Samuel L. Jackson motherfucker meme). At dinner I had soup but couldn&amp;#39;t bring myself to eat even one third of what I usually eat. &amp;quot;Weird,&amp;quot; I thought, and shrugged back to sleep.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="../wiki/books.html"&gt;Edgar Allan Poe, &amp;quot;The Murders in the Rue Morgue&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://invidious.snopyta.org/watch?v=BSGXP6WENj0&amp;amp;t=1m"&gt;Nicole&amp;#39;s dad&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Thursday morning woke up at like 7h again... and still feeling like shit... Went through the bureaucracy of registering myself as a possible positive in the national health system and scheduling a confirmation lab test. Turns out, you don&amp;#39;t actually schedule the test, you just wait for some code from the health system, and then you can go to any lab at any time and use the code for a free test. Went for mine at 14h, close to 15h. Damn nurses or whatever they are, sticking the damn cotton swab into you till it touches the back of your neck, and laughing all the while. For lunch I tried some chicken nuggets (of those you can just stick into the microwave), and guess what, it tasted so salty I couldn&amp;#39;t taste anything else, at all, only salt. Had some bread afterwards -- at least that just didn&amp;#39;t taste like anything. At dinner I had some soup again, but I could eat even less of it than the previous day. It tasted so bad I started feeling ill, nauseated. It&amp;#39;s not that it didn&amp;#39;t taste like anything, because of lack of smell and/or taste, but that it really tasted bad. I even tested it: smelled a some chocolate cookies, and they smelled fucking great! But tasted like shit...&lt;/p&gt;&lt;p&gt;On Friday I woke up already feeling hungry, probably because I hadn&amp;#39;t eaten that much since it all started. But I was so tired I went back to sleep. When I woke up again, close to lunch time, I was feeling even more tired and hungry. Since soup tasted like shit, but bread didn&amp;#39;t, I decided to try something somewhat similar-ish, that I like a lot: tuna pasta! Except I made it plainer than radio music: water, pasta, tuna, and the smallest pinch of salt you could possibly pinch with your pinchy fingers. I was feeling so weak while cooking that I mouthed a coffee-spoonful of sugar for fear of passing out. I made it, managed to cook some without falling on my side, and still to get back to my room with food to eat! And I was so glad the pasta didn&amp;#39;t taste like shit! I even went back for seconds! はい、お代わり! It was enough for lunch, dinner, and lunch the next day (not that I made that much, I just didn&amp;#39;t eat that much).&lt;/p&gt;&lt;p&gt;This food-tasting-like-shit-and-feeling-indisposed-afterwards continued throughout the following week, after I was supposed to be COVID-free already. But I&amp;#39;m alright now, I think, and making plans for eating out one of these days.&lt;/p&gt;&lt;p&gt;Reading it back, I don&amp;#39;t think I managed to convey well enough how bad this part of the experience was... I&amp;#39;m not even sure that was the intent of the post, but wanted to make it clear now that it really was the worst part! If you can help avoid it, do! You really don&amp;#39;t want food to taste like shit, it sucks ass. And if you do end up catching it, sleep as much as you can, it really helps.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/words/covid.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">The COVID Experience</title>
    <updated>2022-05-31T00:00:00Z</updated>
    <link href="https://siiky.srht.site/words/covid.html" rel="alternate" type="text/html" hreflang="en" title="The COVID Experience" />
    <link href="gemini://siiky.srht.site/words/covid.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="The COVID Experience" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Water Stations&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/05/11&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Crazy idea: what if instead of selling plastic bottles, stores sold water by the litre, similarly to how diesel/gasoline is sold by the litre? People would BYOB, be it plastic, metal, or glass, and fill it up.&lt;/p&gt;&lt;p&gt;I know some places already do this, or have something similar, but it&amp;#39;s not that widespread.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/kB45oC/water_stations.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Water Stations</title>
    <updated>2022-05-11T00:00:00Z</updated>
    <link href="https://siiky.srht.site/kB45oC/water_stations.html" rel="alternate" type="text/html" hreflang="en" title="Water Stations" />
    <link href="gemini://siiky.srht.site/kB45oC/water_stations.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Water Stations" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Reader Syntax&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/03/15&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;TIL a bit of reader syntax magic. With very few lines of code I was able to make available the #!sql reader syntax to let me read the contents of SQL files as a literal string (any file actually, but I was thinking of using it for SQL files only).&lt;/p&gt;&lt;pre&gt;; This:
#!sql &amp;quot;path/to/file.sql&amp;quot;
; Into this:
&amp;quot;CREATE TABLE entries (\n    cid      TEXT        PRIMARY KEY NOT NULL UNIQUE,\n    name     TEXT        NOT NULL,\n    consumed BOOLEAN     NOT NULL DEFAULT FALSE,\n    url      TEXT        UNIQUE,\n    type     VARCHAR(10) NOT NULL REFERENCES types (name)\n);\n\nCREATE TABLE nodes (\n    id   TEXT        PRIMARY KEY NOT NULL UNIQUE,\n    name VARCHAR(20) UNIQUE\n);\n\nCREATE TABLE pins (\n    node TEXT NOT NULL REFERENCES nodes (id),\n    cid  TEXT NOT NULL REFERENCES entries (cid)\n);\n\nCREATE TABLE types (\n    name VARCHAR(10) PRIMARY KEY NOT NULL UNIQUE\n);\n&amp;quot;
&lt;/pre&gt;&lt;p&gt;Here&amp;#39;s the necessary code in its entirety:&lt;/p&gt;&lt;pre&gt;(set-read-syntax!
  &amp;#39;sql
  (lambda (port)
    (let ((path (read port)))
      (unless (string? path)
        (syntax-error &amp;quot;The #!sql syntax expects a string&amp;quot;))

      (let ((sql-stmt (call-with-input-file path (cute read-string #f &amp;lt;&amp;gt;) #:text)))
        (unless (string? sql-stmt)
          (syntax-error &amp;quot;Failed reading the SQL file&amp;quot;))
        sql-stmt))))
&lt;/pre&gt;&lt;p&gt;There&amp;#39;s one caveat with this approach, however: the reader syntax will be available to the whole program, not just the file or module that defined or imported it. This means that the identifiers must be unique, otherwise different definitions will collide with each other and the compiled program won&amp;#39;t be what you expect. AND I think that it will be available not only at compile time, but at runtime as well -- very good to keep in mind!&lt;/p&gt;&lt;p&gt;Someone on IRC mentioned that it&amp;#39;s possible to use -extend (-X) to make it available at compile time only. As an example, they said that compiling with -X srfi-19-literals would allow one to write #@1-1-22. Try this, after installing SRFI-19:&lt;/p&gt;&lt;pre&gt;csi -R srfi-19 -R srfi-19-literals -p &amp;quot;#@`date +&amp;#39;%Y-%m-%d&amp;#39;`&amp;quot;
&lt;/pre&gt;&lt;p&gt;Relevant CHICKEN documentation for set-read-syntax! &amp;amp; friends:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/man/5/Module%20(chicken%20read-syntax)"&gt;https://wiki.call-cc.org/man/5/Module%20(chicken%20read-syntax)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/chicken/read-syntax"&gt;https://api.call-cc.org/5/doc/chicken/read-syntax&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And the relevant SRFI-19 literals documentation:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/eggref/5/srfi-19#date-literal-form"&gt;https://wiki.call-cc.org/eggref/5/srfi-19#date-literal-form&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://api.call-cc.org/5/doc/srfi-19/date-literal-form"&gt;https://api.call-cc.org/5/doc/srfi-19/date-literal-form&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;-----&lt;/p&gt;&lt;p&gt;To make it more obvious why this is cool, here goes a slightly more realistic, though still simple, example.&lt;/p&gt;&lt;p&gt;Let&amp;#39;s say we have these SQL files:&lt;/p&gt;&lt;pre&gt;-- schema.sql
CREATE TABLE sometbl (col TINYINT NOT NULL);

-- data.sql
INSERT INTO sometbl (col) VALUES (0),(1),(2),(3),(4),(5);

-- select.sql
SELECT rowid, col FROM sometbl;
&lt;/pre&gt;&lt;p&gt;An example.scm:&lt;/p&gt;&lt;pre&gt;(import sql-de-lite)

(define-constant schema #!sql&amp;quot;schema.sql&amp;quot;)
(define-constant data #!sql&amp;quot;data.sql&amp;quot;)
(define-constant select #!sql&amp;quot;select.sql&amp;quot;)

(print (call-with-database
         &amp;#39;memory
         (lambda (db)
           (let ((schema (sql db schema))
                 (data (sql db data))
                 (select (sql db select)))
             (query fetch-all schema)
             (query fetch-all data)
             (query fetch-all select)))))
&lt;/pre&gt;&lt;p&gt;And the set-read-syntax! call from before wrapped up in a module sql-reader-syntax. After compiling the module you can compile the example with csc -X sql-reader-syntax example.scm, and this is the result of running it:&lt;/p&gt;&lt;pre&gt;$ ./example
((1 0) (2 1) (3 2) (4 3) (5 4) (6 5))
&lt;/pre&gt;&lt;p&gt;The example.scm is basically transformed into this before being compiled:&lt;/p&gt;&lt;pre&gt;(import sql-de-lite)

(define-constant schema &amp;quot;CREATE TABLE sometbl (col TINYINT NOT NULL);&amp;quot;)
(define-constant data &amp;quot;INSERT INTO sometbl (col) VALUES (0),(1),(2),(3),(4),(5);&amp;quot;)
(define-constant select &amp;quot;SELECT rowid, col FROM sometbl;&amp;quot;)

(print (call-with-database
         &amp;#39;memory
         (lambda (db)
           (let ((schema (sql db schema))
                 (data (sql db data))
                 (select (sql db select)))
             (query fetch-all schema)
             (query fetch-all data)
             (query fetch-all select)))))
&lt;/pre&gt;&lt;p&gt;And notice how schema, data, and select are constants (defined with define-constant, kinda similar to the static keyword in C).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/scheme/reader-syntax.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Reader Syntax</title>
    <updated>2022-03-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/scheme/reader-syntax.html" rel="alternate" type="text/html" hreflang="en" title="Reader Syntax" />
    <link href="gemini://siiky.srht.site/scheme/reader-syntax.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Reader Syntax" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Butterfly Effect&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/02/17&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Everyone or almost everyone has heard that butterfly wings and hurricanes have something to do with each other.&lt;/p&gt;&lt;p&gt;Whether they perceptibly have or not, small changes/actions have big impacts, even if only for the simple adding-up of all of them.&lt;/p&gt;&lt;p&gt;So next time you have alternatives, one of them better than the other, even if &amp;quot;it wouldn&amp;#39;t make a difference any way&amp;quot;, choose the better option.&lt;/p&gt;&lt;p&gt;By &amp;quot;alternative&amp;quot; let it be understood something that is within your reach. Flying over a cliff (rather than falling off it) when you obviously can&amp;#39;t fly is not an alternative. But paying some extra at your local grocer rather than at the biggest supermarket chain probably is.&lt;/p&gt;&lt;p&gt;-----&lt;/p&gt;&lt;p&gt;These are some of my goals in line with this idea:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;[X] Stop using TIDAL&lt;/li&gt;&lt;li&gt;[X] Stop using Google Maps -- help get OSM good enough for everyday use&lt;/li&gt;&lt;li&gt;[x] Stop using FB messenger (and WhatsApp) once and for all -- already using Signal (other than IRC &amp;amp; email) almost exclusively&lt;/li&gt;&lt;li&gt;[X] Move away from YT -- probably PeerTube or similar, or Invidious as last resort&lt;/li&gt;&lt;li&gt;[X] Move to SourceHut from GitHub -- just missing the time; hopefully this summer I&amp;#39;ll have the time to move everything&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/philosophy/butterfly_effect.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Butterfly Effect</title>
    <updated>2022-02-17T00:00:00Z</updated>
    <link href="https://siiky.srht.site/philosophy/butterfly_effect.html" rel="alternate" type="text/html" hreflang="en" title="Butterfly Effect" />
    <link href="gemini://siiky.srht.site/philosophy/butterfly_effect.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Butterfly Effect" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Double Transposition Cipher&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/02/13&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Got into &amp;quot;hand ciphers&amp;quot; recently, and this was the first (seemingly) decent one that is easy-ish and quick-ish to use.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Double_transposition"&gt;Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.pbs.org/wgbh/nova/decoding/doubtrans.html"&gt;Where I first learned of it&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The basic idea is that you create a matrix of N columns (number of letters of the key), where you will write down row-wise the message you want to encipher, and then reorder the result column-wise according to the chosen key.&lt;/p&gt;&lt;p&gt;An interesting property of this method is that the resulting cipher text has the exact same length and letters of the plain text -- it&amp;#39;s an anagram! This is also its main flaw, of course.&lt;/p&gt;&lt;h2&gt;Ciphering&lt;/h2&gt;&lt;p&gt;Let&amp;#39;s say we want to encipher the text &amp;quot;TOMORROW AT DUSK MOJITOS AT THE BEACH&amp;quot;. First, you choose the key, e.g. &amp;quot;GORILLA&amp;quot;, make the matrix and annotate each letter&amp;#39;s sequence number:&lt;/p&gt;&lt;pre&gt;2673451
GORILLA
-------
&lt;/pre&gt;&lt;p&gt;Then write down the message row-wise (left-to-right, top-to-bottom) in the matrix:&lt;/p&gt;&lt;pre&gt;2673451  1234567
GORILLA  AGILLOR
-------  -------
TOMORRO  OTORROM
WATDUSK  KWDUSAT
MOJITOS  SMITOOJ
ATTHEBE  EAHEBTT
ACH       A   CH
&lt;/pre&gt;&lt;p&gt;And that&amp;#39;s it, the first transposition is done. The ciphered text can be read column-wise (top-to-bottom, column number) in the columns order: &amp;quot;OKSE TWMAA ODIH RUTE RSOB OAOTC MTJTH&amp;quot;.&lt;br&gt;&lt;/br&gt;I read some places recommending breaking the ciphered text into blocks of for example 5, so as to be easier to transmit/read off. But I believe also as not to give more hints about the key (due to the shorter columns). With that: &amp;quot;OKSET WMAAO DIHRU TERSO BOAOT CMTJT H&amp;quot;.&lt;/p&gt;&lt;p&gt;To get to a double transposition ciphered text you have to apply this process again, now using the previous ciphered text as the plain text (and probably a good idea to use a different key). E.g., with the key &amp;quot;ALMOND&amp;quot;:&lt;/p&gt;&lt;pre&gt;134652
ALMOND
------
OKSETW
MAAODI
HRUTER
SOBOAO
TCMTJT
H
&lt;/pre&gt;&lt;p&gt;The final ciphered text: &amp;quot;OMHST HWIRO TKARO CSAUB MTDEA JEOTO T&amp;quot;.&lt;/p&gt;&lt;h2&gt;Deciphering&lt;/h2&gt;&lt;p&gt;To decipher you have to do the reverse. You make the matrix as before, and then the way you fill it depends on the number of columns and the length of the message. To get the number of rows, and the number of columns of the last row, the formula in Scheme is:&lt;/p&gt;&lt;pre&gt;(receive (q r) (quotient&amp;amp;modulo (string-length cipher-text)
                                (string-length key))
  (+ q 1) ; #rows
  r)      ; #columns of the last row
&lt;/pre&gt;&lt;p&gt;(quotient&amp;amp;modulo is actually CHICKEN-specific; in plain Scheme you&amp;#39;d use quotient and modulo separately)&lt;/p&gt;&lt;p&gt;In English: the number of rows is the quotient of the division of the length of the cipher text by the length of the key, plus 1; the number of columns of the last row is the remainder.&lt;/p&gt;&lt;p&gt;So, for the previous cipher text and the key &amp;quot;ALMOND&amp;quot;:&lt;/p&gt;&lt;pre&gt;(string-length cipher-text) ;=&amp;gt; 31
(string-length &amp;quot;ALMOND&amp;quot;) ;=&amp;gt; 6
(quotient 31 6) ;=&amp;gt; 5
(modulo 31 6) ;=&amp;gt; 1
&lt;/pre&gt;&lt;p&gt;This means that the matrix must have 6 rows, but that the last row has only 1 letter.&lt;/p&gt;&lt;p&gt;Putting it into practice, we get this (using * to denote blanks and # blocked blanks):&lt;/p&gt;&lt;pre&gt;134652      134652      134652
ALMOND      ALMOND      ALMOND
------      ------      ------

&lt;/pre&gt;&lt;p&gt;And so on...&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/crypto/double_transposition.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Double Transposition Cipher</title>
    <updated>2022-02-13T00:00:00Z</updated>
    <link href="https://siiky.srht.site/crypto/double_transposition.html" rel="alternate" type="text/html" hreflang="en" title="Double Transposition Cipher" />
    <link href="gemini://siiky.srht.site/crypto/double_transposition.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Double Transposition Cipher" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Pipes&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/01/09&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been using my own pipe operators for a while. This is the latest definition:&lt;/p&gt;&lt;pre&gt;(define (*=&amp;gt; vals . funs)
  (foldl (lambda (val fun) (fun val))
         (apply (car funs) vals)
         (cdr funs)))

(define ((*-&amp;gt; . funs) . vals)
  (foldl (lambda (val fun) (fun val))
         (apply (car funs) vals)
         (cdr funs)))

(define (=&amp;gt; val . funs)
  (foldl (lambda (val fun) (fun val)) val funs))

(define ((-&amp;gt; . funs) val)
  (foldl (lambda (val fun) (fun val)) val funs))
&lt;/pre&gt;&lt;p&gt;And this is the original definition (with slightly different semantics):&lt;/p&gt;&lt;pre&gt;(define (=*&amp;gt; val funs)
  (foldl (lambda (val fun) (fun val)) val funs))

(define ((-*&amp;gt; funs) val)
  (=*&amp;gt; val funs))

(define (=&amp;gt; val . funs)
  (=*&amp;gt; val funs))

(define ((-&amp;gt; . funs) val)
  (=*&amp;gt; val funs))
&lt;/pre&gt;&lt;p&gt;Comparing with Scheme&amp;#39;s `o`:&lt;/p&gt;&lt;pre&gt;(o snd fst)
(-&amp;gt; fst snd)
&lt;/pre&gt;&lt;p&gt;There&amp;#39;s no equivalent to Scheme&amp;#39;s `compose`.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve never used =*&amp;gt; and -*&amp;gt; directly (they&amp;#39;re there just in case, and as the base for the other two), but I&amp;#39;ve grown attached to -&amp;gt; and =&amp;gt;.&lt;/p&gt;&lt;p&gt;The reasoning behind the names is simple: think of a function as a &amp;quot;processing pipe&amp;quot;. -&amp;gt; is a chain of such pipes, and a pipe on its own, without &amp;quot;contents&amp;quot; -- you have to plug something on one end to get something on the other end. On the other hand, =&amp;gt; already has the stuff plugged in, ready to go, so it&amp;#39;s fatter.&lt;/p&gt;&lt;p&gt;Some uses:&lt;/p&gt;&lt;pre&gt;(map (-&amp;gt; do-this
         and-that)
     some-list)

(=&amp;gt; some-list
    (cute map (-&amp;gt; do-this and-that) &amp;lt;&amp;gt;)
    (cute filter (o not screwed?) &amp;lt;&amp;gt;))

((-&amp;gt; (cute map (-&amp;gt; do-this and-that) &amp;lt;&amp;gt;)
     (cute filter (o not screwed?) &amp;lt;&amp;gt;))
   some-list)

(filter (o not screwed?)
        (map (-&amp;gt; do-this and-that)
             some-list))
&lt;/pre&gt;&lt;p&gt;(-&amp;gt; do-this and-that) is an unary function -- that&amp;#39;s why it can be given to map.&lt;/p&gt;&lt;p&gt;(=&amp;gt; some-list ...) evaluates to a value, which is the result of applying the filter to the result of applying the map to some-list.&lt;/p&gt;&lt;p&gt;The third and fourth expressions, ((-&amp;gt; ...) some-list) and (filter ...), are equivalent to the second.&lt;/p&gt;&lt;p&gt;Note the use of o instead of -&amp;gt; in the filter&amp;#39;s predicate. Personal preference, but I think that case reads better with o because it&amp;#39;s more like English.&lt;/p&gt;&lt;p&gt;-----&lt;/p&gt;&lt;p&gt;But now that&amp;#39;ll probably be the end of them for me.&lt;/p&gt;&lt;p&gt;Yesterday I learned of SRFI-197 -- very cool! There&amp;#39;s even an egg for CHICKEN already.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://srfi.schemers.org/srfi-197/srfi-197.html"&gt;SRFI-197&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://wiki.call-cc.org/eggref/5/srfi-197"&gt;SRFI-197 egg&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And I can rename the exported identifiers to the ones I&amp;#39;ve been using:&lt;/p&gt;&lt;pre&gt;(import
  chicken.module
  (rename
    (only srfi-197
          chain
          chain-lambda)
    (chain =&amp;gt;)
    (chain-lambda -&amp;gt;)))
&lt;/pre&gt;&lt;p&gt;With that, the previous example is written like so:&lt;/p&gt;&lt;pre&gt;(map (-&amp;gt; (do-this _)
         (and-that _))
     some-list)

(=&amp;gt; some-list
    (map (-&amp;gt; (do-this _) (and-that _)) _)
    (filter (o not screwed?) _))

((-&amp;gt; (map (-&amp;gt; (do-this _) (and-that _)) _)
     (filter (o not screwed?) _))
   some-list)

(filter (o not screwed?)
        (map (-&amp;gt; (do-this _) (and-that _))
             some-list))
&lt;/pre&gt;&lt;p&gt;Maybe the advantage(s) aren&amp;#39;t obvious (maybe they&amp;#39;re not advantages at all!),&lt;br&gt;&lt;/br&gt;but to me not having to write `cute` for non-unary functions is a plus, even if&lt;br&gt;&lt;/br&gt;I&amp;#39;m now forced to write parenthesis and an underscore on every unary function.&lt;/p&gt;&lt;p&gt;I guess the only situation(s) I don&amp;#39;t see myself using it is if I want to avoid&lt;br&gt;&lt;/br&gt;dependencies.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/scheme/pipes.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Pipes</title>
    <updated>2022-01-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/scheme/pipes.html" rel="alternate" type="text/html" hreflang="en" title="Pipes" />
    <link href="gemini://siiky.srht.site/scheme/pipes.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Pipes" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Naming Operations rather than Variables&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2021/12/15&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Naming, using, reading, and understanding well named operations rather than (kinda) well named variables grows the habit of reading and understanding code rather than relying on variables being well named -- and everyone knows naming is hard.&lt;/p&gt;&lt;p&gt;Bad:&lt;/p&gt;&lt;pre&gt;x = &amp;#39;42&amp;#39;
x_food = foo(x)
x_bard_food = bar(x_food)
x_zazd_bard_food = zaz(x_bard_food)
&lt;/pre&gt;&lt;p&gt;Good (using procedural composition):&lt;/p&gt;&lt;pre&gt;x = zaz(bar(foo(&amp;#39;42&amp;#39;)))
&lt;/pre&gt;&lt;p&gt;Better (if the chain of operations is long):&lt;/p&gt;&lt;pre&gt;x = &amp;#39;42&amp;#39;
x = foo(x)
x = bar(x)
x = zaz(x)
&lt;/pre&gt;&lt;p&gt;Best (using functional composition):&lt;/p&gt;&lt;pre&gt;(=&amp;gt; &amp;#39;42&amp;#39;
    foo
    bar
    zaz)

; OR

((-&amp;gt; foo bar zaz) &amp;#39;42&amp;#39;)
&lt;/pre&gt;&lt;p&gt;It also comes with rather nice advantages. Just compare the two approaches in each scenario:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Imagine you want to change the order of operations in the chain;&lt;/li&gt;&lt;li&gt;Imagine you want to add an operation to the chain;&lt;/li&gt;&lt;li&gt;Imagine you want to remove an operation from the chain.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;And a final bonus: the &amp;quot;better&amp;quot; approach is easier to read than the &amp;quot;bad&amp;quot; approach, and requires less typing, thank you very much.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/functional_programming/naming.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Naming Operations rather than Variables</title>
    <updated>2021-12-15T00:00:00Z</updated>
    <link href="https://siiky.srht.site/functional_programming/naming.html" rel="alternate" type="text/html" hreflang="en" title="Naming Operations rather than Variables" />
    <link href="gemini://siiky.srht.site/functional_programming/naming.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Naming Operations rather than Variables" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;CVE-2020-26935&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/11/06&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;At work I got the chance to discover a vulnerability in phpMyAdmin. You can find some details on the project&amp;#39;s official advisory, and you can check out the CVE details on MITRE and NVD.&lt;/p&gt;&lt;p&gt;I&amp;#39;d like to publish all the details, but I&amp;#39;m not sure I can.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.phpmyadmin.net"&gt;phpMyAdmin&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://www.phpmyadmin.net/security/PMASA-2020-6"&gt;Official advisory (PMASA-2020-6)&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26935"&gt;CVE-2020-26935 on MITRE&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nvd.nist.gov/vuln/detail/CVE-2020-26935"&gt;CVE-2020-26935 on NVD&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/work/CVE-2020-26935.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">CVE-2020-26935</title>
    <updated>2020-11-06T00:00:00Z</updated>
    <link href="https://siiky.srht.site/work/CVE-2020-26935.html" rel="alternate" type="text/html" hreflang="en" title="CVE-2020-26935" />
    <link href="gemini://siiky.srht.site/work/CVE-2020-26935.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="CVE-2020-26935" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Credit&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2020/04/30&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;DISCLAIMER: This post has nothing to do with me or CVE-2020-26935.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="CVE-2020-26935.html"&gt;CVE-2020-26935&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;There are some types of work or achievements at work that can be credited directly to one person or small group of people. I don&amp;#39;t mean fixing bugs or developing some new fancy useless feature, but, for example, a new revolutionary algorithm, protocol, or cryptographic system. This may or may not be a part of their job. Sometimes a white paper about the novelty is written and published; sometimes it isn&amp;#39;t. In either case, it is not uncommon for the matter to break out on news and social media sites. The titles usually go something like &amp;quot;$COMPANY does $BIGTHING&amp;quot;.&lt;/p&gt;&lt;p&gt;Is this right?&lt;/p&gt;&lt;p&gt;A few months ago news with a title somewhat similar to the above broke out, and the company was the one I work for. It was really big news, and all thanks to the work of a group of two or three people in the company. Not anyone else. What name is mentioned in the title? The company&amp;#39;s. Who did the work? Some nameless group inside the company.&lt;/p&gt;&lt;p&gt;One day, at lunch, the topic came up because of something the head of that small group replied in an interview, when asked &amp;quot;What are your comments about $COMPANY having done $BIGTHING?&amp;quot;: &amp;quot;Has it?&amp;quot;. This coming up, almost at once, everyone got (figuratively) up, as if someone had insulted $PERSONALDEITY inside $DESIGNATEDPLACEOFWORSHIPOFSAIDDEITY. And I just really don&amp;#39;t get it. Why would anyone think it&amp;#39;s right to credit the company instead of the people who&amp;#39;ve actually done the thing? How can a company, not being a being, not in the possession of reason, not being able to take an action, not being able to affect the real physical world, possibly accomplish any a thing?&lt;/p&gt;&lt;p&gt;Maybe I&amp;#39;m being a bit harsh on companies, but I believe crediting something/someone for something it/they haven&amp;#39;t done is not right. I would say, if anything, the only credit companies deserve is for doing The Right Thing™ in investing on someone competent and deserving of the remuneration.&lt;/p&gt;&lt;p&gt;/rant&lt;/p&gt;&lt;p&gt;All companies not mentioned in this post are fictious, not real, and any resemblance to any other also not real companies is purely coincidental.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/work/credit.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">Credit</title>
    <updated>2020-04-30T00:00:00Z</updated>
    <link href="https://siiky.srht.site/work/credit.html" rel="alternate" type="text/html" hreflang="en" title="Credit" />
    <link href="gemini://siiky.srht.site/work/credit.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Credit" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;kless&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2019/10/13&lt;br&gt;&lt;/br&gt;2022/07/07&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;I read recently a blog post called The Lisp Curse (not yet HTTPS enabled, but hoping it will be in the future). In this post, the author, Rudolf Winestock, says that &amp;quot;Making Scheme object-oriented is a sophomore homework assignment&amp;quot;; and so, for fun, I tried hacking an abstraction for defining classes in Scheme, with the little knowledge of macros that I have.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://web.archive.org/web/20221129004605/www.winestockwebdesign.com/Essays/Lisp_Curse.html"&gt;Rudolf Winestock, &amp;quot;The Lisp Curse&amp;quot;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Implementation&lt;/h1&gt;&lt;p&gt;Below is the definition of the kless macro.&lt;/p&gt;&lt;pre&gt;;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
;!! Read identifiers with Metalocalypse Pickles&amp;#39; accent !!!
;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(define-syntax kless
  ; `meth` is a reserved keyword inside the macro, i.e., it has a special
  ; meaning and you can&amp;#39;t name a kless or method &amp;quot;meth&amp;quot;
  (syntax-rules (meth)

    ;; TEMPLATE
    ((kless
       (kless-name ver-name ...)
       (meth (meth-name meth-args ...)
             meth-body ...) ...)

     ;; RESULT
     (begin
       ; If your Scheme of choice doesn&amp;#39;t support curried definitions
       ; use lambda instead:
       ;   (define (kless-name ver-name ...)
       ;     (lambda (method self . args)
       (define ((kless-name ver-name ...) method self . args)
         (define (err sym)
           (error (string-append &amp;quot;&amp;#39;&amp;quot; (symbol-&amp;gt;string sym) &amp;quot;&amp;#39;? dat shiet dun exist yo&amp;quot;)))

         (define (getter ver)
           (case ver
             ((ver-name) ver-name) ...
             (else (err ver))))

         (define (setter ver val)
           (case ver
             ((ver-name) (set! ver-name val)) ...
             (else (err ver))))

         ;; Dispatch
         (case method
           ((get) (apply getter args))
           ((set) (apply setter args))
           ((meth-name)
            (apply (lambda (meth-args ...)
                     meth-body ...)
                   args)) ...
           (else (err method))))

       ;; [GS]etters
       (define (ver-name self . val)
         (if (null? val)
             (self &amp;#39;get self &amp;#39;var-name)
             (self &amp;#39;set self &amp;#39;var-name (car val)))) ...

       ;; Custom methods
       (define (meth-name self meth-args ...)
         (self &amp;#39;meth-name self meth-args ...)) ...))))
&lt;/pre&gt;&lt;p&gt;With kless you can specify instance variables, with getters and destructive setters automatically defined for you, and instance (non-static) methods. Because the methods&amp;#39; bodies are inserted into the object itself, instance variables are in scope, and no extra magic is needed for making them available.&lt;/p&gt;&lt;p&gt;Having two classes with methods (or variables, for that matter) of the same name results in two functions with exactly the same names and bodies being defined. By defining the two classes above (dek and blenk-dek), show-me is defined twice, like so:&lt;/p&gt;&lt;pre&gt;(define (show-me self)
  (self &amp;#39;show-me self))
&lt;/pre&gt;&lt;p&gt;This is OK in Scheme, so dick-typing (a la Python) is supported.&lt;/p&gt;&lt;h1&gt;Example klesses&lt;/h1&gt;&lt;p&gt;The following example shows that/how kless works, and what OO is good for.&lt;/p&gt;&lt;p&gt;Defining two classes:&lt;/p&gt;&lt;pre&gt;;; Very important dek class! It is used to represent various types of deks
(kless (dek x y)
       (meth (show-me)
             (print &amp;quot;8&amp;quot; (make-string x #\=) &amp;quot;D&amp;quot; (make-string y #\~))))

(kless (blenk-dek x)
       (meth (show-me)
             (print &amp;quot;8&amp;quot; (make-string x #\=) &amp;quot;D&amp;quot;)))
&lt;/pre&gt;&lt;p&gt;Inspecting generated procedures and trying things out with csi (the CHICKEN Scheme Interpreter):&lt;/p&gt;&lt;pre&gt;#;1&amp;gt; dek
#&amp;lt;procedure (dek x y)&amp;gt;
#;2&amp;gt; blenk-dek
#&amp;lt;procedure (blenk-dek x)&amp;gt;
#;3&amp;gt; x
#&amp;lt;procedure (x self270 . val282)&amp;gt;
#;4&amp;gt; y
#&amp;lt;procedure (y self204 . val216)&amp;gt;
#;5&amp;gt; show-me
#&amp;lt;procedure (show-me self270)&amp;gt;
#;6&amp;gt; (show-me (dek 2 4))
8==D~~~~
#;7&amp;gt; (show-me (blenk-dek 4))
8====D
&lt;/pre&gt;&lt;h1&gt;Thorns&lt;/h1&gt;&lt;p&gt;self is not in scope (or rather, self, the object itself, is in scope, but is not called self because of syntax-rules magic). Recursive methods are still possible, with a named-let or define. Just don&amp;#39;t use other methods.&lt;/p&gt;&lt;p&gt;No type predicate is defined, but can be easily implemented.&lt;/p&gt;&lt;p&gt;No hierarchy, inheritance, no nothing!&lt;/p&gt;&lt;p&gt;No &amp;quot;static&amp;quot; class methods. Because, what? Just make a function, prefix it with the class name and be done with it.&lt;/p&gt;&lt;p&gt;No extending already defined classes, a la Haskell&amp;#39;s type classes (instance ... where), or Rust&amp;#39;s traits (impl). Put everything inside kless and dick-typing does the rest.&lt;/p&gt;&lt;p&gt;Method overriding on a per object basis is not possible. This may be easy to implement. One way is to put a table inside the object, from method name to procedure (Symbol -&amp;gt; Method), and arrange a way to get and set that procedure from outside the object. A problem arises then: this new method doesn&amp;#39;t have the instance variables in scope. One could be tempted to think that something like the following solves the problem.&lt;/p&gt;&lt;pre&gt;(define (meth-setter meth-name meth-maker)
  (update-meth-table meth-name (meth-maker ver-name ...)))
&lt;/pre&gt;&lt;p&gt;This would indeed bring the current variables into scope, but not future updates, as this new method&amp;#39;s scope is not the same as the object&amp;#39;s scope itself. (There was also something similar on Let Over Lambda IIRC)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://letoverlambda.com"&gt;Let Over Lambda&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Another option would be to have another indirection for the actual method&amp;#39;s code, such that the current instance variables are given on each call. Calling one such method would be something like:&lt;/p&gt;&lt;pre&gt;(((lambda (ver-name ...)    ; instance variables
    (lambda (meth-args ...) ; method parameters
      meth-body ...))       ; method body
  ver-name ...)             ; get the method procedure, with instance variables in scope
 meth-args ...)             ; call the method
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/scheme/kless.gmi</id>
    <published>2022-07-07T00:00:00Z</published>
    <title type="text">kless</title>
    <updated>2019-10-13T00:00:00Z</updated>
    <link href="https://siiky.srht.site/scheme/kless.html" rel="alternate" type="text/html" hreflang="en" title="kless" />
    <link href="gemini://siiky.srht.site/scheme/kless.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="kless" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Scheme Gemtext Reader&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/07/05&lt;br&gt;&lt;/br&gt;2022/07/05&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;Yesterday I made a Scheme library to read Gemtext into a simple AST: a list of lines of text, headers, links, list blocks, or code blocks.&lt;/p&gt;&lt;h2&gt;Text&lt;/h2&gt;&lt;pre&gt;some text
&lt;/pre&gt;&lt;pre&gt;&amp;quot;some text&amp;quot;
&lt;/pre&gt;&lt;p&gt;Just a string, not tagged in any way. Empty lines are kept.&lt;/p&gt;&lt;h2&gt;Headers&lt;/h2&gt;&lt;pre&gt;^(#+)\s+(.*)$
&lt;/pre&gt;&lt;pre&gt;`(header ,(string-length $1) ,$2)
&lt;/pre&gt;&lt;p&gt;If *strict-gemtext-headers* is enabled, header lines of level &amp;gt; 3 are not considered headers.&lt;/p&gt;&lt;pre&gt;##### title
&lt;/pre&gt;&lt;pre&gt;&amp;quot;##### title&amp;quot;       ; (w/ *strict-gemtext-headers* enabled)
&amp;#39;(header 5 &amp;quot;title&amp;quot;) ; (w/ *strict-gemtext-headers* disabled)
&lt;/pre&gt;&lt;h2&gt;Links&lt;/h2&gt;&lt;pre&gt;=&amp;gt; some-uri.gmi Optional alt text
&lt;/pre&gt;&lt;pre&gt;&amp;#39;(link &amp;quot;some-uri.gmi&amp;quot; &amp;quot;Optional alt text&amp;quot;)
&lt;/pre&gt;&lt;p&gt;If there&amp;#39;s no alt text, the empty string is used:&lt;/p&gt;&lt;pre&gt;=&amp;gt; some-uri.gmi
&lt;/pre&gt;&lt;pre&gt;&amp;#39;(link &amp;quot;some-uri.gmi&amp;quot; &amp;quot;&amp;quot;)
&lt;/pre&gt;&lt;h2&gt;Lists&lt;/h2&gt;&lt;pre&gt;* item 1

&lt;/pre&gt;&lt;pre&gt;&amp;#39;(list &amp;quot;item 1&amp;quot;
       &amp;quot;item 2&amp;quot;)
&lt;/pre&gt;&lt;h2&gt;Code blocks&lt;/h2&gt;&lt;p&gt;(pretend there&amp;#39;s no space between the three backticks)&lt;/p&gt;&lt;pre&gt;`` `some optional alt text
some
pre-formatted
text
`` `
&lt;/pre&gt;&lt;pre&gt;&amp;#39;(code &amp;quot;some optional alt text&amp;quot;
       &amp;quot;some&amp;quot;
       &amp;quot;pre-formatted&amp;quot;
       &amp;quot;text&amp;quot;)
&lt;/pre&gt;&lt;p&gt;If there&amp;#39;s no alt text, the empty string is used:&lt;/p&gt;&lt;pre&gt;`` `some optional alt text
some
pre-formatted
text
`` `
&lt;/pre&gt;&lt;pre&gt;&amp;#39;(code &amp;quot;&amp;quot;
       &amp;quot;some&amp;quot;
       &amp;quot;pre-formatted&amp;quot;
       &amp;quot;text&amp;quot;)
&lt;/pre&gt;&lt;h2&gt;Example&lt;/h2&gt;&lt;pre&gt;# Factorial

There are two steps to compute the factorial of a number:



=&amp;gt; gemini://gemi.dev/cgi-bin/wp.cgi/view/en?Factorial
=&amp;gt; gemini://gemi.dev/cgi-bin/wp.cgi/view/en?Factorial Factorial

## Haskell code

Here&amp;#39;s the code in Haskell:

`` `hs
fact n = prod [1..n]
`` `
&lt;/pre&gt;&lt;pre&gt;&amp;#39;((header 1 &amp;quot;Factorial&amp;quot;)
  &amp;quot;&amp;quot;
  &amp;quot;There are two steps to compute the factorial of a number:&amp;quot;
  &amp;quot;&amp;quot;
  (list &amp;quot;Compute the list of integers from 1 up to the number&amp;quot;
        &amp;quot;Multiply all the integers of the list&amp;quot;)
  &amp;quot;&amp;quot;
  (link &amp;quot;gemini://gemi.dev/cgi-bin/wp.cgi/view/en?Factorial&amp;quot; &amp;quot;&amp;quot;)
  (link &amp;quot;gemini://gemi.dev/cgi-bin/wp.cgi/view/en?Factorial&amp;quot; &amp;quot;Factorial&amp;quot;)
  &amp;quot;&amp;quot;
  (header 2 &amp;quot;Haskell code&amp;quot;)
  &amp;quot;&amp;quot;
  &amp;quot;Here&amp;#39;s the code in Haskell:&amp;quot;
  &amp;quot;&amp;quot;
  (code &amp;quot;hs&amp;quot;
        &amp;quot;fact n = prod [1..n]&amp;quot;))
&lt;/pre&gt;&lt;h2&gt;Output Patterns&lt;/h2&gt;&lt;pre&gt;(header level title)
(link uri alt-text)
(code alt-text . lines)
(list . items)
&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/projects/gemtext.gmi</id>
    <published>2022-07-05T00:00:00Z</published>
    <title type="text">Scheme Gemtext Reader</title>
    <updated>2022-07-05T00:00:00Z</updated>
    <link href="https://siiky.srht.site/projects/gemtext.html" rel="alternate" type="text/html" hreflang="en" title="Scheme Gemtext Reader" />
    <link href="gemini://siiky.srht.site/projects/gemtext.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Scheme Gemtext Reader" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Care list&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/01/09&lt;br&gt;&lt;/br&gt;2022/07/04&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="ipfs.html"&gt;If you don&amp;#39;t know what IPFS is or how to use it, read this quickstart.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;IPFS root directory of this list:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="ipfs://bafybeicsuo27ufnhjw2k5ophno5hgxhuvfbzzerrgsx7fxmy4kxwthpkbi"&gt;ipfs://bafybeicsuo27ufnhjw2k5ophno5hgxhuvfbzzerrgsx7fxmy4kxwthpkbi&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Because sharing is caring. This is a list of things I&amp;#39;m caring with others. Some of the types of cares you may find here are books from Gutenberg or Standard Ebooks that I particularly like; public movies/documentaries I find interesting and/or important; and copies of technical material distributed publicly and freely by their creators. Whatever care you may find here, it shouldn&amp;#39;t be illegal.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.gutenberg.org"&gt;Gutenberg&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://standardebooks.org"&gt;Standard Ebooks&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;You&amp;#39;ll find at least three spider cares.&lt;/p&gt;&lt;img src="spidercare.jpg" alt="spidercare.jpg"&gt;&lt;/img&gt;&lt;p&gt;The URI of the root of the list will be always at the top of the page (the &amp;quot;IPFS root directory ...&amp;quot;). From it you can get to all other cares (if I don&amp;#39;t screw up). Over the rest of the page I&amp;#39;ll post some notable cares and/or (maybe) more details -- maybe even sources!&lt;/p&gt;&lt;p&gt;The cares are added to IPFS using `ipfs add` with the options `--recursive --raw-leaves --cid-version=1`. Videos also get a `--trickle`. The full command is something like this:&lt;/p&gt;&lt;pre&gt;ipfs files cp /ipfs/`ipfs add -p -Q -r -t --pin=false --cid-version=1 --raw-leaves &amp;#39;/path/to/file_or_directory&amp;#39;` &amp;#39;/care-list/videos/file_or_directory&amp;#39;
&lt;/pre&gt;&lt;p&gt;If you feel the urge to support someone after finding or benefiting from this list, support the creators of the cares themselves.&lt;/p&gt;&lt;h1&gt;Books&lt;/h1&gt;&lt;h2&gt;Geographies of Digital Exclusion: Data and Inequality&lt;/h2&gt;&lt;pre&gt;/books/geographies_of_digital_exclusion.pdf.
&lt;/pre&gt;&lt;p&gt;Originally downloaded from the website of the Oxford Internet Institute.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.oii.ox.ac.uk/research/publications/geographies-of-digital-exclusion-data-and-inequality"&gt;https://www.oii.ox.ac.uk/research/publications/geographies-of-digital-exclusion-data-and-inequality&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Published in 2022/01 by Pluto Press, with ISBN 9780745340180.&lt;/p&gt;&lt;h2&gt;Program Design by Calculation&lt;/h2&gt;&lt;pre&gt;/books/pdbc.pdf
&lt;/pre&gt;&lt;p&gt;Written by José Nuno Oliveira, professor of the Informatics Department of the University of Minho.&lt;/p&gt;&lt;p&gt;Not necessarily the latest version! The original is usually available here:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www4.di.uminho.pt/~jno/ps/pdbc.pdf"&gt;https://www4.di.uminho.pt/~jno/ps/pdbc.pdf&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Videos&lt;/h1&gt;&lt;h2&gt;OPLSS (Oregon Programming Language Summer School)&lt;/h2&gt;&lt;pre&gt;/videos/oplss/
&lt;/pre&gt;&lt;p&gt;Only some of the lectures are mirrored on this path.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.cs.uoregon.edu/research/summerschool/archives.html"&gt;Official OPLSS site&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="ipfs://bafybeidlgjvd6qdjgdb2vqtdnssvvfbv47m3wj2uyzknswhj5twktr37ne"&gt;ipfs://bafybeidlgjvd6qdjgdb2vqtdnssvvfbv47m3wj2uyzknswhj5twktr37ne&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;NOTE THAT I may forget to update this URI, but the root will always be up to date!&lt;/p&gt;&lt;h2&gt;Nothing to Hide&lt;/h2&gt;&lt;pre&gt;/videos/Nothing to Hide - The documentary about surveillance and you (2017) 1080p.mp4
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://vidcommons.org/w/efeEpsHSK3bzJwVLW9fh7U"&gt;VidCommons&amp;#39; PeerTube instance&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="ipfs://bafybeidi44wekwu3bi24m5x6ofnttzbcsfomr4dw5bssovqq35wdwva26m?filename=Nothing%20to%20Hide%20-%20The%20documentary%20about%20surveillance%20and%20you%20(2017)%201080p.mp4"&gt;ipfs://bafybeidi44wekwu3bi24m5x6ofnttzbcsfomr4dw5bssovqq35wdwva26m?filename=Nothing%20to%20Hide%20-%20The%20documentary%20about%20surveillance%20and%20you%20(2017)%201080p.mp4&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="magnet:?xt=urn:btih:34d4615762a92083aaf892630e84284c3ebaf3e5&amp;amp;dn=Nothing%20to%20Hide%20-%20The%20documentary%20about%20surveillance%20and%20you%20%282017%29%201080p.mp4&amp;amp;tr=https%3A%2F%2Fvidcommons.org%2Ftracker%2Fannounce&amp;amp;ws=https%3A%2F%2Fvidcommons.org%2Fstatic%2Fwebseed%2F6b43a28c-86ee-4681-8ab9-787ac140afc0-1080.mp4"&gt;magnet:?xt=urn:btih:34d4615762a92083aaf892630e84284c3ebaf3e5&amp;amp;dn=Nothing%20to%20Hide%20-%20The%20documentary%20about%20surveillance%20and%20you%20%282017%29%201080p.mp4&amp;amp;tr=https%3A%2F%2Fvidcommons.org%2Ftracker%2Fannounce&amp;amp;ws=https%3A%2F%2Fvidcommons.org%2Fstatic%2Fwebseed%2F6b43a28c-86ee-4681-8ab9-787ac140afc0-1080.mp4&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;TPB: AFK&lt;/h2&gt;&lt;pre&gt;/videos/TPB.AFK.2013.1080p.h264-SimonKlose.mkv
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="magnet:?xt=urn:btih:411a7a164505636ab1a8276395b375a3a30bff32&amp;amp;dn=TPB.AFK.2013.1080p.h264-SimonKlose&amp;amp;tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&amp;amp;tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&amp;amp;tr=udp%3A%2F%2F9.rarbg.me%3A2780%2Fannounce&amp;amp;tr=udp%3A%2F%2F9.rarbg.to%3A2730%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&amp;amp;tr=http%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&amp;amp;tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce"&gt;magnet:?xt=urn:btih:411a7a164505636ab1a8276395b375a3a30bff32&amp;amp;dn=TPB.AFK.2013.1080p.h264-SimonKlose&amp;amp;tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&amp;amp;tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&amp;amp;tr=udp%3A%2F%2F9.rarbg.me%3A2780%2Fannounce&amp;amp;tr=udp%3A%2F%2F9.rarbg.to%3A2730%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&amp;amp;tr=http%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&amp;amp;tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&amp;amp;tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;Steal this Film&lt;/h2&gt;&lt;pre&gt;/videos/StealThisFilm.Part1.mov
/videos/StealThisFilmII.720p.mov
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.stealthisfilm.com"&gt;Official site&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="magnet:?xt=urn:btih:2d71be0c1bcc93373e926f02aaa4ab484979a542&amp;amp;dn=StealThisFilm.Part1.mov&amp;amp;tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce"&gt;magnet:?xt=urn:btih:2d71be0c1bcc93373e926f02aaa4ab484979a542&amp;amp;dn=StealThisFilm.Part1.mov&amp;amp;tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="magnet:?xt=urn:btih:0ff9cd4f43f5df2a30c694c87e63978af26ee9d4&amp;amp;dn=Steal%20This%20Film%20II.720p.mov&amp;amp;tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce"&gt;magnet:?xt=urn:btih:0ff9cd4f43f5df2a30c694c87e63978af26ee9d4&amp;amp;dn=Steal%20This%20Film%20II.720p.mov&amp;amp;tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The torrents are from the official site.&lt;/p&gt;&lt;h2&gt;O Lado Negro das Energias Verdes&lt;/h2&gt;&lt;pre&gt;/videos/o_lado_negro_das_energias_verdes.mp4
&lt;/pre&gt;&lt;p&gt;This is the documentary The Dark Side of Green Energies, but in PT from RTP (narration &amp;amp; subtitles).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="https://www.imdb.com/title/tt13524468"&gt;The Dark Side of Green Energies&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/care/list.gmi</id>
    <published>2022-07-04T00:00:00Z</published>
    <title type="text">Care list</title>
    <updated>2022-01-09T00:00:00Z</updated>
    <link href="https://siiky.srht.site/care/list.html" rel="alternate" type="text/html" hreflang="en" title="Care list" />
    <link href="gemini://siiky.srht.site/care/list.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Care list" />
  </entry>
  <entry>
    <content type="html">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html lang="en" xml:lang="en"&gt;&lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Petri Nets Logs&lt;/h1&gt;&lt;p&gt;siiky&lt;br&gt;&lt;/br&gt;2022/05/16&lt;br&gt;&lt;/br&gt;2022/05/16&lt;br&gt;&lt;/br&gt;en&lt;/p&gt;&lt;p&gt;This is the list of logs I wrote about my journey studying Petri nets. I&amp;#39;ll try to make this a sort of regular log with updates, my comments/opinions, and maybe notes. One of these days I should start combing through and arranging my notes to publish them.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="log001.html"&gt;#001&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="log002.html"&gt;#002&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="log003.html"&gt;#003&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="log004.html"&gt;#004&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="log005.html"&gt;#005&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="log006.html"&gt;#006&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/body&gt;&lt;/html&gt;</content>
    <id>gemini://siiky.srht.site/petri_nets/logs.gmi</id>
    <published>2022-05-16T00:00:00Z</published>
    <title type="text">Petri Nets Logs</title>
    <updated>2022-05-16T00:00:00Z</updated>
    <link href="https://siiky.srht.site/petri_nets/logs.html" rel="alternate" type="text/html" hreflang="en" title="Petri Nets Logs" />
    <link href="gemini://siiky.srht.site/petri_nets/logs.gmi" rel="alternate" type="text/gemtext" hreflang="en" title="Petri Nets Logs" />
  </entry>
</feed>