Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
1

"Sixteenth of a year", a 1.8 KiB art piece

from Evan Hahn (dot com) [alt+shift+b] in technology

As I write this, we’re about 7 sixteenths through 2026, and it’s about 14 sixteenths through the day. For the sixteenth issue of the Taper online magazine, I split time into sixteenths to think about its passage in a different way. The code, which had to be under 2048 bytes, isn’t terribly complex. It does some date math and uses a Go server for minification. If you want, here’s the unminified source code. Go check out all the other entries from this issue! My favorites include "[SIC]", “Desperate Measures from a Dying Regime”, and "(un)done". See also: my previous Taper entry.
3rd Jun 2026

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from Evan Hahn (dot com)

Java and JavaScript are similar, actually

I am here to perform the forbidden comparison. Everyone says that JavaScript has nothing to do with Java, even though their names are similar: “The two languages are entirely distinct.” “Java is to JavaScript as ham is to hamster.” JavaScript’s name was “an attempt to piggyback on the popularity of Java, an entirely unrelated language.” This long-held belief is, in my opinion, inaccurate. Java and JavaScript have a lot in common. Wake up to the truth!!! They have similar syntax According to JavaScript’s creator, “the diktat from upper engineering management was that the language must ’look like Java’.” This happened! JavaScript looks like Java! A lot of code works identically in the two languages. Comments are identical: // Single-line comments are the same. /** Block comments are also the same. */ Many expressions work the exact same way: "Hello world" 12 + 34 true && false myObject.myMethod(1, 2, 3); Conditionals are also identical: if (coinflip()) { return "heads"; } else { return "tails"; } Variable declaration can be the same. This line works in both languages: var foo = "bar"; Many code snippets aren’t identical, but they’re similar. And they’re even more similar if you put TypeScript in the mix: Java TypeScript for (var age : ages) {   System.out.println(age); } for (const age of ages) {   console.log(age); } class Person {   private String name;   public Person(String name) {     this.name = name;   }   public String getName() {     return name;   } } class Person {   private name: string;   constructor(name: string) {     this.name = name;   }   public getName(): string {     return this.name;   } } list.stream()   .filter(x -> x > 5)   .map(x -> x * 2)   .collect(Collectors.toList()); list   .filter(x => x > 5)   .map(x => x * 2); Many programming languages share C’s syntax—you’ll see these similarities with other languages, too—but the connections run deeper. Their type systems are similar I know what you’re thinking: Java has a static type system, and JavaScript does not. But! TypeScript augments JavaScript with static types, and is the de facto way to write modern JS. So yes—JavaScript doesn’t technically have static types, but it does in practice. Even without static typing, their type systems have many other similarities. They use primitive and reference types According to the Java spec, “There are two kinds of types in the Java programming language: primitive types and reference types.” This is exactly the same as JavaScript. Both languages also have wrappers around primitive types. Though the specific types are different, the behavior is similar. They have (auto)boxing In Java, you can have a primitive type or an object wrapper around one. Converting a primitive type to a wrapper type is called “boxing”. // Java var primitive = 123; var reference = Integer.valueOf(123); JavaScript also has primitive values and explicit wrapper objects: // JavaScript const primitive = 123; const reference = new Number(123); You often encounter these wrapper objects through “autoboxing”. Autoboxing implicitly converts primitives to objects. The conversion contexts and semantics differ, but they both work similarly: // Java var primitive = true; Boolean reference = primitive; // Autoboxing happens here. reference.toString(); // JavaScript const primitive = true; primitive.toString(); // Autoboxing happens here. Strings use UTF-16 and share methods Strings work very similarly in both languages. In addition to being immutable in both, they have a number of similar methods: .toUpperCase(), .toLowerCase(), .substring(), .indexOf(), .split(), and many more. They also both use UTF-16, so they have weird behavior like this: // In JavaScript... "🌸".length; // => 2 // In Java... "🌸".length(); // => 2 (For more on UTF-16, see “Why does ‘👩🏾‍🌾’ have a length of 7 in JavaScript?”.) If you know how to use strings in one language, you probably know how to use them in the other. They’re really not that different. Numbers and Math are similar, too Java has a bunch of numeric primitives where JavaScript only has the number type. (JS also has bigint, which is rarely used.) But Java’s double and JavaScript’s number are both 64-bit IEEE 754 floating-point values: // Java or JavaScript (identical) 0.1 + 0.2 // => 0.30000000000000004 Their Math APIs are also very similar: Math.max(3, 7); // => 7 Math.sqrt(81); // => 9 Math.PI; // => 3.141592653589793 They both have classes and inheritance Though Java is the Kingdom of Nouns, both languages support classes and inheritance: class syntax, constructors, instance and static members, new, this, extends, super, and method overrides. TypeScript adds even more similarity with abstract classes, implements, and private/public access modifiers. Their internals are different, but you can ignore that most of the time. If you know how classes work in Java, you can probably apply that to JavaScript, or vice versa. They have similar runtimes The two languages’ runtimes also have a lot in common: Garbage collection: Neither the programmer nor compiler deallocates memory. This is in contrast to languages like C, Rust, and Swift, which have different memory management strategies. Just-in-time (JIT) compiled: Mainstream engines compile hot paths to native machine code. Fairly ubiquitous: I think Java fell short of its “write once, run anywhere” slogan. But I can’t deny that the JVM is widely available and powers a massive number of computer systems—just like JavaScript. Compile targets for other languages: There are a number of JVM languages like Clojure, Kotlin, and Scala. JavaScript’s most popular counterpart is probably TypeScript, but there are others like PureScript and ReScript. The languages have been separated from their runtimes, at least somewhat. They have DOM support (!!) I came across a package called org.w3c.dom when researching this post. It turns out that Java also supports Document Object Model APIs, just like JavaScript does in the browser. Here’s some code that is identical in both languages: // Add a new <li> element to the first <ul>. var ul = document.getElementsByTagName("ul").item(0); var li = document.createElement("li"); li.appendChild(document.createTextNode("wake up sheeple")); ul.appendChild(li); This surprised me! I know that JavaScript is the language of the web, but it turns out that Java is competitive! They have improved a lot in the last decade I don’t know what’s more popular: hating on JavaScript or hating on Java. (Another similarity!) But many of these haters last used the language in the early 2000s, when these languages were, broadly speaking, pretty bad. They’re way better now! In JavaScript, we got classes, modules, a big package registry, a bigger standard library, and better versions of common constructs like variable and function declarations. In Java, we got var, records, text blocks, pattern matching and switch expressions, and virtual threads. If you dislike these languages but you haven’t tried them recently, you might be pleasantly surprised. You’ll almost certainly acknowledge that they’ve improved (even if you’re still a hater). Wake up to the truth!!! I understand the benefit of saying things like, “Java and JavaScript have nothing in common.” Many of us have been approached by someone (well-meaning, usually) who doesn’t know the difference, and it causes some confusion. But these languages are actually pretty similar! Certainly a lot more similar than C and C#, in my opinion. I think it’s inaccurate to say “Java is to JavaScript as ham is to hamster.” My suggestion: Java is to JavaScript as the guitar is like the bass guitar.

10 hours ago • 1 votes
A Mastodon bot powered by iOS Shortcuts

In short: I use iOS Shortcuts to run a Mastodon bot. I run a Mastodon bot that posts random quotes from The Legend of Zelda: Link’s Awakening. (The writing in that game is so charming!) I used to run it off a server, but for the past few days, it’s used an iOS Shortcut on my phone. How it works The bot is called Ulrira, named after a beloved Link’s Awakening character. Ulrira (the bot, not the character) samples a line from the text dump, then makes an HTTP request to post it. Here’s a screenshot of the full thing: As you can see, everything here is hard-coded, from the server credentials to the file name. (It probably wouldn’t be hard to make this more generic, but I didn’t bother.) This used to be a short, hand-written Bash script. I used the new AI-powered Shortcut creator and prompted this into existence. I said something like, “Here’s a Bash script. Turn this into a Shortcut.” Like a lot of LLM output, it wasn’t quite right, but it was useful for getting started. Shortcuts doesn’t seem to have an elegant way to express something like “run this every 6 hours”, so I created four additional scheduler Shortcuts that call the main one. They run at 12am, 6am, 12pm, and 6pm. That means there are five shortcuts in total: one to actually make the post, and four to schedule the main Shortcut at different times. Why do it this way? I didn’t want to pay for my server anymore, nor did I want to maintain it. When I went looking for alternatives, they either (1) cost money (2) had some significant limitation (for example, GitHub Actions requires me to update the repo every 60 days). This solution runs on a device with high uptime and is effectively free. If you’re a pro software genius, you might complain that this is not reliable! It doesn’t work if my phone is offline, for example. Or what if I change timezones? But in the words of Link’s Awakening: You’re good! You’re a pro, aren’t you? ………… Well, beat it! Pros aren’t allowed in here! Follow the bot here.

1st Nov 2026 • 2 votes
List of Vim forks

Here are the Vim forks I know about: Neovim: “a Vim-based text editor engineered for extensibility and usability, to encourage new applications and contributions.” Vim Classic: “a stable, long-term support fork of the ubiquitous text editor, maintained without the assistance of generative AI tools.” EVi: “a hard-fork of Vim v9.1.0 (Jan 2024) before AI was used in the project.” MacVim: “a macOS version of the Vim text editor, providing a graphical user interface for Vim, while tightly integrating with macOS and providing features specific to the platform.” This list doesn’t include Vim-inspired editors like Kakoune, Vim-style plugins for other editors like IdeaVim, or Vim “distributions” like LazyVim. Contact me if you know of other forks!

24th Oct 2026 • 1 votes
Anecdotally, programmers dislike "reduce"

In short: from my experience, people like map and filter, but not reduce. I use functions like map and filter all the time. When I put that code up for review, my peers rarely complain. I get plenty of feedback about other decisions, but not about my use of map and filter. I cannot say the same for reduce. Often, when I’ve submitted a patch with reduce inside, I get a comment like, “this part is hard to read.” And I see reduce way less than map, filter, some, and so on. Anecdotally, I have come to believe that programmers don’t like reduce as much. I don’t know why, but I have a few theories: reduce is harder to read. reduce is less familiar. reduce can have worse performance compared to other options. reduce is less elegant in languages I use, like JavaScript, Python, and Swift. In my blissful stint as a Clojure developer, I did not get this feedback. I’m wrong, and I’m seeing a trend that’s not real. I usually just change reduce to something else and move on. Even though I prefer it, I don’t usually care much. But it’s a little social phenomenon I’ve observed, and I thought I’d document it. I’ve also noticed this less recently, possibly because code review is less thorough nowadays. Do you notice this? Do you like reduce? Please tell me.

13th Sep 2026 • 1 votes
Vim's UserGettingBored autocmd

In short: Vim has a joke autocmd called UserGettingBored that doesn’t do anything. Vim’s automatic commands feature, usually shortened to “autocmd”, lets you run code when various events occur. For example, you could implement an auto-save feature by binding the TextChanged event to the :w command. Vim has over 100 events, from “buffer was created” to “file was saved”. But one of them sticks out to me: UserGettingBored. Here’s the documentation: UserGettingBored: When the user presses the same key 42 times. Just kidding! :-) When I saw this, I was busy doing something else and it completely derailed me. “I must know more,” I thought. Here’s what I found: Unfortunately, it doesn’t do anything. It only exists in the documentation (and some tests). If you try to use it with somethig like autocmd UserGettingBored ..., you’ll get a “no such group or event” error. It’s present in Vim, Neovim, and Vim Classic. It was first added by Bram Moolenaar in July 2000, over a year before Vim 6.0 was released. The original description was, “When the user hits CTRL-C. Just kidding!” And it didn’t do anything back then, so I don’t think it’s ever been real. In August 2001, he added the smiley face to the documentation. It then read, “When the user hits CTRL-C. Just kidding! :-)” Twelve years later, in 2013, the description changed to its current iteration: “When the user presses the same key 42 times. Just kidding! :-)” In 2022, developer Mike Smith created an unofficial plugin inspired by this joke autocmd. If you press the same key 42 times in Insert mode, a picture of Samuel L. Jackson appears. 22 years later, it’s finally real.

22nd Aug 2026 • 1 votes

More in technology

MacWorld Interviews Bill Gates (1984)

They talk about how wonderful the Macintosh is and what software Microsoft was making for it.

an hour ago • 1 votes
Java and JavaScript are similar, actually

I am here to perform the forbidden comparison. Everyone says that JavaScript has nothing to do with Java, even though their names are similar: “The two languages are entirely distinct.” “Java is to JavaScript as ham is to hamster.” JavaScript’s name was “an attempt to piggyback on the popularity of Java, an entirely unrelated language.” This long-held belief is, in my opinion, inaccurate. Java and JavaScript have a lot in common. Wake up to the truth!!! They have similar syntax According to JavaScript’s creator, “the diktat from upper engineering management was that the language must ’look like Java’.” This happened! JavaScript looks like Java! A lot of code works identically in the two languages. Comments are identical: // Single-line comments are the same. /** Block comments are also the same. */ Many expressions work the exact same way: "Hello world" 12 + 34 true && false myObject.myMethod(1, 2, 3); Conditionals are also identical: if (coinflip()) { return "heads"; } else { return "tails"; } Variable declaration can be the same. This line works in both languages: var foo = "bar"; Many code snippets aren’t identical, but they’re similar. And they’re even more similar if you put TypeScript in the mix: Java TypeScript for (var age : ages) {   System.out.println(age); } for (const age of ages) {   console.log(age); } class Person {   private String name;   public Person(String name) {     this.name = name;   }   public String getName() {     return name;   } } class Person {   private name: string;   constructor(name: string) {     this.name = name;   }   public getName(): string {     return this.name;   } } list.stream()   .filter(x -> x > 5)   .map(x -> x * 2)   .collect(Collectors.toList()); list   .filter(x => x > 5)   .map(x => x * 2); Many programming languages share C’s syntax—you’ll see these similarities with other languages, too—but the connections run deeper. Their type systems are similar I know what you’re thinking: Java has a static type system, and JavaScript does not. But! TypeScript augments JavaScript with static types, and is the de facto way to write modern JS. So yes—JavaScript doesn’t technically have static types, but it does in practice. Even without static typing, their type systems have many other similarities. They use primitive and reference types According to the Java spec, “There are two kinds of types in the Java programming language: primitive types and reference types.” This is exactly the same as JavaScript. Both languages also have wrappers around primitive types. Though the specific types are different, the behavior is similar. They have (auto)boxing In Java, you can have a primitive type or an object wrapper around one. Converting a primitive type to a wrapper type is called “boxing”. // Java var primitive = 123; var reference = Integer.valueOf(123); JavaScript also has primitive values and explicit wrapper objects: // JavaScript const primitive = 123; const reference = new Number(123); You often encounter these wrapper objects through “autoboxing”. Autoboxing implicitly converts primitives to objects. The conversion contexts and semantics differ, but they both work similarly: // Java var primitive = true; Boolean reference = primitive; // Autoboxing happens here. reference.toString(); // JavaScript const primitive = true; primitive.toString(); // Autoboxing happens here. Strings use UTF-16 and share methods Strings work very similarly in both languages. In addition to being immutable in both, they have a number of similar methods: .toUpperCase(), .toLowerCase(), .substring(), .indexOf(), .split(), and many more. They also both use UTF-16, so they have weird behavior like this: // In JavaScript... "🌸".length; // => 2 // In Java... "🌸".length(); // => 2 (For more on UTF-16, see “Why does ‘👩🏾‍🌾’ have a length of 7 in JavaScript?”.) If you know how to use strings in one language, you probably know how to use them in the other. They’re really not that different. Numbers and Math are similar, too Java has a bunch of numeric primitives where JavaScript only has the number type. (JS also has bigint, which is rarely used.) But Java’s double and JavaScript’s number are both 64-bit IEEE 754 floating-point values: // Java or JavaScript (identical) 0.1 + 0.2 // => 0.30000000000000004 Their Math APIs are also very similar: Math.max(3, 7); // => 7 Math.sqrt(81); // => 9 Math.PI; // => 3.141592653589793 They both have classes and inheritance Though Java is the Kingdom of Nouns, both languages support classes and inheritance: class syntax, constructors, instance and static members, new, this, extends, super, and method overrides. TypeScript adds even more similarity with abstract classes, implements, and private/public access modifiers. Their internals are different, but you can ignore that most of the time. If you know how classes work in Java, you can probably apply that to JavaScript, or vice versa. They have similar runtimes The two languages’ runtimes also have a lot in common: Garbage collection: Neither the programmer nor compiler deallocates memory. This is in contrast to languages like C, Rust, and Swift, which have different memory management strategies. Just-in-time (JIT) compiled: Mainstream engines compile hot paths to native machine code. Fairly ubiquitous: I think Java fell short of its “write once, run anywhere” slogan. But I can’t deny that the JVM is widely available and powers a massive number of computer systems—just like JavaScript. Compile targets for other languages: There are a number of JVM languages like Clojure, Kotlin, and Scala. JavaScript’s most popular counterpart is probably TypeScript, but there are others like PureScript and ReScript. The languages have been separated from their runtimes, at least somewhat. They have DOM support (!!) I came across a package called org.w3c.dom when researching this post. It turns out that Java also supports Document Object Model APIs, just like JavaScript does in the browser. Here’s some code that is identical in both languages: // Add a new <li> element to the first <ul>. var ul = document.getElementsByTagName("ul").item(0); var li = document.createElement("li"); li.appendChild(document.createTextNode("wake up sheeple")); ul.appendChild(li); This surprised me! I know that JavaScript is the language of the web, but it turns out that Java is competitive! They have improved a lot in the last decade I don’t know what’s more popular: hating on JavaScript or hating on Java. (Another similarity!) But many of these haters last used the language in the early 2000s, when these languages were, broadly speaking, pretty bad. They’re way better now! In JavaScript, we got classes, modules, a big package registry, a bigger standard library, and better versions of common constructs like variable and function declarations. In Java, we got var, records, text blocks, pattern matching and switch expressions, and virtual threads. If you dislike these languages but you haven’t tried them recently, you might be pleasantly surprised. You’ll almost certainly acknowledge that they’ve improved (even if you’re still a hater). Wake up to the truth!!! I understand the benefit of saying things like, “Java and JavaScript have nothing in common.” Many of us have been approached by someone (well-meaning, usually) who doesn’t know the difference, and it causes some confusion. But these languages are actually pretty similar! Certainly a lot more similar than C and C#, in my opinion. I think it’s inaccurate to say “Java is to JavaScript as ham is to hamster.” My suggestion: Java is to JavaScript as the guitar is like the bass guitar.

10 hours ago • 1 votes
RIP Warren Buffett

In his last Thanksgiving message, Warren chose to emphasize just one thought: kindness – offered when it is not owed, with nothing expected in return. Kindness, he wrote, “compounds, and at a better rate than anything Charlie and I ever bought.” He was writing about his own teachers, and about everything they had given him … Continue reading RIP Warren Buffett →

13 hours ago • 1 votes
Only a good guy with an AI can stop a bad guy with an AI (Odds and Ends #113)

Plus what I thought of Ocarina of Time, and science communicators denying... science.

19 hours ago • 1 votes
Build and manage IoT projects with AI using the Arduino Cloud MCP

Setting up a remote monitoring and control project means choosing variables linking dashboard widgets, and deciding how to keep track of your device. Expanding an existing project might mean making the same change across dozens of sensors. In either case, you have a goal in mind – and a series of steps to get there. […] The post Build and manage IoT projects with AI using the Arduino Cloud MCP appeared first on Arduino Blog.

yesterday • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in