<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Go on Jack Mordaunt</title><link>https://mordaunt.dev/site/tags/go/</link><description>Recent content in Go on Jack Mordaunt</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 01 Aug 2025 06:26:18 -0300</lastBuildDate><atom:link href="https://mordaunt.dev/site/tags/go/index.xml" rel="self" type="application/rss+xml"/><item><title>What is an Interface</title><link>https://mordaunt.dev/site/posts/what-is-an-interface/</link><pubDate>Fri, 01 Aug 2025 06:26:18 -0300</pubDate><guid>https://mordaunt.dev/site/posts/what-is-an-interface/</guid><description>&lt;p&gt;&lt;strong&gt;Behavioral Polymorphism: The foundation of OOP.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;interface&lt;/strong&gt; is the foundation of OOP (Object Oriented Programming).&lt;/p&gt;
&lt;p&gt;It provides &lt;em&gt;behavioral polymorphism&lt;/em&gt;: constraining a type by its behaviours -
or more secifically, its method-set.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A &amp;ldquo;method&amp;rdquo; (as termed in OOP langauges) is nothing more than a procedure who&amp;rsquo;s
first argument is a pointer to the object it is associated with. There is
nothing special about a method.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Definitions&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Poly&lt;/strong&gt;: many&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mono&lt;/strong&gt;: singular&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Morphism&lt;/strong&gt;: shape&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Polymorphism&lt;/strong&gt;: having many shapes&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Monomorphism&lt;/strong&gt;: having one shape&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Polymorphic refers to the ability to represent many shapes.&lt;/p&gt;</description></item><item><title>Why People Love to Hate Go</title><link>https://mordaunt.dev/site/posts/why-people-hate-go/</link><pubDate>Wed, 23 Jul 2025 14:16:55 -0300</pubDate><guid>https://mordaunt.dev/site/posts/why-people-hate-go/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Go is very idiosyncratic, approximating good ideas and relying heavily on data transposition.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In this opinion article I will higlight why I think people love to hate Go.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll do so by contrasting Go to Odin. Odin serves as an excellent comparison because the
syntax is similar in essence (both heavily inspired by Pascal and C).&lt;/p&gt;
&lt;p&gt;Unlike Go, Odin actually gives you the good ideas in their completeness -
without a complex type system or giving up any control, and without needing to
fight the ideas for a decade only to finally concede.&lt;/p&gt;</description></item><item><title>Plato Desktop Client</title><link>https://mordaunt.dev/site/projects/plato-desktop-client/</link><pubDate>Thu, 17 Jul 2025 11:21:04 -0300</pubDate><guid>https://mordaunt.dev/site/projects/plato-desktop-client/</guid><description>&lt;style&gt;
.carousel {
 display: flex;
 overflow: scroll;
}
&lt;/style&gt;
&lt;div class="carousel"&gt;
 &lt;img src="https://mordaunt.dev/site/images/Plato/PlatoHome.webp" alt="Home Page" /&gt;
 &lt;img src="https://mordaunt.dev/site/images/Plato/PlatoGame.webp" alt="Game Page" /&gt;
 &lt;img src="https://mordaunt.dev/site/images/Plato/PlatoMulti.webp" alt="Multi Window" /&gt;
&lt;/div&gt;
&lt;h2 id="overview"&gt;
 Overview
 &lt;a class="heading-link" href="#overview"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;A cross-platform desktop game client built for &lt;strong&gt;Plato Team Inc.&lt;/strong&gt;, supporting Windows, macOS, and Linux. Though now discontinued, the project showcased a modern, multi-window architecture with a primary chat interface and independent game windows.&lt;/p&gt;
&lt;p&gt;The application was built in &lt;strong&gt;Go&lt;/strong&gt;, using the &lt;strong&gt;Gio&lt;/strong&gt; immediate-mode GUI toolkit. It interfaced extensively with C and C++ libraries, including &lt;strong&gt;ANGLE&lt;/strong&gt; (OpenGL ES), &lt;strong&gt;V8&lt;/strong&gt; (JavaScript engine), &lt;strong&gt;SQLite&lt;/strong&gt;, and &lt;strong&gt;libwebp&lt;/strong&gt; for image decoding.&lt;/p&gt;</description></item><item><title>Sprig Arbor Chat Client</title><link>https://mordaunt.dev/site/projects/sprig/</link><pubDate>Thu, 17 Mar 2022 17:30:23 +0000</pubDate><guid>https://mordaunt.dev/site/projects/sprig/</guid><description>&lt;style&gt;
.carousel {
 display: flex;
 overflow: scroll;
}
&lt;/style&gt;
&lt;div class="carousel"&gt;
 &lt;img src="https://mordaunt.dev/site/images/sprig/sprig.webp" alt="Sprig" /&gt;
&lt;/div&gt;
&lt;h2 id="overview"&gt;
 Overview
 &lt;a class="heading-link" href="#overview"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Built by &lt;a href="https://git.sr.ht/~whereswaldon" class="external-link" target="_blank" rel="noopener"&gt;~whereswaldon&lt;/a&gt;, &lt;a href="https://git.sr.ht/~whereswaldon/sprig" class="external-link" target="_blank" rel="noopener"&gt;Sprig&lt;/a&gt; is a client for &lt;a href="https://man.sr.ht/~whereswaldon/arborchat" class="external-link" target="_blank" rel="noopener"&gt;Arbor&lt;/a&gt;, an open source federated chat platform.&lt;br&gt;
Sprig is a cross-platform client supporting Windows, macOS, Linux, Android, and iOS.&lt;br&gt;
It&amp;rsquo;s written in &lt;strong&gt;Go&lt;/strong&gt;, using the &lt;a href="https://git.sr.ht/~eliasnaur/gio" class="external-link" target="_blank" rel="noopener"&gt;&lt;strong&gt;Gio&lt;/strong&gt;&lt;/a&gt; immediate-mode UI toolkit.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id="my-role"&gt;
 My Role
 &lt;a class="heading-link" href="#my-role"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;When I joined, Sprig stored each chat message as an individual file on disk. This file-per-message model worked reasonably well on Linux, but resulted in &lt;strong&gt;severely degraded performance&lt;/strong&gt; on Windows, where reading thousands of tiny files led to &lt;strong&gt;notably slow startup times&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Icnsify</title><link>https://mordaunt.dev/site/projects/icnsify/</link><pubDate>Wed, 21 Feb 2018 12:14:44 -0300</pubDate><guid>https://mordaunt.dev/site/projects/icnsify/</guid><description>&lt;style&gt;
.carousel {
 display: flex;
 overflow: scroll;
}
&lt;/style&gt;
&lt;div class="carousel"&gt;
 &lt;img src="https://mordaunt.dev/site/images/icnsify/icns-macos-preview.webp" alt="icnsify-preview macOS" /&gt;
 &lt;img src="https://mordaunt.dev/site/images/icnsify/icns-windows-preview.webp" alt="icnsify-preview Windows" /&gt;
&lt;/div&gt;
&lt;h2 id="icnsify-a-lean-cross-platform-icon-tool-for-macos-icns-format"&gt;
 icnsify: A Lean, Cross-Platform Icon Tool for macOS &lt;code&gt;.icns&lt;/code&gt; Format
 &lt;a class="heading-link" href="#icnsify-a-lean-cross-platform-icon-tool-for-macos-icns-format"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://github.com/JackMordaunt/icns" class="external-link" target="_blank" rel="noopener"&gt;GitHub →&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="overview"&gt;
 Overview
 &lt;a class="heading-link" href="#overview"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;icnsify&lt;/code&gt; is a fast, lightweight utility for creating and previewing &lt;code&gt;.icns&lt;/code&gt;
files—the proprietary Apple Icon Image format—without relying on macOS.&lt;/p&gt;
&lt;p&gt;I built the first version in a Swedish café in 2018 as my first serious
open-source contribution. Since then, it has grown into a widely used
tool among developers—especially those building cross-platform apps with
&lt;a href="https://gioui.org" class="external-link" target="_blank" rel="noopener"&gt;Gio&lt;/a&gt;—to automate icon generation as part of their CI
pipelines or local development.&lt;/p&gt;</description></item></channel></rss>