<?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>My Projects on Mia Heidenstedt</title><link>https://heidenstedt.org/categories/my-projects/</link><description>Recent
content
in My Projects on Mia Heidenstedt</description><generator>
Hugo</generator><language>en</language><lastBuildDate>Sun, 06 Jul 2025 15:49:51 +0000</lastBuildDate><atom:link href="https://heidenstedt.org/categories/my-projects/index.xml" rel="self" type="application/rss+xml"/><item><title>Releasing: GoQueueBench</title><link>https://heidenstedt.org/posts/2025/releasing-goqueuebench/</link><pubDate>Tue, 25 Mar 2025 15:44:38 +0000</pubDate><guid>https://heidenstedt.org/posts/2025/releasing-goqueuebench/</guid><description><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2025/releasing-goqueuebench/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>As i coded on <a href="https://github.com/i5heu/ouroboros-db">OuroborosDB</a> i noticed that i need a very fast queue for a rather unique architectural design decision.<br>
I try to build the network module in such a way that i can test the behavior completely deterministic while &ldquo;simulating&rdquo; entire clusters in a single process.</p>
<p>So i build a test prototype of my global network queue with go&rsquo;s channels and noticed that it was a major performance bottleneck, after writing 2 different ring buffer queue implementations it became clear that some queues behave completely different under different congestion levels and core counts - some so unpredictable that i just did not wanted to use them in my project.</p>
<p>This prompted me to take a relatively large chunk out of my free time and write a suite to benchmark different queue implementations i build under different conditions and score them based on their performance and predictability.</p>
<p>The result of this work is <a href="https://github.com/i5heu/GoQueueBench">GoQueueBench</a></p>
<p>These are the results of the benchmark suite:</p>
<table>
	<thead>
			<tr>
					<th>Implementation</th>
					<th>Overall Score</th>
					<th>Throughput Light Load</th>
					<th>Throughput Heavy Load</th>
					<th>Throughput Average</th>
					<th>Stability Ratio</th>
					<th>Homogeneity Factor</th>
					<th>Uncertainty</th>
					<th>Total Tests</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>VortexQueue</td>
					<td><strong>11341466</strong></td>
					<td>6926449</td>
					<td><strong>5502925</strong></td>
					<td><strong>8776309</strong></td>
					<td><strong>1.15</strong></td>
					<td>0.87</td>
					<td><strong>0.25</strong></td>
					<td>681</td>
			</tr>
			<tr>
					<td>LightningQueue</td>
					<td>9631771</td>
					<td>6638213</td>
					<td>4627690</td>
					<td>6036728</td>
					<td>0.99</td>
					<td><strong>0.95</strong></td>
					<td>0.31</td>
					<td>681</td>
			</tr>
			<tr>
					<td>FastMPMCQueue</td>
					<td>9384067</td>
					<td>6870924</td>
					<td>4598620</td>
					<td>6070151</td>
					<td>0.96</td>
					<td>0.93</td>
					<td>0.28</td>
					<td>681</td>
			</tr>
			<tr>
					<td>OptimizedMPMCQueue</td>
					<td>9105262</td>
					<td>6436385</td>
					<td>4379823</td>
					<td>5838555</td>
					<td>0.97</td>
					<td>0.94</td>
					<td>0.32</td>
					<td>681</td>
			</tr>
			<tr>
					<td>OptimizedMPMCQueueSharded</td>
					<td>8130197</td>
					<td>6369891</td>
					<td>3834140</td>
					<td>6781865</td>
					<td>0.84</td>
					<td>0.88</td>
					<td>0.39</td>
					<td>681</td>
			</tr>
			<tr>
					<td>MultiHeadQueue</td>
					<td>7391203</td>
					<td>4363332</td>
					<td>3492068</td>
					<td>5558849</td>
					<td>1.12</td>
					<td>0.91</td>
					<td>0.36</td>
					<td>681</td>
			</tr>
			<tr>
					<td>BasicMPMCQueue</td>
					<td>5599252</td>
					<td>4370889</td>
					<td>2669612</td>
					<td>3667715</td>
					<td>0.89</td>
					<td>0.93</td>
					<td>0.30</td>
					<td>681</td>
			</tr>
			<tr>
					<td>Golang Buffered Channel</td>
					<td>5312485</td>
					<td>6667828</td>
					<td>2760985</td>
					<td>4312720</td>
					<td>0.54</td>
					<td>0.82</td>
					<td>0.66</td>
					<td>681</td>
			</tr>
			<tr>
					<td>FastMPMCQueueTicket</td>
					<td>3229780</td>
					<td><strong>7705164</strong></td>
					<td>1203924</td>
					<td>5803821</td>
					<td>0.21</td>
					<td>0.64</td>
					<td>1.19</td>
					<td>681</td>
			</tr>
	</tbody>
</table>
<p>Please note that i build the package so that all queue adhere to the same interface and can be swapped out easily.</p>
]]></description><content:encoded><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2025/releasing-goqueuebench/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>As i coded on <a href="https://github.com/i5heu/ouroboros-db">OuroborosDB</a> i noticed that i need a very fast queue for a rather unique architectural design decision.<br>
I try to build the network module in such a way that i can test the behavior completely deterministic while &ldquo;simulating&rdquo; entire clusters in a single process.</p>
<p>So i build a test prototype of my global network queue with go&rsquo;s channels and noticed that it was a major performance bottleneck, after writing 2 different ring buffer queue implementations it became clear that some queues behave completely different under different congestion levels and core counts - some so unpredictable that i just did not wanted to use them in my project.</p>
<p>This prompted me to take a relatively large chunk out of my free time and write a suite to benchmark different queue implementations i build under different conditions and score them based on their performance and predictability.</p>
<p>The result of this work is <a href="https://github.com/i5heu/GoQueueBench">GoQueueBench</a></p>
<p>These are the results of the benchmark suite:</p>
<table>
	<thead>
			<tr>
					<th>Implementation</th>
					<th>Overall Score</th>
					<th>Throughput Light Load</th>
					<th>Throughput Heavy Load</th>
					<th>Throughput Average</th>
					<th>Stability Ratio</th>
					<th>Homogeneity Factor</th>
					<th>Uncertainty</th>
					<th>Total Tests</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>VortexQueue</td>
					<td><strong>11341466</strong></td>
					<td>6926449</td>
					<td><strong>5502925</strong></td>
					<td><strong>8776309</strong></td>
					<td><strong>1.15</strong></td>
					<td>0.87</td>
					<td><strong>0.25</strong></td>
					<td>681</td>
			</tr>
			<tr>
					<td>LightningQueue</td>
					<td>9631771</td>
					<td>6638213</td>
					<td>4627690</td>
					<td>6036728</td>
					<td>0.99</td>
					<td><strong>0.95</strong></td>
					<td>0.31</td>
					<td>681</td>
			</tr>
			<tr>
					<td>FastMPMCQueue</td>
					<td>9384067</td>
					<td>6870924</td>
					<td>4598620</td>
					<td>6070151</td>
					<td>0.96</td>
					<td>0.93</td>
					<td>0.28</td>
					<td>681</td>
			</tr>
			<tr>
					<td>OptimizedMPMCQueue</td>
					<td>9105262</td>
					<td>6436385</td>
					<td>4379823</td>
					<td>5838555</td>
					<td>0.97</td>
					<td>0.94</td>
					<td>0.32</td>
					<td>681</td>
			</tr>
			<tr>
					<td>OptimizedMPMCQueueSharded</td>
					<td>8130197</td>
					<td>6369891</td>
					<td>3834140</td>
					<td>6781865</td>
					<td>0.84</td>
					<td>0.88</td>
					<td>0.39</td>
					<td>681</td>
			</tr>
			<tr>
					<td>MultiHeadQueue</td>
					<td>7391203</td>
					<td>4363332</td>
					<td>3492068</td>
					<td>5558849</td>
					<td>1.12</td>
					<td>0.91</td>
					<td>0.36</td>
					<td>681</td>
			</tr>
			<tr>
					<td>BasicMPMCQueue</td>
					<td>5599252</td>
					<td>4370889</td>
					<td>2669612</td>
					<td>3667715</td>
					<td>0.89</td>
					<td>0.93</td>
					<td>0.30</td>
					<td>681</td>
			</tr>
			<tr>
					<td>Golang Buffered Channel</td>
					<td>5312485</td>
					<td>6667828</td>
					<td>2760985</td>
					<td>4312720</td>
					<td>0.54</td>
					<td>0.82</td>
					<td>0.66</td>
					<td>681</td>
			</tr>
			<tr>
					<td>FastMPMCQueueTicket</td>
					<td>3229780</td>
					<td><strong>7705164</strong></td>
					<td>1203924</td>
					<td>5803821</td>
					<td>0.21</td>
					<td>0.64</td>
					<td>1.19</td>
					<td>681</td>
			</tr>
	</tbody>
</table>
<p>Please note that i build the package so that all queue adhere to the same interface and can be swapped out easily.</p>
]]></content:encoded></item><item><title>TTS on my Blog</title><link>https://heidenstedt.org/posts/2025/tts-on-my-blog/</link><pubDate>Fri, 17 Jan 2025 16:06:00 +0200</pubDate><guid>https://heidenstedt.org/posts/2025/tts-on-my-blog/</guid><description><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2025/tts-on-my-blog/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>For specific posts, I added an audio version to enhance accessability and maybe it is just nice to have something read it to you.<br>
I am using <a href="https://huggingface.co/spaces/hexgrad/Kokoro-TTS">Kokoro-TTS</a> which is the first open weight TTS model that has sufficient quality for me to use it on my blog.</p>
<p>It is so nice to be finally able to use this technology, truly a dream come true.<br>
Also i am looking into the possibility to use it for books that have no audio version yet. There is a <a href="https://claudio.uk/posts/epub-to-audiobook.html">good blogpost</a> about how to convert an epub to an audiobook using this model and audiblez. But i have found that the emotional range and pauses of the result is not authentic enough and this kinda hurts understandability in situations where you are not focused on the audio. I hope future models will be able to bring a bit more life into the audio.</p>
]]></description><content:encoded><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2025/tts-on-my-blog/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>For specific posts, I added an audio version to enhance accessability and maybe it is just nice to have something read it to you.<br>
I am using <a href="https://huggingface.co/spaces/hexgrad/Kokoro-TTS">Kokoro-TTS</a> which is the first open weight TTS model that has sufficient quality for me to use it on my blog.</p>
<p>It is so nice to be finally able to use this technology, truly a dream come true.<br>
Also i am looking into the possibility to use it for books that have no audio version yet. There is a <a href="https://claudio.uk/posts/epub-to-audiobook.html">good blogpost</a> about how to convert an epub to an audiobook using this model and audiblez. But i have found that the emotional range and pauses of the result is not authentic enough and this kinda hurts understandability in situations where you are not focused on the audio. I hope future models will be able to bring a bit more life into the audio.</p>
]]></content:encoded></item><item><title>Release: OuroborosDB Data Storage Calculator</title><link>https://heidenstedt.org/posts/2024/release-ouroborosdb-data-storage-calculator/</link><pubDate>Fri, 01 Nov 2024 11:17:10 +0200</pubDate><guid>https://heidenstedt.org/posts/2024/release-ouroborosdb-data-storage-calculator/</guid><description><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2024/release-ouroborosdb-data-storage-calculator/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>I forgot to mention that i released a new tool for my project <a href="https://github.com/i5heu/ouroboros-db">ouroboros-db</a>, so here it is:</p>
<p>The &ldquo;OuroborosDB Overhead Calculator&rdquo; is a little tool which helps you to calculate the overhead of erasure coding systems while also considering the overhead of indexes and the blocks themselves. It is kinda fun to play around with so give it a try!</p>
<p><a href="https://i5heu.github.io/ouroboros-db-overhead-calculator/">https://i5heu.github.io/ouroboros-db-overhead-calculator/</a></p>
<video width="100%" controls>
  <source src="https://heidenstedt.org/posts/2024/release-ouroborosdb-data-storage-calculator/demo.webm" type="video/webm">
  Your browser does not support the video tag.
</video>]]></description><content:encoded><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2024/release-ouroborosdb-data-storage-calculator/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>I forgot to mention that i released a new tool for my project <a href="https://github.com/i5heu/ouroboros-db">ouroboros-db</a>, so here it is:</p>
<p>The &ldquo;OuroborosDB Overhead Calculator&rdquo; is a little tool which helps you to calculate the overhead of erasure coding systems while also considering the overhead of indexes and the blocks themselves. It is kinda fun to play around with so give it a try!</p>
<p><a href="https://i5heu.github.io/ouroboros-db-overhead-calculator/">https://i5heu.github.io/ouroboros-db-overhead-calculator/</a></p>
<video width="100%" controls>
  <source src="https://heidenstedt.org/posts/2024/release-ouroborosdb-data-storage-calculator/demo.webm" type="video/webm">
  Your browser does not support the video tag.
</video>]]></content:encoded></item><item><title>My New Public Service: PathfinderBeacon</title><link>https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/</link><pubDate>Fri, 23 Aug 2024 16:00:00 +0200</pubDate><guid>https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/</guid><description><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>In the midst of working on my project, <a href="https://github.com/i5heu/ouroboros-db">ouroboros-db</a>, I realized I needed a straightforward way to locate other nodes using the same RSA key. That&rsquo;s when <a href="https://github.com/i5heu/PathfinderBeacon">PathfinderBeacon</a> came into being and that i release to the public with these words.</p>
<h2 id="what-is-pathfinderbeacon"><a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/#what-is-pathfinderbeacon">What is PathfinderBeacon?</a></h2><p><a href="https://github.com/i5heu/PathfinderBeacon">PathfinderBeacon</a> is a tool designed to make it easier to bootstrap your distributed systems using just a RSA key and one of the most robust dictionaries available: DNS. Since DNS inherently caches information at various levels, it allows PathfinderBeacon to deliver node addresses quickly and with minimal bandwidth usage. This means if multiple searches are conducted within the same network for the same room, there&rsquo;s a high chance the requests won&rsquo;t even leave your local network, thanks to the caching capabilities of your router&rsquo;s local DNS.</p>
<p>You can think of it like a DDNS (Dynamic Domain Name System) service, but you only need an RSA key to write to a subdomain. The subdomain is generated from the RSA key, and there is little surface for abuse since you can only publish highly sanitized TXT records.</p>
<h2 id="how-it-works"><a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/#how-it-works">How It Works</a></h2><p>Setting up is pretty simple. You either provide an RSA key or let PathfinderBeacon generate one for you. Once set, you can publish your room and node addresses, and anyone with the same RSA key can write to the same room, while anyone can read from it. This makes it easy to bootstrap your distributed systems without the need of running your own bootstrap service.</p>
<p>Currently, there is an official Golang library for interacting with PathfinderBeacon, which you can find <a href="https://github.com/i5heu/PathfinderBeacon-Client-Go">here</a>. If you&rsquo;re interested in developing libraries for other programming languages, feel free to reach out, and I&rsquo;d be glad to assist and subsequently feature your work on the project repository.</p>
<h2 id="future-directions"><a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/#future-directions">Future Directions</a></h2><p>For me this project is pretty much finished since it solves the underlying problem quite effectively, but i am fascinated by this problem and i would love to develop PathfinderBeacon further, maybe even in a distributed thingy without a central server, private rooms and much more is thinkable. You can checkout the <a href="https://github.com/i5heu/PathfinderBeacon?tab=readme-ov-file#potential-future-features-and-ideas">README</a> for more ideas.</p>
<p>So, that’s PathfinderBeacon in a nutshell—a simple, secure way to manage node addresses within distributed systems. It&rsquo;s a small project with big potential, and I&rsquo;m excited to see how it can support and simplify the management of distributed networks.</p>
<p>Thanks for reading, and I’m looking forward to constructive feedback or contributions!</p>
<p>You can find PathfinderBeacon on <a href="https://github.com/i5heu/PathfinderBeacon">GitHub</a></p>
]]></description><content:encoded><![CDATA[<p>
      <em>Best viewed on the <a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/">original page</a>, where extended functionality like the
    footnote helper is available.</em>
    </p><p>In the midst of working on my project, <a href="https://github.com/i5heu/ouroboros-db">ouroboros-db</a>, I realized I needed a straightforward way to locate other nodes using the same RSA key. That&rsquo;s when <a href="https://github.com/i5heu/PathfinderBeacon">PathfinderBeacon</a> came into being and that i release to the public with these words.</p>
<h2 id="what-is-pathfinderbeacon"><a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/#what-is-pathfinderbeacon">What is PathfinderBeacon?</a></h2><p><a href="https://github.com/i5heu/PathfinderBeacon">PathfinderBeacon</a> is a tool designed to make it easier to bootstrap your distributed systems using just a RSA key and one of the most robust dictionaries available: DNS. Since DNS inherently caches information at various levels, it allows PathfinderBeacon to deliver node addresses quickly and with minimal bandwidth usage. This means if multiple searches are conducted within the same network for the same room, there&rsquo;s a high chance the requests won&rsquo;t even leave your local network, thanks to the caching capabilities of your router&rsquo;s local DNS.</p>
<p>You can think of it like a DDNS (Dynamic Domain Name System) service, but you only need an RSA key to write to a subdomain. The subdomain is generated from the RSA key, and there is little surface for abuse since you can only publish highly sanitized TXT records.</p>
<h2 id="how-it-works"><a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/#how-it-works">How It Works</a></h2><p>Setting up is pretty simple. You either provide an RSA key or let PathfinderBeacon generate one for you. Once set, you can publish your room and node addresses, and anyone with the same RSA key can write to the same room, while anyone can read from it. This makes it easy to bootstrap your distributed systems without the need of running your own bootstrap service.</p>
<p>Currently, there is an official Golang library for interacting with PathfinderBeacon, which you can find <a href="https://github.com/i5heu/PathfinderBeacon-Client-Go">here</a>. If you&rsquo;re interested in developing libraries for other programming languages, feel free to reach out, and I&rsquo;d be glad to assist and subsequently feature your work on the project repository.</p>
<h2 id="future-directions"><a href="https://heidenstedt.org/posts/2024/my-new-public-service-pathfinderbeacon/#future-directions">Future Directions</a></h2><p>For me this project is pretty much finished since it solves the underlying problem quite effectively, but i am fascinated by this problem and i would love to develop PathfinderBeacon further, maybe even in a distributed thingy without a central server, private rooms and much more is thinkable. You can checkout the <a href="https://github.com/i5heu/PathfinderBeacon?tab=readme-ov-file#potential-future-features-and-ideas">README</a> for more ideas.</p>
<p>So, that’s PathfinderBeacon in a nutshell—a simple, secure way to manage node addresses within distributed systems. It&rsquo;s a small project with big potential, and I&rsquo;m excited to see how it can support and simplify the management of distributed networks.</p>
<p>Thanks for reading, and I’m looking forward to constructive feedback or contributions!</p>
<p>You can find PathfinderBeacon on <a href="https://github.com/i5heu/PathfinderBeacon">GitHub</a></p>
]]></content:encoded></item></channel></rss>