<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>(in-parenthesis)</title>
    <link>/</link>
    <description>Recent content on (in-parenthesis)</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 05 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Implementing aref Operator in SBCL Common Lisp for a Custom Vector Type</title>
      <link>/posts/aref-for-custom-type/</link>
      <pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate>
      <guid>/posts/aref-for-custom-type/</guid>
      <description>&lt;p&gt;
If we would like to derive a custom array type, in Common Lisp, we can not inherit from some of the built-in classes. &lt;a href=&#34;http://clhs.lisp.se/Body/04_cg.htm&#34;&gt;The standard forbids it&lt;/a&gt;: &amp;#34;Attempting to use defclass to define subclasses of a built-in-class signals an error. Calling slot-value on a generalized instance of a built-in class signals an error. Redefining a built-in class or using change-class to change the class of an object to or from a built-in class signals an error.&amp;#34;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Parsing Keywords in Lisp with Speed of C</title>
      <link>/posts/lisp-as-fast-as-c/</link>
      <pubDate>Thu, 16 Apr 2026 00:00:00 +0000</pubDate>
      <guid>/posts/lisp-as-fast-as-c/</guid>
      <description>&lt;div id=&#34;outline-container-headline-1&#34; class=&#34;outline-2&#34;&gt;
&lt;h2 id=&#34;headline-1&#34;&gt;
About
&lt;/h2&gt;
&lt;div id=&#34;outline-text-headline-1&#34; class=&#34;outline-text-2&#34;&gt;
&lt;p&gt;
I am learning Common Lisp, so I am experimenting and playing around with things. It started with writing a small command-line parsing library, and ended with a trip into a rabbit hole of an experiment. I do not know if someone will find it useful, perhaps not, but it is nice to write things down, it sorts of clean thoughts, at least for me.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&#34;outline-container-headline-2&#34; class=&#34;outline-2&#34;&gt;
&lt;h2 id=&#34;headline-2&#34;&gt;
Command line parsing in C
&lt;/h2&gt;
&lt;div id=&#34;outline-text-headline-2&#34; class=&#34;outline-text-2&#34;&gt;
&lt;p&gt;
Typically, for parsing program options, we use something like getopt &amp;amp; co in C/C++, or some similar offering. But if you have lots of options and want faster parsing, you will probably use &lt;a href=&#34;https://www.gnu.org/software/gperf/&#34;&gt;gperf&lt;/a&gt;. Gperf is a code generator which can construct perfect hash from a given set of keywords, i.e. our program options. For this experiment, I used keywords of the C language, rather than some imaginary options.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A Simple Template Library</title>
      <link>/posts/template-fill/</link>
      <pubDate>Fri, 02 Jan 2026 00:00:00 +0000</pubDate>
      <guid>/posts/template-fill/</guid>
      <description>&lt;p&gt;
For the needs of a project, &lt;a href=&#34;https://github.com/amno1/lite&#34;&gt;I wrote a little template library&lt;/a&gt; some time ago. However, I never really liked it and didn&amp;#39;t really finish it. On the good side, I made it flexible with customizable markers, so I was able to use {{ }} or something else as markup. On the bad side, I was using regular expressions and simple search to carve out things in markers to be expanded. Another annoyance is that Emacs already has so many templating and text processing libraries built-in, so I dislike the idea of using yet another one. I am already using org-capture for other purposes, and org-capture has templates. Could I possibly use those templates instead of an extra dependency?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
