", with: " ", options: options)
- preflight = preflight.replacingOccurrences(of: "|?div>| |", with: "\n", options: options)
- preflight = preflight.removingTagAndContents("script")
- preflight = preflight.removingTagAndContents("style")
-
- var s = String()
- s.reserveCapacity(preflight.count)
- var lastCharacterWasSpace = false
- var charactersAdded = 0
- var level = 0
-
- for var char in preflight {
- if char == "<" {
- level += 1
- } else if char == ">" {
- level -= 1
- } else if level == 0 {
-
- if char == " " || char == "\r" || char == "\t" || char == "\n" {
- if lastCharacterWasSpace {
- continue
- } else {
- lastCharacterWasSpace = true
- }
- char = " "
- } else {
- lastCharacterWasSpace = false
- }
-
- s.append(char)
-
- if let maxCharacters = maxCharacters {
- charactersAdded += 1
- if (charactersAdded >= maxCharacters) {
- break
- }
- }
- }
- }
-
- return s
}
/// A copy of an HTML string converted to plain text.
diff --git a/Modules/RSCore/Sources/RSCoreObjC/include/RSCore.h b/Modules/RSCore/Sources/RSCoreObjC/include/RSCore.h
index f4cde8b06..5d253c701 100644
--- a/Modules/RSCore/Sources/RSCoreObjC/include/RSCore.h
+++ b/Modules/RSCore/Sources/RSCoreObjC/include/RSCore.h
@@ -8,3 +8,4 @@
@import Foundation;
#import "../NSData+RSCore.h"
+#import "../striphtml.h"
diff --git a/Modules/RSCore/Sources/RSCoreObjC/striphtml.c b/Modules/RSCore/Sources/RSCoreObjC/striphtml.c
new file mode 100644
index 000000000..5aedc59e3
--- /dev/null
+++ b/Modules/RSCore/Sources/RSCoreObjC/striphtml.c
@@ -0,0 +1,155 @@
+//
+// striphtml.c
+// RSCore
+//
+// Created by Brent Simmons on 10/20/25.
+// Copyright © 2025 Brent Simmons. All rights reserved.
+//
+
+#include "striphtml.h"
+#include
+#include
+
+// Check if we're at the start of a tag (case-insensitive)
+static bool matchesTag(const char *p, const char *tag) {
+ size_t len = strlen(tag);
+ for (size_t i = 0; i < len; i++) {
+ if (tolower(p[i]) != tolower(tag[i])) {
+ return false;
+ }
+ }
+ return true;
+}
+
+// Get the number of bytes in a UTF-8 character
+static inline int utf8CharLength(unsigned char firstByte) {
+ if ((firstByte & 0x80) == 0) return 1; // 0xxxxxxx
+ if ((firstByte & 0xE0) == 0xC0) return 2; // 110xxxxx
+ if ((firstByte & 0xF0) == 0xE0) return 3; // 1110xxxx
+ if ((firstByte & 0xF8) == 0xF0) return 4; // 11110xxx
+ return 1; // Invalid, treat as single byte
+}
+
+size_t stripHTML(const char *input, size_t inputLength,
+ char *output, size_t outputCapacity,
+ size_t maxCharacters) {
+
+ // Safety checks
+ if (input == NULL || output == NULL || outputCapacity == 0) {
+ if (output != NULL && outputCapacity > 0) {
+ *output = '\0';
+ }
+ return 0;
+ }
+
+ const char *in = input;
+ const char *inEnd = input + inputLength;
+ char *out = output;
+ char *outEnd = output + outputCapacity - 1; // Reserve space for null terminator
+
+ int tagLevel = 0;
+ bool inScript = false;
+ bool inStyle = false;
+ bool lastCharacterWasSpace = true; // Start as true to skip leading whitespace
+ size_t charactersAdded = 0;
+
+ while (in < inEnd && out < outEnd) {
+ if (maxCharacters > 0 && charactersAdded >= maxCharacters) {
+ break;
+ }
+
+ unsigned char c = *in;
+
+ // Handle tag opening
+ if (c == '<') {
+ // Only track tag level when not inside script/style
+ if (!inScript && !inStyle) {
+ tagLevel++;
+ }
+
+ // Check for script or style tags
+ if (in + 7 < inEnd && matchesTag(in + 1, "script")) {
+ inScript = true;
+ } else if (in + 6 < inEnd && matchesTag(in + 1, "style")) {
+ inStyle = true;
+ } else if (in + 8 < inEnd && matchesTag(in + 1, "/script")) {
+ inScript = false;
+ } else if (in + 7 < inEnd && matchesTag(in + 1, "/style")) {
+ inStyle = false;
+ }
+ // Check for block-level tags that should add whitespace
+ // Swift preprocessing converts these tags to spaces or newlines, but then
+ // the main loop (line 263) converts all whitespace to ' ' anyway.
+ // So we can just insert a space for all block-level elements.
+ // Tags: ,
, ,
, , , , , ,
+ if ((in + 2 < inEnd && matchesTag(in + 1, "p>")) ||
+ (in + 3 < inEnd && matchesTag(in + 1, "/p>")) ||
+ (in + 4 < inEnd && matchesTag(in + 1, "div>")) ||
+ (in + 5 < inEnd && matchesTag(in + 1, "/div>")) ||
+ (in + 11 < inEnd && matchesTag(in + 1, "blockquote>")) ||
+ (in + 12 < inEnd && matchesTag(in + 1, "/blockquote>")) ||
+ (in + 3 < inEnd && matchesTag(in + 1, "br>")) ||
+ (in + 4 < inEnd && matchesTag(in + 1, "br/>")) ||
+ (in + 5 < inEnd && matchesTag(in + 1, "br />")) ||
+ (in + 4 < inEnd && matchesTag(in + 1, "/li>"))) {
+ if (!lastCharacterWasSpace && out < outEnd) {
+ *out++ = ' ';
+ lastCharacterWasSpace = true;
+ charactersAdded++;
+ }
+ }
+
+ in++;
+ continue;
+ }
+
+ // Handle tag closing
+ if (c == '>') {
+ // Only track tag level when not inside script/style
+ if (!inScript && !inStyle && tagLevel > 0) {
+ tagLevel--;
+ }
+ in++;
+ continue;
+ }
+
+ // Skip content inside tags, scripts, or styles
+ if (tagLevel > 0 || inScript || inStyle) {
+ in++;
+ continue;
+ }
+
+ // Handle whitespace
+ if (c == ' ' || c == '\t' || c == '\r' || c == '\n') {
+ if (!lastCharacterWasSpace) {
+ *out++ = ' ';
+ lastCharacterWasSpace = true;
+ charactersAdded++;
+ }
+ in++;
+ continue;
+ }
+
+ // Copy character (handle multi-byte UTF-8)
+ lastCharacterWasSpace = false;
+ int charLen = utf8CharLength(c);
+
+ // Make sure we have room for the entire UTF-8 character
+ if (out + charLen <= outEnd && in + charLen <= inEnd) {
+ for (int i = 0; i < charLen; i++) {
+ *out++ = *in++;
+ }
+ charactersAdded++;
+ } else {
+ break; // Not enough room
+ }
+ }
+
+ // Trim trailing whitespace
+ while (out > output && *(out - 1) == ' ') {
+ out--;
+ }
+
+ *out = '\0';
+ return out - output;
+}
diff --git a/Modules/RSCore/Sources/RSCoreObjC/striphtml.h b/Modules/RSCore/Sources/RSCoreObjC/striphtml.h
new file mode 100644
index 000000000..6c44d9737
--- /dev/null
+++ b/Modules/RSCore/Sources/RSCoreObjC/striphtml.h
@@ -0,0 +1,30 @@
+//
+// striphtml.h
+// RSCore
+//
+// Created by Brent Simmons on 10/20/25.
+// Copyright © 2025 Brent Simmons. All rights reserved.
+//
+
+#ifndef striphtml_h
+#define striphtml_h
+
+#include
+#include
+
+/// Strip HTML tags from a UTF-8 encoded string.
+///
+/// Remove all HTML tags and everything between script and style tags.
+/// Also trim outer whitespace and collapse inner whitespace to single spaces.
+///
+/// @param input UTF-8 encoded HTML string (does not need to be null-terminated if inputLength is correct)
+/// @param inputLength Length of input in bytes
+/// @param output Pre-allocated buffer for the result (must be at least inputLength + 1 bytes)
+/// @param outputCapacity Maximum bytes that can be written to output (including null terminator)
+/// @param maxCharacters Maximum characters to output (0 = no limit)
+/// @return Number of bytes written to output (not including null terminator)
+size_t stripHTML(const char *input, size_t inputLength,
+ char *output, size_t outputCapacity,
+ size_t maxCharacters);
+
+#endif /* striphtml_h */
diff --git a/Modules/RSCore/Tests/RSCoreTests/Data+RSCoreTests.swift b/Modules/RSCore/Tests/RSCoreTests/Data+RSCoreTests.swift
index 1c3ec40b4..fa061a732 100644
--- a/Modules/RSCore/Tests/RSCoreTests/Data+RSCoreTests.swift
+++ b/Modules/RSCore/Tests/RSCoreTests/Data+RSCoreTests.swift
@@ -10,7 +10,7 @@ import XCTest
import Foundation
@testable import RSCore
-//class Data_RSCoreTests: XCTestCase {
+//final class Data_RSCoreTests: XCTestCase {
// var bigHTML: String!
//
// var pngData: Data!
diff --git a/Modules/RSCore/Tests/RSCoreTests/MacroProcessorTests.swift b/Modules/RSCore/Tests/RSCoreTests/MacroProcessorTests.swift
index 718dd4b25..e6a33e647 100644
--- a/Modules/RSCore/Tests/RSCoreTests/MacroProcessorTests.swift
+++ b/Modules/RSCore/Tests/RSCoreTests/MacroProcessorTests.swift
@@ -9,7 +9,7 @@
import XCTest
@testable import RSCore
-class MacroProcessorTests: XCTestCase {
+final class MacroProcessorTests: XCTestCase {
let substitutions = ["one": "1", "two": "2"]
func testMacroProcessor() {
diff --git a/Modules/RSCore/Tests/RSCoreTests/MainThreadOperationTests.swift b/Modules/RSCore/Tests/RSCoreTests/MainThreadOperationTests.swift
index 1ab9eae94..dada307f6 100644
--- a/Modules/RSCore/Tests/RSCoreTests/MainThreadOperationTests.swift
+++ b/Modules/RSCore/Tests/RSCoreTests/MainThreadOperationTests.swift
@@ -9,7 +9,7 @@
import XCTest
@testable import RSCore
-class MainThreadOperationTests: XCTestCase {
+final class MainThreadOperationTests: XCTestCase {
func testSingleOperation() {
let queue = MainThreadOperationQueue()
@@ -240,7 +240,7 @@ class MainThreadOperationTests: XCTestCase {
func run() {
guard let block = didStartRunBlock else {
- XCTFail("Unable to test cancelation of running operation.")
+ XCTFail("Unable to test cancellation of running operation.")
return
}
block()
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/apple.html b/Modules/RSCore/Tests/RSCoreTests/Resources/apple.html
new file mode 100644
index 000000000..4ffba34ff
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/apple.html
@@ -0,0 +1,1427 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Apple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Apple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
MacBook Pro 14”
+
Supercharged by M5.
+
+
Available starting 10.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
iPad Pro
+
Advanced AI performance and game-changing capabilities.
+
+
Available starting 10.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
iPhone 17 Pro
+
All out Pro.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
iPhone Air
+
The thinnest iPhone ever. With the power of pro inside.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
New powerful M5 chip and comfortable band.
+
+
Available starting 10.22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
AirPods Pro 3
+
The world’s best in-ear Active Noise Cancellation.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The ultimate way to watch your health.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Get up to $200–$700 in credit when you trade in iPhone 13 or higher.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Apple Card
+
Get up to 3% Daily Cash back with every purchase.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Apple TV+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/apple.txt b/Modules/RSCore/Tests/RSCoreTests/Resources/apple.txt
new file mode 100644
index 000000000..8ca7c8b65
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/apple.txt
@@ -0,0 +1 @@
+Apple Apple Apple Store Mac iPad iPhone Watch Vision AirPods TV & Home Entertainment Accessories Support 0+ MacBook Pro 14” Supercharged by M5. Available starting 10.22 Learn more Pre-order iPad Pro Advanced AI performance and game-changing capabilities. Available starting 10.22 Learn more Pre-order iPhone 17 Pro All out Pro. Learn more Buy iPhone Air The thinnest iPhone ever. With the power of pro inside. Learn more Buy Apple Vision Pro New powerful M5 chip and comfortable band. Available starting 10.22 Learn more Pre-order AirPods Pro 3 The world’s best in-ear Active Noise Cancellation. Learn more Buy Apple Watch Series 11 The ultimate way to watch your health. Learn more Buy Apple Trade In Get up to $200–$700 in credit when you trade in iPhone 13 or higher.1 Get your estimate Apple Card Get up to 3% Daily Cash back with every purchase. Learn more Apply now Apply now Apple TV+ FAM Gallery Watch now Strong and Calm Combos for Busy Days Listen now Seth Rogen: The Zane Lowe Interview Play now PGA TOUR Pro Golf Watch now Strength with Gregg Listen now A-List Pop Play now Balatro+ Apple Footer 1. Trade‑in values will vary based on the condition, year, and configuration of your eligible trade‑in device. Not all devices are eligible for credit. You must be at least the age of majority to be eligible to trade in for credit or for an Apple Gift Card. Trade‑in value may be applied toward qualifying new device purchase, or added to an Apple Gift Card. Actual value awarded is based on receipt of a qualifying device matching the description provided when estimate was made. Sales tax may be assessed on full value of a new device purchase. In‑store trade‑in requires presentation of a valid photo ID (local law may require saving this information). Offer may not be available in all stores and may vary between in‑store and online trade‑in. Some stores may have additional requirements. Apple or its trade‑in partners reserve the right to refuse, cancel, or limit quantity of any trade‑in transaction for any reason. More details are available from Apple’s trade-in partner for trade‑in and recycling of eligible devices. Restrictions and limitations may apply. Available in the U.S. on apple.com, in the Apple Store app, and at Apple Stores. To access and use all Apple Card features and products available only to Apple Card users, you must add Apple Card to Wallet on an iPhone or iPad that supports and has the latest version of iOS or iPadOS. Apple Card is subject to credit approval, available only for qualifying applicants in the United States, and issued by Goldman Sachs Bank USA, Salt Lake City Branch. Apple Payments Services LLC, a subsidiary of Apple Inc., is a service provider of Goldman Sachs Bank USA for Apple Card and Savings accounts. Neither Apple Inc. nor Apple Payments Services LLC is a bank. If you reside in the U.S. territories, please call Goldman Sachs at 877-255-5923 with questions about Apple Card. Learn more about how Apple Card applications are evaluated at support.apple.com/kb/HT209218. Major League Baseball trademarks and copyrights are used with permission of MLB Advanced Media, L.P. All rights reserved. A subscription is required for Apple Arcade, Apple Fitness+, Apple Music, and Apple TV+. Features are subject to change. Some features, applications, and services may not be available in all regions or all languages. Shop and Learn Shop and Learn Store Mac iPad iPhone Watch Vision AirPods TV & Home AirTag Accessories Gift Cards Apple Wallet Apple Wallet Wallet Apple Card Apple Pay Apple Cash Account Account Manage Your Apple Account Apple Store Account iCloud.com Entertainment Entertainment Apple One Apple TV+ Apple Music Apple Arcade Apple Fitness+ Apple News+ Apple Podcasts Apple Books App Store Apple Store Apple Store Find a Store Genius Bar Today at Apple Group Reservations Apple Camp Apple Store App Certified Refurbished Apple Trade In Financing Carrier Deals at Apple Order Status Shopping Help For Business For Business Apple and Business Shop for Business For Education For Education Apple and Education Shop for K-12 Shop for College For Healthcare For Healthcare Apple and Healthcare For Government For Government Apple and Government Shop for Veterans and Military Shop for State and Local Employees Shop for Federal Employees Apple Values Apple Values Accessibility Education Environment Inclusion and Diversity Privacy Racial Equity and Justice Supply Chain Innovation About Apple About Apple Newsroom Apple Leadership Career Opportunities Investors Ethics & Compliance Events Contact Apple More ways to shop: Find an Apple Store or other retailer near you. Or call 1-800-MY-APPLE (1-800-692-7753). United States Copyright © 2025 Apple Inc. All rights reserved. Privacy Policy Terms of Use Sales and Refunds Legal Site Map
\ No newline at end of file
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/daringfireball.html b/Modules/RSCore/Tests/RSCoreTests/Resources/daringfireball.html
new file mode 100644
index 000000000..c51ce3d3a
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/daringfireball.html
@@ -0,0 +1,1621 @@
+
+
+
+
+ Daring Fireball
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Eavesdropping on Internal Networks via Unencrypted Satellites ★
+
+
+SATCOM Security — a team of researchers from UC San Diego and the University of Maryland:
+
+
+ We pointed a commercial-off-the-shelf satellite dish at the sky
+and carried out the most comprehensive public study to date of
+geostationary satellite communication. A shockingly large amount
+of sensitive traffic is being broadcast unencrypted, including
+critical infrastructure, internal corporate and government
+communications, private citizens’ voice calls and SMS, and
+consumer Internet traffic from in-flight Wi-Fi and mobile
+networks. This data can be passively observed by anyone with a few
+hundred dollars of consumer-grade hardware. There are thousands of
+geostationary satellite transponders globally, and data from a
+single transponder may be visible from an area as large as 40% of
+the surface of the earth.
+
+
+The researchers don’t mention RCS by name, only SMS, but this a perfect example of why I thought Apple’s original stance on RCS was correct, and their change of heart to support it last year was unfortunate. No new protocol for messaging should be adopted unless the protocol exclusively works using end-to-end encryption.
+
+Via Wired: “Satellites Are Leaking the World’s Secrets: Calls, Texts, Military and Corporate Data ” (News+ link ).
+
+
+
+
+
+When Design Drives Behavior ★
+
+
+Jason Fried:
+
+
+ So what’s the net effect of this tiny little design detail that
+the owner may not even understand? Well, it looks like the watch
+is already half-way out of power after the first day, so it
+encourages the owner to wind the watch more frequently . To keep
+it closer to topped off, even when it’s not necessary. This helps
+prevents the watch from running out of power, losing time, and,
+ultimately, stopping. A stopped watch may be right twice a day,
+but it’s rarely at the times you want.
+
+Small detail, material behavior change. Well considered, well
+executed, well done.
+
+
+
+
+
+
+Apple Lowered the Price of the New MacBook Pro for Most of the Eurpopean Countries Where It No Longer Ships With an Included Power Adapter ★
+
+
+Nick Heer, at Pixel Envy:
+
+
+ First of all, the dollar is not the currency in any of these
+countries. Second, the charger in European countries is €65, which
+is more like $76 right now. Third, Apple is allowed to bundle an
+A.C. adapter, it just needs to offer an option to not include it.
+
+
+Practically speaking, though, the EU directive regarding included chargers means Apple won’t include one, and likely no other laptop maker will either. They’d have to create, and stock, double the SKUs for every standard configuration. (If you buy a build-to-order configuration of the M5 MacBook Pro in Europe, you get a choice to include an adapter in the build-to-order workflow for an upcharge. If you buy a standard configuration model, you get the option to purchase a power adapter as a separate accessory.)
+
+
+ Fourth, and most important, is that the new MacBook Pro is less
+expensive in nearly every region in which the A.C. adapter is
+now a configure-to-order option — even after adding the
+adapter. [...]
+
+Countries with a charger in the box, on the other hand, see no
+such price adjustment, at least for the ones I have checked. The
+new M5 model starts at the same price as the M4 it replaces in
+Canada, Japan, Singapore, and the United States. [...]
+
+Maybe Apple was already planning a €100 price cut for these new
+models. The M4 was €100 less expensive than the M3 it replaced,
+for example, so it is plausible. That is something we simply
+cannot know. What we do know for certain is that these new
+MacBook Pros might not come with an A.C. adapter, but even if
+someone adds one at checkout, it still costs less in most places
+with this option.
+
+
+The fact that the new M5 MacBook Pro costs less than the M4 models, even when paying extra to include a new power adapter, leads me to suspect that Apple was planning price cuts in these countries regardless. As Heer points out, Apple cut the price by €100 when the base MacBook Pro went from the M3 to M4 a year ago. (MacBook Air prices have been getting lower worldwide , too.)
+
+Anyway, the reason this regulation is subject to ridicule was never that European MacBook buyers were, effectively, paying for a charger that was no longer included. It’s that this is a silly law, and likely causes more harm than good. If Apple thought it was a good idea to no longer include power adapters in the box with MacBooks, they’d just stop including chargers in the box, worldwide. That’s what Apple started doing with iPhones with the iPhone 12 lineup five years ago . That wasn’t because of a law. It was because Apple thought it was a good idea.
+
+The problem I see with the MacBook power adapter situation in Europe is that while power users — like the sort of people who read Daring Fireball and Pixel Envy — will have no problem buying exactly the sort of power adapter they want, or simply re-using a good one they already own, normal users have no idea what makes a “good” power adapter. I suspect there are going to be a lot of Europeans who buy a new M5 MacBook Pro and wind up charging it with inexpensive low-watt power adapters meant for things like phones, and wind up with a shitty, slow charging experience.
+
+
+
+
+
+More on the Lack of an Included Charger With New M5 MacBooks in Europe, Including the U.K. and Norway ★
+
+
+While poking fun at EU regulations leading Apple not to include a power adapter with the new M5 MacBook Pro across Europe, I wondered why the U.K. — which left the EU five years ago — was affected. DF reader CA wrote, via email:
+
+
+ We did indeed leave the EU, but remain aligned to some of their
+standards like food and consumer goods through a thing called the
+Windsor Framework. Because the UK includes Northern Ireland, which
+has an open border with the Republic of Ireland, and the RoI is
+part of the EU, and the border MUST remain open for historical
+reasons, there has to be a way of ensuring UK goods that don’t
+meet EU standards don’t enter the EU via Northern Ireland. Hence,
+we agreed to align to a selection of their standards to ensure the
+border can stay open.
+
+That’s why everything has to be USB-C and power supplies aren’t in
+the M5 MacBook Pro boxes, but we aren’t affected by the DMA
+shenanigans — those don’t apply to physical goods, only the
+configuration of the software.
+
+
+Something similar is surely the reason why the power adapter isn’t in the box for Norway, either — a country that has never been part of the EU. Here’s Wikipedia’s entry on the Windsor Framework , and here’s a UK government “Call for Evidence” from a year ago regarding a requirement to follow the EU’s Common Charger Directive .
+
+
+
+
+
+Kickstarter Campaign for Ben Zotto’s ‘Go Computer Now!’, a Book on Sphere, the Nearly Forgotten Personal Computer Company ★
+
+
+Ben Zotto:
+
+
+ Name every pioneering personal computer you can think of from the
+1970s. The MITS Altair 8800. The Apple-1. The IMSAI 8080. You may
+even know about the SWTPC 6800 or Processor Technology Sol-20.
+
+There’s a computer missing from that list, and it’s an important
+one: Sphere Corporation’s Sphere 1. While far ahead of its
+competitors in 1975 in what it delivered as an all-in-one PC,
+Sphere’s manufacturing operations and cash flow lagged immediately
+behind. The company collapsed so quickly that it was nearly erased
+from the collective memory of that period.
+
+But I know about Sphere. So does Bill Gates! And it just might
+have sparked a few ideas in Steve Wozniak — though not as many as
+Sphere’s founder later claimed.
+
+I have a story to tell about this remarkable Utah-based company,
+one that fills in the gaps in other histories of the era, and puts
+Sphere in the context of the computers we have heard about again
+and again for a half century. I want to tell you why Sphere was
+important and worth remembering — and explain why they were
+forgotten. While first to market with some important technologies,
+“firsts” are not as interesting as how their visionary, imperfect
+founder could see around corners. His reach far exceeded his
+grasp, leading to his early exit and the company’s quick downfall.
+
+
+I’ll admit that before I encountered this Kickstarter campaign (via Glenn Fleishman , who edited the book), I can’t recall ever even hearing about Sphere. Count me in as a backer.
+
+
+
+
+
+How London Became a Global Hub for Phone Theft ★
+
+
+Lizzie Dearden and Amelia Nierenberg, reporting for The New York Times (gift link):
+
+
+ For years, London’s police assumed most of the phone thefts were
+the work of small-time thieves looking to make some quick cash.
+But last December, they got an intriguing lead from a woman who
+had used “Find My iPhone” to track her device to a warehouse near
+Heathrow Airport. Arriving there on Christmas Eve, officers found
+boxes bound for Hong Kong. They were labeled as batteries but
+contained almost 1,000 stolen iPhones. [...]
+
+The police are now using that information to map where stolen
+phones are transported by street thieves. After the Heathrow
+seizure, a team of specialist investigators who normally deal with
+firearms and drug smuggling was assigned to the case. They
+identified further shipments and used forensics to identify two
+men in their 30s who are suspected of being ringleaders of a group
+that sent up to 40,000 stolen phones to China.
+
+When the men were arrested on Sept. 23, the car they were
+traveling in contained several phones, some wrapped in aluminum
+foil in an attempt to prevent them from transmitting tracking
+signals. At one point, the police said at a news conference, they
+observed the men buying almost 1.5 miles’ worth of foil in Costco.
+
+
+There’s shopping in bulk at Costco, and then there’s shopping in bulk.
+
+
+
+
+
+Apple and NBCUniversal Introduce the Apple TV and Peacock Bundle ★
+
+
+Apple Newsroom:
+
+
+ Apple and NBCUniversal today announced the launch of the Apple TV
+and Peacock Bundle, available beginning October 20. The
+first-of-its-kind bundle offers the services’ complementary array
+of award-winning originals, marquee live events and sports,
+beloved franchises, and blockbuster movies, including Ted Lasso ,
+Severance , The Paper , The Traitors , How to Train Your
+Dragon , the NBA (tipping off October 21 on Peacock), F1 The
+Movie (coming later this year), and much more, all through one
+convenient monthly subscription.
+
+Customers in the U.S. can save over 30 percent by subscribing to
+the Apple TV and Peacock Premium bundle for $14.99 per month, or
+Apple TV and Peacock Premium Plus for $19.99 per month, through
+either app or website. Apple One subscribers on the Family and
+Premier plans can subscribe to Peacock Premium Plus and receive a
+35 percent discount — the first benefit of its kind for Apple’s
+all-in-one subscription bundle.
+
+
+
+
+
+
+Counterpoint Research Claims iPhone 17 Sales Are Up Year-Over-Year in the U.S. and China ★
+
+
+CNBC:
+
+
+ Apple shares rose 4% on Monday as a new report showed iPhone 17
+sales off to a strong start in the U.S. and China.
+
+The iPhone 17 series, which dropped in September, has outsold the
+iPhone 16 series by 14% in the U.S. and China within its first 10
+days of availability, according to data from Counterpoint
+Research .
+
+
+Just because a research firms claims iPhone 17 sales are up 14 percent doesn’t mean they are up 14 percent. These are estimates, not hard numbers from Apple — and Apple doesn’t share actual sales numbers with anyone. Some headlines get this right, but most don’t.
+
+
+
+
+
+David Hockney’s Xerox Prints ★
+
+
+Erin-Atlanta Argun:
+
+
+ While Hockney is perhaps best known for his larger-than-life
+swimming pool paintings, bold coloured acrylics are
+certainly not his only forte. Contrary to the old saying, Hockney
+is a jack of all trades and a master of all he has worked with:
+from paint to iPads . In the late 1980s, his fascination
+with technology and new ways of creating art led him to the Xerox
+photocopying machine. The copy machine offered Hockney his
+speediest technique of printing yet, allowing the artist to build
+layers, textures and colours like never before. However, it was
+not only a swift and spontaneous way for Hockney to produce his
+prints. The tech-savvy artist said that he had a more
+“philosophical” interest in the Xerox machine as a new iteration
+of the camera.
+
+
+My post last week arguing that AI is a legitimate tool to create art has, as I expected, generated polarized feedback. One argument several readers have made is that AI generates nothing but plagiarism, copyright infringement, and slop . That’s just not true. If a painter as renowned as David Hockney can use a literal photocopier as an artistic tool, AI can be one too.
+
+
+
+
+
+Photos From Saturday’s ‘No Kings’ Protests Across the U.S. ★
+
+
+Picking up steam, these protests are.
+
+
+
+
+
+Major AWS Outage ★
+
+
+Jess Weatherbed, The Verge:
+
+
+ A major Amazon Web Services (AWS) outage took down multiple online
+services for around four hours this morning, including Amazon,
+Alexa, Snapchat, Fortnite, ChatGPT , Epic Games Store,
+Epic Online Services , and more.
+
+As of 6:35AM ET, the AWS status checker is reporting that
+“most AWS Service operations are succeeding normally now,” and
+some of the impacted platforms, including Fortnite ,
+Epic Games Store , and Perplexity have announced
+that they are fully recovered and back online.
+
+However, as of 9:50AM ET, Amazon says that multiple services in
+the US-EAST-1 Region are still “impacted” by operational issues,
+and that it is working towards a full resolution. The AWS
+dashboard first reported issues affecting the US-EAST-1 Region at
+3:11AM ET, with global services in other regions also taken
+offline. The cause of the outage hasn’t been confirmed, and it’s
+unclear when regular service will be fully restored.
+
+
+I bet it was this AWS outage that explains why I couldn’t sign in to my NYT account to play Wordle this morning. (Got it in 4 today.)
+
+
+
+
+
+
+
Sunday, 19 October 2025
+
+
+Mux: Video API for Developers ★
+
+
+My thanks to Mux for sponsoring last week at DF. Modern video should be simple to ship and scale. Mux makes it easy to build live and on-demand video into anything from websites to platforms to AI workflows.
+
+Upload a video, get back a playback URL. No transcoding headaches. No CDN setup. Go further with the building blocks of your video: thumbnails, transcripts, and storyboards. Use them to create exactly what you want.
+
+Future-proof your video stack with infrastructure trusted by Patreon, Substack, and Synthesia. Get started free, no credit card required. Use the code FIREBALL for an extra $50 usage credit, when you need it.
+
+
+
+
+
+
+
Friday, 17 October 2025
+
+
+The Base M5 MacBook Pro vs. the M4 MacBook Air ★
+
+
+A few readers took exception to this bit from my post Wednesday regarding the new M5 MacBook Pro :
+
+
+ The base 14-inch model, with the no-adjective M-series chip, is
+for people who probably would be better served with a MacBook
+Air but who wrongly believe they “need” a laptop with “Pro” in
+its name.
+
+
+E.g., Brian Stucki, who wrote on Bluesky :
+
+
+ A rare disagree with @gruber.foo here. I’m a cognizant MacBook Pro
+no-adjective user because the CPU/GPU is more than enough for me.
+I buy over Air for
+
+
+XDR display
+Battery life
+much better speakers
+SD/HDMI ports
+
+
+I’m glad to have the option without an adjective markup.
+
+
+The main link on this post is to Apple’s ever-excellent Compare page for MacBooks, comparing the $1,000 M4 MacBook Air to the new $1,600 M5 MacBook Pro and, because there’s a third slot, the $2,000 M4 MacBook Pro with the M4 Pro chip. Stucki’s short list nails the actual advantages of the base MacBook Pro compared to the MacBook Air: much better display (1,000 nits vs. 500 nits, with the MBP supporting up to 1,600 nits for HDR content), better speakers, longer battery life, and SD/HDMI ports. Unmentioned by Stucki is that only the MacBook Pro offers the option for a nano-texture matte display for $150.
+
+In my defense, I did say “probably” in my post. My understanding is that the base MacBook Pro is a huge seller for Apple. So of course some very well-informed users are buying them for good reasons. But I really do think an awful lot of base MacBook Pro buyers are spending an extra $600 and carrying 0.7 pounds of extra weight for features they don’t actually notice or care about. They just think they need a “pro” laptop, and underestimate just how incredibly capable MacBook Airs are.
+
+
+
+
+
+United States Mint to Release Commemorative $1 Steve Jobs Coin ★
+
+
+I’m not really into commemorative coins, and I have to say I suspect Steve Jobs wasn’t either, but it’s a nice little recognition. No mention of it from the Mint, but the $1 value of the coin is the same as the salary Jobs drew from Apple .
+
+
+
+
+
+Matthew Belloni Interviews Eddy Cue on ‘The Town’ ★
+
+
+Speaking of Eddy Cue, he was the guest on Matthew Belloni’s excellent podcast, The Town, this week. (Overcast link .) Just a great interview in general. Cue doesn’t do many interviews but he’s my favorite Apple executive to hear speak, because he’s the least rehearsed and most straightforward. If he doesn’t want to answer a question (Belloni tried, mightily, to press him on subscriber and viewership numbers), Cue just says he’s not going to answer that question, rather than dance around it with a non-answer answer.
+
+My two big takeaways:
+
+
+Everyone in Hollywood is spooked about what Apple’s intentions “really are” regarding original movies and series. They’re worried it’s some sort of play to polish Apple’s brand, and that Apple is going to get bored or tired of losing money, and pick up stakes and leave the game. Cue emphasized that the answer is simple: Apple thinks it’s a great business to be in (and he also made the point that Apple’s brand needed no polishing) and they’re in this business for that reason, and for the long haul.
+Apple is serious about sports rights, but they don’t want to dabble. They want to own the rights to entire sports. Friday Night Baseball was, effectively, a learning experiment. Apple TV’s MLS deal — and the F1 US deal announced today — are the sort of deals Apple wants. (That’s going to make it hard for Apple to get involved with the NFL, because the NFL strategically wants to spread its games across all the major TV networks and streaming services.) Cue is a huge sports fan (as is Tim Cook), and Apple wants to deliver sports on Apple TV that cater to fans.
+
+
+
+
+
+
+Apple Is the Exclusive New Broadcast Partner for Formula 1 in the U.S. ★
+
+
+Blockbuster sports streaming news from Apple Newsroom:
+
+
+ Apple and Formula 1 today announced a five-year partnership that
+will bring all F1 races exclusively to Apple TV in the United
+States beginning next year. [...]
+
+Apple TV will deliver comprehensive coverage of Formula 1, with
+all practice, qualifying, Sprint sessions, and Grands Prix
+available to Apple TV subscribers. Select races and all practice
+sessions will also be available for free in the Apple TV app
+throughout the course of the season. In addition to broadcasting
+Formula 1 on Apple TV, Apple will amplify the sport across Apple
+News, Apple Maps, Apple Music, and Apple Fitness+. Apple Sports — the free app for iPhone — will feature live updates for every
+qualifying, Sprint, and race for each Grand Prix across the
+season, with real-time leaderboards, season driver and constructor
+standings, Live Activities to follow on the Lock Screen, and a
+designated widget for the iPhone Home Screen.
+
+F1 TV Premium, F1’s own premier content offering, will continue to
+be available in the U.S. via an Apple TV subscription only and
+will be free for those who subscribe.
+
+
+If I’m reading this right, all you need to get access to everything F1-related is an Apple TV subscription (the service formerly known as TV+ ) and to be in the US. This even includes F1 TV Premium — normally $130/year — which Jason Snell wrote about in a piece I linked to earlier this week.
+
+Basically, this sounds like the sort of sports broadcasting deal that Eddy Cue has been talking about as Apple’s goal for years — the rights to the entire sport, free of charge if you’re an Apple TV subscriber.
+
+
+
+
+
+
+
Thursday, 16 October 2025
+
+
+M5 MacBook Pro Does Not Include a Charger in the Box in Europe ★
+
+
+Joe Rossignol, MacRumors:
+
+
+ The new 14-inch MacBook Pro with an M5 chip does not include a
+charger in the box in European countries, including the U.K.,
+Ireland, Germany, Italy, France, Spain, the Netherlands, Norway,
+and others, according to Apple’s online store. In the U.S. and all
+other countries outside of Europe, the new MacBook Pro comes with
+Apple’s 70W USB-C Power Adapter, but European customers miss out.
+
+Apple has gradually stopped including chargers with many products
+over the years — a decision it has attributed to its
+environmental goals.
+
+In this case, an Apple spokesperson told French website
+Numerama’s Nicolas Lellouche that the decision to not
+include a charger with this particular MacBook Pro was made in
+anticipation of a European regulation that will require
+Apple to provide customers with the option to purchase certain
+devices without a charger in the box, starting in April.
+
+
+I’m not sure why there’s no power adapter in the box in the UK (I double-checked ). The cited regulation is for the EU, and the UK, rather famously, left the EU in 2020.
+
+But, still, amazing stuff continues to happen in Europe.
+
+
+
+
+
+Matthew Inman of The Oatmeal: ‘A Cartoonist’s Review of AI Art’ ★
+
+
+Good and thoughtful graphic essay by Matthew Inman, expressing why he dislikes AI-generated art. It’s been widely linked to , largely approvingly. I fundamentally disagree with the premise. Near the start, Inman writes:
+
+
+ When I consume AI art, it also evokes a feeling. Good, bad,
+neutral — whatever.
+
+Until I find out that it’s AI art.
+
+Then I feel deflated, grossed out, and maybe a little bit bored.
+This feeling isn’t a choice.
+
+
+I think it very much is a choice. If your opinion about a work of art changes after you find out which tools were used to make it, or who the artist is or what they’ve done, you’re no longer judging the art. You’re making a choice not to form your opinion based on the work itself, but rather on something else. If you refuse to watch Woody Allen movies because of his personal life, that’s a choice, but you’re choosing not to watch some of the best movies that have ever been made.
+
+Stanley Kubrick said, “The test of a work of art is, in the end, our affection for it, not our ability to explain why it is good.” If an image, a song, a poem, or video evokes affection in your heart, and then that affection dissipates when you learn what tools were used to create it, that’s not a test of the work of art itself. To me it’s no different than losing affection for a movie only upon learning that special effects were created digitally, not practically. Or whether a movie — or a photograph — was shot using a digital camera or on film. Or whether a novel was written using a computer or with pen and paper.
+
+I think most “AI art” today completely sucks. But not because it was made using AI generation tools. It just sucks period. Good art is being made with AI tools, though, and more — much more — is coming.
+
+
+
+
+
+
+
+
+
+
+
+
Wednesday, 15 October 2025
+
+
Apple Newsroom, today :
+
+
+ Apple today announced M5, delivering the next big leap in AI
+performance and advances to nearly every aspect of the chip. Built
+using third-generation 3-nanometer technology, M5 introduces a
+next-generation 10-core GPU architecture with a Neural Accelerator
+in each core, enabling GPU-based AI workloads to run dramatically
+faster, with over 4× the peak GPU compute performance compared to
+M4. The GPU also offers enhanced graphics capabilities and
+third-generation ray tracing that combined deliver a graphics
+performance that is up to 45 percent higher than M4. M5 features
+the world’s fastest performance core, with up to a 10-core CPU
+made up of six efficiency cores and up to four performance cores.
+Together, they deliver up to 15 percent faster multithreaded
+performance over M4. M5 also features an improved 16-core Neural
+Engine, a powerful media engine, and a nearly 30 percent increase
+in unified memory bandwidth to 153GB/s. M5 brings its
+industry-leading power-efficient performance to the new 14-inch
+MacBook Pro , iPad Pro , and Apple Vision Pro ,
+allowing each device to excel in its own way. All are available
+for pre-order today.
+
+
+
Some thoughts and observations:
+
+
14-Inch MacBook Pro
+
+
Apple Newsroom: “Apple Unveils New 14‑Inch MacBook Pro Powered by the M5 Chip, Delivering the Next Big Leap in AI for the Mac ”.
+
+
The 14-inch MacBook Pro with the no-adjective M-series chip has always been an odd duck in the MacBook lineup. This “Pro”-but-not-pro spot in the MacBook lineup goes back to the Intel era, when there was a 13-inch MacBook Pro without a Touch Bar. That was the MacBook Pro that, in 2016, Phil Schiller suggested as a good choice for those who were then holding out for a MacBook Air with a retina display . (The first retina MacBook Air didn’t ship for another two years, in late 2018.) It’s more like a MacBook “Pro” than a MacBook Pro. The truly pro -spec’d MacBook Pros have M-series Pro and Max chips, and are available in both 14- and 16-inch sizes. The base 14-inch model, with the no-adjective M-series chip, is for people who probably would be better served with a MacBook Air but who wrongly believe they “need” a laptop with “Pro” in its name.
+
+
Here’s a timeline of no-adjective M-series chips and when they appeared in the 14-inch MacBook Pro:
+
+
+M1 13-inch MacBook Pro: 10 November 2020 . This MacBook Pro was one of the three Macs that debuted with the launch of Apple Silicon — the others were the MacBook Air and Mac Mini. The hardware looked exactly like the last generation Intel MacBook Pro. The M1 Pro and M1 Max models didn’t ship for another year (well, 11 months later), and those models brought with them the new form factor design that’s still with us today with the new M5 MacBook Pro.
+M2 13-inch MacBook Pro: 6 June 2022 . This model also stuck with the older Intel-era form factor, including the 13-inch, not 14-inch, display size.
+M3 14-inch MacBook Pro: 30 October 2023 . The “Scary Fast ” event. This model debuted alongside the pro-spec’d M3 Pro and M3 Max 14- and 16-inch models.
+M4 14-inch MacBook Pro: 30 October 2024 . Exactly one year after the M3, and also alongside the M4 Pro and M4 Max models. What was different in 2024 with the M4 generation is that the M4 iPad Pros debuted back in early May , all by themselves.
+M5 14-inch MacBook Pro: 15 October 2025 (today). What’s different with today’s announcement is that it is not alongside the M5 Pro and M5 Max models, but is alongside the M5 iPad Pros.
+
+
+
This raises the question of when to expect those M5 Pro/Max models. The rumor mill suggests “early 2026”. I suspect that’s right, based on nothing other than the fact that if they were going to be announced this year, Apple almost certainly would have announced the entire M5 generation MacBook lineup together.
+
+
Basically, this is just a speed bump upgrade over the just-plain M4 MacBook Pro . But annual — or at least regular — speed bumps are a good thing . The alternative is years-long gaps between hardware refreshes.
+
+
iPad Pros
+
+
Apple Newsroom: “Apple Introduces the Powerful New iPad Pro With the M5 Chip ”:
+
+
+ Featuring a next-generation GPU with a Neural Accelerator in each
+core, M5 delivers a big boost in performance for iPad Pro users,
+whether they’re working on cutting-edge projects or tapping into
+AI for productivity. The new iPad Pro delivers up to 3.5× the AI
+performance than iPad Pro with M4 and up to 5.6× faster than iPad
+Pro with M1. N1, the new Apple-designed wireless networking chip,
+enables the latest generation of wireless technologies with
+support for Wi-Fi 7 on iPad Pro. The C1X modem comes to cellular
+models of iPad Pro, delivering up to 50 percent faster cellular
+data performance than its predecessor with even greater
+efficiency, allowing users to do more on the go.
+
+
+
I think the N1 wireless chip and C1X modem are more interesting generation-over-generation improvements than the M5 chip. Thanks to the N1, these iPad Pro models support Wi-Fi 7 — today’s new M5 14-inch MacBook Pro does not. I would wager rather heavily that the upcoming M5 Pro and M5 Max MacBook Pro models will support Wi-Fi 7 (probably via the N1 chip, or perhaps even an “N1X” or something).
+
+
Other than that, this too is a speed bump upgrade .
+
+
Vision Pro
+
+
Apple Newsroom: “Apple Vision Pro Upgraded With the M5 Chip and Dual Knit Band ”:
+
+
+ The upgraded Vision Pro also comes with the soft, cushioned Dual
+Knit Band to help users achieve an even more comfortable fit, and
+visionOS 26, which unlocks innovative spatial experiences,
+including widgets, new Personas, an interactive Jupiter
+Environment, and new Apple Intelligence features with support for
+additional languages.
+
+
+
The new Dual Knit Band ($99 on its own ) looks like a hybrid of the more attractive Solo Knit Band (which did not have a strap that went over the top of your head) and the Dual Loop Band (which did have an over-the-head strap, but which looked somewhat orthopedic). It’s a tacit acknowledgement that physical comfort has been a real problem for many people who’ve tried Vision Pro. (Me, personally, I find using it with the Solo Knit Band comfortable for as long as I care to use it — which is typically just 2–3 hours, tops.)
+
+
+ There are over 1 million apps and thousands of games on the App
+Store, hundreds of 3D movies on the Apple TV app, and all-new
+series and films in Apple Immersive with a selection of live NBA
+games coming soon.
+
+
+
Translation: Hey, there’s actually a growing library of immersive content to watch, software to use, and games to play for this thing now.
+
+
+ With M5, Apple Vision Pro renders 10 percent more pixels on the
+custom micro-OLED displays compared to the previous generation,
+resulting in a sharper image with crisper text and more detailed
+visuals. Vision Pro can also increase the refresh rate up to 120Hz
+for reduced motion blur when users look at their physical
+surroundings, and an even smoother experience when using Mac
+Virtual Display. Vision Pro with M5 works alongside the
+purpose-built R1 chip, which processes input from 12 cameras, five
+sensors, and six microphones, and streams new images to the
+displays within 12 milliseconds to create a real-time view of the
+world. The high-performance battery now supports up to two and a
+half hours of general use, and up to three hours of video
+playback, all on a single charge.
+
+
+
It’s merely another speed bump upgrade alongside the other two speed bump upgrades today, but a bit more dramatic given that the Vision Pro is jumping from the M2 to M5. No price drop, no change to the form factor. But Apple’s interest in the platform is very much alive. ★
+
+
+
+
+
+
+
Wednesday, 15 October 2025
+
+
+TiVo Stops Selling DVRs ★
+
+
+Luke Bouma, writing for Cord Cutters:
+
+
+ In a seismic shift for the television industry, TiVo Corporation
+has quietly pulled the plug on its storied digital video recorder
+line, effectively ending an era that redefined how consumers
+interacted with broadcast content. As of early October 2025, the
+company’s official website has scrubbed all references
+to its hardware DVR products, including the once-revered TiVo
+Edge models designed for cable subscribers and over-the-air
+antenna users. Visitors searching for these devices now encounter
+a streamlined catalog that omits any mention of physical
+recording hardware, signaling a complete withdrawal from the
+retail DVR market.
+
+This move culminates decades of gradual decline for TiVo’s
+hardware ambitions, which peaked in the early 2000s when the brand
+became synonymous with effortless time-shifting of television
+programming. Launched in 1999, TiVo’s DVRs introduced features
+like one-touch recording, commercial skipping, and intuitive
+search capabilities that made traditional TV schedules feel
+obsolete. At its zenith, the company boasted millions of
+subscribers, forcing cable providers and networks to adapt to
+empowered viewers who could pause live broadcasts or binge-watch
+at will. The TiVo Edge, introduced in 2021 as a hybrid device
+supporting both cable cards and streaming, represented the final
+evolution of this hardware legacy, blending OTA tuners with 4K
+support and expanded storage options. Yet, even as it garnered
+praise for superior interface design and reliability, sales
+dwindled amid the cord-cutting revolution.
+
+
+The writing has been on the wall for years. We’ve been a TiVo house for 25 years, but their hardware has gotten worse over the years. I forget what our second-to-last TiVo model was, but it died in 2021, and we bought a TiVo Edge. The Edge was often unreliable, and sometimes needed weekly reboots to keep working. (System software updates eventually fixed that.) But the hardware failed this summer. We’d only had it four years.
+
+And, the Edge system software UI was a disaster, and a huge regression from the old TiVo interface. Almost everything was worse in the new “modern” TiVo interface from the old one: navigating shows you’d already recorded, the live-right-now TV guide, the interface for setting up a show to record — all of that went from really good and intuitive to clunky and confusing and slow. The one and only thing our TiVo Edge remained excellent at was playback. Fast-forwarding, rewinding, pausing — nothing else compares to TiVo for that. Even Apple’s own TV app on an Apple TV box doesn’t fast-forward or rewind with anything close to the precision and low latency TiVo’s devices have always offered. My first TiVo from 25 years ago had better fast-forward and rewind than anything on Apple TV (let alone other, lesser streaming boxes) today.
+
+But the overall TiVo experience has been so bad — and getting worse — for so long that I’m not sad at all that they’re getting out of the game. TiVo’s one job was to provide a best-of-breed experience and they lost the plot on that a decade ago. Fuck ’em.
+
+
+
+
+
+‘Halo Fund Announces Strategic Secondary Investment in 1Password’ ★
+
+
+Halo Fund:
+
+
+ Halo Fund, a new $1 billion growth fund founded by Ryan Smith and Ryan Sweeney, today announced a strategic secondary investment in 1Password, a leader in identity security and pioneer of Extended Access Management. Halo Fund is joined in this investment by legendary technology leaders, including Flume Ventures with Sun Microsystems founder Scott McNealy and former Zscaler Chief Strategy Officer Manoj Apte. This transaction underscores strong demand from innovators and investors to join 1Password’s journey.
+
+
+Well I’m sure this will halt 1Password’s descent into enterprise/cross-platform shittiness.
+
+
+
+
+
+
+
Tuesday, 14 October 2025
+
+
+‘How to Turn Liquid Glass Into a Solid Interface’ ★
+
+
+Adam Engst, at TidBITS:
+
+
+ Apple’s new Liquid Glass interface design brings transparency and
+blur effects to all Apple operating systems, but many users find
+it distracting or difficult to read. Here’s how to control its
+effects and make your interface more usable. Although the relevant
+Accessibility settings are quite similar across macOS, iOS,
+watchOS, and tvOS, I separate them because they offer different
+levels of utility in each.
+
+
+Comprehensive, illustrated overview of the various Accessibility settings (and, on MacOS 26 Tahoe, hidden command-line defaults settings) that let you adjust the transparency and contrast of Liquid Glass across the various Apple OS 26 interfaces. A useful guide for today — and, I bet, a useful look back at the first versions of Liquid Glass for the future.
+
+
+
+
+
+‘Looking for the Red Flags in Apple’s Formula 1 TV Deal’ ★
+
+
+Jason Snell, at Six Colors:
+
+
+ The entire point of a streaming-only product is that once you’re
+off traditional TV, you can go beyond the single stream and
+provide interactive options. The whole point of streaming TV,
+especially sports, should be that you can leave the flat video
+stream behind and build something cool using software.
+
+That is, by the way, what F1 TV Pro is: A sophisticated bit of
+software that merges track data with multiple cameras to let
+viewers choose how they want to watch races. It’s absolutely
+the product that Apple should aspire to build, or co-opt, in
+this deal.
+
+I understand that Formula 1 owner Liberty Media is reluctant to
+lose a profit center, but if Apple’s paying them an extra $50
+million, isn’t that the proper trade-off? Also, working with Apple
+in the U.S. could be part of a longer-term tech partnership
+between F1 and Apple that could extend worldwide.
+
+
+I don’t really care about Apple obtaining sports streaming rights if all they’re going to do is stream a traditional linear broadcast of the games/events/races. I want to see Apple do the Apple thing and think deeply about what a software-based broadcast can be and offer — and then create it. So, to me, Apple’s Friday Night Baseball has been a wash. It’s a good broadcast (that, rumors suggest , may be coming to an end), but it’s just a good traditional baseball broadcast. It could be on any streaming service. The only Apple-y aspects are the designs and typography of the on-screen graphics and scorebug . I want something like F1 TV Pro, but for baseball — and eventually, for all sports.
+
+
+
+
+
+
+
Monday, 13 October 2025
+
+
+Apple Renames ‘Apple TV+’ to ‘Apple TV’ ★
+
+
+At the bottom of Apple’s press release announcing that F1 The Movie will be available for streaming on December 12:
+
+
+ Apple TV+ is now simply Apple TV, with a vibrant new identity.
+Ahead of its global streaming debut on Apple TV, the film
+continues to be available for purchase on participating digital
+platforms, including the Apple TV app, Amazon Prime Video,
+Fandango at Home and more.
+
+About Apple TV
+
+Apple TV is available on the Apple TV app in over 100 countries
+and regions, on over 1 billion screens, including iPhone, iPad,
+Apple TV, Apple Vision Pro, Mac, popular smart TVs from Samsung,
+LG, Sony, VIZIO, TCL and others, Roku and Amazon Fire TV devices,
+Chromecast with Google TV, PlayStation and Xbox gaming consoles,
+and at tv.apple.com, for $12.99 per month with a seven-day free
+trial for new subscribers.
+
+
+In some ways, I get it. Like, if you’re telling someone how much you enjoy Slow Horses and they ask how to watch it, it’s more natural and conversational to just say “It’s on Apple TV”. That’s what most people say. That’s what I say — and as part of my job, I completely understand the difference between Apple TV the device, Apple TV the (free) app, and Apple TV+ the (paid) streaming service.
+
+But right there in Apple’s own “About Apple TV” description, you see just how overused “Apple TV” now is. You can watch Apple TV in Apple TV on Apple TV — the paid service in the free app on the set-top box. But you can watch any streaming service you want on the box, in that service’s own app. But many of those services are also available in the Apple TV app. And the Apple TV streaming service is also available on just about all other popular set-top hardware platforms. So you don’t need an Apple TV to watch Apple TV. It’s a bit like Abbott and Costello’s classic “Who’s on First ” routine.
+
+
+
+
+
+Apple Announces the End-of-Life for Clips ★
+
+
+Apple Support:
+
+
+ The Clips app is no longer being updated, and will no longer be
+available for download for new users as of October 10, 2025. You
+can continue to use Clips on iOS 26 and iPadOS 26 or earlier.
+
+
+Clips is such an interesting story. It really was a great app. Back in 2017, when version 2.0 arrived (just six months after 1.0), I described it as “the single best example of a productivity app designed for iOS”. I stand by that. Clips was a very ambitious app that really pushed the state of the art in iOS UI design forward in so many ways. The general knock on iOS has always been that it’s a platform for content consumption, not creation. Clips was all about creation.
+
+But, for as many great ideas as Clips contained (and debuted), it clearly never clicked with the public. Most people — even just only counting people who create and share edited videos to social media — probably have never even heard of Clips. There was something essential missing: a use case. Edits , Meta’s new-this-year video editing app for mobile, has a clear use case: it’s meant for editing videos destined for Meta’s popular social media networks. Clips had no clear target destination. It could have , but never did.
+
+
+
+
+
+The World’s Largest, Most Disruptive Botnet Is Exploiting Compromised Internet-of-Things (IoT) Devices ★
+
+
+Brian Krebs:
+
+
+ The world’s largest and most disruptive botnet is now drawing a
+majority of its firepower from compromised Internet-of-Things
+(IoT) devices hosted on U.S. Internet providers like AT&T, Comcast
+and Verizon, new evidence suggests. Experts say the heavy
+concentration of infected devices at U.S. providers is
+complicating efforts to limit collateral damage from the botnet’s
+attacks, which shattered previous records this week with a brief
+traffic flood that clocked in at nearly 30 trillion bits of data
+per second.
+
+Since its debut more than a year ago, the Aisuru botnet has
+steadily outcompeted virtually all other IoT-based botnets in the
+wild, with recent attacks siphoning Internet bandwidth from an
+estimated 300,000 compromised hosts worldwide.
+
+
+I guess those people who were declaring a decade ago that the Internet of Things would change the world were right.
+
+
+
+
+
+Before Taking the Guns Out of the Bond Posters, Amazon Prime Bowdlerized the Poster for ‘Full Metal Jacket’ ★
+
+
+I missed this story back in 2024, but it’s the same infuriating impulse toward infantilization as with the Bond posters this month. Amazon restored the correct poster art for Full Metal Jacket , but they didn’t learn the lesson: don’t fuck with art .
+
+
+
+
+
+Let’s Check in on the Mad King’s Spiral Into Dementia ★
+
+
+The president of the United States, yesterday on his blog:
+
+
+ THE BIDEN FBI PLACED 274 AGENTS INTO THE CROWD ON JANUARY 6. If
+this is so, which it is, a lot of very good people will be owed
+big apologies. What a SCAM - DO SOMETHING!!! President DJT
+
+
+No president, of course, can be expected to remember everything that happened during his four-year term. But Trump, of course, was still president on January 6, and the events that day were — to say the least — historically significant. The entire point of the January 6 insurrection — for his role in which, Trump was impeached — was to prevent Joe Biden from becoming president on January 20.
+
+The man is obviously unwell.
+
+
+
+
+
+
+
Saturday, 11 October 2025
+
+
+Drata ★
+
+
+My thanks to Drata for once again sponsoring DF. Their message is short and sweet: Automate compliance. Streamline security. Manage risk. Drata delivers the world’s most advanced Trust Management platform.
+
+
+
+
+
+Apple Has Indefinitely Postponed Jessica Chastain’s Apple TV+ Thriller ‘The Savant’, for Political Reasons ★
+
+
+Nellie Andreeva, reporting for Deadline back on September 23:
+
+
+ The release of Apple TV+’s The Savant has been put on hold. The
+decision comes three days before the thriller starring Jessica
+Chastain was slated to premiere on the streamer Sept. 26. No new
+date has been set.
+
+“After careful consideration, we have made the decision to
+postpone The Savant,” an Apple TV+ spokesperson said in a
+statement to Deadline. “We appreciate your understanding and look
+forward to releasing the series at a future date.”
+
+The streamer would not elaborate on the reasons for the
+last-minute change but The Savant ’s subject matter is believed
+to be behind it, with the storyline about preventing extremist
+attacks and some of the imagery considered possibly triggering
+following the Sept. 10 assassination of right-wing political
+activist Charlie Kirk. The series includes a sniper in action and
+the bombing of a government building among other acts of violence.
+
+
+Jessica Chastain, in a post on Instagram later that same day :
+
+
+ I want to say how much I value my partnership with Apple.
+They’ve been incredible collaborators and I deeply respect their
+team. That said, I wanted to reach out and let you know that
+we’re not aligned on the decision to pause the release of The
+Savant . [...]
+
+I’ve never shied away from difficult subjects, and while I wish
+this show wasn’t so relevant, unfortunately it is. The Savant
+is about the heroes who work every day to stop violence before it
+happens, and honoring their courage feels more urgent than ever.
+While I respect Apple’s decision to pause the release for now, I
+remain hopeful the show will reach audiences soon. Until then,
+I’m wishing safety and strength for everyone, and I’ll let you
+know if and when The Savant is released.
+
+
+Here we are nearly three weeks later, and it’s still a question of if , not when — Apple TV’s page for The Savant still has it labeled “Coming: At a Later Date”.
+
+
+
+
+
+Saul Zabar, Smoked Fish Czar of Upper West Side, Dies at 97 ★
+
+
+Clyde Haberman, The New York Times:
+
+
+ Saul Zabar, who across more than seven decades as a principal
+owner of the Upper West Side food emporium bearing his family name
+kept New Yorkers amply fortified with smoked fish, earthy bread
+and tangy cheese, not to mention pungent coffee, died on Tuesday
+in Manhattan. He was 97. [...]
+
+What did he look for in a fish? His response to The New York Sun
+in 2007 was worthy of a cryptic Zen master: “It’s got to have
+taste. Not too this, not too that.”
+
+But he was clear about his store’s iconic status. “There’s a
+romance about what we do,” he said in 2012. “We have a modern
+appearance, but we really do things the way they were done 40, 50,
+75, even 200 years ago.” [...]
+
+“We get asked often why we don’t franchise, because we have a lot
+of branded products,” he told the magazine Edible Manhattan in
+2022 .
+
+“Money is not why we do this, not why we’re here seven days a
+week,” he said. “It’s a way of life for us. It’s kind of
+old-fashioned.”
+
+
+Many people claim that they’re not in it for the money. Only some of them mean it. And those are the most interesting, and often most beloved, people in the world.
+
+
+
+
+
+Amazon Hamfistedly Removed the Guns From Prime’s James Bond Movie Posters ★
+
+
+Garth Franklin, writing at Dark Horizons:
+
+
+ Amazon has quietly walked back new James Bond thumbnail artwork on
+its Prime Video service following controversy over digital
+alterations to the original art. As reported here yesterday ,
+the art was unveiled on the weekend to coincide with James Bond
+Day celebrations on Sunday.
+
+Bond fans quickly noticed that the artwork had undergone some
+amateur photoshopping, which either cropped or airbrushed out
+his signature Walther PPK gun from the original image in a
+variety of ways.
+
+The results were widely derided on social media; films like Dr.
+No and Goldeneye appeared to have Bond making a rude gesture,
+while others like A View to a Kill elongated Roger Moore’s arms
+well past the point of any human.
+
+
+The updated ones just kinda suck. Amazon’s original “new” posters were downright hilariously bad. This bodes poorly for the Bond franchise’s future.
+
+
+
+
+
+
+
Friday, 10 October 2025
+
+
+Apple Newsroom on the Immersive Vision Pro Lakers Broadcasts ★
+
+
+Apple Newsroom:
+
+
+ In addition to live games for fans in the Lakers’ regional
+broadcast territory — which covers Southern California, Hawaii,
+and parts of southern Nevada, including Las Vegas — full game
+replays and highlights will be available to Apple Vision Pro users
+in select countries and regions from both the SportsNet and NBA
+apps. These live games will be captured using the new URSA Cine
+Immersive Live camera from Blackmagic Design, a version of the
+camera that launched earlier this year to capture Apple Immersive
+for Vision Pro, and will be available for purchase next year.
+
+
+I didn’t catch yesterday that these immersive broadcasts would only be available live within the Lakers’ local broadcast territory, which stinks, but alas, makes sense given how sports broadcasting rights work.
+
+
+
+
+
+
+
Thursday, 9 October 2025
+
+
+Some Lakers Games This Season Will Be Broadcast Live in Immersive Video for Vision Pro ★
+
+
+Jacob Krol, writing for Techradar:
+
+
+ We’ve seen a broad range of content, but I’ve been waiting for
+something live — specifically, live sports. Seeing that Apple
+TV+’s Friday Night Baseball is capturing games with the iPhone
+17 Pro and 17 Pro Max gave me some hope, and now we have a
+confirmed release. In what might be the start of something new,
+select Los Angeles Lakers games will be live-streamed in Apple
+Immersive for the Vision Pro this coming season.
+
+It’s not every game, but for those that are streaming — exclusive
+to the $3,500 Spatial Computer — you’ll get access to views that
+put you right in the middle of the action. Special cameras that
+support the format will be set courtside and under each basket to
+give you perspectives that amp up the immersion. The Lakers’ games
+will be shot using a special version of Blackmagic Design’s URSA
+Cine Immersive Live camera.
+
+
+Kind of weird, to me, that it wasn’t Apple’s own Friday Night Baseball broadcasts first, but I can’t wait to try this.
+
+
+
+
+
+Apple’s Justification for Removing DeICER From the App Store ★
+
+
+Pablo Manríquez, reporting for Migrant Insider:
+
+
+ Apple has quietly removed DeICER, a civic-reporting app used to
+log immigration enforcement activity, from its App Store after a
+law enforcement complaint — invoking a rule normally reserved for
+protecting marginalized groups from hate speech.
+
+According to internal correspondence reviewed by Migrant Insider,
+Apple told developer Rafael Concepcion that the app violated
+Guideline 1.1.1, which prohibits “defamatory, discriminatory, or
+mean-spirited content” directed at “religion, race, sexual
+orientation, gender, national/ethnic origin, or other targeted
+groups.”
+
+But Apple’s justification went further. “Information provided to
+Apple by law enforcement shows that your app violates Guideline
+1.1.1 because its purpose is to provide location information
+about law enforcement officers that can be used to harm such
+officers individually or as a group,” the company wrote in its
+removal notice.
+
+The decision effectively treats federal immigration agents as a
+protected class — a novel interpretation of Apple’s hate-speech
+policy that shields one of the most powerful arms of government
+from public scrutiny.
+
+
+Delicate flowers, these ICE agents are. And it’s a lie, anyway. There’s not one story about any of these apps being used to harm ICE agents. And even if such an attack happened, that wouldn’t imply it’s the purpose of these apps. The purpose of these apps is to protect people — citizens and non-citizens alike — from ICE .
+
+Alas, there’s no more courage, conviction, or honesty from Google on the Android side of the fence either.
+
+It’d be both interesting and honest if either Apple or Google justified these app bannings by simply saying the Trump administration demanded them and that they — Apple and Google — fear reprisal from Trump if they don’t comply.
+
+
+
+
+
+Apple Banned an App That Simply Archived Videos of ICE Abuses ★
+
+
+Joseph Cox, reporting for 404 Media:
+
+
+ Apple removed an app for preserving TikToks, Instagram reels, news
+reports, and videos documenting abuses by ICE, 404 Media has
+learned. The app, called Eyes Up, differs from other banned apps
+such as ICEBlock which were designed to report sightings of ICE
+officials in real-time to warn local communities. Eyes Up,
+meanwhile, was more of an aggregation service pooling together
+information to preserve evidence in case the material is needed in
+the future in court.
+
+The news shows that Apple and Google’s crackdown
+on ICE-spotting apps, which started after pressure from the
+Department of Justice against Apple, is broader in scope than apps
+that report sightings of ICE officials. It has also impacted at
+least one app that was more about creating a historical record of
+ICE’s activity during its mass deportation effort.
+
+“Our goal is government accountability, we aren’t even doing
+real-time tracking,” the administrator of Eyes Up, who said their
+name was Mark, told 404 Media. Mark asked 404 Media to only use
+his first name to protect him from retaliation. “I think the
+[Trump] admin is just embarrassed by how many incriminating
+videos we have.”
+
+
+Sometimes consistency is a bad thing.
+
+
+
+
+
+
+
Wednesday, 8 October 2025
+
+
+Apple Faces French Investigation Over Opt-In Siri Voice Recordings ★
+
+
+Benoit Berthelot and Gaspard Sebag, reporting for Bloomberg:
+
+
+ Apple Inc. faces an investigation in France over the use of voice
+recordings made with its assistant Siri. The probe has been
+referred to the Office for Combating Cybercrime, the Paris
+prosecutor’s office said in a statement on Monday. An Apple
+spokesperson referred to a blog post the company published in
+January about its use of voice recordings, and declined to comment
+further.
+
+Politico earlier reported the investigation.
+
+The investigation concerns Apple’s collection of user recordings
+through Siri, the digital assistant available on most of its
+devices. Apple can record and retain audio interactions through
+Siri to help improve its services, a feature the company says is
+opt-in. Some of that data can be retained for up to two years and
+reviewed by “graders”, or subcontractors, according to Apple .
+
+
+Sending recorded Siri voice interactions to Apple is opt-in, and the opt-in screen is very clear and cogent. It’s not just something Apple claims.
+
+Amazing stuff continues to happen in the EU.
+
+
+
+
+
+Katie Notopoulos on the Difference Between Sora and Meta Vibes ★
+
+
+Katie Notopoulos, on Threads:
+
+
+ Me looking at Vibes feed: this is screensaver. So boring. Why
+would anyone want it?
+
+Me looking at videos I made of my own face in Sora 2: heheh I love
+this it’s funny it’s ME.
+
+
+My feelings exactly.
+
+I even like staring at screensavers sometimes. But the screensavers I like watching are Apple’s aerial (and occasionally, underwater) screensavers on Apple TV. They’re slow, peaceful, and real. Vibes is chaotic, fast, and phony.
+
+
+
+
+
+‘Sora’s Slop Hits Different’ ★
+
+
+MG Siegler, writing at Spyglass:
+
+
+ I think that’s the real revelation here. It’s less about
+consumption and more about creation . I previously wrote
+about how I was an early investor in Vine in part because it felt
+like it could be analogous to Instagram. Thanks in large part to
+filters, that app made it easy for anyone to think they were good
+enough to be a photographer. It didn’t matter if they were or not,
+they thought they were — I was one of them — so everyone
+posted their photos. Vine felt like it could have been that for
+video thanks to its clever tap-to-record mechanism. But actually,
+it became a network for a lot of really talented amateurs to
+figure out a new format for funny videos on the internet. When
+Twitter acquired the company and dropped the ball, TikTok took
+that idea and scaled it (thanks to ByteDance paying um, Meta
+billions of dollars for distribution, and their own very smart
+algorithms).
+
+In a way, Sora feels like enabling everyone to be a TikTok
+creator.
+
+
+I don’t want to predict if Sora is a fad or has staying power, but so far I enjoy it in a way that I haven’t enjoyed a new social network in years. It’s just fun to dash off a stupid video with no more work than a quick text prompt, and the friends I’m following are making some damn funny clips every day.
+
+
+
+
+
+Nobel Prize in Physics Is Awarded for Work in Quantum Mechanics ★
+
+
+The New York Times:
+
+
+ John Clarke, Michel H. Devoret and John M. Martinis were awarded
+the Nobel Prize in Physics on Tuesday in Sweden for showing that
+two properties of quantum mechanics, the physical laws that rule
+the subatomic realm, could be observed in a system large enough to
+see with the naked eye.
+
+“There is no advanced technology today that does not rely on
+quantum mechanics,” Olle Eriksson, chairman of the Nobel Committee
+for Physics, said during the announcement of the award. The
+laureates’ discoveries, he added, paved the way for technologies
+like the cellphone, cameras and fiber optic cables. It also helped
+lay the groundwork for current attempts to build a quantum
+computer, a device that could compute and process information at
+speeds that would not be possible with classical computers.
+
+
+Can you believe these woke dopes gave this award to three people, and not one of them is Donald Trump?
+
+
+
+
+
+
+
Tuesday, 7 October 2025
+
+
+What’s New or Changed in iOS 26.1 Beta 2 ★
+
+
+Ryan Christoffel, 9to5Mac:
+
+
+ Alarms and timers are now harder to dismiss thanks to a new
+‘Slide to stop’ gesture . Both alarms and timers were
+updated in iOS 26 to utilize a new design with much larger
+on-screen buttons than before. Now in iOS 26.1 beta 2, Apple has
+replaced the ‘Stop’ button with a new sliding gesture that
+requires a little more intentionality. This should make accidental
+alarm dismissals more rare.
+
+
+That’s one of several changes that caught my eye. Seems like a great idea. Another notable change: Slide Over returns to iPadOS .
+
+See also: Juli Clover’s rundown of changes in iOS 26.1 beta 2 for MacRumors .
+
+
+
+
+
+
+
+
+
+
+
+
Friday, 3 October 2025
+
+
Ashley Oliver, reporting for Fox Business :
+
+
+ DOJ officials, at the direction of Attorney General Pam Bondi,
+asked Apple to take down ICEBlock, a move that comes as Trump
+administration officials have claimed the tool, which allows users
+to anonymously report ICE agents’ presence, puts agents in danger
+and helps shield illegal immigrants.
+
+“We reached out to Apple today demanding they remove the ICEBlock
+app from their App Store — and Apple did so,” Bondi said in a
+statement to Fox News Digital.
+
+“ICEBlock is designed to put ICE agents at risk just for doing
+their jobs, and violence against law enforcement is an intolerable
+red line that cannot be crossed,” Bondi added. “This Department of
+Justice will continue making every effort to protect our brave
+federal law enforcement officers, who risk their lives every day
+to keep Americans safe.”
+
+
+
Fox, in its opening paragraph, describes Bondi as having “asked” Apple to remove ICEBlock from the App Store, but Bondi’s own statement uses the verb “demand”. The difference is not nitpicking. No one, not even Bondi, is claiming any aspect of ICEBlock is illegal. Thus it’s not merely inappropriate but outrageous — and yet another among dozens of other causes for alarm regarding Trump 2.0’s decidedly authoritarian turn — for the DOJ to “demand” that Apple do anything about it. But demand they did, and comply did Apple. (Check those lips for Cheetos dust before heading home today.)
+
+
Katherine Tangalakis-Lippert, Peter Kafka, and Kwan Wei Kevin Tan, reporting for Business Insider :
+
+
+ Apple has removed ICEBlock, an app that allowed users to monitor
+and report the location of immigration enforcement officers, from
+the App Store.
+
+“We created the App Store to be a safe and trusted place to
+discover apps,” Apple said in a statement to Business Insider.
+“Based on information we’ve received from law enforcement about
+the safety risks associated with ICEBlock, we have removed it and
+similar apps from the App Store.”
+
+
+
ICEBlock developer Joshua Aaron, posting on the ICEBlock Bluesky account :
+
+
+ We just received a message from Apple’s App Review that #ICEBlock
+has been removed from the App Store due to “objectionable
+content”. The only thing we can imagine is this is due to pressure
+from the Trump Admin.
+
+We have responded and we’ll fight this! #resist
+
+
+
There is clearly nothing illegal about ICEBlock.1 It’s just information, obviously protected by the First Amendment. Law enforcement officers in the United States have no right to avoid being recorded nor their actions being reported and shared. Reporting and publishing where police are policing is free speech and fundamental to the civil rights and liberties of a free society.
+
+
We can all wish Apple had fought this “demand”. I certainly do. John Oliver’s “Fuck you, make me” argument sprung to mind for me this morning. But that’s wishful thinking. I believe there are many lines Apple would not cross, even if it means taking on the ire of Trump administration lickspittles, if not the barely literate wrath of the mad king himself on his sad little blog . Apple may well eventually — if not soon — be forced to define those lines. But keeping ICEBlock in the App Store isn’t one of them. You might believe it should be. There’s a big part of me that believes it should be. But I can also see why it’s not . Pick your battles.
+
+
I wrote about ICEBlock twice back in late July. Quoting extensively from my initial post :
+
+
+ The ICEBlock app is interesting in and of itself (and from my
+tire-kicking test drive, appears to be a well-crafted and designed
+app), as will be Apple’s response if (when?) the Trump
+administration takes offense to the app’s existence. Back in 2019,
+kowtowing to tacit demands from China, Apple removed from the App
+Store an app called HKmap.live which helped pro-democracy
+activists in Hong Kong know the location of police and protest
+activity. The app broke no Hong Kong laws, but scared the
+thin-skinned skittish lickspittles in the Chinese Communist
+Party . (Remember too that in 2019, Apple removed the Taiwan
+flag emoji (🇹🇼) from the iOS 13 keyboard for users in Hong
+Kong and Macau.)
+
+One defense from Apple regarding HKmap.live, however, was that the
+iOS app was a thin wrapper around the website, which website
+remained fully functional and could be saved to an iPhone user’s
+home screen. Removing the app from the App Store thus did not
+prevent Hongkongers from accessing it. (That website today
+seems to be defunct .)
+
+ICEBlock is different. It is only available as a native iOS app.
+According to the developers, this is for technical reasons. From
+their web page explaining why they can’t offer an Android
+version :
+
+
+ At ICEBlock, user privacy and security are paramount. Our
+application is designed to provide as much anonymity as possible
+without storing any user data or creating accounts. While we
+understand the desire for an Android version of ICEBlock,
+achieving this level of anonymity on Android is not feasible due
+to the inherent requirements of push notification services.
+
+To send push notifications on Android, it is necessary to use a
+mechanism that requires storing device IDs. This means that we
+would need to maintain a privately hosted database to store these
+identifiers. Storing such data, even if it’s anonymized,
+introduces significant privacy risks. [...]
+
+In contrast, iOS offers us the flexibility to deliver push
+notifications while adhering strictly to our design philosophy.
+Apple’s ecosystem allows for push notifications to be sent
+without requiring us to store any user-identifiable information.
+This ensures that ICEBlock remains completely anonymous and
+secure.
+
+
+To deliver push notifications on Android, the developers claim
+they would need to maintain a database of device IDs, create a
+user account system to manage those device IDs, and all of that
+server-stored data would be susceptible to law enforcement
+subpoenas and pro-ICE red hat hackers. (What “brown shirts” were
+to the Nazis, we should make “red hats” to MAGA.)
+
+To maintain anonymity and store zero user data, there is and can
+be no web app version of ICEBlock. There is and can be no Android
+version. Only iOS supports the security and privacy features for
+ICEBlock to offer what it does, the way it does. Here’s to hoping
+that Apple will proudly defend it if push comes to shove.
+
+
+
Apple’s removal of ICEBlock from the App Store is, in multiple ways, worse than Apple’s removal of HKmap.live from the App Store back in 2019. First, you cannot take a disagreement with the Chinese government to court. Here in the United States, you can. But Apple chose not to. That’s a display of weakness.
+
+
Second, from the perspective of users, without the HKmap.live “app”, Hong Kong iPhone users could still access all the functionality via the website, and the website could be saved to their home screens as a web app that was, I believe, functionally identical to the version from the App Store. I put “app” in quotes above because the HKmap.live app was really just a thin wrapper around the service’s mobile website. Hongkongers lost some convenience, and they lost the ability to tell non-technical protestor friends “just get it from the App Store”, but it’s not that much more complex to explain how to add a website to your iPhone home screen as a web app.
+
+
With ICEBlock, the entire thing is simply no longer available. If you already have ICEBlock installed, the installed version still functions on your iPhone, but, until and if Apple changes its mind, there will be no further software updates and new users are unable to download it. Nor will current users be able to re-download the app on a new iPhone — and now is “new iPhone” season. And, seemingly, there can be no web app (or Android) version of ICEBlock that offers the same level of anonymity as the native iOS version — with notifications, but without user accounts nor any database of device IDs for notifications that would be subject to subpoena from ICEBlock.
+
+
The gist of my second post on ICEBlock from back in July is that ICEBlock’s privacy-protecting architecture isn’t magic. It’s based on trust in Apple itself. Joshua Aaron doesn’t have access to ICEBlock users’ device IDs (let alone their personal identities), but ICEBlock can send push notifications to devices because Apple itself does know device IDs and users’ identities.
+
+
It’s rather chilling to consider what Apple would have done if the Trump administration had “demanded” a list of device IDs and user identities for everyone who had installed ICEBlock. Or what Apple will do if such a demand pops into one of their dimwitted but cruel minds.2 I suspect that’s one of the lines Apple would not cross. That Apple would stand its ground there and say “Fuck you, make us” and take it to court. But there’s only one way to find out. ★
+
+
+
+
+
+
+
+
+
+
+
Friday, 26 September 2025
+
+
Apple, “The Digital Markets Act’s Impacts on EU Users ”:
+
+
+ The DMA requires Apple to make certain features work on non-Apple
+products and apps before we can share them with our users.
+Unfortunately, that requires a lot of engineering work, and it’s
+caused us to delay some new features in the EU:
+
+
+Live Translation with AirPods uses Apple Intelligence to let
+Apple users communicate across languages. Bringing a
+sophisticated feature like this to other devices creates
+challenges that take time to solve. For example, we designed
+Live Translation so that our users’ conversations stay private — they’re processed on device and are never accessible to Apple — and our teams are doing additional engineering work to make
+sure they won’t be exposed to other companies or developers
+either.
+iPhone Mirroring lets our users see and interact with their
+iPhone from their Mac, so they can seamlessly check their
+notifications, or drag and drop photos between devices. Our
+teams still have not found a secure way to bring this feature to
+non-Apple devices without putting all the data on a user’s
+iPhone at risk. And as a result, we have not been able to bring
+the feature to the EU. [...]
+
+
+We’ve suggested changes to these features that would protect our
+users’ data, but so far, the European Commission has rejected our
+proposals. And according to the European Commission, under the
+DMA, it’s illegal for us to share these features with Apple users
+until we bring them to other companies’ products. If we shared
+them any sooner, we’d be fined and potentially forced to stop
+shipping our products in the EU.
+
+
+
Live Translation with AirPods and iPhone Mirroring are both amazing features. And EU users are missing out on them. I think Apple structured this piece exactly right, by emphasizing first that the most direct effect of the DMA is that EU users are getting great features late — or never. And that list of features is only going to grow over time.
+
+
Under the section “Is the DMA Achieving Its Goals?”:
+
+
+ Regulators claimed the DMA would promote competition and give
+European consumers more choices. But the law is not living up to
+those promises. In fact, it’s having some of the opposite effects:
+
+
+Fewer choices : When features are delayed or unavailable, EU
+users don’t get the same options as users in the rest of the
+world. They lose the choice to use Apple’s latest technologies,
+and their devices fall further behind.
+Less differentiation : By forcing Apple to build features and
+technologies for non-Apple products, the DMA is making the
+options available to European consumers more similar. For
+instance, the changes to app marketplaces are making iOS look
+more like Android — and that reduces choice.
+Unfair competition : The DMA’s rules only apply to Apple, even
+though Samsung is the smartphone market leader in Europe, and
+Chinese companies are growing fast. Apple has led the way in
+building a unique, innovative ecosystem that others have copied — to the benefit of users everywhere. But instead of rewarding
+that innovation, the DMA singles Apple out while leaving our
+competitors free to continue as they always have.
+
+
+
+
This is all true. But I have a better way to put this. If Apple were to just switch the iPhone’s OS from iOS to Android, these DMA conflicts would all go away. Apple’s not going to do that, of course, but to me it’s a crystallizing way of looking at it. The DMA is supposedly intended to increase “competition”, which in turn should increase consumer choice. But the easiest way for Apple to comply with the DMA would be to switch EU iPhones to Android — which, by a significant margin, already has majority mobile OS market share in the EU. Here’s a link to StatCounter’s mobile OS stats for Europe (which is not the same as the EU , but as good a proxy as I could find). It’s two-thirds Android, one-third iOS — a 2-1 ratio.
+
+
If Apple just shipped all EU iPhones with Android instead of iOS, all of their DMA problems would be off the table. EU iPhone users would lose all iOS exclusive features and Apple device Continuity integrations. EU consumers would effectively have no choice at all in mobile OSes. They’d just get to choose which brand of Android phone to buy.
+
+
How in the world would that increase competition? iOS’s unique and exclusive features — which, yes, in many cases, are exclusive to the Apple device ecosystem — are competition . ★
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/daringfireball.txt b/Modules/RSCore/Tests/RSCoreTests/Resources/daringfireball.txt
new file mode 100644
index 000000000..e31ad3f4d
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/daringfireball.txt
@@ -0,0 +1 @@
+Daring Fireball By John Gruber Archive The Talk Show Dithering Projects Contact Colophon Feeds / Social Sponsorship Mux — Video API for developers. Build in one sprint or less. Eavesdropping on Internal Networks via Unencrypted Satellites ★ SATCOM Security — a team of researchers from UC San Diego and the University of Maryland: We pointed a commercial-off-the-shelf satellite dish at the sky and carried out the most comprehensive public study to date of geostationary satellite communication. A shockingly large amount of sensitive traffic is being broadcast unencrypted, including critical infrastructure, internal corporate and government communications, private citizens’ voice calls and SMS, and consumer Internet traffic from in-flight Wi-Fi and mobile networks. This data can be passively observed by anyone with a few hundred dollars of consumer-grade hardware. There are thousands of geostationary satellite transponders globally, and data from a single transponder may be visible from an area as large as 40% of the surface of the earth. The researchers don’t mention RCS by name, only SMS, but this a perfect example of why I thought Apple’s original stance on RCS was correct, and their change of heart to support it last year was unfortunate. No new protocol for messaging should be adopted unless the protocol exclusively works using end-to-end encryption. Via Wired: “Satellites Are Leaking the World’s Secrets: Calls, Texts, Military and Corporate Data” (News+ link). When Design Drives Behavior ★ Jason Fried: So what’s the net effect of this tiny little design detail that the owner may not even understand? Well, it looks like the watch is already half-way out of power after the first day, so it encourages the owner to wind the watch more frequently. To keep it closer to topped off, even when it’s not necessary. This helps prevents the watch from running out of power, losing time, and, ultimately, stopping. A stopped watch may be right twice a day, but it’s rarely at the times you want. Small detail, material behavior change. Well considered, well executed, well done. Apple Lowered the Price of the New MacBook Pro for Most of the Eurpopean Countries Where It No Longer Ships With an Included Power Adapter ★ Nick Heer, at Pixel Envy: First of all, the dollar is not the currency in any of these countries. Second, the charger in European countries is €65, which is more like $76 right now. Third, Apple is allowed to bundle an A.C. adapter, it just needs to offer an option to not include it. Practically speaking, though, the EU directive regarding included chargers means Apple won’t include one, and likely no other laptop maker will either. They’d have to create, and stock, double the SKUs for every standard configuration. (If you buy a build-to-order configuration of the M5 MacBook Pro in Europe, you get a choice to include an adapter in the build-to-order workflow for an upcharge. If you buy a standard configuration model, you get the option to purchase a power adapter as a separate accessory.) Fourth, and most important, is that the new MacBook Pro is less expensive in nearly every region in which the A.C. adapter is now a configure-to-order option — even after adding the adapter. [...] Countries with a charger in the box, on the other hand, see no such price adjustment, at least for the ones I have checked. The new M5 model starts at the same price as the M4 it replaces in Canada, Japan, Singapore, and the United States. [...] Maybe Apple was already planning a €100 price cut for these new models. The M4 was €100 less expensive than the M3 it replaced, for example, so it is plausible. That is something we simply cannot know. What we do know for certain is that these new MacBook Pros might not come with an A.C. adapter, but even if someone adds one at checkout, it still costs less in most places with this option. The fact that the new M5 MacBook Pro costs less than the M4 models, even when paying extra to include a new power adapter, leads me to suspect that Apple was planning price cuts in these countries regardless. As Heer points out, Apple cut the price by €100 when the base MacBook Pro went from the M3 to M4 a year ago. (MacBook Air prices have been getting lower worldwide, too.) Anyway, the reason this regulation is subject to ridicule was never that European MacBook buyers were, effectively, paying for a charger that was no longer included. It’s that this is a silly law, and likely causes more harm than good. If Apple thought it was a good idea to no longer include power adapters in the box with MacBooks, they’d just stop including chargers in the box, worldwide. That’s what Apple started doing with iPhones with the iPhone 12 lineup five years ago. That wasn’t because of a law. It was because Apple thought it was a good idea. The problem I see with the MacBook power adapter situation in Europe is that while power users — like the sort of people who read Daring Fireball and Pixel Envy — will have no problem buying exactly the sort of power adapter they want, or simply re-using a good one they already own, normal users have no idea what makes a “good” power adapter. I suspect there are going to be a lot of Europeans who buy a new M5 MacBook Pro and wind up charging it with inexpensive low-watt power adapters meant for things like phones, and wind up with a shitty, slow charging experience. More on the Lack of an Included Charger With New M5 MacBooks in Europe, Including the U.K. and Norway ★ While poking fun at EU regulations leading Apple not to include a power adapter with the new M5 MacBook Pro across Europe, I wondered why the U.K. — which left the EU five years ago — was affected. DF reader CA wrote, via email: We did indeed leave the EU, but remain aligned to some of their standards like food and consumer goods through a thing called the Windsor Framework. Because the UK includes Northern Ireland, which has an open border with the Republic of Ireland, and the RoI is part of the EU, and the border MUST remain open for historical reasons, there has to be a way of ensuring UK goods that don’t meet EU standards don’t enter the EU via Northern Ireland. Hence, we agreed to align to a selection of their standards to ensure the border can stay open. That’s why everything has to be USB-C and power supplies aren’t in the M5 MacBook Pro boxes, but we aren’t affected by the DMA shenanigans — those don’t apply to physical goods, only the configuration of the software. Something similar is surely the reason why the power adapter isn’t in the box for Norway, either — a country that has never been part of the EU. Here’s Wikipedia’s entry on the Windsor Framework, and here’s a UK government “Call for Evidence” from a year ago regarding a requirement to follow the EU’s Common Charger Directive. Kickstarter Campaign for Ben Zotto’s ‘Go Computer Now!’, a Book on Sphere, the Nearly Forgotten Personal Computer Company ★ Ben Zotto: Name every pioneering personal computer you can think of from the 1970s. The MITS Altair 8800. The Apple-1. The IMSAI 8080. You may even know about the SWTPC 6800 or Processor Technology Sol-20. There’s a computer missing from that list, and it’s an important one: Sphere Corporation’s Sphere 1. While far ahead of its competitors in 1975 in what it delivered as an all-in-one PC, Sphere’s manufacturing operations and cash flow lagged immediately behind. The company collapsed so quickly that it was nearly erased from the collective memory of that period. But I know about Sphere. So does Bill Gates! And it just might have sparked a few ideas in Steve Wozniak — though not as many as Sphere’s founder later claimed. I have a story to tell about this remarkable Utah-based company, one that fills in the gaps in other histories of the era, and puts Sphere in the context of the computers we have heard about again and again for a half century. I want to tell you why Sphere was important and worth remembering — and explain why they were forgotten. While first to market with some important technologies, “firsts” are not as interesting as how their visionary, imperfect founder could see around corners. His reach far exceeded his grasp, leading to his early exit and the company’s quick downfall. I’ll admit that before I encountered this Kickstarter campaign (via Glenn Fleishman, who edited the book), I can’t recall ever even hearing about Sphere. Count me in as a backer. How London Became a Global Hub for Phone Theft ★ Lizzie Dearden and Amelia Nierenberg, reporting for The New York Times (gift link): For years, London’s police assumed most of the phone thefts were the work of small-time thieves looking to make some quick cash. But last December, they got an intriguing lead from a woman who had used “Find My iPhone” to track her device to a warehouse near Heathrow Airport. Arriving there on Christmas Eve, officers found boxes bound for Hong Kong. They were labeled as batteries but contained almost 1,000 stolen iPhones. [...] The police are now using that information to map where stolen phones are transported by street thieves. After the Heathrow seizure, a team of specialist investigators who normally deal with firearms and drug smuggling was assigned to the case. They identified further shipments and used forensics to identify two men in their 30s who are suspected of being ringleaders of a group that sent up to 40,000 stolen phones to China. When the men were arrested on Sept. 23, the car they were traveling in contained several phones, some wrapped in aluminum foil in an attempt to prevent them from transmitting tracking signals. At one point, the police said at a news conference, they observed the men buying almost 1.5 miles’ worth of foil in Costco. There’s shopping in bulk at Costco, and then there’s shopping in bulk. Apple and NBCUniversal Introduce the Apple TV and Peacock Bundle ★ Apple Newsroom: Apple and NBCUniversal today announced the launch of the Apple TV and Peacock Bundle, available beginning October 20. The first-of-its-kind bundle offers the services’ complementary array of award-winning originals, marquee live events and sports, beloved franchises, and blockbuster movies, including Ted Lasso, Severance, The Paper, The Traitors, How to Train Your Dragon, the NBA (tipping off October 21 on Peacock), F1 The Movie (coming later this year), and much more, all through one convenient monthly subscription. Customers in the U.S. can save over 30 percent by subscribing to the Apple TV and Peacock Premium bundle for $14.99 per month, or Apple TV and Peacock Premium Plus for $19.99 per month, through either app or website. Apple One subscribers on the Family and Premier plans can subscribe to Peacock Premium Plus and receive a 35 percent discount — the first benefit of its kind for Apple’s all-in-one subscription bundle. Counterpoint Research Claims iPhone 17 Sales Are Up Year-Over-Year in the U.S. and China ★ CNBC: Apple shares rose 4% on Monday as a new report showed iPhone 17 sales off to a strong start in the U.S. and China. The iPhone 17 series, which dropped in September, has outsold the iPhone 16 series by 14% in the U.S. and China within its first 10 days of availability, according to data from Counterpoint Research. Just because a research firms claims iPhone 17 sales are up 14 percent doesn’t mean they are up 14 percent. These are estimates, not hard numbers from Apple — and Apple doesn’t share actual sales numbers with anyone. Some headlines get this right, but most don’t. David Hockney’s Xerox Prints ★ Erin-Atlanta Argun: While Hockney is perhaps best known for his larger-than-life swimming pool paintings, bold coloured acrylics are certainly not his only forte. Contrary to the old saying, Hockney is a jack of all trades and a master of all he has worked with: from paint to iPads. In the late 1980s, his fascination with technology and new ways of creating art led him to the Xerox photocopying machine. The copy machine offered Hockney his speediest technique of printing yet, allowing the artist to build layers, textures and colours like never before. However, it was not only a swift and spontaneous way for Hockney to produce his prints. The tech-savvy artist said that he had a more “philosophical” interest in the Xerox machine as a new iteration of the camera. My post last week arguing that AI is a legitimate tool to create art has, as I expected, generated polarized feedback. One argument several readers have made is that AI generates nothing but plagiarism, copyright infringement, and slop. That’s just not true. If a painter as renowned as David Hockney can use a literal photocopier as an artistic tool, AI can be one too. Photos From Saturday’s ‘No Kings’ Protests Across the U.S. ★ Picking up steam, these protests are. Major AWS Outage ★ Jess Weatherbed, The Verge: A major Amazon Web Services (AWS) outage took down multiple online services for around four hours this morning, including Amazon, Alexa, Snapchat, Fortnite, ChatGPT, Epic Games Store, Epic Online Services, and more. As of 6:35AM ET, the AWS status checker is reporting that “most AWS Service operations are succeeding normally now,” and some of the impacted platforms, including Fortnite, Epic Games Store, and Perplexity have announced that they are fully recovered and back online. However, as of 9:50AM ET, Amazon says that multiple services in the US-EAST-1 Region are still “impacted” by operational issues, and that it is working towards a full resolution. The AWS dashboard first reported issues affecting the US-EAST-1 Region at 3:11AM ET, with global services in other regions also taken offline. The cause of the outage hasn’t been confirmed, and it’s unclear when regular service will be fully restored. I bet it was this AWS outage that explains why I couldn’t sign in to my NYT account to play Wordle this morning. (Got it in 4 today.) Sunday, 19 October 2025 Mux: Video API for Developers ★ My thanks to Mux for sponsoring last week at DF. Modern video should be simple to ship and scale. Mux makes it easy to build live and on-demand video into anything from websites to platforms to AI workflows. Upload a video, get back a playback URL. No transcoding headaches. No CDN setup. Go further with the building blocks of your video: thumbnails, transcripts, and storyboards. Use them to create exactly what you want. Future-proof your video stack with infrastructure trusted by Patreon, Substack, and Synthesia. Get started free, no credit card required. Use the code FIREBALL for an extra $50 usage credit, when you need it. Friday, 17 October 2025 The Base M5 MacBook Pro vs. the M4 MacBook Air ★ A few readers took exception to this bit from my post Wednesday regarding the new M5 MacBook Pro: The base 14-inch model, with the no-adjective M-series chip, is for people who probably would be better served with a MacBook Air but who wrongly believe they “need” a laptop with “Pro” in its name. E.g., Brian Stucki, who wrote on Bluesky: A rare disagree with @gruber.foo here. I’m a cognizant MacBook Pro no-adjective user because the CPU/GPU is more than enough for me. I buy over Air for XDR display Battery life much better speakers SD/HDMI ports I’m glad to have the option without an adjective markup. The main link on this post is to Apple’s ever-excellent Compare page for MacBooks, comparing the $1,000 M4 MacBook Air to the new $1,600 M5 MacBook Pro and, because there’s a third slot, the $2,000 M4 MacBook Pro with the M4 Pro chip. Stucki’s short list nails the actual advantages of the base MacBook Pro compared to the MacBook Air: much better display (1,000 nits vs. 500 nits, with the MBP supporting up to 1,600 nits for HDR content), better speakers, longer battery life, and SD/HDMI ports. Unmentioned by Stucki is that only the MacBook Pro offers the option for a nano-texture matte display for $150. In my defense, I did say “probably” in my post. My understanding is that the base MacBook Pro is a huge seller for Apple. So of course some very well-informed users are buying them for good reasons. But I really do think an awful lot of base MacBook Pro buyers are spending an extra $600 and carrying 0.7 pounds of extra weight for features they don’t actually notice or care about. They just think they need a “pro” laptop, and underestimate just how incredibly capable MacBook Airs are. United States Mint to Release Commemorative $1 Steve Jobs Coin ★ I’m not really into commemorative coins, and I have to say I suspect Steve Jobs wasn’t either, but it’s a nice little recognition. No mention of it from the Mint, but the $1 value of the coin is the same as the salary Jobs drew from Apple. Matthew Belloni Interviews Eddy Cue on ‘The Town’ ★ Speaking of Eddy Cue, he was the guest on Matthew Belloni’s excellent podcast, The Town, this week. (Overcast link.) Just a great interview in general. Cue doesn’t do many interviews but he’s my favorite Apple executive to hear speak, because he’s the least rehearsed and most straightforward. If he doesn’t want to answer a question (Belloni tried, mightily, to press him on subscriber and viewership numbers), Cue just says he’s not going to answer that question, rather than dance around it with a non-answer answer. My two big takeaways: Everyone in Hollywood is spooked about what Apple’s intentions “really are” regarding original movies and series. They’re worried it’s some sort of play to polish Apple’s brand, and that Apple is going to get bored or tired of losing money, and pick up stakes and leave the game. Cue emphasized that the answer is simple: Apple thinks it’s a great business to be in (and he also made the point that Apple’s brand needed no polishing) and they’re in this business for that reason, and for the long haul. Apple is serious about sports rights, but they don’t want to dabble. They want to own the rights to entire sports. Friday Night Baseball was, effectively, a learning experiment. Apple TV’s MLS deal — and the F1 US deal announced today — are the sort of deals Apple wants. (That’s going to make it hard for Apple to get involved with the NFL, because the NFL strategically wants to spread its games across all the major TV networks and streaming services.) Cue is a huge sports fan (as is Tim Cook), and Apple wants to deliver sports on Apple TV that cater to fans. Apple Is the Exclusive New Broadcast Partner for Formula 1 in the U.S. ★ Blockbuster sports streaming news from Apple Newsroom: Apple and Formula 1 today announced a five-year partnership that will bring all F1 races exclusively to Apple TV in the United States beginning next year. [...] Apple TV will deliver comprehensive coverage of Formula 1, with all practice, qualifying, Sprint sessions, and Grands Prix available to Apple TV subscribers. Select races and all practice sessions will also be available for free in the Apple TV app throughout the course of the season. In addition to broadcasting Formula 1 on Apple TV, Apple will amplify the sport across Apple News, Apple Maps, Apple Music, and Apple Fitness+. Apple Sports — the free app for iPhone — will feature live updates for every qualifying, Sprint, and race for each Grand Prix across the season, with real-time leaderboards, season driver and constructor standings, Live Activities to follow on the Lock Screen, and a designated widget for the iPhone Home Screen. F1 TV Premium, F1’s own premier content offering, will continue to be available in the U.S. via an Apple TV subscription only and will be free for those who subscribe. If I’m reading this right, all you need to get access to everything F1-related is an Apple TV subscription (the service formerly known as TV+) and to be in the US. This even includes F1 TV Premium — normally $130/year — which Jason Snell wrote about in a piece I linked to earlier this week. Basically, this sounds like the sort of sports broadcasting deal that Eddy Cue has been talking about as Apple’s goal for years — the rights to the entire sport, free of charge if you’re an Apple TV subscriber. Thursday, 16 October 2025 M5 MacBook Pro Does Not Include a Charger in the Box in Europe ★ Joe Rossignol, MacRumors: The new 14-inch MacBook Pro with an M5 chip does not include a charger in the box in European countries, including the U.K., Ireland, Germany, Italy, France, Spain, the Netherlands, Norway, and others, according to Apple’s online store. In the U.S. and all other countries outside of Europe, the new MacBook Pro comes with Apple’s 70W USB-C Power Adapter, but European customers miss out. Apple has gradually stopped including chargers with many products over the years — a decision it has attributed to its environmental goals. In this case, an Apple spokesperson told French website Numerama’s Nicolas Lellouche that the decision to not include a charger with this particular MacBook Pro was made in anticipation of a European regulation that will require Apple to provide customers with the option to purchase certain devices without a charger in the box, starting in April. I’m not sure why there’s no power adapter in the box in the UK (I double-checked). The cited regulation is for the EU, and the UK, rather famously, left the EU in 2020. But, still, amazing stuff continues to happen in Europe. Matthew Inman of The Oatmeal: ‘A Cartoonist’s Review of AI Art’ ★ Good and thoughtful graphic essay by Matthew Inman, expressing why he dislikes AI-generated art. It’s been widely linked to, largely approvingly. I fundamentally disagree with the premise. Near the start, Inman writes: When I consume AI art, it also evokes a feeling. Good, bad, neutral — whatever. Until I find out that it’s AI art. Then I feel deflated, grossed out, and maybe a little bit bored. This feeling isn’t a choice. I think it very much is a choice. If your opinion about a work of art changes after you find out which tools were used to make it, or who the artist is or what they’ve done, you’re no longer judging the art. You’re making a choice not to form your opinion based on the work itself, but rather on something else. If you refuse to watch Woody Allen movies because of his personal life, that’s a choice, but you’re choosing not to watch some of the best movies that have ever been made. Stanley Kubrick said, “The test of a work of art is, in the end, our affection for it, not our ability to explain why it is good.” If an image, a song, a poem, or video evokes affection in your heart, and then that affection dissipates when you learn what tools were used to create it, that’s not a test of the work of art itself. To me it’s no different than losing affection for a movie only upon learning that special effects were created digitally, not practically. Or whether a movie — or a photograph — was shot using a digital camera or on film. Or whether a novel was written using a computer or with pen and paper. I think most “AI art” today completely sucks. But not because it was made using AI generation tools. It just sucks period. Good art is being made with AI tools, though, and more — much more — is coming. The Just Plain M5 Chip Launches in Three Updated Products: 14-Inch MacBook Pro, iPad Pro (Both Sizes), and Some Sort of Headset Thingamajig Called Vision Pro Wednesday, 15 October 2025 Apple Newsroom, today: Apple today announced M5, delivering the next big leap in AI performance and advances to nearly every aspect of the chip. Built using third-generation 3-nanometer technology, M5 introduces a next-generation 10-core GPU architecture with a Neural Accelerator in each core, enabling GPU-based AI workloads to run dramatically faster, with over 4× the peak GPU compute performance compared to M4. The GPU also offers enhanced graphics capabilities and third-generation ray tracing that combined deliver a graphics performance that is up to 45 percent higher than M4. M5 features the world’s fastest performance core, with up to a 10-core CPU made up of six efficiency cores and up to four performance cores. Together, they deliver up to 15 percent faster multithreaded performance over M4. M5 also features an improved 16-core Neural Engine, a powerful media engine, and a nearly 30 percent increase in unified memory bandwidth to 153GB/s. M5 brings its industry-leading power-efficient performance to the new 14-inch MacBook Pro, iPad Pro, and Apple Vision Pro, allowing each device to excel in its own way. All are available for pre-order today. Some thoughts and observations: 14-Inch MacBook Pro Apple Newsroom: “Apple Unveils New 14‑Inch MacBook Pro Powered by the M5 Chip, Delivering the Next Big Leap in AI for the Mac”. The 14-inch MacBook Pro with the no-adjective M-series chip has always been an odd duck in the MacBook lineup. This “Pro”-but-not-pro spot in the MacBook lineup goes back to the Intel era, when there was a 13-inch MacBook Pro without a Touch Bar. That was the MacBook Pro that, in 2016, Phil Schiller suggested as a good choice for those who were then holding out for a MacBook Air with a retina display. (The first retina MacBook Air didn’t ship for another two years, in late 2018.) It’s more like a MacBook “Pro” than a MacBook Pro. The truly pro-spec’d MacBook Pros have M-series Pro and Max chips, and are available in both 14- and 16-inch sizes. The base 14-inch model, with the no-adjective M-series chip, is for people who probably would be better served with a MacBook Air but who wrongly believe they “need” a laptop with “Pro” in its name. Here’s a timeline of no-adjective M-series chips and when they appeared in the 14-inch MacBook Pro: M1 13-inch MacBook Pro: 10 November 2020. This MacBook Pro was one of the three Macs that debuted with the launch of Apple Silicon — the others were the MacBook Air and Mac Mini. The hardware looked exactly like the last generation Intel MacBook Pro. The M1 Pro and M1 Max models didn’t ship for another year (well, 11 months later), and those models brought with them the new form factor design that’s still with us today with the new M5 MacBook Pro. M2 13-inch MacBook Pro: 6 June 2022. This model also stuck with the older Intel-era form factor, including the 13-inch, not 14-inch, display size. M3 14-inch MacBook Pro: 30 October 2023. The “Scary Fast” event. This model debuted alongside the pro-spec’d M3 Pro and M3 Max 14- and 16-inch models. M4 14-inch MacBook Pro: 30 October 2024. Exactly one year after the M3, and also alongside the M4 Pro and M4 Max models. What was different in 2024 with the M4 generation is that the M4 iPad Pros debuted back in early May, all by themselves. M5 14-inch MacBook Pro: 15 October 2025 (today). What’s different with today’s announcement is that it is not alongside the M5 Pro and M5 Max models, but is alongside the M5 iPad Pros. This raises the question of when to expect those M5 Pro/Max models. The rumor mill suggests “early 2026”. I suspect that’s right, based on nothing other than the fact that if they were going to be announced this year, Apple almost certainly would have announced the entire M5 generation MacBook lineup together. Basically, this is just a speed bump upgrade over the just-plain M4 MacBook Pro. But annual — or at least regular — speed bumps are a good thing. The alternative is years-long gaps between hardware refreshes. iPad Pros Apple Newsroom: “Apple Introduces the Powerful New iPad Pro With the M5 Chip”: Featuring a next-generation GPU with a Neural Accelerator in each core, M5 delivers a big boost in performance for iPad Pro users, whether they’re working on cutting-edge projects or tapping into AI for productivity. The new iPad Pro delivers up to 3.5× the AI performance than iPad Pro with M4 and up to 5.6× faster than iPad Pro with M1. N1, the new Apple-designed wireless networking chip, enables the latest generation of wireless technologies with support for Wi-Fi 7 on iPad Pro. The C1X modem comes to cellular models of iPad Pro, delivering up to 50 percent faster cellular data performance than its predecessor with even greater efficiency, allowing users to do more on the go. I think the N1 wireless chip and C1X modem are more interesting generation-over-generation improvements than the M5 chip. Thanks to the N1, these iPad Pro models support Wi-Fi 7 — today’s new M5 14-inch MacBook Pro does not. I would wager rather heavily that the upcoming M5 Pro and M5 Max MacBook Pro models will support Wi-Fi 7 (probably via the N1 chip, or perhaps even an “N1X” or something). Other than that, this too is a speed bump upgrade. Vision Pro Apple Newsroom: “Apple Vision Pro Upgraded With the M5 Chip and Dual Knit Band”: The upgraded Vision Pro also comes with the soft, cushioned Dual Knit Band to help users achieve an even more comfortable fit, and visionOS 26, which unlocks innovative spatial experiences, including widgets, new Personas, an interactive Jupiter Environment, and new Apple Intelligence features with support for additional languages. The new Dual Knit Band ($99 on its own) looks like a hybrid of the more attractive Solo Knit Band (which did not have a strap that went over the top of your head) and the Dual Loop Band (which did have an over-the-head strap, but which looked somewhat orthopedic). It’s a tacit acknowledgement that physical comfort has been a real problem for many people who’ve tried Vision Pro. (Me, personally, I find using it with the Solo Knit Band comfortable for as long as I care to use it — which is typically just 2–3 hours, tops.) There are over 1 million apps and thousands of games on the App Store, hundreds of 3D movies on the Apple TV app, and all-new series and films in Apple Immersive with a selection of live NBA games coming soon. Translation: Hey, there’s actually a growing library of immersive content to watch, software to use, and games to play for this thing now. With M5, Apple Vision Pro renders 10 percent more pixels on the custom micro-OLED displays compared to the previous generation, resulting in a sharper image with crisper text and more detailed visuals. Vision Pro can also increase the refresh rate up to 120Hz for reduced motion blur when users look at their physical surroundings, and an even smoother experience when using Mac Virtual Display. Vision Pro with M5 works alongside the purpose-built R1 chip, which processes input from 12 cameras, five sensors, and six microphones, and streams new images to the displays within 12 milliseconds to create a real-time view of the world. The high-performance battery now supports up to two and a half hours of general use, and up to three hours of video playback, all on a single charge. It’s merely another speed bump upgrade alongside the other two speed bump upgrades today, but a bit more dramatic given that the Vision Pro is jumping from the M2 to M5. No price drop, no change to the form factor. But Apple’s interest in the platform is very much alive. ★ Wednesday, 15 October 2025 TiVo Stops Selling DVRs ★ Luke Bouma, writing for Cord Cutters: In a seismic shift for the television industry, TiVo Corporation has quietly pulled the plug on its storied digital video recorder line, effectively ending an era that redefined how consumers interacted with broadcast content. As of early October 2025, the company’s official website has scrubbed all references to its hardware DVR products, including the once-revered TiVo Edge models designed for cable subscribers and over-the-air antenna users. Visitors searching for these devices now encounter a streamlined catalog that omits any mention of physical recording hardware, signaling a complete withdrawal from the retail DVR market. This move culminates decades of gradual decline for TiVo’s hardware ambitions, which peaked in the early 2000s when the brand became synonymous with effortless time-shifting of television programming. Launched in 1999, TiVo’s DVRs introduced features like one-touch recording, commercial skipping, and intuitive search capabilities that made traditional TV schedules feel obsolete. At its zenith, the company boasted millions of subscribers, forcing cable providers and networks to adapt to empowered viewers who could pause live broadcasts or binge-watch at will. The TiVo Edge, introduced in 2021 as a hybrid device supporting both cable cards and streaming, represented the final evolution of this hardware legacy, blending OTA tuners with 4K support and expanded storage options. Yet, even as it garnered praise for superior interface design and reliability, sales dwindled amid the cord-cutting revolution. The writing has been on the wall for years. We’ve been a TiVo house for 25 years, but their hardware has gotten worse over the years. I forget what our second-to-last TiVo model was, but it died in 2021, and we bought a TiVo Edge. The Edge was often unreliable, and sometimes needed weekly reboots to keep working. (System software updates eventually fixed that.) But the hardware failed this summer. We’d only had it four years. And, the Edge system software UI was a disaster, and a huge regression from the old TiVo interface. Almost everything was worse in the new “modern” TiVo interface from the old one: navigating shows you’d already recorded, the live-right-now TV guide, the interface for setting up a show to record — all of that went from really good and intuitive to clunky and confusing and slow. The one and only thing our TiVo Edge remained excellent at was playback. Fast-forwarding, rewinding, pausing — nothing else compares to TiVo for that. Even Apple’s own TV app on an Apple TV box doesn’t fast-forward or rewind with anything close to the precision and low latency TiVo’s devices have always offered. My first TiVo from 25 years ago had better fast-forward and rewind than anything on Apple TV (let alone other, lesser streaming boxes) today. But the overall TiVo experience has been so bad — and getting worse — for so long that I’m not sad at all that they’re getting out of the game. TiVo’s one job was to provide a best-of-breed experience and they lost the plot on that a decade ago. Fuck ’em. ‘Halo Fund Announces Strategic Secondary Investment in 1Password’ ★ Halo Fund: Halo Fund, a new $1 billion growth fund founded by Ryan Smith and Ryan Sweeney, today announced a strategic secondary investment in 1Password, a leader in identity security and pioneer of Extended Access Management. Halo Fund is joined in this investment by legendary technology leaders, including Flume Ventures with Sun Microsystems founder Scott McNealy and former Zscaler Chief Strategy Officer Manoj Apte. This transaction underscores strong demand from innovators and investors to join 1Password’s journey. Well I’m sure this will halt 1Password’s descent into enterprise/cross-platform shittiness. Tuesday, 14 October 2025 ‘How to Turn Liquid Glass Into a Solid Interface’ ★ Adam Engst, at TidBITS: Apple’s new Liquid Glass interface design brings transparency and blur effects to all Apple operating systems, but many users find it distracting or difficult to read. Here’s how to control its effects and make your interface more usable. Although the relevant Accessibility settings are quite similar across macOS, iOS, watchOS, and tvOS, I separate them because they offer different levels of utility in each. Comprehensive, illustrated overview of the various Accessibility settings (and, on MacOS 26 Tahoe, hidden command-line defaults settings) that let you adjust the transparency and contrast of Liquid Glass across the various Apple OS 26 interfaces. A useful guide for today — and, I bet, a useful look back at the first versions of Liquid Glass for the future. ‘Looking for the Red Flags in Apple’s Formula 1 TV Deal’ ★ Jason Snell, at Six Colors: The entire point of a streaming-only product is that once you’re off traditional TV, you can go beyond the single stream and provide interactive options. The whole point of streaming TV, especially sports, should be that you can leave the flat video stream behind and build something cool using software. That is, by the way, what F1 TV Pro is: A sophisticated bit of software that merges track data with multiple cameras to let viewers choose how they want to watch races. It’s absolutely the product that Apple should aspire to build, or co-opt, in this deal. I understand that Formula 1 owner Liberty Media is reluctant to lose a profit center, but if Apple’s paying them an extra $50 million, isn’t that the proper trade-off? Also, working with Apple in the U.S. could be part of a longer-term tech partnership between F1 and Apple that could extend worldwide. I don’t really care about Apple obtaining sports streaming rights if all they’re going to do is stream a traditional linear broadcast of the games/events/races. I want to see Apple do the Apple thing and think deeply about what a software-based broadcast can be and offer — and then create it. So, to me, Apple’s Friday Night Baseball has been a wash. It’s a good broadcast (that, rumors suggest, may be coming to an end), but it’s just a good traditional baseball broadcast. It could be on any streaming service. The only Apple-y aspects are the designs and typography of the on-screen graphics and scorebug. I want something like F1 TV Pro, but for baseball — and eventually, for all sports. Monday, 13 October 2025 Apple Renames ‘Apple TV+’ to ‘Apple TV’ ★ At the bottom of Apple’s press release announcing that F1 The Movie will be available for streaming on December 12: Apple TV+ is now simply Apple TV, with a vibrant new identity. Ahead of its global streaming debut on Apple TV, the film continues to be available for purchase on participating digital platforms, including the Apple TV app, Amazon Prime Video, Fandango at Home and more. About Apple TV Apple TV is available on the Apple TV app in over 100 countries and regions, on over 1 billion screens, including iPhone, iPad, Apple TV, Apple Vision Pro, Mac, popular smart TVs from Samsung, LG, Sony, VIZIO, TCL and others, Roku and Amazon Fire TV devices, Chromecast with Google TV, PlayStation and Xbox gaming consoles, and at tv.apple.com, for $12.99 per month with a seven-day free trial for new subscribers. In some ways, I get it. Like, if you’re telling someone how much you enjoy Slow Horses and they ask how to watch it, it’s more natural and conversational to just say “It’s on Apple TV”. That’s what most people say. That’s what I say — and as part of my job, I completely understand the difference between Apple TV the device, Apple TV the (free) app, and Apple TV+ the (paid) streaming service. But right there in Apple’s own “About Apple TV” description, you see just how overused “Apple TV” now is. You can watch Apple TV in Apple TV on Apple TV — the paid service in the free app on the set-top box. But you can watch any streaming service you want on the box, in that service’s own app. But many of those services are also available in the Apple TV app. And the Apple TV streaming service is also available on just about all other popular set-top hardware platforms. So you don’t need an Apple TV to watch Apple TV. It’s a bit like Abbott and Costello’s classic “Who’s on First” routine. Apple Announces the End-of-Life for Clips ★ Apple Support: The Clips app is no longer being updated, and will no longer be available for download for new users as of October 10, 2025. You can continue to use Clips on iOS 26 and iPadOS 26 or earlier. Clips is such an interesting story. It really was a great app. Back in 2017, when version 2.0 arrived (just six months after 1.0), I described it as “the single best example of a productivity app designed for iOS”. I stand by that. Clips was a very ambitious app that really pushed the state of the art in iOS UI design forward in so many ways. The general knock on iOS has always been that it’s a platform for content consumption, not creation. Clips was all about creation. But, for as many great ideas as Clips contained (and debuted), it clearly never clicked with the public. Most people — even just only counting people who create and share edited videos to social media — probably have never even heard of Clips. There was something essential missing: a use case. Edits, Meta’s new-this-year video editing app for mobile, has a clear use case: it’s meant for editing videos destined for Meta’s popular social media networks. Clips had no clear target destination. It could have, but never did. The World’s Largest, Most Disruptive Botnet Is Exploiting Compromised Internet-of-Things (IoT) Devices ★ Brian Krebs: The world’s largest and most disruptive botnet is now drawing a majority of its firepower from compromised Internet-of-Things (IoT) devices hosted on U.S. Internet providers like AT&T, Comcast and Verizon, new evidence suggests. Experts say the heavy concentration of infected devices at U.S. providers is complicating efforts to limit collateral damage from the botnet’s attacks, which shattered previous records this week with a brief traffic flood that clocked in at nearly 30 trillion bits of data per second. Since its debut more than a year ago, the Aisuru botnet has steadily outcompeted virtually all other IoT-based botnets in the wild, with recent attacks siphoning Internet bandwidth from an estimated 300,000 compromised hosts worldwide. I guess those people who were declaring a decade ago that the Internet of Things would change the world were right. Before Taking the Guns Out of the Bond Posters, Amazon Prime Bowdlerized the Poster for ‘Full Metal Jacket’ ★ I missed this story back in 2024, but it’s the same infuriating impulse toward infantilization as with the Bond posters this month. Amazon restored the correct poster art for Full Metal Jacket, but they didn’t learn the lesson: don’t fuck with art. Let’s Check in on the Mad King’s Spiral Into Dementia ★ The president of the United States, yesterday on his blog: THE BIDEN FBI PLACED 274 AGENTS INTO THE CROWD ON JANUARY 6. If this is so, which it is, a lot of very good people will be owed big apologies. What a SCAM - DO SOMETHING!!! President DJT No president, of course, can be expected to remember everything that happened during his four-year term. But Trump, of course, was still president on January 6, and the events that day were — to say the least — historically significant. The entire point of the January 6 insurrection — for his role in which, Trump was impeached — was to prevent Joe Biden from becoming president on January 20. The man is obviously unwell. Saturday, 11 October 2025 Drata ★ My thanks to Drata for once again sponsoring DF. Their message is short and sweet: Automate compliance. Streamline security. Manage risk. Drata delivers the world’s most advanced Trust Management platform. Apple Has Indefinitely Postponed Jessica Chastain’s Apple TV+ Thriller ‘The Savant’, for Political Reasons ★ Nellie Andreeva, reporting for Deadline back on September 23: The release of Apple TV+’s The Savant has been put on hold. The decision comes three days before the thriller starring Jessica Chastain was slated to premiere on the streamer Sept. 26. No new date has been set. “After careful consideration, we have made the decision to postpone The Savant,” an Apple TV+ spokesperson said in a statement to Deadline. “We appreciate your understanding and look forward to releasing the series at a future date.” The streamer would not elaborate on the reasons for the last-minute change but The Savant’s subject matter is believed to be behind it, with the storyline about preventing extremist attacks and some of the imagery considered possibly triggering following the Sept. 10 assassination of right-wing political activist Charlie Kirk. The series includes a sniper in action and the bombing of a government building among other acts of violence. Jessica Chastain, in a post on Instagram later that same day: I want to say how much I value my partnership with Apple. They’ve been incredible collaborators and I deeply respect their team. That said, I wanted to reach out and let you know that we’re not aligned on the decision to pause the release of The Savant. [...] I’ve never shied away from difficult subjects, and while I wish this show wasn’t so relevant, unfortunately it is. The Savant is about the heroes who work every day to stop violence before it happens, and honoring their courage feels more urgent than ever. While I respect Apple’s decision to pause the release for now, I remain hopeful the show will reach audiences soon. Until then, I’m wishing safety and strength for everyone, and I’ll let you know if and when The Savant is released. Here we are nearly three weeks later, and it’s still a question of if, not when — Apple TV’s page for The Savant still has it labeled “Coming: At a Later Date”. Saul Zabar, Smoked Fish Czar of Upper West Side, Dies at 97 ★ Clyde Haberman, The New York Times: Saul Zabar, who across more than seven decades as a principal owner of the Upper West Side food emporium bearing his family name kept New Yorkers amply fortified with smoked fish, earthy bread and tangy cheese, not to mention pungent coffee, died on Tuesday in Manhattan. He was 97. [...] What did he look for in a fish? His response to The New York Sun in 2007 was worthy of a cryptic Zen master: “It’s got to have taste. Not too this, not too that.” But he was clear about his store’s iconic status. “There’s a romance about what we do,” he said in 2012. “We have a modern appearance, but we really do things the way they were done 40, 50, 75, even 200 years ago.” [...] “We get asked often why we don’t franchise, because we have a lot of branded products,” he told the magazine Edible Manhattan in 2022. “Money is not why we do this, not why we’re here seven days a week,” he said. “It’s a way of life for us. It’s kind of old-fashioned.” Many people claim that they’re not in it for the money. Only some of them mean it. And those are the most interesting, and often most beloved, people in the world. Amazon Hamfistedly Removed the Guns From Prime’s James Bond Movie Posters ★ Garth Franklin, writing at Dark Horizons: Amazon has quietly walked back new James Bond thumbnail artwork on its Prime Video service following controversy over digital alterations to the original art. As reported here yesterday, the art was unveiled on the weekend to coincide with James Bond Day celebrations on Sunday. Bond fans quickly noticed that the artwork had undergone some amateur photoshopping, which either cropped or airbrushed out his signature Walther PPK gun from the original image in a variety of ways. The results were widely derided on social media; films like Dr. No and Goldeneye appeared to have Bond making a rude gesture, while others like A View to a Kill elongated Roger Moore’s arms well past the point of any human. The updated ones just kinda suck. Amazon’s original “new” posters were downright hilariously bad. This bodes poorly for the Bond franchise’s future. Friday, 10 October 2025 Apple Newsroom on the Immersive Vision Pro Lakers Broadcasts ★ Apple Newsroom: In addition to live games for fans in the Lakers’ regional broadcast territory — which covers Southern California, Hawaii, and parts of southern Nevada, including Las Vegas — full game replays and highlights will be available to Apple Vision Pro users in select countries and regions from both the SportsNet and NBA apps. These live games will be captured using the new URSA Cine Immersive Live camera from Blackmagic Design, a version of the camera that launched earlier this year to capture Apple Immersive for Vision Pro, and will be available for purchase next year. I didn’t catch yesterday that these immersive broadcasts would only be available live within the Lakers’ local broadcast territory, which stinks, but alas, makes sense given how sports broadcasting rights work. Thursday, 9 October 2025 Some Lakers Games This Season Will Be Broadcast Live in Immersive Video for Vision Pro ★ Jacob Krol, writing for Techradar: We’ve seen a broad range of content, but I’ve been waiting for something live — specifically, live sports. Seeing that Apple TV+’s Friday Night Baseball is capturing games with the iPhone 17 Pro and 17 Pro Max gave me some hope, and now we have a confirmed release. In what might be the start of something new, select Los Angeles Lakers games will be live-streamed in Apple Immersive for the Vision Pro this coming season. It’s not every game, but for those that are streaming — exclusive to the $3,500 Spatial Computer — you’ll get access to views that put you right in the middle of the action. Special cameras that support the format will be set courtside and under each basket to give you perspectives that amp up the immersion. The Lakers’ games will be shot using a special version of Blackmagic Design’s URSA Cine Immersive Live camera. Kind of weird, to me, that it wasn’t Apple’s own Friday Night Baseball broadcasts first, but I can’t wait to try this. Apple’s Justification for Removing DeICER From the App Store ★ Pablo Manríquez, reporting for Migrant Insider: Apple has quietly removed DeICER, a civic-reporting app used to log immigration enforcement activity, from its App Store after a law enforcement complaint — invoking a rule normally reserved for protecting marginalized groups from hate speech. According to internal correspondence reviewed by Migrant Insider, Apple told developer Rafael Concepcion that the app violated Guideline 1.1.1, which prohibits “defamatory, discriminatory, or mean-spirited content” directed at “religion, race, sexual orientation, gender, national/ethnic origin, or other targeted groups.” But Apple’s justification went further. “Information provided to Apple by law enforcement shows that your app violates Guideline 1.1.1 because its purpose is to provide location information about law enforcement officers that can be used to harm such officers individually or as a group,” the company wrote in its removal notice. The decision effectively treats federal immigration agents as a protected class — a novel interpretation of Apple’s hate-speech policy that shields one of the most powerful arms of government from public scrutiny. Delicate flowers, these ICE agents are. And it’s a lie, anyway. There’s not one story about any of these apps being used to harm ICE agents. And even if such an attack happened, that wouldn’t imply it’s the purpose of these apps. The purpose of these apps is to protect people — citizens and non-citizens alike — from ICE. Alas, there’s no more courage, conviction, or honesty from Google on the Android side of the fence either. It’d be both interesting and honest if either Apple or Google justified these app bannings by simply saying the Trump administration demanded them and that they — Apple and Google — fear reprisal from Trump if they don’t comply. Apple Banned an App That Simply Archived Videos of ICE Abuses ★ Joseph Cox, reporting for 404 Media: Apple removed an app for preserving TikToks, Instagram reels, news reports, and videos documenting abuses by ICE, 404 Media has learned. The app, called Eyes Up, differs from other banned apps such as ICEBlock which were designed to report sightings of ICE officials in real-time to warn local communities. Eyes Up, meanwhile, was more of an aggregation service pooling together information to preserve evidence in case the material is needed in the future in court. The news shows that Apple and Google’s crackdown on ICE-spotting apps, which started after pressure from the Department of Justice against Apple, is broader in scope than apps that report sightings of ICE officials. It has also impacted at least one app that was more about creating a historical record of ICE’s activity during its mass deportation effort. “Our goal is government accountability, we aren’t even doing real-time tracking,” the administrator of Eyes Up, who said their name was Mark, told 404 Media. Mark asked 404 Media to only use his first name to protect him from retaliation. “I think the [Trump] admin is just embarrassed by how many incriminating videos we have.” Sometimes consistency is a bad thing. Wednesday, 8 October 2025 Apple Faces French Investigation Over Opt-In Siri Voice Recordings ★ Benoit Berthelot and Gaspard Sebag, reporting for Bloomberg: Apple Inc. faces an investigation in France over the use of voice recordings made with its assistant Siri. The probe has been referred to the Office for Combating Cybercrime, the Paris prosecutor’s office said in a statement on Monday. An Apple spokesperson referred to a blog post the company published in January about its use of voice recordings, and declined to comment further. Politico earlier reported the investigation. The investigation concerns Apple’s collection of user recordings through Siri, the digital assistant available on most of its devices. Apple can record and retain audio interactions through Siri to help improve its services, a feature the company says is opt-in. Some of that data can be retained for up to two years and reviewed by “graders”, or subcontractors, according to Apple. Sending recorded Siri voice interactions to Apple is opt-in, and the opt-in screen is very clear and cogent. It’s not just something Apple claims. Amazing stuff continues to happen in the EU. Katie Notopoulos on the Difference Between Sora and Meta Vibes ★ Katie Notopoulos, on Threads: Me looking at Vibes feed: this is screensaver. So boring. Why would anyone want it? Me looking at videos I made of my own face in Sora 2: heheh I love this it’s funny it’s ME. My feelings exactly. I even like staring at screensavers sometimes. But the screensavers I like watching are Apple’s aerial (and occasionally, underwater) screensavers on Apple TV. They’re slow, peaceful, and real. Vibes is chaotic, fast, and phony. ‘Sora’s Slop Hits Different’ ★ MG Siegler, writing at Spyglass: I think that’s the real revelation here. It’s less about consumption and more about creation. I previously wrote about how I was an early investor in Vine in part because it felt like it could be analogous to Instagram. Thanks in large part to filters, that app made it easy for anyone to think they were good enough to be a photographer. It didn’t matter if they were or not, they thought they were — I was one of them — so everyone posted their photos. Vine felt like it could have been that for video thanks to its clever tap-to-record mechanism. But actually, it became a network for a lot of really talented amateurs to figure out a new format for funny videos on the internet. When Twitter acquired the company and dropped the ball, TikTok took that idea and scaled it (thanks to ByteDance paying um, Meta billions of dollars for distribution, and their own very smart algorithms). In a way, Sora feels like enabling everyone to be a TikTok creator. I don’t want to predict if Sora is a fad or has staying power, but so far I enjoy it in a way that I haven’t enjoyed a new social network in years. It’s just fun to dash off a stupid video with no more work than a quick text prompt, and the friends I’m following are making some damn funny clips every day. Nobel Prize in Physics Is Awarded for Work in Quantum Mechanics ★ The New York Times: John Clarke, Michel H. Devoret and John M. Martinis were awarded the Nobel Prize in Physics on Tuesday in Sweden for showing that two properties of quantum mechanics, the physical laws that rule the subatomic realm, could be observed in a system large enough to see with the naked eye. “There is no advanced technology today that does not rely on quantum mechanics,” Olle Eriksson, chairman of the Nobel Committee for Physics, said during the announcement of the award. The laureates’ discoveries, he added, paved the way for technologies like the cellphone, cameras and fiber optic cables. It also helped lay the groundwork for current attempts to build a quantum computer, a device that could compute and process information at speeds that would not be possible with classical computers. Can you believe these woke dopes gave this award to three people, and not one of them is Donald Trump? Tuesday, 7 October 2025 What’s New or Changed in iOS 26.1 Beta 2 ★ Ryan Christoffel, 9to5Mac: Alarms and timers are now harder to dismiss thanks to a new ‘Slide to stop’ gesture. Both alarms and timers were updated in iOS 26 to utilize a new design with much larger on-screen buttons than before. Now in iOS 26.1 beta 2, Apple has replaced the ‘Stop’ button with a new sliding gesture that requires a little more intentionality. This should make accidental alarm dismissals more rare. That’s one of several changes that caught my eye. Seems like a great idea. Another notable change: Slide Over returns to iPadOS. See also: Juli Clover’s rundown of changes in iOS 26.1 beta 2 for MacRumors. Complying With ‘Demand’ From Trump Administration, Apple Removes ICEBlock From App Store Friday, 3 October 2025 Ashley Oliver, reporting for Fox Business: DOJ officials, at the direction of Attorney General Pam Bondi, asked Apple to take down ICEBlock, a move that comes as Trump administration officials have claimed the tool, which allows users to anonymously report ICE agents’ presence, puts agents in danger and helps shield illegal immigrants. “We reached out to Apple today demanding they remove the ICEBlock app from their App Store — and Apple did so,” Bondi said in a statement to Fox News Digital. “ICEBlock is designed to put ICE agents at risk just for doing their jobs, and violence against law enforcement is an intolerable red line that cannot be crossed,” Bondi added. “This Department of Justice will continue making every effort to protect our brave federal law enforcement officers, who risk their lives every day to keep Americans safe.” Fox, in its opening paragraph, describes Bondi as having “asked” Apple to remove ICEBlock from the App Store, but Bondi’s own statement uses the verb “demand”. The difference is not nitpicking. No one, not even Bondi, is claiming any aspect of ICEBlock is illegal. Thus it’s not merely inappropriate but outrageous — and yet another among dozens of other causes for alarm regarding Trump 2.0’s decidedly authoritarian turn — for the DOJ to “demand” that Apple do anything about it. But demand they did, and comply did Apple. (Check those lips for Cheetos dust before heading home today.) Katherine Tangalakis-Lippert, Peter Kafka, and Kwan Wei Kevin Tan, reporting for Business Insider: Apple has removed ICEBlock, an app that allowed users to monitor and report the location of immigration enforcement officers, from the App Store. “We created the App Store to be a safe and trusted place to discover apps,” Apple said in a statement to Business Insider. “Based on information we’ve received from law enforcement about the safety risks associated with ICEBlock, we have removed it and similar apps from the App Store.” ICEBlock developer Joshua Aaron, posting on the ICEBlock Bluesky account: We just received a message from Apple’s App Review that #ICEBlock has been removed from the App Store due to “objectionable content”. The only thing we can imagine is this is due to pressure from the Trump Admin. We have responded and we’ll fight this! #resist There is clearly nothing illegal about ICEBlock.1 It’s just information, obviously protected by the First Amendment. Law enforcement officers in the United States have no right to avoid being recorded nor their actions being reported and shared. Reporting and publishing where police are policing is free speech and fundamental to the civil rights and liberties of a free society. We can all wish Apple had fought this “demand”. I certainly do. John Oliver’s “Fuck you, make me” argument sprung to mind for me this morning. But that’s wishful thinking. I believe there are many lines Apple would not cross, even if it means taking on the ire of Trump administration lickspittles, if not the barely literate wrath of the mad king himself on his sad little blog. Apple may well eventually — if not soon — be forced to define those lines. But keeping ICEBlock in the App Store isn’t one of them. You might believe it should be. There’s a big part of me that believes it should be. But I can also see why it’s not. Pick your battles. I wrote about ICEBlock twice back in late July. Quoting extensively from my initial post: The ICEBlock app is interesting in and of itself (and from my tire-kicking test drive, appears to be a well-crafted and designed app), as will be Apple’s response if (when?) the Trump administration takes offense to the app’s existence. Back in 2019, kowtowing to tacit demands from China, Apple removed from the App Store an app called HKmap.live which helped pro-democracy activists in Hong Kong know the location of police and protest activity. The app broke no Hong Kong laws, but scared the thin-skinned skittish lickspittles in the Chinese Communist Party. (Remember too that in 2019, Apple removed the Taiwan flag emoji (🇹🇼) from the iOS 13 keyboard for users in Hong Kong and Macau.) One defense from Apple regarding HKmap.live, however, was that the iOS app was a thin wrapper around the website, which website remained fully functional and could be saved to an iPhone user’s home screen. Removing the app from the App Store thus did not prevent Hongkongers from accessing it. (That website today seems to be defunct.) ICEBlock is different. It is only available as a native iOS app. According to the developers, this is for technical reasons. From their web page explaining why they can’t offer an Android version: At ICEBlock, user privacy and security are paramount. Our application is designed to provide as much anonymity as possible without storing any user data or creating accounts. While we understand the desire for an Android version of ICEBlock, achieving this level of anonymity on Android is not feasible due to the inherent requirements of push notification services. To send push notifications on Android, it is necessary to use a mechanism that requires storing device IDs. This means that we would need to maintain a privately hosted database to store these identifiers. Storing such data, even if it’s anonymized, introduces significant privacy risks. [...] In contrast, iOS offers us the flexibility to deliver push notifications while adhering strictly to our design philosophy. Apple’s ecosystem allows for push notifications to be sent without requiring us to store any user-identifiable information. This ensures that ICEBlock remains completely anonymous and secure. To deliver push notifications on Android, the developers claim they would need to maintain a database of device IDs, create a user account system to manage those device IDs, and all of that server-stored data would be susceptible to law enforcement subpoenas and pro-ICE red hat hackers. (What “brown shirts” were to the Nazis, we should make “red hats” to MAGA.) To maintain anonymity and store zero user data, there is and can be no web app version of ICEBlock. There is and can be no Android version. Only iOS supports the security and privacy features for ICEBlock to offer what it does, the way it does. Here’s to hoping that Apple will proudly defend it if push comes to shove. Apple’s removal of ICEBlock from the App Store is, in multiple ways, worse than Apple’s removal of HKmap.live from the App Store back in 2019. First, you cannot take a disagreement with the Chinese government to court. Here in the United States, you can. But Apple chose not to. That’s a display of weakness. Second, from the perspective of users, without the HKmap.live “app”, Hong Kong iPhone users could still access all the functionality via the website, and the website could be saved to their home screens as a web app that was, I believe, functionally identical to the version from the App Store. I put “app” in quotes above because the HKmap.live app was really just a thin wrapper around the service’s mobile website. Hongkongers lost some convenience, and they lost the ability to tell non-technical protestor friends “just get it from the App Store”, but it’s not that much more complex to explain how to add a website to your iPhone home screen as a web app. With ICEBlock, the entire thing is simply no longer available. If you already have ICEBlock installed, the installed version still functions on your iPhone, but, until and if Apple changes its mind, there will be no further software updates and new users are unable to download it. Nor will current users be able to re-download the app on a new iPhone — and now is “new iPhone” season. And, seemingly, there can be no web app (or Android) version of ICEBlock that offers the same level of anonymity as the native iOS version — with notifications, but without user accounts nor any database of device IDs for notifications that would be subject to subpoena from ICEBlock. The gist of my second post on ICEBlock from back in July is that ICEBlock’s privacy-protecting architecture isn’t magic. It’s based on trust in Apple itself. Joshua Aaron doesn’t have access to ICEBlock users’ device IDs (let alone their personal identities), but ICEBlock can send push notifications to devices because Apple itself does know device IDs and users’ identities. It’s rather chilling to consider what Apple would have done if the Trump administration had “demanded” a list of device IDs and user identities for everyone who had installed ICEBlock. Or what Apple will do if such a demand pops into one of their dimwitted but cruel minds.2 I suspect that’s one of the lines Apple would not cross. That Apple would stand its ground there and say “Fuck you, make us” and take it to court. But there’s only one way to find out. ★ It’s interesting to consider how Aaron might “fight this”. I don’t think suing the Department of Justice is an option. All Pam Bondi did was issue a “demand” to Apple. That’s inappropriate and an embarrassment, and in any normal administration would be just cause for her immediate dismissal from the job. But it’s not against the law. She didn’t issue an unconstitutional legal demand to Apple. She just issued a verbal request with an implicit threat of turning the nation’s MAGA derps and Fox News junkies against Apple. What Apple was afraid of wasn’t fighting this demand in a court of law, but in the court of public opinion. So maybe Aaron sues Apple? I’m not sure he has grounds for that either, but it’d be interesting to see Apple’s lawyers argue in court that the App Store is no place for apps that protect users’ civil liberties and personal privacy. ↩︎︎ A few people have already asked me why it took the Trump administration several months to put ICEBlock in its crosshairs and issue a takedown “demand” to Apple. Aaron shipped the first release of ICEBlock back in April, and it achieved a significant amount of well-deserved publicity in July after Trump’s ICE goons began large-scale deportation raids in Los Angeles. My answer is simple: it took them months to issue this demand because they’re so goddamn stupid and incompetent. We should be thankful for that. In a competent regime attempting an authoritarian takeover of a liberal democracy, it would have been taken down in days, not months. ↩︎ Apple on the Digital Markets Act Friday, 26 September 2025 Apple, “The Digital Markets Act’s Impacts on EU Users”: The DMA requires Apple to make certain features work on non-Apple products and apps before we can share them with our users. Unfortunately, that requires a lot of engineering work, and it’s caused us to delay some new features in the EU: Live Translation with AirPods uses Apple Intelligence to let Apple users communicate across languages. Bringing a sophisticated feature like this to other devices creates challenges that take time to solve. For example, we designed Live Translation so that our users’ conversations stay private — they’re processed on device and are never accessible to Apple — and our teams are doing additional engineering work to make sure they won’t be exposed to other companies or developers either. iPhone Mirroring lets our users see and interact with their iPhone from their Mac, so they can seamlessly check their notifications, or drag and drop photos between devices. Our teams still have not found a secure way to bring this feature to non-Apple devices without putting all the data on a user’s iPhone at risk. And as a result, we have not been able to bring the feature to the EU. [...] We’ve suggested changes to these features that would protect our users’ data, but so far, the European Commission has rejected our proposals. And according to the European Commission, under the DMA, it’s illegal for us to share these features with Apple users until we bring them to other companies’ products. If we shared them any sooner, we’d be fined and potentially forced to stop shipping our products in the EU. Live Translation with AirPods and iPhone Mirroring are both amazing features. And EU users are missing out on them. I think Apple structured this piece exactly right, by emphasizing first that the most direct effect of the DMA is that EU users are getting great features late — or never. And that list of features is only going to grow over time. Under the section “Is the DMA Achieving Its Goals?”: Regulators claimed the DMA would promote competition and give European consumers more choices. But the law is not living up to those promises. In fact, it’s having some of the opposite effects: Fewer choices: When features are delayed or unavailable, EU users don’t get the same options as users in the rest of the world. They lose the choice to use Apple’s latest technologies, and their devices fall further behind. Less differentiation: By forcing Apple to build features and technologies for non-Apple products, the DMA is making the options available to European consumers more similar. For instance, the changes to app marketplaces are making iOS look more like Android — and that reduces choice. Unfair competition: The DMA’s rules only apply to Apple, even though Samsung is the smartphone market leader in Europe, and Chinese companies are growing fast. Apple has led the way in building a unique, innovative ecosystem that others have copied — to the benefit of users everywhere. But instead of rewarding that innovation, the DMA singles Apple out while leaving our competitors free to continue as they always have. This is all true. But I have a better way to put this. If Apple were to just switch the iPhone’s OS from iOS to Android, these DMA conflicts would all go away. Apple’s not going to do that, of course, but to me it’s a crystallizing way of looking at it. The DMA is supposedly intended to increase “competition”, which in turn should increase consumer choice. But the easiest way for Apple to comply with the DMA would be to switch EU iPhones to Android — which, by a significant margin, already has majority mobile OS market share in the EU. Here’s a link to StatCounter’s mobile OS stats for Europe (which is not the same as the EU, but as good a proxy as I could find). It’s two-thirds Android, one-third iOS — a 2-1 ratio. If Apple just shipped all EU iPhones with Android instead of iOS, all of their DMA problems would be off the table. EU iPhone users would lose all iOS exclusive features and Apple device Continuity integrations. EU consumers would effectively have no choice at all in mobile OSes. They’d just get to choose which brand of Android phone to buy. How in the world would that increase competition? iOS’s unique and exclusive features — which, yes, in many cases, are exclusive to the Apple device ecosystem — are competition. ★ Display Preferences Copyright © 2002–2025 The Daring Fireball Company LLC.
\ No newline at end of file
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/inessential.html b/Modules/RSCore/Tests/RSCoreTests/Resources/inessential.html
new file mode 100644
index 000000000..0e5185a42
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/inessential.html
@@ -0,0 +1,386 @@
+
+
+
+ inessential: weblog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Tim Bray writes , on Mastodon, I think correctly:
+
+
+ The canceling of ICEBlock is more evidence, were any needed, that the Web is the platform of the future, the only platform without a controlling vendor. Anything controversial should be available through a pure browser interface.
+
+
+
This is not the first time I’ve had reason to think about this — I think about issues of tech freedom every day, and I still bristle, after all these years (now more than ever), at having to publish NetNewsWire for iOS through the App Store. (The Mac version has no such requirement — it’s available via the website , and I have no plans to ever offer it via the Mac App Store.)
+
+
But what if I wanted to do a web app, in addition to or instead of a native app?
+
+
I can picture a future, as I bet you can, where RSS readers aren’t allowed on any app store, and we’re essentially required to use billionaire-owned social media and platform-owned news apps.
+
+
But there are issues with making NetNewsWire a web app.
+
+
Money
+
+
I explain in this post that NetNewsWire has almost no expenses at all. The biggest expense is my Apple developer membership, and I pay just a little bit to host some websites. It adds up to a couple hundred bucks a year.
+
+
If it were a web app instead, I could drop the developer membership, but I’d have to pay way more money for web and database hosting. Probably need a CDN too, and who knows what else. (I don’t have recent web app experience, so I don’t even know what my requirements would be, but I’m sure they’d cost substantially more than a couple hundred bucks a year.)
+
+
I could charge for NetNewsWire, but that would go against my political goal of making sure there’s a good and free RSS reader available to everyone.
+
+
I could take donations instead, but that’s never going to add up to enough to cover the costs.
+
+
And in either case I’d have to create a way to take money and start up some kind of entity and then do bookkeeping and report money things to the right places — all stuff I don’t have to waste time on right now. I can just work on the app.
+
+
Alternately I could create a web app that people would self-host — but there’s no way I could handle the constant support requests for installation issues. There are free self-hosted RSS readers already anyway, and NetNewsWire would be just another one. This also wouldn’t further my goal of making a free RSS reader available to everyone, since only people with the skills and willingness to self-host would do it.
+
+
Protecting Users
+
+
Second issue. Right now, if law enforcement comes to me and demands I turn over a given user’s subscriptions list, I can’t. Literally can’t. I don’t have an encrypted version, even — I have nothing at all. The list lives on their machine (iOS or macOS). If they use a syncing system, it lives there too — but I don’t run a syncing system. I don’t have that info and can’t get it.
+
+
If that happened, I’d have to pay a lawyer to see if the demand is legit and possibly help me fight it. That’s yet more money and time.
+
+
(Could I encrypt the subscription lists on the server? Yes, but the server would have to be able to decrypt it, or else the app couldn’t possibly work. Which means I could decrypt the lists and turn them over.)
+
+
Another type of freedom
+
+
Not an issue, exactly, but a thing.
+
+
I was 12 years old when I got my first computer, an Apple II Plus, and I’ve never stopped loving the freedom of having my own computer and being able to run whatever the hell I want to.
+
+
My computer is not a terminal. It’s a world I get to control, and I can use — and, especially, make — whatever I want. I’m not stuck using just what’s provided to me on some other machines elsewhere: I’m not dialing into a mainframe or doing the modern equivalent of using only websites that other people control.
+
+
A world where everything is on the web and nothing is on the machines that we own is a sad world where we’ve lost a core freedom.
+
+
I want to preserve that freedom. I like making apps that show the value of that freedom.
+
+
What I want to see happen is for Apple to allow iPhone and iPad users to load — not sideload , a term I detest, because it assumes Apple’s side of things — whatever apps they want to. Because those devices are computers.
+
+
I get it. It’s not looking good. And even with the much greater freedom for Mac apps there is still always the possibility of being shut down by Apple (by revoking developer memberships, refusing to notarize, or other technical means).
+
+
Still, though, I keep at it, because this freedom matters.
+
+
But, again…
+
+
Apple keeps doing things that make us all feel sick. Removing ICEBlock is just the latest and it won’t be the last. So I am sympathetic to the idea of making web apps, and my brain goes there more often. And if I could solve the problems of money and of protecting users, I’d be way more inclined.
+
+
+
+
+
+
+
In the ’90s and early 2000s I worked for UserLand Software — Dave Winer was founder and CEO — on a Mac app called UserLand Frontier.
+
+
The app was a scripting system and hash-table-oriented database that powered the early blogging and podcasting worlds. (That sounds grand, but it’s probably an understatement — but this post isn’t all about Frontier’s impact on the web, so I won’t go into details.)
+
+
The app was implemented in two pieces:
+
+
+ The kernel , written in C, implemented the database, networking, inter-application communication, various built-in data types, script compiler and evaluator and debugger, and so on
+ The scripts used the kernel and implemented most of the actual app behavior
+
+
+
Since it was an app, it had plenty of UI — menus, contextual menus, buttons, larger UI components, and so on. What was brilliant was that you could, for instance, add and edit menus, and when you chose a menu command it would run your script. (Or when you clicked a toolbar button, etc.)
+
+
You could write an entire static blog publishing system and the UI to go with it without ever restarting the app. Click a thing, then see what happens in the app — and if it’s not right you’d edit the script, which would be automatically recompiled when called the next time.
+
+
In other words, there was absolutely no friction when it came to iteration. Write some code without restarting and see your changes immediately.
+
+
How good was this really in practice?
+
+
You might imagine that we could do this for an hour or so before having to make changes to the kernel. Not so.
+
+
In fact, for the first three years I was there (might have been longer), I never even saw the kernel code. I worked all day every day as a professional developer at the script level, never having to restart the app. Just iterating like this all day long.
+
+
You might also imagine that the app was sluggish and slow since much of it was scripts instead of C code. It wasn’t! Scripts could be slow for the same reasons any code could be slow (I/O, of course, and algorithms and data structures not suited to the problem at hand) — but the app never felt slow.
+
+
I’ll remind you of the timing: this was the ’90s. We worked this way for real, and we were amazingly productive.
+
+
A scripting language plus key bits implemented in C was more than fast enough for an app. Even all those years ago.
+
+
A scripting language built for productivity
+
+
I’m not writing this article to praise Frontier — I’m talking about it to make a point, which I’ll get to.
+
+
But I wanted to bring up a second aspect to this: it’s not just frictionless iteration that was so great, it was also the scripting language and environment.
+
+
One of the best parts of this was how easy persistence was. I mentioned the hash-table-based database. Hash tables could contain hash tables (Swift developers: picture a Dictionary inside a Dictionary, and so on).
+
+
(We just called them tables for short — but remember that these are hash tables, not tables in a SQL database.)
+
+
In any script, at any time, without any ceremony, you could read and write from the database simply using dot notation: user.prefs.city = "Seattle" would set the value of city in the prefs table which was contained by the user table. This value would persist between runs of the app, because it was stored in the database.
+
+
(You could also pass around addresses of things too — it was quite common to pass the address of a table to another script, so that the other script wouldn’t need to hardcode a location.)
+
+
It was utterly automatic. And it meant that while we did have to choose where in the database to store things, and how to structure our storage, we didn’t have to choose a storage mechanism. It was the database.
+
+
(Note: of course we could read and write files, and did so when necessary. But the point is that the database handled almost all our persistence and in a super-easy way.)
+
+
(Also note: the database had a UI. It was visible and browsable. You could and often did hand-edit it. Even the scripts lived in the database, and were addressable via dot notation, like everything else.)
+
+
We had nice things!
+
+
I’ll say again — this was in the ’90s, more than 25 years ago, and it was a great way of working on an app.
+
+
I’m not saying apps these days need to be Frontier-like in any details. But it seems absolutely bizarre to me that we — we who write Mac and iOS apps — still have to build and run the app, make changes, build and run the app, and so on, all day long. In the year 2025.
+
+
And it seems retro in the worst way that we’re still using anything other than a scripting language for most of our code. We should be using something simple and light that can configure toolbars, handle networking callbacks, query databases, manage views, and so on. And maybe with a DSL for SwiftUI-like declarative UI.
+
+
Almost none of that code needs to be in a lower-level language like Swift or Objective-C. It really doesn’t. (I say this as a performance junkie!)
+
+
It could be in Ruby, Lua, Python, or JavaScript. Better still would be a new language invented specifically for the problem of writing apps, something designed to make the common challenges of app writing easier.
+
+
We did have this stuff decades ago. Not for app making in general, sure — but now it’s 25 years later, and a company like Apple could make this real for all its app makers.
+
+
It’s easy to see why things are the way they are right now, and you can point to a string of good decisions. No doubt.
+
+
But we can think outside of what we have now and ask: what would make app writing easier? What would make it a better experience? How could we get more done for our users with fewer bugs and faster turnaround?
+
+
I’m not saying that Frontier’s specific choices are the answer — I’m saying that the combination of frictionless iteration plus a purpose-built scripting language was extremely powerful, and we could use those things now.
+
+
And at some point I suspect these things are going to be table stakes for any platform that wants to attract developers. If you were a new developer right now, would you pick Xcode’s build-and-run, edit, build-and-run, edit — plus the growing complexity of Swift — over something like Electron and JavaScript?
+
+
Random notes
+
+
Yes, I know about PyObjc and RubyCocoa . Without first-class support in Apple’s developer tools, these were never going to work as popular alternatives.
+
+
I also know about (and use) Swift playgrounds and SwiftUI previews. Neither of these are as satisfying to use as I’d like, and neither of these are nearly as great as frictionless iteration in the actual app.
+
+
I also remember Xcode fix-and-continue, which didn’t work well enough to solve the problem of frictionless iteration.
+
+
Anyway… One more thing about Frontier: we had a system where people could get updates to the app automatically via the web. Those updates were just serialized versions of scripts at various database locations, which would get unpacked and stored in each user’s database. (Those who opted-in, of course.) The app would not have to be restarted to get bug fixes and new features! And of course the updates were very small, since they didn’t include the entire app. This seems so futuristic, but we had this in 1999. Why couldn’t we have this now?
+
+
+
+
+
+
+
+
We’re adopting Liquid Glass for NetNewsWire 7, which we’ll release some time after the new versions of macOS and iOS come out.
+
+
Stuart Breckenridge has been doing great work on getting this done — and he’s written up a couple blog posts (with screenshots!) on his progress. See:
+
+
Adopting Liquid Glass, Part II (NetNewsWire Mac)
+Adopting Liquid Glass, Part III (NetNewsWire iOS)
+
+
Since the app is made with mostly stock Apple UI, you might think that using Liquid Glass would be very little work, that it might be pretty automatic or just a matter of checking a few boxes. But that’s not true this year: it’s been a fair amount of work.
+
+
Other apps, apps with more custom UI, will probably have even more work, but even for us it’s been more than a bit.
+
+
And we’re not done. There will be little things (hopefully just little things) still to do before shipping. Including verifying that it all works as expected on the actual OS releases.
+
+
But all credit to Stuart, who got right on this and did a superb job.
+
+
(Note: if you want to see the code, you can: it’s on our experimental/liquid-glass branch .)
+
+
But My Mac
+
+
As pleased as I am with Stuart’s work, I’m not pleased with Liquid Glass itself.
+
+
I don’t really care about it on iOS/iPadOS, because whatever. I don’t love those devices. I love Macs because it’s on Macs where you can set out to make new things that change the world.
+
+
(Okay. Fine. On iPhones and iPads you can , I guess, but generally it’s much harder, and it has to be an approved activity using an approved app. And one thing you definitely can’t do on those devices is create apps. [All apologies to people who do manage to edit their podcast episodes on an iPad or write at length on an iPhone. Cool! But I hope that even those folks will grant me my point.])
+
+
And so I seriously dislike the experience of using a Mac with Liquid Glass. The UI has become the star, but the drunken star, blurry, illegible, and physically unstable. It makes making things way more of a struggle than it used to be.
+
+
We had pretty good Mac UI, but Apple took the bad parts of it — the translucency and blurriness already there — and dialed it way up and called it content-centric. But it seems to me the opposite. Liquid Glass is Liquid-Glass-centric.
+
+
Perspective
+
+
First thing: I have many friends at Apple and I didn’t want to write any of this. And there are legions of engineers and designers who I don’t know but whose work I respect greatly. It’s not their fault that this is the direction of the UI.
+
+
And this is not the first time we’re going through a rough patch with Apple. I think of them as seasons — we had, for instance, terrible-keyboard season not so long ago. We were wondering if Apple would just stop making Macs altogether. But then that passed and we even got these wonderful Apple Silicon machines. Seasons end.
+
+
And we’re in a tough season with Swift these days too. It’s gotten so complex and difficult that I find myself daydreaming about going back to Objective-C. Objective-C is definitely funny-looking, but once you get past that it’s actually small and simple.
+
+
But with Swift approachable concurrency and other changes I can see eventually getting through this season and to a pretty great place, so I’m optimistic.
+
+
Seasons do end, in other words, or mostly seem to end (though not the App Store monopoly season, not so far), and I’ve resolved to just wait for Liquid Glass’s replacement. Perhaps along the way it will get refined enough so that people like me can use it without eye strain.
+
+
Better Perspective
+
+
But far, far worse than any of the above is Tim Cook’s gold statue presented to the President. And everything that went along with that. I felt utterly sick and I bet you did too. (And it made me seriously wonder if I wanted to continue writing apps for Apple platforms.)
+
+
I understand John Gruber’s argument in Gold, Frankincense, and Silicon that maybe Cook’s move was the best possible move in a terribly corrupted system.
+
+
But what’s the use of being so rich and so powerful, I would ask Tim Cook, if you, even more than regular people, have to debase yourself before the dictator?
+
+
It’s tempting to think that our current government is just a season, like the bad keyboards or like Liquid Glass will eventually prove to be. Wait till the mid-terms or the next presidential election, you might think.
+
+
But there’s no reason to think that this authoritarian turn is just a season. Something besides just wishing and waiting for better is required.
+
+
+
+
+
+
+
+
James Dempsey and the Breakpoints will be appearing in a Breakpoints Jam this Thursday (Aug. 21) at Bale Breaker in Ballard. Free show! Awesome songs!
+
+
The event starts at 6 pm and music will start around 7 pm. I’ll be on guitar — and you can expect local superstars Ken Case (keyboard, vocals) and Laura Savino (vocals) plus a special mystery guest or two from out of town.
+
+
The show will be mostly acoustic, and it will be outside at the picnic tables. I hope to see you there!
+
+
+
+
+
+
+
Tomorrow is No Kings . There’s one near you!
+
+
Chatting with my friends about how I hate these fascist assholes doesn’t do a damn thing. Protests work. (Imperfectly, sure, with no guarantees. But it sure beats not protesting.)
+
+
+
+
+
+
+
I wrote in my love letter to my colleagues at Audible that retirement is coming up — and now it’s here. Today’s the day!
+
+
I’ve attended my last meetings. I’ve said my goodbyes. My laptop’s ready to ship back to Audible HQ.
+
+
* * *
+
+
I started working in 1984, while in high school, busing tables part time at Schaefers Canal House in Chesapeake City, MD.
+
+
And I stopped working this day in 2025, almost 41 years later, as a senior engineer (which is surprisingly a lot like busing tables — lots of cleanup and setting the table just right for the customers to have a great time).
+
+
Along the way I worked on, among other apps, Userland Frontier, NetNewsWire, MarsEdit, Glassboard, Vesper, OmniFocus, OmniOutliner, and Audible.
+
+
* * *
+
+
My immediate plan — Exhale! Breathe. Enjoy a steak. Watch WWDC from the comfort of home next week. Get back to work on NetNewsWire.
+
+
🌲
+
+
+
+
+
+
+
To answer some questions people have asked me about my impending retirement…
+
+
What does it mean for NetNewsWire?
+
+
Good things! I’m not retiring from writing apps — which means I’ll have a lot more time for working on NetNewsWire.
+
+
It’s been 15 years since the last time I could work on NetNewsWire during weekdays (as opposed to just nights and weekends), and I’m super-psyched for this.
+
+
Will you work on any other apps?
+
+
Yes. I have several ideas for other apps I’d like to work on, and have made a little progress on one of them.
+
+
They will all be free and open source. I have no plans to create apps for money. (I’ll be retired — not working for money anymore is the point.)
+
+
Will you be taking a big trip right after retiring?
+
+
Every time this comes up, I joke that the first thing I’ll be doing is sleeping . Forty years of work is a long time, and I’ve earned a long nap.
+
+
We do have some travel plans, but no big trips yet. We will. There’s so much of the world we want to see!
+
+
My actual first week of retirement will be taken up by WWDC. I won’t be there — I’ll be at home watching the videos like most everyone else. Only this time I won’t have to think about how the changes will affect things at work.
+
+
Do you have any other hobbies or plans? Are you getting into woodworking? Pizza-making?
+
+
Yes to other hobbies and plans, though probably not woodworking or pizza (but never say never — those are pretty tempting ideas!).
+
+
Making apps is important to me — contributing to the public stack is how I can best use my abilities to make the world better — but it’s also not the only thing.
+
+
I have more ideas than time, which is a good problem to have, and once I have some space to think and feel I’ll be able to start picking and get to work.
+
+
Will you be blogging more?
+
+
I hope so!
+
+
The hard part is, after 25 years, finding things to say that I haven’t already said. Maybe I’ll just decide it’s okay to repeat myself in new ways. 🐥
+
+
+
+
+
+
+
Before I went to work for Audible (five years ago now — time flies!) I had a bias about engineers that worked for large corporations. I assumed that they weren’t as good as indies and engineers at small companies, or else they’d actually be indies or work at small shops like Omni.
+
+
Obviously I knew there had to be exceptions, particularly at Apple, or else we wouldn’t have had great things like AppKit and UIKit and everything else we’ve built on over these years. But the bias persisted.
+
+
* * *
+
+
Before Audible, the largest company I’d ever worked at (Newsgator) had just over 100 people. When I worked at Omni it had roughly half that number.
+
+
I’ve spent half my career working at even smaller companies, with just me and Sheila (Ranchero Software) or at places with three people (Q Branch) or like six people (UserLand Software).
+
+
And of course I was arrogant enough to think that I was better — much better — than any corporate engineer. While a corporate engineer might own some small part of an app or framework — or just a single button, as the (lame) joke went back in the day — I was shipping entire apps on my own or with a very small team. Popular, valuable, newsworthy apps that people loved.
+
+
And I wasn’t the only one: think of Flying Meat , Rogue Amoeba , Bare Bones , Red Sweater , The Iconfactory and many more.
+
+
* * *
+
+
And so I learned very quickly when I started at Audible that I was very wrong. I was impressed, and grew more impressed as time went on, by my fellow engineers’ rigor, talent, professionalism, care, and, especially, ability to work with other people toward common goals.
+
+
While I’m the die-hard introvert who just wants to go into a room and sit in front of a Mac and write some code and get things done, I learned that my co-workers — even if they, like me, kinda just wanted to sit and write code — were great at app development as a team sport. I was impressed with how they wanted to grow and did grow — always leveling-up their individual skills and their ability to work on a team and across teams.
+
+
And what a team it was! It’s not a new observation, but the indies I mentioned above, and the ones I didn’t, tend to be white men born in the United States — the people who could most afford to fail, in other words, because for them (for me, absolutely) there’s always another opportunity.
+
+
My team didn’t look like that — it was quite a contrast with my previous experience. Many more women, people of color, people born outside the United States. (But note that there’s always more progress to be made!)
+
+
The engineers on my team could write apps as well, if not better in many cases, than the indies I know. And the ones who aren’t quite there yet — well, just give them a little more time. They’ve all given me reason to believe in them.
+
+
I regret my bias about engineers working in corporate environments, and I’m so glad I learned the truth almost from day one on starting at Audible.
+
+
* * *
+
+
For a couple years I did a lot of hiring — a lot of interviews — at Audible. And I noticed something: there was a strong correlation between being hirable and having worked with other people.
+
+
The folks who’d worked largely by themselves, or on just one small team, weren’t as good candidates as the folks who’d worked with more people. This, of course, went against my original bias that indies are the best engineers — but by then I knew that a candidate who’d worked with lots of other people had been exposed to more code, more dilemmas, more challenges (technical and human), and they were not just more ready to work on a larger team but more knowledgeable. Even their individual skills were greater.
+
+
Advice time: if you’re a newer engineer, find ways to work with other people. Not just because you’re more likely to get hired at a place like Audible — but because, no matter where you want to work, you’ll be better at it.
+
+
You can’t just sit alone in front of your computer all day and write code and expect to be a great engineer.
+
+
Lesson learned!
+
+
* * *
+
+
With retirement imminent — this is my last job, and June 6 is my last day (maybe I’ve buried the lede here) — I want to thank my team publicly for how they’ve made me a better engineer and, more importantly, a better person. From the bottom of my heart.
+
+
I learned more from them than I could ever have taught; I got the better part of this deal.
+
+
Thank you, team! So much. ❤️
+
+
+
+
+
Archive
+
+
+
+
+
+
+
+
+
+
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/inessential.txt b/Modules/RSCore/Tests/RSCoreTests/Resources/inessential.txt
new file mode 100644
index 000000000..dca14f473
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/inessential.txt
@@ -0,0 +1 @@
+inessential: weblog inessential by Brent Simmons 04 Oct 2025 Why NetNewsWire Is Not a Web App Tim Bray writes, on Mastodon, I think correctly: The canceling of ICEBlock is more evidence, were any needed, that the Web is the platform of the future, the only platform without a controlling vendor. Anything controversial should be available through a pure browser interface. This is not the first time I’ve had reason to think about this — I think about issues of tech freedom every day, and I still bristle, after all these years (now more than ever), at having to publish NetNewsWire for iOS through the App Store. (The Mac version has no such requirement — it’s available via the website, and I have no plans to ever offer it via the Mac App Store.) But what if I wanted to do a web app, in addition to or instead of a native app? I can picture a future, as I bet you can, where RSS readers aren’t allowed on any app store, and we’re essentially required to use billionaire-owned social media and platform-owned news apps. But there are issues with making NetNewsWire a web app. Money I explain in this post that NetNewsWire has almost no expenses at all. The biggest expense is my Apple developer membership, and I pay just a little bit to host some websites. It adds up to a couple hundred bucks a year. If it were a web app instead, I could drop the developer membership, but I’d have to pay way more money for web and database hosting. Probably need a CDN too, and who knows what else. (I don’t have recent web app experience, so I don’t even know what my requirements would be, but I’m sure they’d cost substantially more than a couple hundred bucks a year.) I could charge for NetNewsWire, but that would go against my political goal of making sure there’s a good and free RSS reader available to everyone. I could take donations instead, but that’s never going to add up to enough to cover the costs. And in either case I’d have to create a way to take money and start up some kind of entity and then do bookkeeping and report money things to the right places — all stuff I don’t have to waste time on right now. I can just work on the app. Alternately I could create a web app that people would self-host — but there’s no way I could handle the constant support requests for installation issues. There are free self-hosted RSS readers already anyway, and NetNewsWire would be just another one. This also wouldn’t further my goal of making a free RSS reader available to everyone, since only people with the skills and willingness to self-host would do it. Protecting Users Second issue. Right now, if law enforcement comes to me and demands I turn over a given user’s subscriptions list, I can’t. Literally can’t. I don’t have an encrypted version, even — I have nothing at all. The list lives on their machine (iOS or macOS). If they use a syncing system, it lives there too — but I don’t run a syncing system. I don’t have that info and can’t get it. If that happened, I’d have to pay a lawyer to see if the demand is legit and possibly help me fight it. That’s yet more money and time. (Could I encrypt the subscription lists on the server? Yes, but the server would have to be able to decrypt it, or else the app couldn’t possibly work. Which means I could decrypt the lists and turn them over.) Another type of freedom Not an issue, exactly, but a thing. I was 12 years old when I got my first computer, an Apple II Plus, and I’ve never stopped loving the freedom of having my own computer and being able to run whatever the hell I want to. My computer is not a terminal. It’s a world I get to control, and I can use — and, especially, make — whatever I want. I’m not stuck using just what’s provided to me on some other machines elsewhere: I’m not dialing into a mainframe or doing the modern equivalent of using only websites that other people control. A world where everything is on the web and nothing is on the machines that we own is a sad world where we’ve lost a core freedom. I want to preserve that freedom. I like making apps that show the value of that freedom. What I want to see happen is for Apple to allow iPhone and iPad users to load — not sideload, a term I detest, because it assumes Apple’s side of things — whatever apps they want to. Because those devices are computers. I get it. It’s not looking good. And even with the much greater freedom for Mac apps there is still always the possibility of being shut down by Apple (by revoking developer memberships, refusing to notarize, or other technical means). Still, though, I keep at it, because this freedom matters. But, again… Apple keeps doing things that make us all feel sick. Removing ICEBlock is just the latest and it won’t be the last. So I am sympathetic to the idea of making web apps, and my brain goes there more often. And if I could solve the problems of money and of protecting users, I’d be way more inclined. 28 Aug 2025 Writing Mac and iOS Apps Shouldn’t Be So Difficult In the ’90s and early 2000s I worked for UserLand Software — Dave Winer was founder and CEO — on a Mac app called UserLand Frontier. The app was a scripting system and hash-table-oriented database that powered the early blogging and podcasting worlds. (That sounds grand, but it’s probably an understatement — but this post isn’t all about Frontier’s impact on the web, so I won’t go into details.) The app was implemented in two pieces: The kernel, written in C, implemented the database, networking, inter-application communication, various built-in data types, script compiler and evaluator and debugger, and so on The scripts used the kernel and implemented most of the actual app behavior Since it was an app, it had plenty of UI — menus, contextual menus, buttons, larger UI components, and so on. What was brilliant was that you could, for instance, add and edit menus, and when you chose a menu command it would run your script. (Or when you clicked a toolbar button, etc.) You could write an entire static blog publishing system and the UI to go with it without ever restarting the app. Click a thing, then see what happens in the app — and if it’s not right you’d edit the script, which would be automatically recompiled when called the next time. In other words, there was absolutely no friction when it came to iteration. Write some code without restarting and see your changes immediately. How good was this really in practice? You might imagine that we could do this for an hour or so before having to make changes to the kernel. Not so. In fact, for the first three years I was there (might have been longer), I never even saw the kernel code. I worked all day every day as a professional developer at the script level, never having to restart the app. Just iterating like this all day long. You might also imagine that the app was sluggish and slow since much of it was scripts instead of C code. It wasn’t! Scripts could be slow for the same reasons any code could be slow (I/O, of course, and algorithms and data structures not suited to the problem at hand) — but the app never felt slow. I’ll remind you of the timing: this was the ’90s. We worked this way for real, and we were amazingly productive. A scripting language plus key bits implemented in C was more than fast enough for an app. Even all those years ago. A scripting language built for productivity I’m not writing this article to praise Frontier — I’m talking about it to make a point, which I’ll get to. But I wanted to bring up a second aspect to this: it’s not just frictionless iteration that was so great, it was also the scripting language and environment. One of the best parts of this was how easy persistence was. I mentioned the hash-table-based database. Hash tables could contain hash tables (Swift developers: picture a Dictionary inside a Dictionary, and so on). (We just called them tables for short — but remember that these are hash tables, not tables in a SQL database.) In any script, at any time, without any ceremony, you could read and write from the database simply using dot notation: user.prefs.city = "Seattle" would set the value of city in the prefs table which was contained by the user table. This value would persist between runs of the app, because it was stored in the database. (You could also pass around addresses of things too — it was quite common to pass the address of a table to another script, so that the other script wouldn’t need to hardcode a location.) It was utterly automatic. And it meant that while we did have to choose where in the database to store things, and how to structure our storage, we didn’t have to choose a storage mechanism. It was the database. (Note: of course we could read and write files, and did so when necessary. But the point is that the database handled almost all our persistence and in a super-easy way.) (Also note: the database had a UI. It was visible and browsable. You could and often did hand-edit it. Even the scripts lived in the database, and were addressable via dot notation, like everything else.) We had nice things! I’ll say again — this was in the ’90s, more than 25 years ago, and it was a great way of working on an app. I’m not saying apps these days need to be Frontier-like in any details. But it seems absolutely bizarre to me that we — we who write Mac and iOS apps — still have to build and run the app, make changes, build and run the app, and so on, all day long. In the year 2025. And it seems retro in the worst way that we’re still using anything other than a scripting language for most of our code. We should be using something simple and light that can configure toolbars, handle networking callbacks, query databases, manage views, and so on. And maybe with a DSL for SwiftUI-like declarative UI. Almost none of that code needs to be in a lower-level language like Swift or Objective-C. It really doesn’t. (I say this as a performance junkie!) It could be in Ruby, Lua, Python, or JavaScript. Better still would be a new language invented specifically for the problem of writing apps, something designed to make the common challenges of app writing easier. We did have this stuff decades ago. Not for app making in general, sure — but now it’s 25 years later, and a company like Apple could make this real for all its app makers. It’s easy to see why things are the way they are right now, and you can point to a string of good decisions. No doubt. But we can think outside of what we have now and ask: what would make app writing easier? What would make it a better experience? How could we get more done for our users with fewer bugs and faster turnaround? I’m not saying that Frontier’s specific choices are the answer — I’m saying that the combination of frictionless iteration plus a purpose-built scripting language was extremely powerful, and we could use those things now. And at some point I suspect these things are going to be table stakes for any platform that wants to attract developers. If you were a new developer right now, would you pick Xcode’s build-and-run, edit, build-and-run, edit — plus the growing complexity of Swift — over something like Electron and JavaScript? Random notes Yes, I know about PyObjc and RubyCocoa. Without first-class support in Apple’s developer tools, these were never going to work as popular alternatives. I also know about (and use) Swift playgrounds and SwiftUI previews. Neither of these are as satisfying to use as I’d like, and neither of these are nearly as great as frictionless iteration in the actual app. I also remember Xcode fix-and-continue, which didn’t work well enough to solve the problem of frictionless iteration. Anyway… One more thing about Frontier: we had a system where people could get updates to the app automatically via the web. Those updates were just serialized versions of scripts at various database locations, which would get unpacked and stored in each user’s database. (Those who opted-in, of course.) The app would not have to be restarted to get bug fixes and new features! And of course the updates were very small, since they didn’t include the entire app. This seems so futuristic, but we had this in 1999. Why couldn’t we have this now? 25 Aug 2025 Tough Season in the Apple Fields We’re adopting Liquid Glass for NetNewsWire 7, which we’ll release some time after the new versions of macOS and iOS come out. Stuart Breckenridge has been doing great work on getting this done — and he’s written up a couple blog posts (with screenshots!) on his progress. See: Adopting Liquid Glass, Part II (NetNewsWire Mac) Adopting Liquid Glass, Part III (NetNewsWire iOS) Since the app is made with mostly stock Apple UI, you might think that using Liquid Glass would be very little work, that it might be pretty automatic or just a matter of checking a few boxes. But that’s not true this year: it’s been a fair amount of work. Other apps, apps with more custom UI, will probably have even more work, but even for us it’s been more than a bit. And we’re not done. There will be little things (hopefully just little things) still to do before shipping. Including verifying that it all works as expected on the actual OS releases. But all credit to Stuart, who got right on this and did a superb job. (Note: if you want to see the code, you can: it’s on our experimental/liquid-glass branch.) But My Mac As pleased as I am with Stuart’s work, I’m not pleased with Liquid Glass itself. I don’t really care about it on iOS/iPadOS, because whatever. I don’t love those devices. I love Macs because it’s on Macs where you can set out to make new things that change the world. (Okay. Fine. On iPhones and iPads you can, I guess, but generally it’s much harder, and it has to be an approved activity using an approved app. And one thing you definitely can’t do on those devices is create apps. [All apologies to people who do manage to edit their podcast episodes on an iPad or write at length on an iPhone. Cool! But I hope that even those folks will grant me my point.]) And so I seriously dislike the experience of using a Mac with Liquid Glass. The UI has become the star, but the drunken star, blurry, illegible, and physically unstable. It makes making things way more of a struggle than it used to be. We had pretty good Mac UI, but Apple took the bad parts of it — the translucency and blurriness already there — and dialed it way up and called it content-centric. But it seems to me the opposite. Liquid Glass is Liquid-Glass-centric. Perspective First thing: I have many friends at Apple and I didn’t want to write any of this. And there are legions of engineers and designers who I don’t know but whose work I respect greatly. It’s not their fault that this is the direction of the UI. And this is not the first time we’re going through a rough patch with Apple. I think of them as seasons — we had, for instance, terrible-keyboard season not so long ago. We were wondering if Apple would just stop making Macs altogether. But then that passed and we even got these wonderful Apple Silicon machines. Seasons end. And we’re in a tough season with Swift these days too. It’s gotten so complex and difficult that I find myself daydreaming about going back to Objective-C. Objective-C is definitely funny-looking, but once you get past that it’s actually small and simple. But with Swift approachable concurrency and other changes I can see eventually getting through this season and to a pretty great place, so I’m optimistic. Seasons do end, in other words, or mostly seem to end (though not the App Store monopoly season, not so far), and I’ve resolved to just wait for Liquid Glass’s replacement. Perhaps along the way it will get refined enough so that people like me can use it without eye strain. Better Perspective But far, far worse than any of the above is Tim Cook’s gold statue presented to the President. And everything that went along with that. I felt utterly sick and I bet you did too. (And it made me seriously wonder if I wanted to continue writing apps for Apple platforms.) I understand John Gruber’s argument in Gold, Frankincense, and Silicon that maybe Cook’s move was the best possible move in a terribly corrupted system. But what’s the use of being so rich and so powerful, I would ask Tim Cook, if you, even more than regular people, have to debase yourself before the dictator? It’s tempting to think that our current government is just a season, like the bad keyboards or like Liquid Glass will eventually prove to be. Wait till the mid-terms or the next presidential election, you might think. But there’s no reason to think that this authoritarian turn is just a season. Something besides just wishing and waiting for better is required. 18 Aug 2025 Breakpoints Show Thursday in Seattle James Dempsey and the Breakpoints will be appearing in a Breakpoints Jam this Thursday (Aug. 21) at Bale Breaker in Ballard. Free show! Awesome songs! The event starts at 6 pm and music will start around 7 pm. I’ll be on guitar — and you can expect local superstars Ken Case (keyboard, vocals) and Laura Savino (vocals) plus a special mystery guest or two from out of town. The show will be mostly acoustic, and it will be outside at the picnic tables. I hope to see you there! 13 Jun 2025 Saturday March Tomorrow is No Kings. There’s one near you! Chatting with my friends about how I hate these fascist assholes doesn’t do a damn thing. Protests work. (Imperfectly, sure, with no guarantees. But it sure beats not protesting.) 06 Jun 2025 Retirement Day I wrote in my love letter to my colleagues at Audible that retirement is coming up — and now it’s here. Today’s the day! I’ve attended my last meetings. I’ve said my goodbyes. My laptop’s ready to ship back to Audible HQ. * * * I started working in 1984, while in high school, busing tables part time at Schaefers Canal House in Chesapeake City, MD. And I stopped working this day in 2025, almost 41 years later, as a senior engineer (which is surprisingly a lot like busing tables — lots of cleanup and setting the table just right for the customers to have a great time). Along the way I worked on, among other apps, Userland Frontier, NetNewsWire, MarsEdit, Glassboard, Vesper, OmniFocus, OmniOutliner, and Audible. * * * My immediate plan — Exhale! Breathe. Enjoy a steak. Watch WWDC from the comfort of home next week. Get back to work on NetNewsWire. 🌲 24 May 2025 Retirement and NetNewsWire To answer some questions people have asked me about my impending retirement… What does it mean for NetNewsWire? Good things! I’m not retiring from writing apps — which means I’ll have a lot more time for working on NetNewsWire. It’s been 15 years since the last time I could work on NetNewsWire during weekdays (as opposed to just nights and weekends), and I’m super-psyched for this. Will you work on any other apps? Yes. I have several ideas for other apps I’d like to work on, and have made a little progress on one of them. They will all be free and open source. I have no plans to create apps for money. (I’ll be retired — not working for money anymore is the point.) Will you be taking a big trip right after retiring? Every time this comes up, I joke that the first thing I’ll be doing is sleeping. Forty years of work is a long time, and I’ve earned a long nap. We do have some travel plans, but no big trips yet. We will. There’s so much of the world we want to see! My actual first week of retirement will be taken up by WWDC. I won’t be there — I’ll be at home watching the videos like most everyone else. Only this time I won’t have to think about how the changes will affect things at work. Do you have any other hobbies or plans? Are you getting into woodworking? Pizza-making? Yes to other hobbies and plans, though probably not woodworking or pizza (but never say never — those are pretty tempting ideas!). Making apps is important to me — contributing to the public stack is how I can best use my abilities to make the world better — but it’s also not the only thing. I have more ideas than time, which is a good problem to have, and once I have some space to think and feel I’ll be able to start picking and get to work. Will you be blogging more? I hope so! The hard part is, after 25 years, finding things to say that I haven’t already said. Maybe I’ll just decide it’s okay to repeat myself in new ways. 🐥 23 May 2025 My Wildly Incorrect Bias About Corporate Engineers Before I went to work for Audible (five years ago now — time flies!) I had a bias about engineers that worked for large corporations. I assumed that they weren’t as good as indies and engineers at small companies, or else they’d actually be indies or work at small shops like Omni. Obviously I knew there had to be exceptions, particularly at Apple, or else we wouldn’t have had great things like AppKit and UIKit and everything else we’ve built on over these years. But the bias persisted. * * * Before Audible, the largest company I’d ever worked at (Newsgator) had just over 100 people. When I worked at Omni it had roughly half that number. I’ve spent half my career working at even smaller companies, with just me and Sheila (Ranchero Software) or at places with three people (Q Branch) or like six people (UserLand Software). And of course I was arrogant enough to think that I was better — much better — than any corporate engineer. While a corporate engineer might own some small part of an app or framework — or just a single button, as the (lame) joke went back in the day — I was shipping entire apps on my own or with a very small team. Popular, valuable, newsworthy apps that people loved. And I wasn’t the only one: think of Flying Meat, Rogue Amoeba, Bare Bones, Red Sweater, The Iconfactory and many more. * * * And so I learned very quickly when I started at Audible that I was very wrong. I was impressed, and grew more impressed as time went on, by my fellow engineers’ rigor, talent, professionalism, care, and, especially, ability to work with other people toward common goals. While I’m the die-hard introvert who just wants to go into a room and sit in front of a Mac and write some code and get things done, I learned that my co-workers — even if they, like me, kinda just wanted to sit and write code — were great at app development as a team sport. I was impressed with how they wanted to grow and did grow — always leveling-up their individual skills and their ability to work on a team and across teams. And what a team it was! It’s not a new observation, but the indies I mentioned above, and the ones I didn’t, tend to be white men born in the United States — the people who could most afford to fail, in other words, because for them (for me, absolutely) there’s always another opportunity. My team didn’t look like that — it was quite a contrast with my previous experience. Many more women, people of color, people born outside the United States. (But note that there’s always more progress to be made!) The engineers on my team could write apps as well, if not better in many cases, than the indies I know. And the ones who aren’t quite there yet — well, just give them a little more time. They’ve all given me reason to believe in them. I regret my bias about engineers working in corporate environments, and I’m so glad I learned the truth almost from day one on starting at Audible. * * * For a couple years I did a lot of hiring — a lot of interviews — at Audible. And I noticed something: there was a strong correlation between being hirable and having worked with other people. The folks who’d worked largely by themselves, or on just one small team, weren’t as good candidates as the folks who’d worked with more people. This, of course, went against my original bias that indies are the best engineers — but by then I knew that a candidate who’d worked with lots of other people had been exposed to more code, more dilemmas, more challenges (technical and human), and they were not just more ready to work on a larger team but more knowledgeable. Even their individual skills were greater. Advice time: if you’re a newer engineer, find ways to work with other people. Not just because you’re more likely to get hired at a place like Audible — but because, no matter where you want to work, you’ll be better at it. You can’t just sit alone in front of your computer all day and write code and expect to be a great engineer. Lesson learned! * * * With retirement imminent — this is my last job, and June 6 is my last day (maybe I’ve buried the lede here) — I want to thank my team publicly for how they’ve made me a better engineer and, more importantly, a better person. From the bottom of my heart. I learned more from them than I could ever have taught; I got the better part of this deal. Thank you, team! So much. ❤️ Archive NetNewsWire • Apps I’ve Made Seattle Xcoders • RSS Follow on Micro.blog • Mastodon • Bluesky © 1999-2025 Brent Simmons Made in Seattle • Built for speed
\ No newline at end of file
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/scripting.html b/Modules/RSCore/Tests/RSCoreTests/Resources/scripting.html
new file mode 100644
index 000000000..cdc91df42
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/scripting.html
@@ -0,0 +1,535 @@
+
+
+ Scripting News
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
It's even worse than it appears..
+
+
+
+
+
+
+
Frontier's
Simple Cross-Network Scripting is one of my favorite features ever. It made procedure calls over the internet almost as simple as procedure calls inside Frontier.
#
+
I wish WordPress had a "home" social network. The community is all over the place, on Twitter, Slack, Masto, Bluesky, GitHub, and probably a few other places. I hope to have a social network that is built on WordPress and RSS. That would be one I'd like to be the first user of. I'd make my account simply dave. And of course I'd offer "matt" to Matt. But it would be open to the public, and anyone could start their own, by running a very easy to install piece of software on a server.
#
+
Took yesterday off, aside from a little blogging, which isn't work for me -- now on Monday, I'm going to do a few warmup projects, and figuring out which big item I should focus on in my post-WordCamp experience.
#
+
+
+
I have to remember to
use WordLand to post
to Mastodon , because when I go in that way, I don't have a character limit and I can use styling. We were wrestling with this question at WC, how to market the feature in a way that would get people to go to WordPress to write for Mastodon. It would also be cool if you could turn on the ActivityPub connection in WordLand, without having to wade through all the menus and dialogs. Imagine if we had a
confirmation dialog like this in WordLand.
#
+
I have a really interesting idea for Netflix. Do a MCP so I can ask ChatGPT to find a show I'd probably like on Netflix. Then Hulu would have to hook up too, and HBO and Apple and everyone else. That would fix a big entertainment problem because I've already taught ChatGPT exactly what I like in movies and serials by giving it all my favorite shows and why I liked them so much. This was the idea of Bingeworthy, which I never seem to find time to work on. I really just want the freaking functionality. Someone should buy Metacritic btw, their process, however it works, is really good at finding the good stuff. But please someone who believes in open APIs, it totally needs to be in the Chativerse.
#
+
+
+
+ I presented WordLand for the first time publicly, the new one with a timeline, so it more clearly shows how we can build a beautiful social network just from open formats and protocols. #
+ No user lock-in, every part replaceable, and open to developers to add functionality without having to reimplement the whole thing. These are all the things I think that have stood in the way of innovation in the web for many years.#
+ A social network that starts out with no centralization and open in every sense has a much better chance of being decentralized than one that starts out centralized and swears they're going to stop doing that -- someday, fingers crossed, etc.#
+
+
+
+
+
+
Back home from my trip to Ottawa. Took the scenic route through the
Adirondacks . Had an unqualified great trip. Should've gone to a
WordCamp a long time ago. It's totally my type of people. I have a long list of things to organize, but for now it's time to catch up on sleep and rest, MLB and NBA, and make plans for the future.
#
+
+
+
+
Evan Prodromou
explains all that's happening in the WordPressOSphere in the realm of ActivityPub.
#
+
Wouldn't it be great if there were a list of WordPress users who have turned on their ActivityPub plugin, so we know who to subscribe to on our favorite ActivityPub service.
#
+
I'm back at
WordCamp in a big room waiting for
Matt Mullenweg to answer questions for the people here. Yesterday's presentation went really well, lots of smart people really interested, fantastic discussion after. A very nice web culture. I went with three slides to get started, and then talked, demo'd, answered questions, and listened to ideas. Told a few jokes. Got a few laughs. It got the job done, help feed the
word of mouth on
WordLand .
#
+
+
+
+
+
+ Here's the link to the slides promised below. #
+ I've been going back and forth on slides. I always do this. In the end I hate slides because I digress while going through them and skip ahead, end up wishing I hadn't used them. So I decided to compromise. I'll do the first three in some detail, and digress and go down tangents as I see fit. #
+ The three main slides.#
+
+ Accomplishments of WordPress. #
+ Why podcasting retained its independence. #
+ Demo of WordLand. #
+
+
+ There were 20 or 30 more slides after that. #
+ So what I'll do is this. Present the first two in some detail, then page through the rest quickly and come back and do the demo. Also publish a link to the deck on my blog so people can scroll through them at their leisure. And once the demo is done, I'll answer questions. #
+ I have an idea that we can have a blogosphere that is as functional as podcasting. We just need users to get started, to get the idea off the ground. We don't have to accept the limits, we can have the full web if we want it. #
+
+
+
+
+
+
+
+
+ One more slide from the presentation .#
+ The accomplishments of WordPress.
#
+ And with that I'm off to Ottawa, seeking fame and fortune. 😄 #
+ PS: One more slide for the road. #
+
+
+
+
+
+
+
+
+ Well, I think I'm done. I've got the outline for the slides complete. I can't possibly talk about all the stuff that's in the slides. Once I leave tomorrow I think perhaps I'll post a link for the slides and maybe offer a place to comment. Maybe. #
+ I get very nervous about these things and then remember when I've prepared as much as I have for this, the talk goes quickly and people generally are nice, though I've been ambushed a few memorable times. Let's see -- Austin, Cambridge, San Francisco and Nashville come to mind. ;-)#
+ In Austin it was because I was privileged. I was being honored because it was the 25th year of my blog, and I was one of the keynoters. I told the promoter his people wouldn't like me, and then I forgot I said it when it happened. I was stuck, I didn't want to get into a public argument with anyone. (Had I wanted to rebut, I would have said everyone in this room is privileged, just look around at how well fed and educated everyone is. We all flew in here. We live in a rich country where we are the elite of the elite. Now STFU, in my dreams.) #
+ There have been times when I welcomed an argument...#
+ In San Francisco, I was invited to lead a panel from the music industry about how great Napster was. This was probably in 2000 or 2001 when Napster was at its peak. It was an ambush. All the panelists made me the issue, and then they voted to kick me off the stage. I stayed there and waited until they exhausted their rage, and then asked them a question about music and Napster. Acted like nothing had happened. I had earned my place there, I was a very early industry adopter of Napster. I loved what it did for us. Imagine until then you either had to buy an album to listen to music, build a collection, or wait until it was played on the radio. (What is radio? Kind of an early form of podcasting.) People were talking about music in supermarkets and airports. This could not be stopped, I was sure of it, and they were acting like babies. I stood up and prevailed.#
+ In Nashville, I was invited to be a sort of keynoter for a conference that was patterned after BloggerCon. I did not organize it, but I led a session, which was attended by a famous right wing blogger who I had invited to the Harvard BloggerCon. He brought a bunch of his friends, and they each said no one was listening to them but we were listening to them. I eventually sat down and let them have a session dominated by a few people repeating themselves. It was boring. #
+ Finally I was set up by the promoters of a CMS conference which Berkman hosted at Harvard. I was the master of ceremonies. No one told me that one of my most virulent trolls was there, and when he got up to rage at me I asked him to sit down, but Charlie Nesson who was the senior educator there, and kind of naive about internet trolls, said he should speak his mind. I should have walked out at that point. I knew what was coming. It really shook me. #
+ In Nashville a columnist in a local paper who said I caused the riot, btw. I swear to god I always take my discussion leader role seriously. I gave them all a chance to talk and they all said the same thing, almost as if they had been told to say it. #
+
+
+
+
+
+
+
+
+ Let's remember how the web could have worked.#
+ The ideal is to write in our blog space, and publish everywhere.#
+ That's what we have been trying to do since Twitter came along. #
+ Write on your main blog, cross-post everywhere it belongs. #
+ This could have worked, and it still can. #
+ But it can't work until we get agreement on what text is. This will be much-discussed at WordCamp Canada this week, based on what WordPress is doing and what Evan Prodromou will speak about and of course what I am speaking about.#
+ Getting back on track is as simple as agreeing what text is on the web. For that we have two very good models: HTML and Markdown. #
+ Here's my slide.
#
+
+
+
+
+
+
I'm getting ready for a trip. And part of that is getting my laptop set up so I can post to Scripting News. If you're reading this, it worked.
#
+
+
+
+ Working on my slides for WordCamp Canada next week.#
+ I don't think I'll actually use the F-word in the slide. #
+ But it makes me laugh when I see it.#
+ It's funny because it's true.
#
+
+
+
+
+
+
I'm narrating development work on my
Daveverse site. If you're interested, that's where I've been while I'm shaking out core bugs in the new WordLand. These are the things I want to stay fixed and never have to screw with again. It does actually work that way in products that go through a shake-out process.
Drummer and
FeedLand both work pretty well. Sure there are bugs and things I wish worked differently, but I and a few other people use them as everyday tools. I'm trying to get WordLand with its timeline function to be that way. A bunch of new hookups via HTTP and Websockets.
#
+
+
+
Today's song:
Oh My Love , by John Lennon. I was trying to remember this song. It kept eluding me. It's not one of his most famous. It's what you experience when you fall in love. Clarity. Endless possibility. At home in your life. For the first time.
#
+
I know so many people around my age that were never told this simple truth that I heard Steve Jobs say in a
video the other day. Paraphrasing -- the people who made the rules you think you have to live by weren't smarter than you. Once you accept this as fact, then if you can find the leading edge you can make it work the way you want it to. You can be one of those people.
#
+
+
+
+ I was just catching up on tweets and saw an announcement earlier this week that Matt Mullenweg is going to lead a town hall discussion at WordCamp Canada next Friday in Ottawa. A week from today. I find that exciting. I'll in the room for sure, and blogging it. Why not? ;-)#
+ I am presenting the day before, where I'll do a demo of the new WordLand, explaining how it's now twice the product it was last time you all saw it. It is still centered on WordPress as the place where all the user's writing is published. And somehow through the magic of software, we manage to make it into a social network . And the cool thing about the whole stack of software we build on, all of it is replaceable and of the web, in every sense.#
+ There are things that Bluesky and Mastodon can do that WordLand can't. But there are also many many things we can do with the structure that WordLand creates that the others can't touch. There's a simple reason for that, if implementing something, no matter how attractive, without limiting the web-ness of the system, we didn't do it. This is the social network of the web. That means all the pieces connect with each other in fantastic unforeseeable ways. And anyone can discover these connections. That was the joy of the early web, the thought "Hey I think I can do that" and when you try, it works! We're back there again, if the people come. The technical challenge is still there but now is smaller. Getting people to look and fall in love (hopefully) is the big challenge.#
+ After WordLand 0.8 is ready, real soon now, who knows what's next? That's the glory a bootstrap . Every step tells you where to go next. That's how you know you're hitting a target.#
+ I don't know if Matt will be there for my demo, I hope he is. He and Automattic and the community have created a fantastic platform. Finding WordPress has a super powerful API that I didn't know about is like finding a new web. Let me know if you see it too. ;-)#
+ So thanks Matt for your great contribution. I hope to be able to thank you for that personally in Ottawa next week. Perfect timing.#
+ Cross-posted from the WordCamp Canada site. #
+
+
+
+
+
+
+
+
+ Note this is for the 0.8 release of WordLand coming soooon. Not in the current released product. #
+ A friend asked for this feature a few months back, before we had a Markdown mode in WordLand. #
+ As I'm reviewing the product for first beta I realized I could now implement the feature he asked for.#
+ How to..#
+
+ Copy a URL to the clipboard.#
+ Open WordLand, bring it to the front.#
+ Go into Markdown mode by clicking the M icon. It turns green.#
+ Select the text you want to be a link.#
+ Paste the URL copied in step 1.#
+
+
+ It creates the link for you, in Markdown syntax of course. #
+ To see it in HTML, just flip the Markdown button off.#
+ I call this feature Cute Paste. :-)#
+ A video demo .#
+
+
+
+
+
+
+
The same energy that forced Biden off the ticket should get Schumer and Jeffries out of the top seats. Replace with people who can speak plainly about what's actually happening.
#
+
I stop reading every piece that begins by wondering if the Dems or Repubs are "winning" the shutdown. Anything the Dems can do that has anything to do with governing is a win for all of us, including the Repubs, but esp the Dems. This is a new world, the old one is gone. Every day is a new reality.
#
+
Fellow humans. If we're competing with AI, and to some extent it seems we are, consider that they have much better writing tools than we do. If we are to put up some kind of resistance to our cyber-domination, shouldn't we invest in better writing tools for bodied-intellects like us?
#
+
I try not to run away from controversy when conventional wisdom is in the way of progress.
#
+
The big deal with WordPress, as outlined in the
Think Different piece is that the strong API makes WP into something quite different from what most people think it is. I think of it as an OS for writing on the web. Very analogous to what we use(d) PCs and Macs for before networks were everywhere. This came up in a thread on Bluesky about MicroPub which appears to be a redo of Metaweblog, with better identity system.
#
+
The ActivityPub world, which MicroPub is part of (I guess), could benefit from reading Joel Spolsky's piece about
Architecture Astronauts .
#
+
+
+
Why we
all should love RSS. It makes the web higher level without taking anything away.
#
+
Thanks to
Tanya Weiman for observing that this blog started
31 years ago . Probably the longest-running blog on the internets. Still making trouble. And as they say, still diggin. You can always tell how long it's been by
looking at the bottom of
any archive page , where it's constantly calculating, down to the second, how long this blog has been running.
#
+
Try as hard as I can I still have distinct flows and more than one place where I edit. I think that's a consequence of working on WordLand. I have to use it for serious writing, otherwise how would I know if it works. Maybe I can find a way to merge flows, but not at the moment. I still have to do some copy/pasting.
#
+
+
+
+ Fascinating blog post from Jason Shellen, tech entrepreneur, formerly with Blogger and Google. Here’s my perspective on part of the story he tells about RSS and Google Reader.#
+ Netscape gave us RSS 0.91 and it was good enough to create a new powerful layer on the web. Then Netscape blew up and a bunch of repeated efforts to kill it from big companies. I’ll leave it to others to say why, but they tried over and over to extinguish the spark. Independent developers were stubborn, we kept using the original format, and in the end the independents prevailed. #
+ Don’t ever think bigco’s are the answer. They almost always suck the life out of open systems. If you have something good going: work together . It’s the antidote to bigco dominance. #
+ If you suck up to the bigco thinking they’ll let you in, maybe they will for a short while. But what you’ll be left with may not be worth the cost. #
+ And just because you have a job at a bigco doesn’t make you hot shit. Maybe for a moment. #
+ This theory has a name, it’s described in the Prisoner’s Dilemma , and its lesson applies in tech and in the political disaster the US has become.#
+
+
+
+
+
+
I do all my shopping in ChatGPT. There must be a way to monetize that. For example, I want to buy a new backpack to carry my laptop and other mobile stuff. I should be able to set up anywhere there's wifi. I've got a modern MacBook Air, an iPad and two phones, one iOS and one Android. The main one is Android, I have to carry the iPhone because I use an Apple watch. I imagine there must be some improvements made in backpacks since I bought the last one, which was when I lived in Berkeley, in the late 00s.
#
+
I've been evangelizing
evangelism lately. Focus on goals and help others help us achieve them. It's a virtuous cycle, because once people figure out that they can get help by helping us, they will help us more. That is, when it works.
#
+
Reason #29812 you know our current writing system is broken. When you want to post something that has more than the maximum characters they post an image instead of the text. I once wasted a few months making a
writing tool for those kinds of posts, hoping that if it caught on we could have a shadow network that moved the actual text around the net between users.
#
+
+
+
+
In 2014 I wrote a
manifesto about web writing. A decade later later, I'm still trying to get writing on the web to work again. It was on a good track before
the rude interruption .
#
+
+
+
+ I've used this phrase a few times recently: "Before we were so rudely interrupted."#
+ Or, "the big interruption."#
+ I'm referring to 2006 , when web writing was downgraded, to be 140 characters with no styling, no links, without the ability to edit. #
+ That's when writing on the web started going in the toilet. #
+ So when I say it again I may link to this post, because out here on the web, linking is always allowed. #
+
+
+
+
+
+
+ Please try again if you've been waiting.#
+ Report problems here .#
+ It had been broken since Sept 14. #
+ Still diggin! ;-)#
+ #
+
+
+
+
+
+
I test drove three different EVs today at an
event at
SUNY Ulster today.
VW ID.Buzz ,
Rivian R1T ,
Kia EV9 . I was surprised the one I liked best was the VW. It handled well, the others were sloppy, drive like the big cars they are. The Rivian had the best computer system, looked even nicer at first look than the Tesla. The Kia EV9 had a standard Kia computer system, far behind that of Rivian or Tesla. VW's computer was halfway between, it appeared they thought overall about the controls, but I was so impressed by the ride, and size, and the whole concept of it, and I always liked vans. I'm seriously thinking about swapping my Tesla for the VW. There are other disadvantages, I'm going to start reading up on it, until today I never gave it any thought, didn't think it would be a car for me. But I
realllly liked it.
#
+
Bluesky post : "The idea is to build a social network entirely out of replaceable parts. No silos, no centralization. Just the web."
#
+
+
+
In yesterday's
piece I suggested people start by creating a
free site on wordpress.com to be their home on the open social web.
#
+
People are surprised that I'm trying to build the for-real social web as opposed to the aspirational social web. It
does require a lot of
chutzpah . I feel that. Sometimes I put off doing things because while the coding is simple and straightforward, the immensity of it overwhelms me a bit. I don't remember feeling that way the first time around, possibly because we were doing it all step by step over approx ten years. Now it's all compressed into weeks. I know how to do it, and I've got or built the pieces I needed. But it just doesn't somehow feel right that the idea is actually becoming a thing. "This can't be happening." But we live in that kind of time. Who knows what monsters lie within. We may find out. Heh. Maybe that's where the
goosebumps come from.
#
+
With the advent of AI code development tools, maybe we should embark on a project to merge all programming languages into one syntax. To undo all the chaos and make humans more competitive with machines. The fact that there are so many development bubbles is a huge waste of resources. Makes us all net-net more stupid.
#
+
Some day they will have
AI actors delivering the nightly news and no one will notice.
#
+
+
+
+ With all respect to the tech industry -- why is the traffic in the Bay Area so awful. Why haven't they done anything about it. #
+ Wouldn't that be a good test before running the whole world? As programmer myself, I wouldn't trust the algorithm without a lot of QA . Seriously. Think about it#
+ It's the strangest configuration for a metropolitan area, the center of the city is in the middle of the bay . (Same as Seattle, btw.)#
+ The best answer the tech industry came up with was Uber, as far as I know.#
+ I lived in Palo Alto, Mountain View, Menlo Park, Berkeley, Los Gatos and Woodside over 31 years and I did nothing to fix the problem either. My answer was to move to NYC where the transit system is pretty great. Then I moved to the mountains and got a Tesla . #
+ BTW, the idea that the stars of Silicon Valley should run the world is not new. I first heard about it from Apple top level managers in the 1980s. They were not techno-fascists, but they did hugely underestimate what it takes to run the world, or even a small country in Africa. #
+
+
+
+
+
+
+ Yesterday I wrote about preserving freedom by using replaceable parts to form a social web out of the web itself. Outside the silos. I'm getting comments on it. Nice to see other people thinking likewise. That's what we need to get a bootstrap going. People. #
+ In other words the social web is the web. It's made of people. Somehow we forgot that, and gave up so much.#
+ It's such a sexy idea, I had to get ChatGPT to generate it. #
+ Let the web be the web.
#
+
+
+
+
+
+
New motto: Let the web be the web.
#
+
+
I have a problem in the development version of WordLand. Sometimes when I bring it to the front, there's an error deep in jQuery, an event has fired and the handler is pointing to a string or number, not a function. It dies, with no stack crawl, because it was responding to a focus event or blur or something like that. Something got overwritten. I have no idea where or how it happened, but once found it will be obvious. I've been trying to figure it out with Claude and ChatGPT and I can see it's going to take a few hours of concentration and learning to figure it out. But then I realized hey -- I bet I could use the Chrome debugger to find this problem. It has Gemini built in. It has access to the running code. I don't have to act as an intermediary, gathering data, pasting stuff into the AI bot. Now I'm looking forward to doing this.
#
+
Someday soon you're going to read a post here, have something quick you want to say, click on a little icon, the editor opens, you write, post, and it's on your blog. I get a pointer. I can read it, and if I want, I can attach it to my post. The writing stays in your space, so you have an archive of all your writing. We let the web be the web.
#
+
One of the things we can do to preserve freedom, is to resume using the open internet to communicate instead of the silos of Zuck and Musk et al. When you use the web instead of a silo you are helping build community outside, where free speech is the default. The more of us who communicate outside, the more people will be attracted. Your participation helps draw people out, where independent developers can create new tools for you without waiting for permission of big companies who own the network you're using. It's like voting. The more people do it, the stronger we all are. I've spent the last 31 years insisting on that freedom for myself as a writer and developer and sharing it with others. As people flocked to Twitter and Facebook, etc, you thought I was gone, finished, a loser. I know they think that about me. But honestly, I also knew the open internet would come back, because I knew its value, and I knew eventually the silos would reveal their
real cost . They may appear free, but there's a
price to pay . I hope you'll consider using the tools. If you want to get started, create a free site on wordpress.com. Just create it. That will be your home on the open social web. And btw, you don't have to agree with my politics to be part of it. That's kind of the whole point. ;-)
#
+
+
+
+ Normal hats don't fit. Not even close.#
+ So I buy my caps from BigHatStore.com .#
+ In prep for my trip to Ottawa later this month for WordCamp Canada, my first trip out of the country in a long time, I wanted to get a new hat. #
+ They don't have a big selection of NBA hats, so there's no Knicks hat that fits my head.#
+ And they didn't have any Mets hats for some reason. #
+ I thought -- I'll get a Wisconsin hat! I went to grad school in Madison and loved it there. You know Fuck em Bucky! But they didn't have any Wisconsin hats either. #
+ I was dejected, but noticed they did have Harvard hats. #
+ So I got one. #
+ Which reminds me of a joke a famous VC told when we were walking around on the Stanford campus in 2004. #
+ It goes like this...#
+ How can you tell someone went to Harvard?#
+ Pause.#
+ I give up.#
+ They tell you!#
+ Haha. #
+ Or they wear a Harvard baseball cap. #
+ I plan to tell that joke a few times, while wearing the cap. :-)#
+
+
+
+
+
+
+ I don’t like the Democratic leaders in Congress, but that doesn’t matter. People say what they’re doing won’t work. I agree. But the elected Democrats swore an oath, to uphold the Constitution. With that constraint there isn’t much they can do other than try to force the Repubs to do the same, and that isn't likely to work. It hasn't so far, but it's all they can do without breaking the Constitution themselves. Think about it. All these minds, and we haven't come up with anything.#
+ What brought this home was a comment by a Democratic congressperson saying on CNN last night no matter what they do Trump won’t obey if he doesn’t want to. It’s true. They could get Repubs in Congress to fund Obamacare, but Trump could ignore it. That’s reality. What do the pundits think they should do?#
+ Here's the unvarnished truth. Whatever the answer is it can't come from the Democratic Party. #
+
+
+
+
+
+
A very small
picture of the blogger's room at Dean For America in
January 2004 . A big chunk of political history happened in this room. I was there, in the runup to the Iowa caucus and on the night of the famous
Dean Scream . Here's a picture of my digital
camera in 2004. It wasn't cheap and as we know it was futuristic. That was possibly one of the first digital selfies.
#
+
I started
this site to hold some of the essays
John Palfrey posts on Facebook, where they are out of reach of the tools of the open web. John is a longtime friend, for over 20 years, and we did some
great stuff together in the early days of the blogosphere. I will happily turn the site over to JP any time he wants, and provide personal support if there are problems. I want him in my online web family, and Facebook simply does not make that possible. It's a silo, as we know and that means it's basically a world unto itself. If we want to solve the problems of the world, we have to step out into the open space where what we write is not so local or controlled.
#
+
+
+
+
+ Listening to today's David Frum podcast , from a journalist who says he reps the facts-only brand of journalism. He says his guest invented podcasting in 2014, about 14 years after we started it. #
+ He then says that anyone in tech in the late 1990s made hundreds of millions of dollars. I didn't make very much money on those terms in the 90s, but I did a lot of the creating in that period. #
+ Both of which tell you more about who he pays attention to than anything resembling the truth.#
+ Maybe the first thing journalism can do is let up on the arrogance, they represent their own point of view and nothing more. Humility.#
+ Regardless I find that Frum is worth listening too, because he asks questions that are worth thinking about. #
+ In today's podcast he asks if the Dems ever get control of government, should they use the new norms to punish the Repubs who so damaged our system. He says it's a tough question, I say he's made it unnecessarily complicated.#
+ The same people are also breaking laws that are on the books. Let the reconstituted DoJ do their jobs. And if there's one thing I'd insist on, they get an AG who doesn't dream a lot about how everyone means well, and they kick off the prosecutions immediately on taking office. And if the courts have been corrupted, then you have to deal with Frum's Dilemma, but not until then.#
+ And of course I'm not one of the people he can hear, but if you're one of the people he does listen to could you send this his way. Thanks! :-)#
+
+
+
+
+
+
+ I was having a conversation with Dan Knauss from the WordCamp Canada team. He said that people in the WordPress world don't think of it as a blogging community. I can see why they resist that, blogging has gotten a lot of bad PR in the last 19 years. The same bad PR that RSS got, and I felt that was so wrong, as wrong as what people said about blogging. #
+ We like Twitter. So blogging must be dead. I understand -- I get it. But that's marketing, and only necessary because Twitter wouldn't let blogging be part of what they did. I'd be happy to talk about that during my keynote if people want to hear why I think that. #
+ Anyway until 2017 I tried to fit in between the silos. 2017 is when I realized it was hopeless. I couldn't write for the web and for the silos at the same time, I had to choose, so I went with the web. Instant happiness. #
+ Okay so you don't emphasize blogging in the WordPress community. This imho is a mistake. #
+ Even if it was a community built around a style of sneakers or audio equipment I would say it's a mistake not to build a custom blogosphere just for the community. In the past we would have used Twitter for this, but I don't think anyone in their right mind wants to try to do that now. Esp a community, like WordPress, that has open web built into its bones. #
+ I don't have a lot of time to write this morning, so let me leave you with this story. It took years to boot up blogging as a community. I thought everyone would want to do it as soon as they saw what it was, but there needed to be a critical mass before there could be a critical mass. Logically impossible, right, but somehow it happened anyway. But slowly, in fits and starts. #
+ But podcasting, in contrast, happened much more quickly. The reason? We already had blogging to build on. We had a way to communicate without the press in the middle. That's the power of blogging. We build our own news system. Do things the journalists don't understand or are counter to conventional wisdom. #
+ So imho it's only coincidence that WordPress happens to be a great blogging tool. It can be that and all the other things it is. It's going to be something else too, if I have my way -- it's going to define the basic software that powers the social web. Not peripheral, but central. That and RSS. Incredibly powerful combination, and I think ready to be a strong alternative to the silos. In order for that to work, we have to reboot the blogosphere, so we will do that. :-)#
+ Cross-posted from WordCamp Canada . #
+
+
+
+
+
+
WordLand is not a blogging platform, it builds on a blogging platform.
#
+
The
stock market is doing really well,
still . But a really important part of our workforce is being attacked by the government. I have no idea what's going on among the immigrant workers in the US. Maybe this is something one of the news orgs could look at. But it seems we must already be short on labor to do the things that keep our lives and businesses functioning. If so, why isn't that showing up in the market?
#
+
One thing journalism could do for us is sponsor polls to find out how many people are scared about what's coming next and how scared are they?
#
+
+
+
+
Please read Stephanie Booth's three-part
Rebooting the Blogosphere . She's doing great work organizing the ideas around what can we do better in the new blogosphere.
#
+
"It happened so slowly that we didn't notice but Twitter wiped out the idea of the web developer. The platforms we were trying to make work together were programmed so they couldn't work together." I didn't want to let that pass without notice. As the early blogosphere is coming back into focus, and given what we know about the before and after of Twitter, I'd say this was hard to see, I was too close to it, but now having gained some distance, and rebuilding the basics of the blogging with the tools of 2025, it has become clear. The age of the blog ended sometime after 2006 because people moved what they were doing in blogs to Twitter. It wasn't Twitter's fault, if the independent developers had been willing to pool resources to make certain things easy that were hard with blogs, we could have offered a good alternative that didn't make all the compromises on writing that Twitter did. That was unnecessary damage to the web. I'm now referring to that time as "the rude interruption" as in "before we were so rudely interrupted." I am energized by the blogging energy that's come out of the two podcasts I did last week to the
ActivityPub world and the
WordPress community . They may or many not remember blogging before Twitter, but they do viscerally feel that the web has unrealized potential.
#
+
I watched
Alien: Earth to the end, didn't like it, it was
Noah Hawley , got great ratings. But I was wary going in. I don't like horror. I don't like seeing human bodies opened up, esp brains and guts. For those reasons I have never been a fan of the original Alien movie, I was bored and disgusted at the same time, and shocked once. As far as I can remember the movie had no plot and that one big scene. Anyway, Alien: Earth is another one of those "universe" thing, like the Marvel or DC universe, or Petticoat Junction and Green Acres. Aliens Earth had to fit into a pre-determined timeline. Good versus evil. Kids good. I hoped it would be great because Noah Hawley is the showrunner of the Fargo series on Hulu. It also defines a universe, but it's okay because they're cool or depraved or really stupid or cute in a Wisconsin way or from Europe, or twins. And there are aliens floating around there too, and Ronald Reagan even. And it was a completely different story from multiple different angles every time, and it had the same outrageous and dark and mostly intelligent tone that goes back to the original movie, which was the best movie ever of its kind, and gave us the Coen Brothers who haven't given us a dud so far. Noah Hawley disappoints.
#
+
+
+
There should be a Hall of Fame for open software, formats and protocols that have stood the test of time, esp those that have taken a beating from commercializers. Not for the people who did it, that could be a separate thing, so there are no fights about who gets credit for what, but for the thing itself. It would be a way for the industry to say "Hey sorry we didn't accept you at first, and we just want to acknowledge that, after X years of doing something hard, it worked, we're all using it now." To which the open format would say, "Hey thanks for the call out, and let us know if you did something cool with it."
#
+
+
The
OPML version of this blog,
according to archive.org , goes back to
Dec 28, 2005 . It
appears that it hasn't updated since
June 8, 2010 . On further investigation, we do maintain an
JSON file for the site, it's just JSONified OPML. That works too. I'm looking for a way to direct posts to the WordPress news river I started last week. You can already easily use WordLand to do that, we have excellent category support, you're one click away from a dialog where you can choose from your categories while writing. You don't have to go anywhere to do that. The JSON file
starts on
July 18, 2017 and it's rebuilt every time I post an update to the blog along with the RSS feed. And 2017 was when I did my 180 degree turn back to blogging as I was doing it before we were so rudely interrupted by Twitter.
#
+
The stuff I'm posting on the
Daveverse site isn't getting into my
Daytona search engine . I'm writing some real stuff there that should be included. I write on Daveverse using WordLand, it's proof that it's working as a comfortable writing tool and helps me think of features. I do most of my Daveverse writing on my iPad. Test posts are done on my desktop while I'm working on it, but sometimes they contain stuff that could be indexed as well. With enough time I could easily do this, but that's the problem, not enough time.
#
+
+
+
I'm writing
reports about problems with WordLand using WordLand and I'm liking it. That's a good sign btw. And also I think it looks pretty great viewed in
WordPress and in
Mastodon .
#
+
Automattic shipped a new product called
Telex that's a ChatGPT for designing blocks in WordPress designs. Blocks are a simple result of design and programming that define the behavior of a part of a WordPress page. Having seen a demo, it looks really useful and is a nice small programming space, where a lot of users could actually control the process, and get something useful quickly. I've gotten pretty adept at teasing images out of ChatGPT, and at some point I'm probably going to need a commerce site, to allocate subdomains for people's feeds in WordLand. Still have to figure out how that works.
#
+
+
+
I put out a request for WordPress-related blogs on
Masto ,
Bluesky and
Twitter this morning. Got enough feeds to start
wordpress.feedland.org . If you have a site that should be included, please post the URL in one of those places and I'll add it to the subscription list for the site.
#
+
+
+
+ "The #1 chips for dips!"
#
+
+
+
+
+
+
Good morning sports fans!
#
+
Today there is a
new podcast , this one for members of the WordPress community. I was interviewed by the very capable Nathan Wrigley of WP Tavern. I thought it was a great conversation, we talked about the remarkable position WordPress is in to serve as the OS for a rebooted web. I love the introduction they wrote, I also figured out how to make content management work in the browser, which was the foundation for blogging and eventually WordPress, though it seems that legacy is a bit lost in all the other stuff I've had my fingers in over the years. I hope you listen to this podcast, and if you have
questions or comments , here's a good place to post them.
#
+
This came up in a
thread on Mastodon about "social network" vs "social media." I also think
social web should be used sparingly. Because imho there is such a thing as the social web but we haven't developed very much of it, i think because we were intimidated by the silos. I'm not intimidated any more, I'm fed up and going ahead without them.
#
+
+
+
+
+
+
+
diff --git a/Modules/RSCore/Tests/RSCoreTests/Resources/scripting.txt b/Modules/RSCore/Tests/RSCoreTests/Resources/scripting.txt
new file mode 100644
index 000000000..65d4f1a83
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/Resources/scripting.txt
@@ -0,0 +1 @@
+Scripting News SCRIPTING NEWS It's even worse than it appears.. Go Monday, October 20, 2025 Frontier's Simple Cross-Network Scripting is one of my favorite features ever. It made procedure calls over the internet almost as simple as procedure calls inside Frontier. # I wish WordPress had a "home" social network. The community is all over the place, on Twitter, Slack, Masto, Bluesky, GitHub, and probably a few other places. I hope to have a social network that is built on WordPress and RSS. That would be one I'd like to be the first user of. I'd make my account simply dave. And of course I'd offer "matt" to Matt. But it would be open to the public, and anyone could start their own, by running a very easy to install piece of software on a server. # Took yesterday off, aside from a little blogging, which isn't work for me -- now on Monday, I'm going to do a few warmup projects, and figuring out which big item I should focus on in my post-WordCamp experience. # Sunday, October 19, 2025 I have to remember to use WordLand to post to Mastodon, because when I go in that way, I don't have a character limit and I can use styling. We were wrestling with this question at WC, how to market the feature in a way that would get people to go to WordPress to write for Mastodon. It would also be cool if you could turn on the ActivityPub connection in WordLand, without having to wade through all the menus and dialogs. Imagine if we had a confirmation dialog like this in WordLand.# I have a really interesting idea for Netflix. Do a MCP so I can ask ChatGPT to find a show I'd probably like on Netflix. Then Hulu would have to hook up too, and HBO and Apple and everyone else. That would fix a big entertainment problem because I've already taught ChatGPT exactly what I like in movies and serials by giving it all my favorite shows and why I liked them so much. This was the idea of Bingeworthy, which I never seem to find time to work on. I really just want the freaking functionality. Someone should buy Metacritic btw, their process, however it works, is really good at finding the good stuff. But please someone who believes in open APIs, it totally needs to be in the Chativerse.# What I did on my trip to Canada, part 1# I presented WordLand for the first time publicly, the new one with a timeline, so it more clearly shows how we can build a beautiful social network just from open formats and protocols. # No user lock-in, every part replaceable, and open to developers to add functionality without having to reimplement the whole thing. These are all the things I think that have stood in the way of innovation in the web for many years.# A social network that starts out with no centralization and open in every sense has a much better chance of being decentralized than one that starts out centralized and swears they're going to stop doing that -- someday, fingers crossed, etc.# Saturday, October 18, 2025 Back home from my trip to Ottawa. Took the scenic route through the Adirondacks. Had an unqualified great trip. Should've gone to a WordCamp a long time ago. It's totally my type of people. I have a long list of things to organize, but for now it's time to catch up on sleep and rest, MLB and NBA, and make plans for the future. # Saranac Lake, NY.# Friday, October 17, 2025 Evan Prodromou explains all that's happening in the WordPressOSphere in the realm of ActivityPub. # Wouldn't it be great if there were a list of WordPress users who have turned on their ActivityPub plugin, so we know who to subscribe to on our favorite ActivityPub service.# I'm back at WordCamp in a big room waiting for Matt Mullenweg to answer questions for the people here. Yesterday's presentation went really well, lots of smart people really interested, fantastic discussion after. A very nice web culture. I went with three slides to get started, and then talked, demo'd, answered questions, and listened to ideas. Told a few jokes. Got a few laughs. It got the job done, help feed the word of mouth on WordLand. # Thursday, October 16, 2025 Good morning from Ottawa# Here's the link to the slides promised below. # I've been going back and forth on slides. I always do this. In the end I hate slides because I digress while going through them and skip ahead, end up wishing I hadn't used them. So I decided to compromise. I'll do the first three in some detail, and digress and go down tangents as I see fit. # The three main slides.# Accomplishments of WordPress. # Why podcasting retained its independence. # Demo of WordLand. # There were 20 or 30 more slides after that. # So what I'll do is this. Present the first two in some detail, then page through the rest quickly and come back and do the demo. Also publish a link to the deck on my blog so people can scroll through them at their leisure. And once the demo is done, I'll answer questions. # I have an idea that we can have a blogosphere that is as functional as podcasting. We just need users to get started, to get the idea off the ground. We don't have to accept the limits, we can have the full web if we want it. # Wednesday, October 15, 2025 The accomplishments of WordPress# One more slide from the presentation.# The accomplishments of WordPress.# And with that I'm off to Ottawa, seeking fame and fortune. 😄# PS: One more slide for the road. # Tuesday, October 14, 2025 Times I've been ambushed at conferences# Well, I think I'm done. I've got the outline for the slides complete. I can't possibly talk about all the stuff that's in the slides. Once I leave tomorrow I think perhaps I'll post a link for the slides and maybe offer a place to comment. Maybe. # I get very nervous about these things and then remember when I've prepared as much as I have for this, the talk goes quickly and people generally are nice, though I've been ambushed a few memorable times. Let's see -- Austin, Cambridge, San Francisco and Nashville come to mind. ;-)# In Austin it was because I was privileged. I was being honored because it was the 25th year of my blog, and I was one of the keynoters. I told the promoter his people wouldn't like me, and then I forgot I said it when it happened. I was stuck, I didn't want to get into a public argument with anyone. (Had I wanted to rebut, I would have said everyone in this room is privileged, just look around at how well fed and educated everyone is. We all flew in here. We live in a rich country where we are the elite of the elite. Now STFU, in my dreams.) # There have been times when I welcomed an argument...# In San Francisco, I was invited to lead a panel from the music industry about how great Napster was. This was probably in 2000 or 2001 when Napster was at its peak. It was an ambush. All the panelists made me the issue, and then they voted to kick me off the stage. I stayed there and waited until they exhausted their rage, and then asked them a question about music and Napster. Acted like nothing had happened. I had earned my place there, I was a very early industry adopter of Napster. I loved what it did for us. Imagine until then you either had to buy an album to listen to music, build a collection, or wait until it was played on the radio. (What is radio? Kind of an early form of podcasting.) People were talking about music in supermarkets and airports. This could not be stopped, I was sure of it, and they were acting like babies. I stood up and prevailed.# In Nashville, I was invited to be a sort of keynoter for a conference that was patterned after BloggerCon. I did not organize it, but I led a session, which was attended by a famous right wing blogger who I had invited to the Harvard BloggerCon. He brought a bunch of his friends, and they each said no one was listening to them but we were listening to them. I eventually sat down and let them have a session dominated by a few people repeating themselves. It was boring. # Finally I was set up by the promoters of a CMS conference which Berkman hosted at Harvard. I was the master of ceremonies. No one told me that one of my most virulent trolls was there, and when he got up to rage at me I asked him to sit down, but Charlie Nesson who was the senior educator there, and kind of naive about internet trolls, said he should speak his mind. I should have walked out at that point. I knew what was coming. It really shook me. # In Nashville a columnist in a local paper who said I caused the riot, btw. I swear to god I always take my discussion leader role seriously. I gave them all a chance to talk and they all said the same thing, almost as if they had been told to say it. # Monday, October 13, 2025 The web crashes# Let's remember how the web could have worked.# The ideal is to write in our blog space, and publish everywhere.# That's what we have been trying to do since Twitter came along. # Write on your main blog, cross-post everywhere it belongs. # This could have worked, and it still can. # But it can't work until we get agreement on what text is. This will be much-discussed at WordCamp Canada this week, based on what WordPress is doing and what Evan Prodromou will speak about and of course what I am speaking about.# Getting back on track is as simple as agreeing what text is on the web. For that we have two very good models: HTML and Markdown. # Here's my slide.# Sunday, October 12, 2025 I'm getting ready for a trip. And part of that is getting my laptop set up so I can post to Scripting News. If you're reading this, it worked.# It's funny because it's true# Working on my slides for WordCamp Canada next week.# I don't think I'll actually use the F-word in the slide. # But it makes me laugh when I see it.# It's funny because it's true.# Saturday, October 11, 2025 I'm narrating development work on my Daveverse site. If you're interested, that's where I've been while I'm shaking out core bugs in the new WordLand. These are the things I want to stay fixed and never have to screw with again. It does actually work that way in products that go through a shake-out process. Drummer and FeedLand both work pretty well. Sure there are bugs and things I wish worked differently, but I and a few other people use them as everyday tools. I'm trying to get WordLand with its timeline function to be that way. A bunch of new hookups via HTTP and Websockets. # Friday, October 10, 2025 Today's song: Oh My Love, by John Lennon. I was trying to remember this song. It kept eluding me. It's not one of his most famous. It's what you experience when you fall in love. Clarity. Endless possibility. At home in your life. For the first time. # I know so many people around my age that were never told this simple truth that I heard Steve Jobs say in a video the other day. Paraphrasing -- the people who made the rules you think you have to live by weren't smarter than you. Once you accept this as fact, then if you can find the leading edge you can make it work the way you want it to. You can be one of those people. # The social network of the web# I was just catching up on tweets and saw an announcement earlier this week that Matt Mullenweg is going to lead a town hall discussion at WordCamp Canada next Friday in Ottawa. A week from today. I find that exciting. I'll in the room for sure, and blogging it. Why not? ;-)# I am presenting the day before, where I'll do a demo of the new WordLand, explaining how it's now twice the product it was last time you all saw it. It is still centered on WordPress as the place where all the user's writing is published. And somehow through the magic of software, we manage to make it into a social network. And the cool thing about the whole stack of software we build on, all of it is replaceable and of the web, in every sense.# There are things that Bluesky and Mastodon can do that WordLand can't. But there are also many many things we can do with the structure that WordLand creates that the others can't touch. There's a simple reason for that, if implementing something, no matter how attractive, without limiting the web-ness of the system, we didn't do it. This is the social network of the web. That means all the pieces connect with each other in fantastic unforeseeable ways. And anyone can discover these connections. That was the joy of the early web, the thought "Hey I think I can do that" and when you try, it works! We're back there again, if the people come. The technical challenge is still there but now is smaller. Getting people to look and fall in love (hopefully) is the big challenge.# After WordLand 0.8 is ready, real soon now, who knows what's next? That's the glory a bootstrap. Every step tells you where to go next. That's how you know you're hitting a target.# I don't know if Matt will be there for my demo, I hope he is. He and Automattic and the community have created a fantastic platform. Finding WordPress has a super powerful API that I didn't know about is like finding a new web. Let me know if you see it too. ;-)# So thanks Matt for your great contribution. I hope to be able to thank you for that personally in Ottawa next week. Perfect timing.# Cross-posted from the WordCamp Canada site. # Thursday, October 9, 2025 Cute paste for WordLand# Note this is for the 0.8 release of WordLand coming soooon. Not in the current released product. # A friend asked for this feature a few months back, before we had a Markdown mode in WordLand. # As I'm reviewing the product for first beta I realized I could now implement the feature he asked for.# How to..# Copy a URL to the clipboard.# Open WordLand, bring it to the front.# Go into Markdown mode by clicking the M icon. It turns green.# Select the text you want to be a link.# Paste the URL copied in step 1.# It creates the link for you, in Markdown syntax of course. # To see it in HTML, just flip the Markdown button off.# I call this feature Cute Paste. :-)# A video demo.# Wednesday, October 8, 2025 WordPress news via FeedLand. # The same energy that forced Biden off the ticket should get Schumer and Jeffries out of the top seats. Replace with people who can speak plainly about what's actually happening.# I stop reading every piece that begins by wondering if the Dems or Repubs are "winning" the shutdown. Anything the Dems can do that has anything to do with governing is a win for all of us, including the Repubs, but esp the Dems. This is a new world, the old one is gone. Every day is a new reality.# Fellow humans. If we're competing with AI, and to some extent it seems we are, consider that they have much better writing tools than we do. If we are to put up some kind of resistance to our cyber-domination, shouldn't we invest in better writing tools for bodied-intellects like us?# I try not to run away from controversy when conventional wisdom is in the way of progress.# The big deal with WordPress, as outlined in the Think Different piece is that the strong API makes WP into something quite different from what most people think it is. I think of it as an OS for writing on the web. Very analogous to what we use(d) PCs and Macs for before networks were everywhere. This came up in a thread on Bluesky about MicroPub which appears to be a redo of Metaweblog, with better identity system. # The ActivityPub world, which MicroPub is part of (I guess), could benefit from reading Joel Spolsky's piece about Architecture Astronauts. # Tuesday, October 7, 2025 Why we all should love RSS. It makes the web higher level without taking anything away. # Thanks to Tanya Weiman for observing that this blog started 31 years ago. Probably the longest-running blog on the internets. Still making trouble. And as they say, still diggin. You can always tell how long it's been by looking at the bottom of any archive page, where it's constantly calculating, down to the second, how long this blog has been running. # Try as hard as I can I still have distinct flows and more than one place where I edit. I think that's a consequence of working on WordLand. I have to use it for serious writing, otherwise how would I know if it works. Maybe I can find a way to merge flows, but not at the moment. I still have to do some copy/pasting. # The antidote to Bigco dominance# Fascinating blog post from Jason Shellen, tech entrepreneur, formerly with Blogger and Google. Here’s my perspective on part of the story he tells about RSS and Google Reader.# Netscape gave us RSS 0.91 and it was good enough to create a new powerful layer on the web. Then Netscape blew up and a bunch of repeated efforts to kill it from big companies. I’ll leave it to others to say why, but they tried over and over to extinguish the spark. Independent developers were stubborn, we kept using the original format, and in the end the independents prevailed. # Don’t ever think bigco’s are the answer. They almost always suck the life out of open systems. If you have something good going: work together. It’s the antidote to bigco dominance. # If you suck up to the bigco thinking they’ll let you in, maybe they will for a short while. But what you’ll be left with may not be worth the cost. # And just because you have a job at a bigco doesn’t make you hot shit. Maybe for a moment. # This theory has a name, it’s described in the Prisoner’s Dilemma, and its lesson applies in tech and in the political disaster the US has become.# Monday, October 6, 2025 I do all my shopping in ChatGPT. There must be a way to monetize that. For example, I want to buy a new backpack to carry my laptop and other mobile stuff. I should be able to set up anywhere there's wifi. I've got a modern MacBook Air, an iPad and two phones, one iOS and one Android. The main one is Android, I have to carry the iPhone because I use an Apple watch. I imagine there must be some improvements made in backpacks since I bought the last one, which was when I lived in Berkeley, in the late 00s. # I've been evangelizing evangelism lately. Focus on goals and help others help us achieve them. It's a virtuous cycle, because once people figure out that they can get help by helping us, they will help us more. That is, when it works. # Reason #29812 you know our current writing system is broken. When you want to post something that has more than the maximum characters they post an image instead of the text. I once wasted a few months making a writing tool for those kinds of posts, hoping that if it caught on we could have a shadow network that moved the actual text around the net between users.# I did a video demo of pngWriter in Dec 2016. # Sunday, October 5, 2025 In 2014 I wrote a manifesto about web writing. A decade later later, I'm still trying to get writing on the web to work again. It was on a good track before the rude interruption.# Before we were so rudely interrupted# I've used this phrase a few times recently: "Before we were so rudely interrupted."# Or, "the big interruption."# I'm referring to 2006, when web writing was downgraded, to be 140 characters with no styling, no links, without the ability to edit. # That's when writing on the web started going in the toilet. # So when I say it again I may link to this post, because out here on the web, linking is always allowed. # Nightly email subs work again# Please try again if you've been waiting.# Report problems here.# It had been broken since Sept 14. # Still diggin! ;-)# # Saturday, October 4, 2025 I test drove three different EVs today at an event at SUNY Ulster today. VW ID.Buzz, Rivian R1T, Kia EV9. I was surprised the one I liked best was the VW. It handled well, the others were sloppy, drive like the big cars they are. The Rivian had the best computer system, looked even nicer at first look than the Tesla. The Kia EV9 had a standard Kia computer system, far behind that of Rivian or Tesla. VW's computer was halfway between, it appeared they thought overall about the controls, but I was so impressed by the ride, and size, and the whole concept of it, and I always liked vans. I'm seriously thinking about swapping my Tesla for the VW. There are other disadvantages, I'm going to start reading up on it, until today I never gave it any thought, didn't think it would be a car for me. But I realllly liked it. # Bluesky post: "The idea is to build a social network entirely out of replaceable parts. No silos, no centralization. Just the web." # Friday, October 3, 2025 In yesterday's piece I suggested people start by creating a free site on wordpress.com to be their home on the open social web.# People are surprised that I'm trying to build the for-real social web as opposed to the aspirational social web. It does require a lot of chutzpah. I feel that. Sometimes I put off doing things because while the coding is simple and straightforward, the immensity of it overwhelms me a bit. I don't remember feeling that way the first time around, possibly because we were doing it all step by step over approx ten years. Now it's all compressed into weeks. I know how to do it, and I've got or built the pieces I needed. But it just doesn't somehow feel right that the idea is actually becoming a thing. "This can't be happening." But we live in that kind of time. Who knows what monsters lie within. We may find out. Heh. Maybe that's where the goosebumps come from. # With the advent of AI code development tools, maybe we should embark on a project to merge all programming languages into one syntax. To undo all the chaos and make humans more competitive with machines. The fact that there are so many development bubbles is a huge waste of resources. Makes us all net-net more stupid. # Some day they will have AI actors delivering the nightly news and no one will notice.# Should tech run the world?# With all respect to the tech industry -- why is the traffic in the Bay Area so awful. Why haven't they done anything about it. # Wouldn't that be a good test before running the whole world? As programmer myself, I wouldn't trust the algorithm without a lot of QA. Seriously. Think about it# It's the strangest configuration for a metropolitan area, the center of the city is in the middle of the bay. (Same as Seattle, btw.)# The best answer the tech industry came up with was Uber, as far as I know.# I lived in Palo Alto, Mountain View, Menlo Park, Berkeley, Los Gatos and Woodside over 31 years and I did nothing to fix the problem either. My answer was to move to NYC where the transit system is pretty great. Then I moved to the mountains and got a Tesla. # BTW, the idea that the stars of Silicon Valley should run the world is not new. I first heard about it from Apple top level managers in the 1980s. They were not techno-fascists, but they did hugely underestimate what it takes to run the world, or even a small country in Africa. # Let the web be the web# Yesterday I wrote about preserving freedom by using replaceable parts to form a social web out of the web itself. Outside the silos. I'm getting comments on it. Nice to see other people thinking likewise. That's what we need to get a bootstrap going. People. # In other words the social web is the web. It's made of people. Somehow we forgot that, and gave up so much.# It's such a sexy idea, I had to get ChatGPT to generate it. # Let the web be the web.# Thursday, October 2, 2025 New motto: Let the web be the web.# Latest news from WordPress. Always looking for more sources. 😀 # I have a problem in the development version of WordLand. Sometimes when I bring it to the front, there's an error deep in jQuery, an event has fired and the handler is pointing to a string or number, not a function. It dies, with no stack crawl, because it was responding to a focus event or blur or something like that. Something got overwritten. I have no idea where or how it happened, but once found it will be obvious. I've been trying to figure it out with Claude and ChatGPT and I can see it's going to take a few hours of concentration and learning to figure it out. But then I realized hey -- I bet I could use the Chrome debugger to find this problem. It has Gemini built in. It has access to the running code. I don't have to act as an intermediary, gathering data, pasting stuff into the AI bot. Now I'm looking forward to doing this. # Someday soon you're going to read a post here, have something quick you want to say, click on a little icon, the editor opens, you write, post, and it's on your blog. I get a pointer. I can read it, and if I want, I can attach it to my post. The writing stays in your space, so you have an archive of all your writing. We let the web be the web. # One of the things we can do to preserve freedom, is to resume using the open internet to communicate instead of the silos of Zuck and Musk et al. When you use the web instead of a silo you are helping build community outside, where free speech is the default. The more of us who communicate outside, the more people will be attracted. Your participation helps draw people out, where independent developers can create new tools for you without waiting for permission of big companies who own the network you're using. It's like voting. The more people do it, the stronger we all are. I've spent the last 31 years insisting on that freedom for myself as a writer and developer and sharing it with others. As people flocked to Twitter and Facebook, etc, you thought I was gone, finished, a loser. I know they think that about me. But honestly, I also knew the open internet would come back, because I knew its value, and I knew eventually the silos would reveal their real cost. They may appear free, but there's a price to pay. I hope you'll consider using the tools. If you want to get started, create a free site on wordpress.com. Just create it. That will be your home on the open social web. And btw, you don't have to agree with my politics to be part of it. That's kind of the whole point. ;-)# I have a very large head.# Normal hats don't fit. Not even close.# So I buy my caps from BigHatStore.com.# In prep for my trip to Ottawa later this month for WordCamp Canada, my first trip out of the country in a long time, I wanted to get a new hat. # They don't have a big selection of NBA hats, so there's no Knicks hat that fits my head.# And they didn't have any Mets hats for some reason. # I thought -- I'll get a Wisconsin hat! I went to grad school in Madison and loved it there. You know Fuck em Bucky! But they didn't have any Wisconsin hats either. # I was dejected, but noticed they did have Harvard hats. # So I got one. # Which reminds me of a joke a famous VC told when we were walking around on the Stanford campus in 2004. # It goes like this...# How can you tell someone went to Harvard?# Pause.# I give up.# They tell you!# Haha. # Or they wear a Harvard baseball cap. # I plan to tell that joke a few times, while wearing the cap. :-)# Don't focus on the Democratic Party# I don’t like the Democratic leaders in Congress, but that doesn’t matter. People say what they’re doing won’t work. I agree. But the elected Democrats swore an oath, to uphold the Constitution. With that constraint there isn’t much they can do other than try to force the Repubs to do the same, and that isn't likely to work. It hasn't so far, but it's all they can do without breaking the Constitution themselves. Think about it. All these minds, and we haven't come up with anything.# What brought this home was a comment by a Democratic congressperson saying on CNN last night no matter what they do Trump won’t obey if he doesn’t want to. It’s true. They could get Repubs in Congress to fund Obamacare, but Trump could ignore it. That’s reality. What do the pundits think they should do?# Here's the unvarnished truth. Whatever the answer is it can't come from the Democratic Party. # Wednesday, October 1, 2025 A very small picture of the blogger's room at Dean For America in January 2004. A big chunk of political history happened in this room. I was there, in the runup to the Iowa caucus and on the night of the famous Dean Scream. Here's a picture of my digital camera in 2004. It wasn't cheap and as we know it was futuristic. That was possibly one of the first digital selfies. # I started this site to hold some of the essays John Palfrey posts on Facebook, where they are out of reach of the tools of the open web. John is a longtime friend, for over 20 years, and we did some great stuff together in the early days of the blogosphere. I will happily turn the site over to JP any time he wants, and provide personal support if there are problems. I want him in my online web family, and Facebook simply does not make that possible. It's a silo, as we know and that means it's basically a world unto itself. If we want to solve the problems of the world, we have to step out into the open space where what we write is not so local or controlled. # All the September posts in an OPML file.# Frum's dilemma# Listening to today's David Frum podcast, from a journalist who says he reps the facts-only brand of journalism. He says his guest invented podcasting in 2014, about 14 years after we started it. # He then says that anyone in tech in the late 1990s made hundreds of millions of dollars. I didn't make very much money on those terms in the 90s, but I did a lot of the creating in that period. # Both of which tell you more about who he pays attention to than anything resembling the truth.# Maybe the first thing journalism can do is let up on the arrogance, they represent their own point of view and nothing more. Humility.# Regardless I find that Frum is worth listening too, because he asks questions that are worth thinking about. # In today's podcast he asks if the Dems ever get control of government, should they use the new norms to punish the Repubs who so damaged our system. He says it's a tough question, I say he's made it unnecessarily complicated.# The same people are also breaking laws that are on the books. Let the reconstituted DoJ do their jobs. And if there's one thing I'd insist on, they get an AG who doesn't dream a lot about how everyone means well, and they kick off the prosecutions immediately on taking office. And if the courts have been corrupted, then you have to deal with Frum's Dilemma, but not until then.# And of course I'm not one of the people he can hear, but if you're one of the people he does listen to could you send this his way. Thanks! :-)# We like Twitter. So blogging must be dead.# I was having a conversation with Dan Knauss from the WordCamp Canada team. He said that people in the WordPress world don't think of it as a blogging community. I can see why they resist that, blogging has gotten a lot of bad PR in the last 19 years. The same bad PR that RSS got, and I felt that was so wrong, as wrong as what people said about blogging. # We like Twitter. So blogging must be dead. I understand -- I get it. But that's marketing, and only necessary because Twitter wouldn't let blogging be part of what they did. I'd be happy to talk about that during my keynote if people want to hear why I think that. # Anyway until 2017 I tried to fit in between the silos. 2017 is when I realized it was hopeless. I couldn't write for the web and for the silos at the same time, I had to choose, so I went with the web. Instant happiness. # Okay so you don't emphasize blogging in the WordPress community. This imho is a mistake. # Even if it was a community built around a style of sneakers or audio equipment I would say it's a mistake not to build a custom blogosphere just for the community. In the past we would have used Twitter for this, but I don't think anyone in their right mind wants to try to do that now. Esp a community, like WordPress, that has open web built into its bones. # I don't have a lot of time to write this morning, so let me leave you with this story. It took years to boot up blogging as a community. I thought everyone would want to do it as soon as they saw what it was, but there needed to be a critical mass before there could be a critical mass. Logically impossible, right, but somehow it happened anyway. But slowly, in fits and starts. # But podcasting, in contrast, happened much more quickly. The reason? We already had blogging to build on. We had a way to communicate without the press in the middle. That's the power of blogging. We build our own news system. Do things the journalists don't understand or are counter to conventional wisdom. # So imho it's only coincidence that WordPress happens to be a great blogging tool. It can be that and all the other things it is. It's going to be something else too, if I have my way -- it's going to define the basic software that powers the social web. Not peripheral, but central. That and RSS. Incredibly powerful combination, and I think ready to be a strong alternative to the silos. In order for that to work, we have to reboot the blogosphere, so we will do that. :-)# Cross-posted from WordCamp Canada. # Tuesday, September 30, 2025 WordLand is not a blogging platform, it builds on a blogging platform. # The stock market is doing really well, still. But a really important part of our workforce is being attacked by the government. I have no idea what's going on among the immigrant workers in the US. Maybe this is something one of the news orgs could look at. But it seems we must already be short on labor to do the things that keep our lives and businesses functioning. If so, why isn't that showing up in the market? # One thing journalism could do for us is sponsor polls to find out how many people are scared about what's coming next and how scared are they? # People are not symbols.# Monday, September 29, 2025 Please read Stephanie Booth's three-part Rebooting the Blogosphere. She's doing great work organizing the ideas around what can we do better in the new blogosphere. # "It happened so slowly that we didn't notice but Twitter wiped out the idea of the web developer. The platforms we were trying to make work together were programmed so they couldn't work together." I didn't want to let that pass without notice. As the early blogosphere is coming back into focus, and given what we know about the before and after of Twitter, I'd say this was hard to see, I was too close to it, but now having gained some distance, and rebuilding the basics of the blogging with the tools of 2025, it has become clear. The age of the blog ended sometime after 2006 because people moved what they were doing in blogs to Twitter. It wasn't Twitter's fault, if the independent developers had been willing to pool resources to make certain things easy that were hard with blogs, we could have offered a good alternative that didn't make all the compromises on writing that Twitter did. That was unnecessary damage to the web. I'm now referring to that time as "the rude interruption" as in "before we were so rudely interrupted." I am energized by the blogging energy that's come out of the two podcasts I did last week to the ActivityPub world and the WordPress community. They may or many not remember blogging before Twitter, but they do viscerally feel that the web has unrealized potential. # I watched Alien: Earth to the end, didn't like it, it was Noah Hawley, got great ratings. But I was wary going in. I don't like horror. I don't like seeing human bodies opened up, esp brains and guts. For those reasons I have never been a fan of the original Alien movie, I was bored and disgusted at the same time, and shocked once. As far as I can remember the movie had no plot and that one big scene. Anyway, Alien: Earth is another one of those "universe" thing, like the Marvel or DC universe, or Petticoat Junction and Green Acres. Aliens Earth had to fit into a pre-determined timeline. Good versus evil. Kids good. I hoped it would be great because Noah Hawley is the showrunner of the Fargo series on Hulu. It also defines a universe, but it's okay because they're cool or depraved or really stupid or cute in a Wisconsin way or from Europe, or twins. And there are aliens floating around there too, and Ronald Reagan even. And it was a completely different story from multiple different angles every time, and it had the same outrageous and dark and mostly intelligent tone that goes back to the original movie, which was the best movie ever of its kind, and gave us the Coen Brothers who haven't given us a dud so far. Noah Hawley disappoints.# Sunday, September 28, 2025 There should be a Hall of Fame for open software, formats and protocols that have stood the test of time, esp those that have taken a beating from commercializers. Not for the people who did it, that could be a separate thing, so there are no fights about who gets credit for what, but for the thing itself. It would be a way for the industry to say "Hey sorry we didn't accept you at first, and we just want to acknowledge that, after X years of doing something hard, it worked, we're all using it now." To which the open format would say, "Hey thanks for the call out, and let us know if you did something cool with it." # I now have a feed in the new WordPress News site. # The OPML version of this blog, according to archive.org, goes back to Dec 28, 2005. It appears that it hasn't updated since June 8, 2010. On further investigation, we do maintain an JSON file for the site, it's just JSONified OPML. That works too. I'm looking for a way to direct posts to the WordPress news river I started last week. You can already easily use WordLand to do that, we have excellent category support, you're one click away from a dialog where you can choose from your categories while writing. You don't have to go anywhere to do that. The JSON file starts on July 18, 2017 and it's rebuilt every time I post an update to the blog along with the RSS feed. And 2017 was when I did my 180 degree turn back to blogging as I was doing it before we were so rudely interrupted by Twitter. # The stuff I'm posting on the Daveverse site isn't getting into my Daytona search engine. I'm writing some real stuff there that should be included. I write on Daveverse using WordLand, it's proof that it's working as a comfortable writing tool and helps me think of features. I do most of my Daveverse writing on my iPad. Test posts are done on my desktop while I'm working on it, but sometimes they contain stuff that could be indexed as well. With enough time I could easily do this, but that's the problem, not enough time. # Saturday, September 27, 2025 I'm writing reports about problems with WordLand using WordLand and I'm liking it. That's a good sign btw. And also I think it looks pretty great viewed in WordPress and in Mastodon. # Automattic shipped a new product called Telex that's a ChatGPT for designing blocks in WordPress designs. Blocks are a simple result of design and programming that define the behavior of a part of a WordPress page. Having seen a demo, it looks really useful and is a nice small programming space, where a lot of users could actually control the process, and get something useful quickly. I've gotten pretty adept at teasing images out of ChatGPT, and at some point I'm probably going to need a commerce site, to allocate subdomains for people's feeds in WordLand. Still have to figure out how that works. # Friday, September 26, 2025 I put out a request for WordPress-related blogs on Masto, Bluesky and Twitter this morning. Got enough feeds to start wordpress.feedland.org. If you have a site that should be included, please post the URL in one of those places and I'll add it to the subscription list for the site. # Really Simple potato chips# "The #1 chips for dips!"# Thursday, September 25, 2025 Good morning sports fans!# Today there is a new podcast, this one for members of the WordPress community. I was interviewed by the very capable Nathan Wrigley of WP Tavern. I thought it was a great conversation, we talked about the remarkable position WordPress is in to serve as the OS for a rebooted web. I love the introduction they wrote, I also figured out how to make content management work in the browser, which was the foundation for blogging and eventually WordPress, though it seems that legacy is a bit lost in all the other stuff I've had my fingers in over the years. I hope you listen to this podcast, and if you have questions or comments, here's a good place to post them. # This came up in a thread on Mastodon about "social network" vs "social media." I also think social web should be used sparingly. Because imho there is such a thing as the social web but we haven't developed very much of it, i think because we were intimidated by the silos. I'm not intimidated any more, I'm fed up and going ahead without them. # I just heard about thinking errors, via Cognitive Behavioral Therapy. #
\ No newline at end of file
diff --git a/Modules/RSCore/Tests/RSCoreTests/String+RSCoreTests.swift b/Modules/RSCore/Tests/RSCoreTests/String+RSCoreTests.swift
index ad7d1f881..cbd93397f 100644
--- a/Modules/RSCore/Tests/RSCoreTests/String+RSCoreTests.swift
+++ b/Modules/RSCore/Tests/RSCoreTests/String+RSCoreTests.swift
@@ -8,7 +8,7 @@
import XCTest
-class String_RSCore: XCTestCase {
+final class String_RSCore: XCTestCase {
func testCollapsingWhitespace() {
diff --git a/Modules/RSCore/Tests/RSCoreTests/StripHTMLTests.swift b/Modules/RSCore/Tests/RSCoreTests/StripHTMLTests.swift
new file mode 100644
index 000000000..717c15578
--- /dev/null
+++ b/Modules/RSCore/Tests/RSCoreTests/StripHTMLTests.swift
@@ -0,0 +1,276 @@
+//
+// StripHTMLTests.swift
+// RSCoreTests
+//
+// Created by Brent Simmons on 2025-10-20.
+// Copyright © 2025 Ranchero Software, LLC. All rights reserved.
+//
+
+import XCTest
+
+// Legacy Swift implementation for comparison testing
+private extension String {
+
+ /// Removes an HTML tag and everything between its start and end tags.
+ private func removingTagAndContents(_ tag: String) -> String {
+ return self.replacingOccurrences(of: "<\(tag)>[\\s\\S]*?\(tag)>", with: "", options: [.regularExpression, .caseInsensitive])
+ }
+
+ /// Legacy Swift-based HTML stripping implementation (kept for comparison testing).
+ func legacyStrippingHTML(maxCharacters: Int? = nil) -> String {
+ if !self.contains("<") {
+
+ if let maxCharacters = maxCharacters, maxCharacters < count {
+ let ix = self.index(self.startIndex, offsetBy: maxCharacters)
+ return String(self[..", with: " ", options: options)
+ preflight = preflight.replacingOccurrences(of: "|?div>| |", with: "\n", options: options)
+ preflight = preflight.removingTagAndContents("script")
+ preflight = preflight.removingTagAndContents("style")
+
+ let preflightCount = preflight.count
+ let maxChars = maxCharacters ?? preflightCount
+
+ var s = String()
+ s.reserveCapacity(min(maxChars, preflightCount))
+ var lastCharacterWasSpace = false
+ var charactersAdded = 0
+ var level = 0
+
+ for char in preflight {
+ if char == "<" {
+ level += 1
+ } else if char == ">" {
+ level -= 1
+ } else if level == 0 {
+
+ if char == " " || char == "\r" || char == "\t" || char == "\n" {
+ if lastCharacterWasSpace {
+ continue
+ }
+ lastCharacterWasSpace = true
+ s.append(" ")
+ } else {
+ lastCharacterWasSpace = false
+ s.append(char)
+ }
+
+ charactersAdded += 1
+ if charactersAdded >= maxChars {
+ break
+ }
+ }
+ }
+
+ return s
+ }
+}
+
+final class StripHTMLTests: XCTestCase {
+
+ func testStrippingHTMLBasic() {
+ let html = "
Hello world !
"
+ let result = html.strippingHTML()
+ XCTAssertEqual(result, "Hello world!")
+ }
+
+ func testStrippingHTMLWithScript() {
+ let html = "Before
After
"
+ let result = html.strippingHTML()
+ XCTAssertEqual(result, "Before After")
+ }
+
+ func testStrippingHTMLWithStyle() {
+ let html = "Content
More
"
+ let result = html.strippingHTML()
+ XCTAssertEqual(result, "Content More")
+ }
+
+ func testStrippingHTMLWithMaxCharacters() {
+ let html = "This is a long piece of text that should be truncated at some point.
"
+ let result = html.strippingHTML(maxCharacters: 20)
+ XCTAssertLessThanOrEqual(result.count, 20)
+ XCTAssertEqual(result, "This is a long piece")
+ }
+
+ func testStrippingHTMLWithUTF8() {
+ let html = "Hello 世界 🌍
"
+ let result = html.strippingHTML()
+ XCTAssertEqual(result, "Hello 世界 🌍")
+ }
+
+ func testStrippingHTMLWhitespaceCollapsing() {
+ let html = "Too many\n\n\nspaces
"
+ let result = html.strippingHTML()
+ XCTAssertFalse(result.contains(" "))
+ XCTAssertEqual(result, "Too many spaces")
+ }
+
+ // Commented out because this doesn’t need to run every time.
+ // Un-comment it when you want to compare legacy performance to C performance.
+// func testStrippingHTMLPerformanceLegacySwift() {
+// let html = """
+//
+// This is a test article with bold text and italic text .
+//
+//
+// More content with links and other tags.
+// Nested tags are common in HTML.
+//
+// """
+//
+// self.measure {
+// for _ in 0..<1000 {
+// let _ = html.legacyStrippingHTML(maxCharacters: 300)
+// }
+// }
+// }
+
+ func testStrippingHTMLPerformance() {
+ let html = """
+
+ This is a test article with bold text and italic text .
+
+
+ More content with links and other tags.
+ Nested tags are common in HTML.
+
+ """
+
+ self.measure {
+ for _ in 0..<1000 {
+ let _ = html.strippingHTML(maxCharacters: 300)
+ }
+ }
+ }
+
+ func testStrippingHTMLWithRealWorldHTML() throws {
+ let testFiles = ["daringfireball", "apple", "inessential", "scripting"]
+
+ for testFile in testFiles {
+ guard let url = Bundle.module.url(forResource: testFile, withExtension: "html", subdirectory: "Resources") else {
+ XCTFail("Could not find \(testFile).html")
+ return
+ }
+
+ let html = try String(contentsOf: url, encoding: .utf8)
+
+ // Test both implementations can process real-world HTML
+ let result = html.strippingHTML(maxCharacters: 300)
+
+ XCTAssertFalse(result.isEmpty, "\(testFile): Result should not be empty")
+ XCTAssertLessThanOrEqual(result.count, 300, "\(testFile): Result should respect maxCharacters")
+ XCTAssertFalse(result.contains("<"), "\(testFile): Result should not contain HTML tags")
+ XCTAssertFalse(result.contains("//"), "\(testFile): Should fully remove script content")
+ }
+ }
+
+ // Commented out because this doesn’t need to run every time.
+ // Un-comment it when you want to compare legacy performance to C performance.
+// func testStrippingHTMLPerformanceRealWorldLegacySwift() throws {
+// let testFiles = ["daringfireball", "apple", "inessential", "scripting"]
+// var htmlFiles: [String] = []
+//
+// for testFile in testFiles {
+// guard let url = Bundle.module.url(forResource: testFile, withExtension: "html", subdirectory: "Resources") else {
+// XCTFail("Could not find \(testFile).html")
+// return
+// }
+// let html = try String(contentsOf: url, encoding: .utf8)
+// htmlFiles.append(html)
+// }
+//
+// self.measure {
+// for _ in 0..<100 {
+// for html in htmlFiles {
+// let _ = html.legacyStrippingHTML(maxCharacters: 300)
+// }
+// }
+// }
+// }
+
+ func testStrippingHTMLPerformanceRealWorld() throws {
+ let testFiles = ["daringfireball", "apple", "inessential", "scripting"]
+ var htmlFiles: [String] = []
+
+ for testFile in testFiles {
+ guard let url = Bundle.module.url(forResource: testFile, withExtension: "html", subdirectory: "Resources") else {
+ XCTFail("Could not find \(testFile).html")
+ return
+ }
+ let html = try String(contentsOf: url, encoding: .utf8)
+ htmlFiles.append(html)
+ }
+
+ self.measure {
+ for _ in 0..<100 {
+ for html in htmlFiles {
+ let _ = html.strippingHTML(maxCharacters: 300)
+ }
+ }
+ }
+ }
+
+ // Un-comment this to create the .txt files that contain the expected stripped-HTML results.
+// func testRegenerateExpectedOutputFiles() throws {
+// let testFiles = ["apple", "daringfireball", "inessential", "scripting"]
+//
+// for testFile in testFiles {
+// guard let htmlURL = Bundle.module.url(forResource: testFile, withExtension: "html", subdirectory: "Resources") else {
+// XCTFail("Could not find \(testFile).html")
+// return
+// }
+//
+// let html = try String(contentsOf: htmlURL, encoding: .utf8)
+// let result = html.strippingHTML()
+//
+// print("\n=== \(testFile) ===")
+// print("Result length: \(result.count) characters")
+// print("First 200 chars: \(String(result.prefix(200)))")
+//
+// // Write to /tmp first, then user can copy to source
+// let tmpPath = "/tmp/\(testFile).txt"
+// try result.write(toFile: tmpPath, atomically: true, encoding: .utf8)
+// print("Wrote to: \(tmpPath)")
+// }
+//
+// print("\n\nTo update the expected output files, run:")
+// print("cp /tmp/apple.txt Tests/RSCoreTests/Resources/")
+// print("cp /tmp/daringfireball.txt Tests/RSCoreTests/Resources/")
+// print("cp /tmp/inessential.txt Tests/RSCoreTests/Resources/")
+// print("cp /tmp/scripting.txt Tests/RSCoreTests/Resources/")
+// }
+
+ func testStrippingHTMLMatchesExpectedOutput() throws {
+ let testFiles = ["apple", "daringfireball", "inessential", "scripting"]
+
+ for testFile in testFiles {
+ guard let htmlURL = Bundle.module.url(forResource: testFile, withExtension: "html", subdirectory: "Resources") else {
+ XCTFail("Could not find \(testFile).html")
+ return
+ }
+
+ guard let txtURL = Bundle.module.url(forResource: testFile, withExtension: "txt", subdirectory: "Resources") else {
+ XCTFail("Could not find \(testFile).txt")
+ return
+ }
+
+ let html = try String(contentsOf: htmlURL, encoding: .utf8)
+ let expectedOutput = try String(contentsOf: txtURL, encoding: .utf8)
+
+ // Test implementation produces expected output
+ let result = html.strippingHTML()
+
+ XCTAssertEqual(result, expectedOutput, "\(testFile): Implementation should match expected output")
+ }
+ }
+}
diff --git a/Modules/RSDatabase/Sources/RSDatabase/Database.swift b/Modules/RSDatabase/Sources/RSDatabase/Database.swift
index 50ce9e14f..de5a21e01 100644
--- a/Modules/RSDatabase/Sources/RSDatabase/Database.swift
+++ b/Modules/RSDatabase/Sources/RSDatabase/Database.swift
@@ -9,8 +9,15 @@
import Foundation
import RSDatabaseObjC
-public enum DatabaseError: Error {
+public enum DatabaseError: Error, LocalizedError {
case isSuspended // On iOS, to support background refreshing, a database may be suspended.
+
+ public var errorDescription: String? {
+ switch self {
+ case .isSuspended:
+ return NSLocalizedString("Database is suspended", comment: "Database suspended error")
+ }
+ }
}
/// Result type that provides an FMDatabase or a DatabaseError.
diff --git a/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcbaselines/RSMarkdownTests.xcbaseline/3533B9E3-5435-4C67-8277-EE079FD478EA.plist b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcbaselines/RSMarkdownTests.xcbaseline/3533B9E3-5435-4C67-8277-EE079FD478EA.plist
new file mode 100644
index 000000000..d0977f4f9
--- /dev/null
+++ b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcbaselines/RSMarkdownTests.xcbaseline/3533B9E3-5435-4C67-8277-EE079FD478EA.plist
@@ -0,0 +1,22 @@
+
+
+
+
+ classNames
+
+ RSMarkdownTests
+
+ testMarkdownParsingPerformance()
+
+ com.apple.XCTPerformanceMetric_WallClockTime
+
+ baselineAverage
+ 0.001283
+ baselineIntegrationDisplayName
+ Local Baseline
+
+
+
+
+
+
diff --git a/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcbaselines/RSMarkdownTests.xcbaseline/Info.plist b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcbaselines/RSMarkdownTests.xcbaseline/Info.plist
new file mode 100644
index 000000000..05b8dd360
--- /dev/null
+++ b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcbaselines/RSMarkdownTests.xcbaseline/Info.plist
@@ -0,0 +1,33 @@
+
+
+
+
+ runDestinationsByUUID
+
+ 3533B9E3-5435-4C67-8277-EE079FD478EA
+
+ localComputer
+
+ busSpeedInMHz
+ 0
+ cpuCount
+ 1
+ cpuKind
+ Apple M1 Max
+ cpuSpeedInMHz
+ 0
+ logicalCPUCoresPerPackage
+ 10
+ modelCode
+ Mac13,1
+ physicalCPUCoresPerPackage
+ 10
+ platformIdentifier
+ com.apple.platform.macosx
+
+ targetArchitecture
+ arm64e
+
+
+
+
diff --git a/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcschemes/RSMarkdown.xcscheme b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcschemes/RSMarkdown.xcscheme
new file mode 100644
index 000000000..869851976
--- /dev/null
+++ b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcschemes/RSMarkdown.xcscheme
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcschemes/RSMarkdownTests.xcscheme b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcschemes/RSMarkdownTests.xcscheme
new file mode 100644
index 000000000..6b9484f44
--- /dev/null
+++ b/Modules/RSMarkdown/.swiftpm/xcode/xcshareddata/xcschemes/RSMarkdownTests.xcscheme
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Modules/RSMarkdown/Package.resolved b/Modules/RSMarkdown/Package.resolved
new file mode 100644
index 000000000..999ebec95
--- /dev/null
+++ b/Modules/RSMarkdown/Package.resolved
@@ -0,0 +1,24 @@
+{
+ "originHash" : "aea2c6325ee39246b7e5b16d0c21ca3c55c0cfe531884e6c3475c55d1bc8d4ce",
+ "pins" : [
+ {
+ "identity" : "swift-cmark",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/swiftlang/swift-cmark.git",
+ "state" : {
+ "revision" : "b97d09472e847a416629f026eceae0e2afcfad65",
+ "version" : "0.7.0"
+ }
+ },
+ {
+ "identity" : "swift-markdown",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/apple/swift-markdown.git",
+ "state" : {
+ "revision" : "d8cf111c276ed18cff82d3cad563d2ca5903b982",
+ "version" : "0.7.1"
+ }
+ }
+ ],
+ "version" : 3
+}
diff --git a/Modules/RSMarkdown/Package.swift b/Modules/RSMarkdown/Package.swift
new file mode 100644
index 000000000..1af1cd538
--- /dev/null
+++ b/Modules/RSMarkdown/Package.swift
@@ -0,0 +1,30 @@
+// swift-tools-version:5.10
+import PackageDescription
+
+let package = Package(
+ name: "RSMarkdown",
+ platforms: [
+ .macOS(.v13),
+ .iOS(.v16)
+ ],
+ products: [
+ .library(
+ name: "RSMarkdown",
+ targets: ["RSMarkdown"]),
+ ],
+ dependencies: [
+ .package(url: "https://github.com/apple/swift-markdown.git", from: "0.4.0")
+ ],
+ targets: [
+ .target(
+ name: "RSMarkdown",
+ dependencies: [
+ .product(name: "Markdown", package: "swift-markdown")
+ ]),
+ .testTarget(
+ name: "RSMarkdownTests",
+ dependencies: ["RSMarkdown"],
+ resources: [.process("Resources")]
+ ),
+ ]
+)
diff --git a/Modules/RSMarkdown/Sources/RSMarkdown/RSMarkdown.swift b/Modules/RSMarkdown/Sources/RSMarkdown/RSMarkdown.swift
new file mode 100644
index 000000000..ed39b8440
--- /dev/null
+++ b/Modules/RSMarkdown/Sources/RSMarkdown/RSMarkdown.swift
@@ -0,0 +1,20 @@
+//
+// RSMarkdown.swift
+// RSMarkdown
+//
+// Created by Brent Simmons on 10/7/25.
+//
+
+import Foundation
+import Markdown
+
+public struct RSMarkdown {
+
+ /// Converts Markdown text to HTML string
+ /// - Parameter markdown: The Markdown text to convert
+ /// - Returns: HTML string representation of the Markdown
+ public static func markdownToHTML(_ markdown: String) -> String {
+ let document = Document(parsing: markdown)
+ return HTMLFormatter.format(document)
+ }
+}
diff --git a/Modules/RSMarkdown/Tests/RSMarkdownTests/RSMarkdownTests.swift b/Modules/RSMarkdown/Tests/RSMarkdownTests/RSMarkdownTests.swift
new file mode 100644
index 000000000..29422399e
--- /dev/null
+++ b/Modules/RSMarkdown/Tests/RSMarkdownTests/RSMarkdownTests.swift
@@ -0,0 +1,278 @@
+//
+// RSMarkdownTests.swift
+// RSMarkdown
+//
+// Created by Brent Simmons on 10/7/25.
+// Copyright © 2025 Brent Simmons. All rights reserved.
+//
+
+import XCTest
+import Foundation
+@testable import RSMarkdown
+
+// We’re using Apple’s swift-markdown package for Markdown parsing and HTML generation:
+// https://github.com/swiftlang/swift-markdown
+// Apple’s module has its own testing. These tests here are just for sanity checking,
+// to make sure nothing has gone wrong.
+
+final class RSMarkdownTests: XCTestCase {
+
+ // MARK: - Helper Functions
+
+ private func loadMarkdownFile(named name: String) throws -> String {
+ let bundle = Bundle.module
+ let url = bundle.url(forResource: name, withExtension: "markdown")!
+ return try String(contentsOf: url)
+ }
+
+ // MARK: - Simple tests
+
+ func testBoldFormatting() throws {
+ let markdown = "This is **bold** text."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("bold "))
+ XCTAssertTrue(html.contains("This is bold text.
"))
+ }
+
+ func testHeadingFormatting() throws {
+ let markdown = "# Main Heading\n## Sub Heading"
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Main Heading "))
+ XCTAssertTrue(html.contains("Sub Heading "))
+ }
+
+ func testLinkFormatting() throws {
+ let markdown = "Visit [Apple](https://apple.com) for more info."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Apple "))
+ XCTAssertTrue(html.contains("Visit Apple for more info.
"))
+ }
+
+ func testMarkdownParsingPerformance() throws {
+ let markdown = try loadMarkdownFile(named: "why-netnewswire-is-not-web-app")
+
+ measure {
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ // Verify the output is valid HTML (inside measure block to ensure correctness)
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("<"))
+ XCTAssertTrue(html.contains(">"))
+ }
+ }
+
+ // MARK: - Essential Markdown Features
+
+ func testInlineCode() throws {
+ let markdown = "This is `inline code` in text."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("inline code"))
+ }
+
+ func testCodeBlocks() throws {
+ let markdown = """
+ ```swift
+ let hello = "world"
+ ```
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains(""))
+ XCTAssertTrue(html.contains("Item 1
"))
+ XCTAssertTrue(html.contains("Item 2
"))
+ XCTAssertTrue(html.contains(""))
+ }
+
+ func testOrderedList() throws {
+ let markdown = """
+ 1. First item
+ 2. Second item
+ 3. Third item
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains(""))
+ XCTAssertTrue(html.contains("First item
"))
+ XCTAssertTrue(html.contains("Second item
"))
+ XCTAssertTrue(html.contains(" "))
+ }
+
+ func testNestedFormatting() throws {
+ let markdown = "Visit [**Apple**](https://apple.com) for *really* good stuff."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Apple "))
+ XCTAssertTrue(html.contains("really "))
+ }
+
+ func testLineBreaksAndParagraphs() throws {
+ let markdown = """
+ First paragraph.
+
+ Second paragraph with
+ line break.
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("First paragraph.
"))
+ XCTAssertTrue(html.contains("Second paragraph"))
+ }
+
+ func testSpecialCharactersAndEscaping() throws {
+ let markdown = "Use < and > symbols, plus 5 < 10 comparison."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ // Note: swift-markdown currently doesn't escape < and > in text content
+ // This test verifies the current behavior, though ideally they would be escaped
+ XCTAssertTrue(html.contains("
Use < and > symbols"))
+ XCTAssertTrue(html.contains("5 < 10 comparison"))
+ XCTAssertTrue(html.contains("
"))
+ }
+
+ // MARK: - Edge Cases
+
+ func testEmptyString() throws {
+ let markdown = ""
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssert(html.isEmpty || html.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
+ }
+
+ func testPlainText() throws {
+ let markdown = "This is just plain text with no markdown formatting."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("This is just plain text with no markdown formatting.
"))
+ XCTAssertTrue(!html.contains(""))
+ XCTAssertTrue(!html.contains(""))
+ }
+
+ func testMalformedMarkdown() throws {
+ let markdown = "This has **unclosed bold and [incomplete link"
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ // Should not crash and should produce some reasonable output
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("unclosed bold"))
+ }
+
+ func testVeryLargeContent() throws {
+ // Create a large markdown string
+ let baseMarkdown = "# Large Header\n\nThis is a paragraph with **bold** and *italic* text. "
+ let largeMarkdown = String(repeating: baseMarkdown, count: 1000)
+
+ let html = RSMarkdown.markdownToHTML(largeMarkdown)
+
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("Large Header "))
+ XCTAssertTrue(html.contains("bold "))
+ }
+
+ // MARK: - Real-world Scenarios
+
+ func testMixedMarkdownAndHTML() throws {
+ let markdown = "This is **markdown** with some HTML mixed in."
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("markdown "))
+ XCTAssertTrue(html.contains("some HTML "))
+ }
+
+ func testUnicodeAndEmoji() throws {
+ let markdown = "Unicode: café, naïve, résumé. Emoji: 🚀 🎉 ✨"
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("café"))
+ XCTAssertTrue(html.contains("🚀"))
+ XCTAssertTrue(html.contains("🎉"))
+ }
+
+ func testComplexNestedStructures() throws {
+ let markdown = """
+ # Main Header
+
+ ## Sub Header
+
+ Here's a list with **bold** items:
+
+ 1. First item with [a link](https://example.com)
+ 2. Second item with `inline code`
+ 3. Third item with *emphasis*
+
+ And a code block:
+
+ ```
+ function test() {
+ return "hello";
+ }
+ ```
+ """
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Main Header "))
+ XCTAssertTrue(html.contains("Sub Header "))
+ XCTAssertTrue(html.contains(""))
+ XCTAssertTrue(html.contains("a link "))
+ XCTAssertTrue(html.contains("inline code"))
+ XCTAssertTrue(html.contains(""))
+ }
+
+ // MARK: - Performance/Robustness
+
+ func testRepeatedParsing() throws {
+ let markdown = "# Test Header\n\nThis is a **test** with *emphasis* and [links](https://example.com)."
+
+ // Parse the same content multiple times
+ for _ in 0..<100 {
+ let html = RSMarkdown.markdownToHTML(markdown)
+
+ XCTAssertTrue(html.contains("Test Header "))
+ XCTAssertTrue(html.contains("test "))
+ }
+ }
+
+ func testMemoryUsageWithLargeFile() throws {
+ // Create a very large markdown document
+ let section = """
+ ## Section Header
+
+ This is a paragraph with **bold**, *italic*, and `code` formatting.
+
+ - List item 1
+ - List item 2 with [link](https://example.com)
+
+ ```swift
+ let code = "example"
+ print(code)
+ ```
+
+ """
+
+ let largeMarkdown = String(repeating: section, count: 500)
+
+ let startTime = CFAbsoluteTimeGetCurrent()
+ let html = RSMarkdown.markdownToHTML(largeMarkdown)
+ let endTime = CFAbsoluteTimeGetCurrent()
+
+ // Should complete within reasonable time even for large content
+ XCTAssertLessThan(endTime - startTime, 1.0)
+ XCTAssertFalse(html.isEmpty)
+ XCTAssertTrue(html.contains("Section Header "))
+ }
+}
diff --git a/Modules/RSMarkdown/Tests/RSMarkdownTests/Resources/why-netnewswire-is-not-web-app.markdown b/Modules/RSMarkdown/Tests/RSMarkdownTests/Resources/why-netnewswire-is-not-web-app.markdown
new file mode 100644
index 000000000..96d4cd33a
--- /dev/null
+++ b/Modules/RSMarkdown/Tests/RSMarkdownTests/Resources/why-netnewswire-is-not-web-app.markdown
@@ -0,0 +1,57 @@
+# Why NetNewsWire Is Not a Web App
+
+[Tim Bray writes](https://indieweb.social/@timbray@cosocial.ca/115311601617081367), on Mastodon, I think correctly:
+
+> The canceling of ICEBlock is more evidence, were any needed, that the Web is the platform of the future, the only platform without a controlling vendor. Anything controversial should be available through a pure browser interface.
+
+This is not the first time I’ve had reason to think about this — I think about issues of tech freedom every day, and I still bristle, after all these years (now more than ever), at having to publish NetNewsWire for iOS through the App Store. (The Mac version has no such requirement — it’s available via the [website](https://netnewswire.com/), and I have no plans to ever offer it via the Mac App Store.)
+
+But what if I wanted to do a web app, in addition to or instead of a native app?
+
+I can picture a future, as I bet you can, where RSS readers aren’t allowed on any app store, and we’re essentially required to use billionaire-owned social media and platform-owned news apps.
+
+But there are issues with making NetNewsWire a web app.
+
+### Money
+
+I [explain in this post](https://inessential.com/2023/02/20/on_not_taking_money_for_netnewswire.html) that NetNewsWire has almost no expenses at all. The biggest expense is my Apple developer membership, and I pay just a little bit to host some websites. It adds up to a couple hundred bucks a year.
+
+If it were a web app instead, I could drop the developer membership, but I’d have to pay way more money for web and database hosting. Probably need a CDN too, and who knows what else. (I don’t have recent web app experience, so I don’t even know what my requirements would be, but I’m sure they’d cost substantially more than a couple hundred bucks a year.)
+
+I could charge for NetNewsWire, but that would go against my political goal of making sure there’s a good and *free* RSS reader available to everyone.
+
+I could take donations instead, but that’s never going to add up to enough to cover the costs.
+
+And in either case I’d have to create a way to take money and start up some kind of entity and then do bookkeeping and report money things to the right places — all stuff I don’t have to waste time on right now. I can just work on the app.
+
+Alternately I could create a web app that people would self-host — but there’s no way I could handle the constant support requests for installation issues. There are free self-hosted RSS readers already anyway, and NetNewsWire would be just another one. This also wouldn’t further my goal of making a free RSS reader available to everyone, since only people with the skills and willingness to self-host would do it.
+
+### Protecting Users
+
+Second issue. Right now, if law enforcement comes to me and demands I turn over a given user’s subscriptions list, I can’t. Literally can’t. I don’t have an encrypted version, even — I have nothing at all. The list lives on their machine (iOS or macOS). If they use a syncing system, it lives there too — but I don’t run a syncing system. I don’t have that info and can’t get it.
+
+If that happened, I’d have to pay a lawyer to see if the demand is legit and possibly help me fight it. That’s yet more money and time.
+
+(Could I encrypt the subscription lists on the server? Yes, but the server would have to be able to decrypt it, or else the app couldn’t possibly work. Which means I could decrypt the lists and turn them over.)
+
+### Another type of freedom
+
+Not an issue, exactly, but a thing.
+
+I was 12 years old when I got my first computer, an Apple II Plus, and I’ve never stopped loving the freedom of having my own computer and being able to run whatever the hell I want to.
+
+My computer is *not* a terminal. It’s a world I get to control, and I can use — and, especially, *make* — whatever I want. I’m not stuck using just what’s provided to me on some other machines elsewhere: I’m not dialing into a mainframe or doing the modern equivalent of using only websites that other people control.
+
+A world where everything is on the web and nothing is on the machines that we own is a sad world where we’ve lost a core freedom.
+
+I want to preserve that freedom. I like making apps that show the value of that freedom.
+
+What I want to see happen is for Apple to allow iPhone and iPad users to load — not *sideload*, a term I detest, because it assumes Apple’s side of things — whatever apps they want to. Because those devices are computers.
+
+I get it. It’s not looking good. And even with the much greater freedom for Mac apps there is still always the possibility of being shut down by Apple (by revoking developer memberships, refusing to notarize, or other technical means).
+
+Still, though, I keep at it, because this freedom matters.
+
+But, again…
+
+Apple keeps doing things that make us all feel sick. Removing ICEBlock is just the latest and it won’t be the last. So I am sympathetic to the idea of making web apps, and my brain goes there more often. And if I could solve the problems of money and of protecting users, I’d be way more inclined.
diff --git a/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist
new file mode 100644
index 000000000..f49f25020
--- /dev/null
+++ b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ classNames
+
+ AtomParserTests
+
+ testAllThisPerformance()
+
+ com.apple.XCTPerformanceMetric_WallClockTime
+
+ baselineAverage
+ 0.000999
+ baselineIntegrationDisplayName
+ Local Baseline
+
+
+ testDaringFireballPerformance()
+
+ com.apple.XCTPerformanceMetric_WallClockTime
+
+ baselineAverage
+ 0.003045
+ baselineIntegrationDisplayName
+ Local Baseline
+
+
+
+
+
+
diff --git a/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist
new file mode 100644
index 000000000..c4e202844
--- /dev/null
+++ b/Modules/RSParser/.swiftpm/xcode/xcshareddata/xcbaselines/RSParserTests.xcbaseline/Info.plist
@@ -0,0 +1,33 @@
+
+
+
+
+ runDestinationsByUUID
+
+ B1FE90C5-3FD7-446B-85A8-5639D8DAA4B4
+
+ localComputer
+
+ busSpeedInMHz
+ 0
+ cpuCount
+ 1
+ cpuKind
+ Apple M1 Max
+ cpuSpeedInMHz
+ 0
+ logicalCPUCoresPerPackage
+ 10
+ modelCode
+ Mac13,1
+ physicalCPUCoresPerPackage
+ 10
+ platformIdentifier
+ com.apple.platform.macosx
+
+ targetArchitecture
+ arm64e
+
+
+
+
diff --git a/Modules/RSParser/Package.swift b/Modules/RSParser/Package.swift
index da15e49f9..37e658f68 100644
--- a/Modules/RSParser/Package.swift
+++ b/Modules/RSParser/Package.swift
@@ -15,11 +15,12 @@ let package = Package(
targets: ["RSParserObjC"]),
],
dependencies: [
+ .package(path: "../RSMarkdown")
],
targets: [
.target(
name: "RSParser",
- dependencies: ["RSParserObjC"],
+ dependencies: ["RSParserObjC", "RSMarkdown"],
path: "Sources/Swift"),
.target(
name: "RSParserObjC",
diff --git a/Modules/RSParser/Sources/ObjC/RSAtomParser.m b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
index eaaeeb638..307e15b25 100755
--- a/Modules/RSParser/Sources/ObjC/RSAtomParser.m
+++ b/Modules/RSParser/Sources/ObjC/RSAtomParser.m
@@ -16,6 +16,7 @@
#import "ParserData.h"
#import "RSParsedEnclosure.h"
#import "RSParsedAuthor.h"
+#import "RSParserInternal.h"
#import
@@ -32,14 +33,17 @@
@property (nonatomic, readonly) NSDictionary *currentAttributes;
@property (nonatomic) NSMutableString *xhtmlString;
@property (nonatomic) NSString *link;
+@property (nonatomic) NSString *homepageURLString;
@property (nonatomic) NSString *title;
@property (nonatomic) NSMutableArray *articles;
@property (nonatomic) NSDate *dateParsed;
@property (nonatomic) RSSAXParser *parser;
@property (nonatomic, readonly) RSParsedArticle *currentArticle;
@property (nonatomic) RSParsedAuthor *currentAuthor;
+@property (nonatomic) RSParsedAuthor *rootAuthor;
@property (nonatomic, readonly) NSDate *currentDate;
@property (nonatomic) NSString *language;
+@property (nonatomic) BOOL isDaringFireball; // Special case — sometimes permalink and external link are swapped.
@end
@@ -69,6 +73,7 @@
_parser = [[RSSAXParser alloc] initWithDelegate:self];
_attributesStack = [NSMutableArray new];
_articles = [NSMutableArray new];
+ _isDaringFireball = [_urlString containsString:@"daringfireball.net/"];
return self;
}
@@ -80,7 +85,7 @@
[self parse];
- RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title link:self.link language:self.language articles:self.articles];
+ RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title homepageURLString:self.homepageURLString language:self.language articles:self.articles];
return parsedFeed;
}
@@ -215,8 +220,17 @@ static const NSInteger kLengthLength = 7;
[self.parser parseData:self.feedData];
[self.parser finishParsing];
}
-}
+ // Add root author to individual articles as needed.
+ RSParsedAuthor *authorToAdd = self.rootAuthor;
+ if (authorToAdd) {
+ for (RSParsedArticle *article in self.articles) {
+ if (article.authors.count < 1) {
+ [article addAuthor:authorToAdd];
+ }
+ }
+ }
+}
- (void)addArticle {
@@ -232,32 +246,37 @@ static const NSInteger kLengthLength = 7;
return self.articles.lastObject;
}
-
- (NSDictionary *)currentAttributes {
return self.attributesStack.lastObject;
}
-
- (NSDate *)currentDate {
return RSDateWithBytes(self.parser.currentCharacters.bytes, self.parser.currentCharacters.length);
}
+- (void)addHomePageLink {
-- (void)addFeedLink {
-
- if (self.link && self.link.length > 0) {
+ if (!RSParserStringIsEmpty(self.homepageURLString)) {
return;
}
- NSString *related = self.currentAttributes[kRelKey];
- if (related == kAlternateValue) {
- self.link = self.currentAttributes[kHrefKey];
+ NSString *rawLink = self.currentAttributes[kHrefKey];
+ if (RSParserStringIsEmpty(rawLink)) {
+ return;
+ }
+
+ NSString *rel = self.currentAttributes[kRelKey];
+
+ // rel="alternate" == home page URL
+ // Also: spec says "alternate" is default value if not present
+ //
+ if (!rel || [rel isEqualToString:kAlternateValue]) {
+ self.homepageURLString = [self resolvedURLString:rawLink];
}
}
-
- (void)addFeedTitle {
if (self.title.length < 1) {
@@ -268,11 +287,24 @@ static const NSInteger kLengthLength = 7;
- (void)addFeedLanguage {
if (self.language.length < 0) {
- self.language = self.currentAttributes[kXMLLangKey]
-;
+ self.language = self.currentAttributes[kXMLLangKey];
}
}
+- (void)addPermalink:(NSString *)resolvedURLString article:(RSParsedArticle *)article {
+ if (RSParserStringIsEmpty(article.permalink)) {
+ article.permalink = resolvedURLString;
+ }
+}
+
+- (void)addExternalLink:(NSString *)resolvedURLString article:(RSParsedArticle *)article {
+ if (RSParserStringIsEmpty(article.link)) {
+ article.link = resolvedURLString;
+ }
+}
+
+static NSString *daringFireballPermalinkPrefix = @"https://daringfireball.net/";
+
- (void)addLink {
NSDictionary *attributes = self.currentAttributes;
@@ -281,6 +313,10 @@ static const NSInteger kLengthLength = 7;
if (urlString.length < 1) {
return;
}
+ NSString *resolvedURLString = [self resolvedURLString:urlString];
+ if (RSParserStringIsEmpty(resolvedURLString)) {
+ return;
+ }
RSParsedArticle *article = self.currentArticle;
@@ -289,19 +325,33 @@ static const NSInteger kLengthLength = 7;
rel = kAlternateValue;
}
- if (rel == kRelatedValue) {
- if (!article.link) {
- article.link = urlString;
- }
- }
- else if (rel == kAlternateValue) {
- if (!article.permalink) {
- article.permalink = urlString;
- }
- }
- else if (rel == kEnclosureValue) {
- RSParsedEnclosure *enclosure = [self enclosureWithURLString:urlString attributes:attributes];
+ if ([rel isEqualToString:kEnclosureValue]) {
+ RSParsedEnclosure *enclosure = [self enclosureWithURLString:resolvedURLString attributes:attributes];
[article addEnclosure:enclosure];
+ return;
+ }
+
+ if (self.isDaringFireball) {
+ // Permalink and external link are swapped sometimes.
+ // Decide which is which by looking at the URL prefix — is it a link to daringfireball.net or to elsewhere?
+ BOOL isDaringFireballLink = [resolvedURLString hasPrefix:daringFireballPermalinkPrefix];
+ if (isDaringFireballLink) {
+ [self addPermalink:resolvedURLString article:article];
+ }
+ else {
+ [self addExternalLink:resolvedURLString article:article];
+ }
+ return;
+ }
+
+ // Standard behavior: rel="related" is external link
+ if (rel == kRelatedValue) {
+ [self addExternalLink:resolvedURLString article:article];
+ }
+
+ // Standard behavior: rel="alternate" is permalink
+ if (rel == kAlternateValue) {
+ [self addPermalink:resolvedURLString article:article];
}
}
@@ -329,6 +379,49 @@ static const NSInteger kLengthLength = 7;
}
}
+- (NSString *)resolvedURLString:(NSString *)s {
+
+ // Resolve against home page URL (if available) or feed URL.
+ // Important: returns nil if the result does not begin with @"http://" or @"https://"
+ // This is because we don’t want relative paths that might get interpreted
+ // as file paths when displayed in the app.
+
+ // Already a full URL? No need to resolve?
+ if ([self isValidURLString:s]) {
+ return s;
+ }
+
+ NSString *baseURLString = self.homepageURLString;
+ if (RSParserStringIsEmpty(baseURLString)) {
+ baseURLString = self.urlString;
+ }
+ if (RSParserStringIsEmpty(baseURLString)) {
+ return nil; // Nothing to resolve against.
+ }
+
+ NSURL *baseURL = [NSURL URLWithString:baseURLString];
+ if (!baseURL) {
+ return nil; // Must have non-nil NSURL in order to resolve.
+ }
+
+ NSURL *resolvedURL = [NSURL URLWithString:s relativeToURL:baseURL];
+ NSString *urlString = resolvedURL.absoluteString;
+ if (!RSParserStringIsEmpty(urlString) && [self isValidURLString:urlString]) {
+ return urlString; // Must be valid, resolved URL
+ }
+
+ return nil;
+}
+
+static NSString *httpsURLPrefix = @"https://";
+static NSString *httpURLPrefix = @"http://";
+
+- (BOOL)isValidURLString:(NSString *)s {
+
+ NSString *lowercaseString = [s lowercaseString];
+
+ return ([lowercaseString hasPrefix:httpsURLPrefix] || [lowercaseString hasPrefix:httpURLPrefix]);
+}
- (NSString *)currentString {
@@ -470,7 +563,7 @@ static const NSInteger kLengthLength = 7;
}
if (!self.parsingArticle && RSSAXEqualTags(localName, kLink, kLinkLength)) {
- [self addFeedLink];
+ [self addHomePageLink];
return;
}
@@ -525,8 +618,15 @@ static const NSInteger kLengthLength = 7;
if (RSSAXEqualTags(localName, kAuthor, kAuthorLength)) {
self.parsingAuthor = NO;
RSParsedAuthor *author = self.currentAuthor;
- if (author.name || author.emailAddress || author.url) {
- [self.currentArticle addAuthor:author];
+ if (self.parsingArticle) {
+ if (!author.isEmpty) {
+ [self.currentArticle addAuthor:author];
+ }
+ }
+ else {
+ if (!self.rootAuthor && !author.isEmpty) {
+ self.rootAuthor = author;
+ }
}
self.currentAuthor = nil;
}
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedArticle.h b/Modules/RSParser/Sources/ObjC/RSParsedArticle.h
index a2bfb3175..e2e2c6bbd 100755
--- a/Modules/RSParser/Sources/ObjC/RSParsedArticle.h
+++ b/Modules/RSParser/Sources/ObjC/RSParsedArticle.h
@@ -21,6 +21,7 @@
@property (nonatomic, nullable) NSString *guid;
@property (nonatomic, nullable) NSString *title;
@property (nonatomic, nullable) NSString *body;
+@property (nonatomic, nullable) NSString *markdown;
@property (nonatomic, nullable) NSString *link;
@property (nonatomic, nullable) NSString *permalink;
@property (nonatomic, nullable) NSSet *authors;
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedAuthor.h b/Modules/RSParser/Sources/ObjC/RSParsedAuthor.h
index 2c28236a2..527ac606c 100644
--- a/Modules/RSParser/Sources/ObjC/RSParsedAuthor.h
+++ b/Modules/RSParser/Sources/ObjC/RSParsedAuthor.h
@@ -16,4 +16,6 @@
+ (instancetype _Nonnull )authorWithSingleString:(NSString *_Nonnull)s; // Don’t know which property it is. Guess based on contents of the string. Common with RSS.
+- (BOOL)isEmpty;
+
@end
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedAuthor.m b/Modules/RSParser/Sources/ObjC/RSParsedAuthor.m
index 154b546c8..2b79e5676 100644
--- a/Modules/RSParser/Sources/ObjC/RSParsedAuthor.m
+++ b/Modules/RSParser/Sources/ObjC/RSParsedAuthor.m
@@ -31,4 +31,9 @@
return author;
}
+- (BOOL)isEmpty {
+
+ return !self.name && !self.url && !self.emailAddress;
+}
+
@end
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedFeed.h b/Modules/RSParser/Sources/ObjC/RSParsedFeed.h
index 80be90fed..61de4e853 100755
--- a/Modules/RSParser/Sources/ObjC/RSParsedFeed.h
+++ b/Modules/RSParser/Sources/ObjC/RSParsedFeed.h
@@ -12,11 +12,11 @@
@interface RSParsedFeed : NSObject
-- (nonnull instancetype)initWithURLString:(NSString * _Nonnull)urlString title:(NSString * _Nullable)title link:(NSString * _Nullable)link language:(NSString * _Nullable)language articles:(NSArray * _Nonnull)articles;
+- (nonnull instancetype)initWithURLString:(NSString * _Nonnull)urlString title:(NSString * _Nullable)title homepageURLString:(NSString * _Nullable)homepageURLString language:(NSString * _Nullable)language articles:(NSArray * _Nonnull)articles;
@property (nonatomic, readonly, nonnull) NSString *urlString;
@property (nonatomic, readonly, nullable) NSString *title;
-@property (nonatomic, readonly, nullable) NSString *link;
+@property (nonatomic, readonly, nullable) NSString *homepageURLString;
@property (nonatomic, readonly, nullable) NSString *language;
@property (nonatomic, readonly, nonnull) NSSet *articles;
diff --git a/Modules/RSParser/Sources/ObjC/RSParsedFeed.m b/Modules/RSParser/Sources/ObjC/RSParsedFeed.m
index ef0c42e76..9035c1862 100755
--- a/Modules/RSParser/Sources/ObjC/RSParsedFeed.m
+++ b/Modules/RSParser/Sources/ObjC/RSParsedFeed.m
@@ -12,8 +12,8 @@
@implementation RSParsedFeed
-- (instancetype)initWithURLString:(NSString *)urlString title:(NSString *)title link:(NSString *)link language:(NSString *)language articles:(NSSet *)articles {
-
+- (instancetype)initWithURLString:(NSString *)urlString title:(NSString *)title homepageURLString:(NSString *)homepageURLString language:(NSString *)language articles:(NSSet *)articles {
+
self = [super init];
if (!self) {
return nil;
@@ -21,7 +21,7 @@
_urlString = urlString;
_title = title;
- _link = link;
+ _homepageURLString = homepageURLString;
_language = language;
_articles = articles;
diff --git a/Modules/RSParser/Sources/ObjC/RSRSSParser.m b/Modules/RSParser/Sources/ObjC/RSRSSParser.m
index 455320ab2..5a038170e 100755
--- a/Modules/RSParser/Sources/ObjC/RSRSSParser.m
+++ b/Modules/RSParser/Sources/ObjC/RSRSSParser.m
@@ -35,7 +35,7 @@
@property (nonatomic) BOOL parsingChannelImage;
@property (nonatomic, readonly) NSDate *currentDate;
@property (nonatomic) BOOL endRSSFound;
-@property (nonatomic) NSString *link;
+@property (nonatomic) NSString *homepageURLString;
@property (nonatomic) NSString *title;
@property (nonatomic) NSDate *dateParsed;
@property (nonatomic) BOOL isRDF;
@@ -77,7 +77,7 @@
[self parse];
- RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title link:self.link language:self.language articles:self.articles];
+ RSParsedFeed *parsedFeed = [[RSParsedFeed alloc] initWithURLString:self.urlString title:self.title homepageURLString:self.homepageURLString language:self.language articles:self.articles];
return parsedFeed;
}
@@ -111,6 +111,12 @@ static const NSInteger kTitleLength = 6;
static const char *kDC = "dc";
static const NSInteger kDCLength = 3;
+static const char *kSource = "source";
+static const NSInteger kSourceLength = 7;
+
+static const char *kMarkdown = "markdown";
+static const NSInteger kMarkdownLength = 9;
+
static const char *kCreator = "creator";
static const NSInteger kCreatorLength = 8;
@@ -206,8 +212,8 @@ static const NSInteger kLanguageLength = 9;
}
if (RSSAXEqualTags(localName, kLink, kLinkLength)) {
- if (!self.link) {
- self.link = [self currentString];
+ if (RSParserStringIsEmpty(self.homepageURLString)) {
+ self.homepageURLString = [self currentString];
}
}
@@ -240,6 +246,12 @@ static const NSInteger kLanguageLength = 9;
}
}
+- (void)addSourceElement:(const xmlChar *)localName {
+
+ if (RSSAXEqualTags(localName, kMarkdown, kMarkdownLength)) {
+ self.currentArticle.markdown = [self currentString];
+ }
+}
- (void)addGuid {
@@ -279,6 +291,11 @@ static const NSInteger kLanguageLength = 9;
and not even a relative path. This may need to evolve over time as we find
feeds broken in different ways.*/
+ // https://github.com/Ranchero-Software/NetNewsWire/issues/1230
+ if ([s rsparser_contains:@" "]) {
+ return NO;
+ }
+
if (![s rsparser_contains:@"/"]) {
// This seems to be just about the best possible check.
// Bad guids are often just integers, for instance.
@@ -299,12 +316,12 @@ static const NSInteger kLanguageLength = 9;
return s;
}
- if (!self.link) {
+ if (!self.homepageURLString) {
//TODO: get feed URL and use that to resolve URL.*/
return s;
}
- NSURL *baseURL = [NSURL URLWithString:self.link];
+ NSURL *baseURL = [NSURL URLWithString:self.homepageURLString];
if (!baseURL) {
return s;
}
@@ -332,6 +349,11 @@ static const NSInteger kLanguageLength = 9;
return;
}
+ if (RSSAXEqualTags(prefix, kSource, kSourceLength)) {
+ [self addSourceElement:localName];
+ return;
+ }
+
if (RSSAXEqualTags(prefix, kContent, kContentLength) && RSSAXEqualTags(localName, kEncoded, kEncodedLength)) {
NSString *s = [self currentString];
if (!RSParserStringIsEmpty(s)) {
diff --git a/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift b/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift
index 96de186b2..39c2706bb 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/FeedParser.swift
@@ -72,6 +72,19 @@ public struct FeedParser {
catch { throw error }
}
+ public static func parse(_ parserData: ParserData) async throws -> ParsedFeed? {
+ try await withCheckedThrowingContinuation { continuation in
+ parse(parserData) { parsedFeed, error in
+ if let error {
+ continuation.resume(throwing: error)
+ }
+ else {
+ continuation.resume(returning: parsedFeed)
+ }
+ }
+ }
+ }
+
public static func parse(_ parserData: ParserData, _ completion: @escaping FeedParserCallback) {
parseQueue.async {
diff --git a/Modules/RSParser/Sources/Swift/Feeds/JSON/JSONFeedParser.swift b/Modules/RSParser/Sources/Swift/Feeds/JSON/JSONFeedParser.swift
index ed528419c..ab168dc57 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/JSON/JSONFeedParser.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/JSON/JSONFeedParser.swift
@@ -169,7 +169,7 @@ private extension JSONFeedParser {
}
let attachments = parseAttachments(itemDictionary)
- return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: url, externalURL: externalURL, title: title, language: language, contentHTML: contentHTML, contentText: contentText, summary: summary, imageURL: imageURL, bannerImageURL: bannerImageURL, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: tags, attachments: attachments)
+ return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: url, externalURL: externalURL, title: title, language: language, contentHTML: contentHTML, contentText: contentText, markdown: nil, summary: summary, imageURL: imageURL, bannerImageURL: bannerImageURL, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: tags, attachments: attachments)
}
static func parseTitle(_ itemDictionary: JSONDictionary, _ feedURL: String) -> String? {
diff --git a/Modules/RSParser/Sources/Swift/Feeds/JSON/RSSInJSONParser.swift b/Modules/RSParser/Sources/Swift/Feeds/JSON/RSSInJSONParser.swift
index ea1907378..2f31422b6 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/JSON/RSSInJSONParser.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/JSON/RSSInJSONParser.swift
@@ -131,7 +131,7 @@ private extension RSSInJSONParser {
}
if let uniqueID = uniqueID {
- return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: nil, externalURL: externalURL, title: title, language: nil, contentHTML: contentHTML, contentText: contentText, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: nil, authors: authors, tags: tags, attachments: attachments)
+ return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: feedURL, url: nil, externalURL: externalURL, title: title, language: nil, contentHTML: contentHTML, contentText: contentText, markdown: nil, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: nil, authors: authors, tags: tags, attachments: attachments)
}
return nil
}
diff --git a/Modules/RSParser/Sources/Swift/Feeds/ParsedItem.swift b/Modules/RSParser/Sources/Swift/Feeds/ParsedItem.swift
index 4e019c480..97b187a78 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/ParsedItem.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/ParsedItem.swift
@@ -7,6 +7,7 @@
//
import Foundation
+import RSMarkdown
public struct ParsedItem: Hashable {
@@ -19,6 +20,7 @@ public struct ParsedItem: Hashable {
public let language: String?
public let contentHTML: String?
public let contentText: String?
+ public let markdown: String?
public let summary: String?
public let imageURL: String?
public let bannerImageURL: String?
@@ -29,7 +31,7 @@ public struct ParsedItem: Hashable {
public let attachments: Set?
public init(syncServiceID: String?, uniqueID: String, feedURL: String, url: String?, externalURL: String?, title: String?,
- language: String?, contentHTML: String?, contentText: String?, summary: String?, imageURL: String?,
+ language: String?, contentHTML: String?, contentText: String?, markdown: String?, summary: String?, imageURL: String?,
bannerImageURL: String?,datePublished: Date?, dateModified: Date?, authors: Set?,
tags: Set?, attachments: Set?) {
@@ -40,8 +42,8 @@ public struct ParsedItem: Hashable {
self.externalURL = externalURL
self.title = title
self.language = language
- self.contentHTML = contentHTML
self.contentText = contentText
+ self.markdown = markdown
self.summary = summary
self.imageURL = imageURL
self.bannerImageURL = bannerImageURL
@@ -50,6 +52,13 @@ public struct ParsedItem: Hashable {
self.authors = authors
self.tags = tags
self.attachments = attachments
+
+ // Render Markdown when present, else use contentHTML
+ if let markdown {
+ self.contentHTML = RSMarkdown.markdownToHTML(markdown)
+ } else {
+ self.contentHTML = contentHTML
+ }
}
// MARK: - Hashable
diff --git a/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift b/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift
index 4d680acff..e03537449 100644
--- a/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift
+++ b/Modules/RSParser/Sources/Swift/Feeds/XML/RSParsedFeedTransformer.swift
@@ -21,7 +21,7 @@ struct RSParsedFeedTransformer {
static func parsedFeed(_ rsParsedFeed: RSParsedFeed) -> ParsedFeed {
let items = parsedItems(rsParsedFeed.articles)
- return ParsedFeed(type: .rss, title: rsParsedFeed.title, homePageURL: rsParsedFeed.link, feedURL: rsParsedFeed.urlString, language: rsParsedFeed.language, feedDescription: nil, nextURL: nil, iconURL: nil, faviconURL: nil, authors: nil, expired: false, hubs: nil, items: items)
+ return ParsedFeed(type: .rss, title: rsParsedFeed.title, homePageURL: rsParsedFeed.homepageURLString, feedURL: rsParsedFeed.urlString, language: rsParsedFeed.language, feedDescription: nil, nextURL: nil, iconURL: nil, faviconURL: nil, authors: nil, expired: false, hubs: nil, items: items)
}
}
@@ -42,12 +42,13 @@ private extension RSParsedFeedTransformer {
let title = parsedArticle.title
let language = parsedArticle.language
let contentHTML = parsedArticle.body
+ let markdown = parsedArticle.markdown
let datePublished = parsedArticle.datePublished
let dateModified = parsedArticle.dateModified
let authors = parsedAuthors(parsedArticle.authors)
let attachments = parsedAttachments(parsedArticle.enclosures)
- return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: parsedArticle.feedURL, url: url, externalURL: externalURL, title: title, language: language, contentHTML: contentHTML, contentText: nil, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: nil, attachments: attachments)
+ return ParsedItem(syncServiceID: nil, uniqueID: uniqueID, feedURL: parsedArticle.feedURL, url: url, externalURL: externalURL, title: title, language: language, contentHTML: contentHTML, contentText: nil, markdown: markdown, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: datePublished, dateModified: dateModified, authors: authors, tags: nil, attachments: attachments)
}
static func parsedAuthors(_ authors: Set?) -> Set? {
diff --git a/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift b/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
index 154c17e9d..7347c04dd 100644
--- a/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/AtomParserTests.swift
@@ -9,12 +9,12 @@
import XCTest
import RSParser
-class AtomParserTests: XCTestCase {
+final class AtomParserTests: XCTestCase {
func testDaringFireballPerformance() {
// 0.009 sec on my 2012 iMac.
- let d = parserData("DaringFireball", "atom", "http://daringfireball.net/") //It’s actually an Atom feed
+ let d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
self.measure {
let _ = try! FeedParser.parse(d)
}
@@ -31,15 +31,97 @@ class AtomParserTests: XCTestCase {
func testGettingHomePageLink() {
- let d = parserData("allthis", "atom", "http://leancrew.com/all-this")
- let parsedFeed = try! FeedParser.parse(d)!
-
+ var d = parserData("allthis", "atom", "http://leancrew.com/all-this")
+ var parsedFeed = try! FeedParser.parse(d)!
XCTAssertTrue(parsedFeed.homePageURL == "http://leancrew.com/all-this")
+
+ d = parserData("qemu", "atom", "https://www.qemu.org/feed.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://www.qemu.org/")
+
+ d = parserData("yakubin", "atom", "https://yakubin.com/notes/atom.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://yakubin.com/notes")
+
+ d = parserData("4fsodonline", "atom", "http://4fsodonline.blogspot.com/feeds/posts/default")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "http://4fsodonline.blogspot.com/")
+
+ d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://daringfireball.net/")
+
+ d = parserData("neverworkintheory", "atom", "https://neverworkintheory.org/atom.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+ XCTAssertTrue(parsedFeed.homePageURL == "https://neverworkintheory.org/")
+ }
+
+ func testArticlePermalinks() {
+
+ var d = parserData("qemu", "atom", "https://www.qemu.org/feed.xml")
+ var parsedFeed = try! FeedParser.parse(d)!
+
+ var foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "QEMU version 10.1.0 released" {
+ foundTestArticle = true
+ XCTAssertEqual(item.url, "https://www.qemu.org/2025/08/26/qemu-10-1-0/")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
+ parsedFeed = try! FeedParser.parse(d)!
+
+ foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "Virgin Mobile Partners With Apple to Go iPhone-Only With $1 Service" {
+ foundTestArticle = true
+ XCTAssertEqual(item.url, "https://daringfireball.net/linked/2017/06/26/virgin-mobile-iphone-only")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ d = parserData("neverworkintheory", "atom", "https://neverworkintheory.org/atom.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+
+ foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "Andreas Zeller on Creating Nasty Test Inputs" {
+ foundTestArticle = true
+ XCTAssertEqual(item.url, "https://neverworkintheory.org/2023/06/13/zeller-andreas.html")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ }
+
+ func testArticleExternalLinks() {
+
+ var d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
+ var parsedFeed = try! FeedParser.parse(d)!
+
+ var foundTestArticle = false
+ for item in parsedFeed.items {
+ if item.title == "Kara Swisher: ‘Susan Fowler Proved That One Person Can Make a Difference’" {
+ foundTestArticle = true
+ XCTAssertEqual(item.externalURL, "https://www.recode.net/2017/6/21/15844852/uber-toxic-bro-company-culture-susan-fowler-blog-post")
+ }
+ }
+ XCTAssertTrue(foundTestArticle)
+
+ d = parserData("qemu", "atom", "https://www.qemu.org/feed.xml")
+ parsedFeed = try! FeedParser.parse(d)!
+
+ XCTAssert(parsedFeed.items.count > 0)
+ for item in parsedFeed.items {
+ XCTAssertNil(item.externalURL)
+ }
}
func testDaringFireball() {
- let d = parserData("DaringFireball", "atom", "http://daringfireball.net/") //It’s actually an Atom feed
+ let d = parserData("DaringFireball", "atom", "https://daringfireball.net/feeds/main")
let parsedFeed = try! FeedParser.parse(d)!
for article in parsedFeed.items {
@@ -104,4 +186,20 @@ class AtomParserTests: XCTestCase {
XCTAssertEqual(attachment.mimeType!, "audio/mpeg")
}
}
+
+ func testAuthorAtRoot() {
+ let d = parserData("root-author", "atom", "https://fvsch.com/feed.xml")
+ let parsedFeed = try! FeedParser.parse(d)!
+
+ for article in parsedFeed.items {
+ let author = article.authors?.first
+ XCTAssertNotNil(author)
+
+ XCTAssertEqual(author?.name, "Florens Verschelde")
+
+ XCTAssertNil(author?.url)
+ XCTAssertNil(author?.avatarURL)
+ XCTAssertNil(author?.emailAddress)
+ }
+ }
}
diff --git a/Modules/RSParser/Tests/RSParserTests/EntityDecodingTests.swift b/Modules/RSParser/Tests/RSParserTests/EntityDecodingTests.swift
index 31a82846f..58cfd43cd 100644
--- a/Modules/RSParser/Tests/RSParserTests/EntityDecodingTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/EntityDecodingTests.swift
@@ -9,7 +9,7 @@
import XCTest
import RSParser
-class EntityDecodingTests: XCTestCase {
+final class EntityDecodingTests: XCTestCase {
func test39Decoding() {
diff --git a/Modules/RSParser/Tests/RSParserTests/FeedParserTypeTests.swift b/Modules/RSParser/Tests/RSParserTests/FeedParserTypeTests.swift
index 5cb631fc8..444102ea0 100644
--- a/Modules/RSParser/Tests/RSParserTests/FeedParserTypeTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/FeedParserTypeTests.swift
@@ -10,7 +10,7 @@ import XCTest
import RSParser
import RSParserObjC
-class FeedParserTypeTests: XCTestCase {
+final class FeedParserTypeTests: XCTestCase {
// MARK: HTML
diff --git a/Modules/RSParser/Tests/RSParserTests/HTMLLinkTests.swift b/Modules/RSParser/Tests/RSParserTests/HTMLLinkTests.swift
index 5817148d7..fb77aea3f 100644
--- a/Modules/RSParser/Tests/RSParserTests/HTMLLinkTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/HTMLLinkTests.swift
@@ -10,7 +10,7 @@ import XCTest
import RSParser
import RSParserObjC
-class HTMLLinkTests: XCTestCase {
+final class HTMLLinkTests: XCTestCase {
func testSixColorsPerformance() {
diff --git a/Modules/RSParser/Tests/RSParserTests/HTMLMetadataTests.swift b/Modules/RSParser/Tests/RSParserTests/HTMLMetadataTests.swift
index 5923dd72b..441b748ad 100644
--- a/Modules/RSParser/Tests/RSParserTests/HTMLMetadataTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/HTMLMetadataTests.swift
@@ -10,7 +10,7 @@ import XCTest
import RSParser
import RSParserObjC
-class HTMLMetadataTests: XCTestCase {
+final class HTMLMetadataTests: XCTestCase {
func testDaringFireball() {
diff --git a/Modules/RSParser/Tests/RSParserTests/JSONFeedParserTests.swift b/Modules/RSParser/Tests/RSParserTests/JSONFeedParserTests.swift
index 459009c41..71f0c148b 100644
--- a/Modules/RSParser/Tests/RSParserTests/JSONFeedParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/JSONFeedParserTests.swift
@@ -9,7 +9,7 @@
import XCTest
import RSParser
-class JSONFeedParserTests: XCTestCase {
+final class JSONFeedParserTests: XCTestCase {
func testInessentialPerformance() {
diff --git a/Modules/RSParser/Tests/RSParserTests/OPMLTests.swift b/Modules/RSParser/Tests/RSParserTests/OPMLTests.swift
index a9f45f655..514c38a19 100644
--- a/Modules/RSParser/Tests/RSParserTests/OPMLTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/OPMLTests.swift
@@ -10,7 +10,7 @@ import XCTest
import RSParser
import RSParserObjC
-class OPMLTests: XCTestCase {
+final class OPMLTests: XCTestCase {
let subsData = parserData("Subs", "opml", "http://example.org/")
diff --git a/Modules/RSParser/Tests/RSParserTests/RSDateParserTests.swift b/Modules/RSParser/Tests/RSParserTests/RSDateParserTests.swift
index c52310ac5..281daf5f6 100644
--- a/Modules/RSParser/Tests/RSParserTests/RSDateParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/RSDateParserTests.swift
@@ -9,7 +9,7 @@ import Foundation
import XCTest
import RSParser
-class RSDateParserTests: XCTestCase {
+final class RSDateParserTests: XCTestCase {
static func dateWithValues(_ year: Int, _ month: Int, _ day: Int, _ hour: Int, _ minute: Int, _ second: Int) -> Date {
var dateComponents = DateComponents()
diff --git a/Modules/RSParser/Tests/RSParserTests/RSSInJSONParserTests.swift b/Modules/RSParser/Tests/RSParserTests/RSSInJSONParserTests.swift
index 266c0e19b..b09530a6e 100644
--- a/Modules/RSParser/Tests/RSParserTests/RSSInJSONParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/RSSInJSONParserTests.swift
@@ -9,7 +9,7 @@
import XCTest
import RSParser
-class RSSInJSONParserTests: XCTestCase {
+final class RSSInJSONParserTests: XCTestCase {
func testScriptingNewsPerformance() {
diff --git a/Modules/RSParser/Tests/RSParserTests/RSSParserTests.swift b/Modules/RSParser/Tests/RSParserTests/RSSParserTests.swift
index 71384fa79..612c00e30 100644
--- a/Modules/RSParser/Tests/RSParserTests/RSSParserTests.swift
+++ b/Modules/RSParser/Tests/RSParserTests/RSSParserTests.swift
@@ -9,7 +9,7 @@
import XCTest
import RSParser
-class RSSParserTests: XCTestCase {
+final class RSSParserTests: XCTestCase {
func testScriptingNewsPerformance() {
@@ -175,6 +175,22 @@ class RSSParserTests: XCTestCase {
XCTAssertEqual(parsedFeed.language, "en-US")
}
+ func testMarkdown1() {
+ let d = parserData("markdown1", "rss", "https://wordland.social/scripting/237777565/rss.xml")
+ let parsedFeed = try! FeedParser.parse(d)!
+ for article in parsedFeed.items {
+ XCTAssertNotNil(article.markdown)
+ }
+ }
+
+ func testMarkdown2() {
+ let d = parserData("markdown2", "rss", "https://wordland.social/scripting/246529703/rss.xml")
+ let parsedFeed = try! FeedParser.parse(d)!
+ for article in parsedFeed.items {
+ XCTAssertNotNil(article.markdown)
+ }
+ }
+
// func testFeedWithGB2312Encoding() {
// // This feed has an encoding we don’t run into very often.
// // https://github.com/Ranchero-Software/NetNewsWire/issues/1477
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/markdown1.rss b/Modules/RSParser/Tests/RSParserTests/Resources/markdown1.rss
new file mode 100644
index 000000000..4abf8b948
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/markdown1.rss
@@ -0,0 +1,247 @@
+
+
+
+
+ daveverse
+ https://daveverse.org
+ Dave's WordPress home in the Fediverse :-)
+ Sat, 25 Oct 2025 15:05:02 GMT
+ Sat, 25 Oct 2025 16:00:23 GMT
+ en-us
+ WordLand v0.7.4
+ https://cyber.law.harvard.edu/rss/rss.html
+ Saturday, October 25, 2025 at 12:00 PM
+ https://wordland.social/scripting/246529703/rss.xml
+ 237777565
+
+
+ daveverse
+ https://imgs.scripting.com/2025/06/13/tomatoSoup.png
+ https://daveverse.org
+ Dave's WordPress home in the Fediverse :-)
+
+ -
+
WordPress and AI
+ <p>I see that the <a href="https://wordpress.org/news/2025/05/announcing-the-formation-of-the-wordpress-ai-team/">WordPress world</a> is getting interested in adding AI features. </p>
<p>I had some <a href="http://scripting.com/2024/09/28/132152.html">ideas</a> a <a href="http://scripting.com/2025/07/12/134525.html">few</a> <a href="http://scripting.com/2025/03/20/151234.html">years</a> <a href="http://scripting.com/2023/05/15.html">ago</a>, about how I would like AI to be hooked up to blogging, and the ideas have developed a bit in the years since. </p>
<p>As a writer I want most is every bit of writing I’ve published turned into any kind of book I want at any time. </p>
<p>I think it’s a great time to invest in new ideas for writers. </p>
<p> I have pretty good <a href="https://daytona.scripting.com/search?q=%22still%20diggin%22">search</a> on my blog, but so much more is possible. </p>
<p>An example of a book lurking in the archive of my blog. </p>
<blockquote>
<p><em>A user’s guide to FeedLand.</em> </p>
</blockquote>
<p>Knowing the AI would pull a users manual together on command, I’d feel more comfortable writing about it on my blog. As it is there’s a lot of good info between other blog posts. </p>
<p>Imagine a series of book types you could ask your AI friend to build for you from your own writing. </p>
<p>Eventually all user's guides will be assembled by AI. In the case of software products it should have already happened, though I'm just as behind the curve as everyone else is in this regard. </p>
<p> And of course the first docs to be produced that way would be <em>A user's guide to WordPress.</em></p>
+ Sat, 25 Oct 2025 15:05:02 GMT
+ https://daveverse.org/2025/10/25/wordpress-and-ai/
+ https://daveverse.org/2025/10/25/wordpress-and-ai/
+ I see that the [WordPress world](https://wordpress.org/news/2025/05/announcing-the-formation-of-the-wordpress-ai-team/) is getting interested in adding AI features.
I had some [ideas](http://scripting.com/2024/09/28/132152.html) a [few](http://scripting.com/2025/07/12/134525.html) [years](http://scripting.com/2025/03/20/151234.html) [ago](http://scripting.com/2023/05/15.html), about how I would like AI to be hooked up to blogging, and the ideas have developed a bit in the years since.
As a writer I want most is every bit of writing I’ve published turned into any kind of book I want at any time.
I think it’s a great time to invest in new ideas for writers.
I have pretty good [search](https://daytona.scripting.com/search?q=%22still%20diggin%22) on my blog, but so much more is possible.
An example of a book lurking in the archive of my blog.
> _A user’s guide to FeedLand._
Knowing the AI would pull a users manual together on command, I’d feel more comfortable writing about it on my blog. As it is there’s a lot of good info between other blog posts.
Imagine a series of book types you could ask your AI friend to build for you from your own writing.
Eventually all user's guides will be assembled by AI. In the case of software products it should have already happened, though I'm just as behind the curve as everyone else is in this regard.
And of course the first docs to be produced that way would be _A user's guide to WordPress._
+ 2609
+
+ -
+
wpIdentity work to warm up
+ <p>As a warmup project, I've updated the home page of the wpidentity package, so that it's clear that it's much more than identity. </p>
<p>Did the final editing on the api2.js file -- so that all the code is separated from the assignment to the wordpress object.</p>
<p>Next up I want to generate a set of docs for the function. I've tried it with ChatGPT before and it seemed to do a pretty good job, this time I'll look more closely.</p>
<p>I want to see if I can quickly write a "hello world" scale editor.</p>
+ Wed, 22 Oct 2025 14:53:02 GMT
+ https://daveverse.org/2025/10/22/wpidentity-work-to-warm-up/
+ https://daveverse.org/2025/10/22/wpidentity-work-to-warm-up/
+ As a warmup project, I've updated the home page of the wpidentity package, so that it's clear that it's much more than identity.
Did the final editing on the api2.js file -- so that all the code is separated from the assignment to the wordpress object.
Next up I want to generate a set of docs for the function. I've tried it with ChatGPT before and it seemed to do a pretty good job, this time I'll look more closely.
I want to see if I can quickly write a "hello world" scale editor.
+ 2607
+
+ -
+
Reading lists in FeedLand via Gemini
+ <p><em>Note: Generated by Gemini, better docs than anything we had.</em> </p>
<p>In FeedLand, a reading list is a list of feeds you can subscribe to as a group. </p>
<p>You can subscribe to a reading list by finding its URL and entering it in the "Subscribe to reading lists" tool within FeedLand. When the author of the reading list adds or removes a feed, all subscribers are automatically updated, which is a convenient way to stay current with a curated collection of content. </p>
<h4>How to use a reading list</h4>
<ol>
<li>Find the reading list URL: The reading list will have a unique URL, often shared by the author or influencer.</li>
<li>Subscribe in FeedLand: Go to your instance of FeedLand and look for a tool like "Subscribe to reading lists."</li>
<li>Enter the URL: Paste the URL of the reading list into the provided field.</li>
<li>Stay updated: FeedLand will automatically add the feeds from the list to your subscriptions. You will be notified when the list changes, and your subscriptions will be updated accordingly. </li>
</ol>
<h4>Key features</h4>
<p>• Curated content: Reading lists allow users to get a curated collection of feeds from a single source, making it easy to discover new content. </p>
<p> • Automatic updates: When the author of a reading list adds or removes a feed, all subscribers are automatically updated. • Duplicate handling: FeedLand has a feature to prevent a feed from appearing more than once in your list, even if it is both directly subscribed to and part of a reading list.</p>
<p>To learn more about the concept of reading lists in FeedLand, you can read this article from FeedLand blog (https://feedland.blog/page/3/) that explains the feature in more detail. You can also explore the FeedLand API documentation on the FeedLand website (https://feedland.blog/2023/11/) to learn how to interact with reading lists programmatically.</p>
+ Sun, 19 Oct 2025 15:49:46 GMT
+ https://daveverse.org/2025/10/19/reading-lists-in-feedland-via-gemini/
+ https://daveverse.org/2025/10/19/reading-lists-in-feedland-via-gemini/
+ _Note: Generated by Gemini, better docs than anything we had._
In FeedLand, a reading list is a list of feeds you can subscribe to as a group.
You can subscribe to a reading list by finding its URL and entering it in the "Subscribe to reading lists" tool within FeedLand. When the author of the reading list adds or removes a feed, all subscribers are automatically updated, which is a convenient way to stay current with a curated collection of content.
#### How to use a reading list
1. Find the reading list URL: The reading list will have a unique URL, often shared by the author or influencer.
2. Subscribe in FeedLand: Go to your instance of FeedLand and look for a tool like "Subscribe to reading lists."
3. Enter the URL: Paste the URL of the reading list into the provided field.
4. Stay updated: FeedLand will automatically add the feeds from the list to your subscriptions. You will be notified when the list changes, and your subscriptions will be updated accordingly.
#### Key features
• Curated content: Reading lists allow users to get a curated collection of feeds from a single source, making it easy to discover new content.
• Automatic updates: When the author of a reading list adds or removes a feed, all subscribers are automatically updated. • Duplicate handling: FeedLand has a feature to prevent a feed from appearing more than once in your list, even if it is both directly subscribed to and part of a reading list.
To learn more about the concept of reading lists in FeedLand, you can read this article from FeedLand blog (https://feedland.blog/page/3/) that explains the feature in more detail. You can also explore the FeedLand API documentation on the FeedLand website (https://feedland.blog/2023/11/) to learn how to interact with reading lists programmatically.
+ 2591
+
+ -
+
What I did on my trip to Canada, part 1
+ <p>I presented <a href="https://wordland.social/">WordLand</a> for the first time publicly, the new one with a timeline, so it more clearly shows how we can build a beautiful social network just from open formats and protocols. </p>
<p> No user lock-in, every part replaceable, and open to developers to add functionality without having to reimplement the whole thing. These are all the things I think that have stood in the way of innovation in the web for many years. </p>
<p>A social network that starts out with no centralization and is open in every sense has a much better chance of being decentralized than one that starts out centralized and swears they're going to stop doing that -- someday, fingers crossed, etc.</p>
+ Sun, 19 Oct 2025 13:36:14 GMT
+ https://daveverse.org/2025/10/19/what-i-did-on-my-trip-to-canada-part-1/
+ https://daveverse.org/2025/10/19/what-i-did-on-my-trip-to-canada-part-1/
+ I presented [WordLand](https://wordland.social/) for the first time publicly, the new one with a timeline, so it more clearly shows how we can build a beautiful social network just from open formats and protocols.
No user lock-in, every part replaceable, and open to developers to add functionality without having to reimplement the whole thing. These are all the things I think that have stood in the way of innovation in the web for many years.
A social network that starts out with no centralization and is open in every sense has a much better chance of being decentralized than one that starts out centralized and swears they're going to stop doing that -- someday, fingers crossed, etc.
+ 2583
+
+ -
+
Matt Mullenweg photo at WordCamp Canada
+ <p>I'm back at <a href="https://canada.wordcamp.org/2025/">WordCamp</a> in a big room <a href="https://en.wikipedia.org/wiki/Matt_Mullenweg">Matt Mullenweg</a> to answer questions for the people here. Yesterday's presentation went really well, lots of smart people really interested, fantastic discussion after. A very nice web culture. I went with three slides to get started, and then talked, demo'd, answered questions, and listened to ideas. Told a few jokes. Got a few laughs. It got the job done, help feed the <a href="https://en.wikipedia.org/wiki/Word-of-mouth_marketing">word of mouth</a> on <a href="https://wordland.social/">WordLand</a>.</p>
<p><img src="https://daveverse.org/wp-content/uploads/2025/10/matt.jpg" alt="" title="" /></p>
+ Fri, 17 Oct 2025 14:23:11 GMT
+ https://daveverse.org/2025/10/17/2577/
+ https://daveverse.org/2025/10/17/2577/
+ I'm back at [WordCamp](https://canada.wordcamp.org/2025/) in a big room [Matt Mullenweg](https://en.wikipedia.org/wiki/Matt_Mullenweg) to answer questions for the people here. Yesterday's presentation went really well, lots of smart people really interested, fantastic discussion after. A very nice web culture. I went with three slides to get started, and then talked, demo'd, answered questions, and listened to ideas. Told a few jokes. Got a few laughs. It got the job done, help feed the [word of mouth](https://en.wikipedia.org/wiki/Word-of-mouth_marketing) on [WordLand](https://wordland.social/).

+ 2577
+
+ -
+
Evan will be excited
+ <p>This is a demo of WordLand at the WCEH.</p>
+ Thu, 16 Oct 2025 15:57:30 GMT
+ https://daveverse.org/2025/10/16/evan-will-be-excited/
+ https://daveverse.org/2025/10/16/evan-will-be-excited/
+ This is a demo of WordLand at the WCEH.
+ 2569
+
+ -
+
Arrived in Ottawa
+ <p>Nice easy drive until I got into the city. I forgot that I live in the mountains and never have to deal with city traffic in my usual daily thing. White knuckles all the way. Checked in to the hotel. It's all good. Tired thought.</p>
+ Wed, 15 Oct 2025 21:55:13 GMT
+ https://daveverse.org/2025/10/15/arrived-in-ottawa/
+ https://daveverse.org/2025/10/15/arrived-in-ottawa/
+ Nice easy drive until I got into the city. I forgot that I live in the mountains and never have to deal with city traffic in my usual daily thing. White knuckles all the way. Checked in to the hotel. It's all good. Tired thought.
+ 2564
+
+ -
+
Why did podcasting work?
+ <p>My theory is that we had..</p>
<ul>
<li><p>An indisputable definition of audio. (MP3.)</p></li>
<li><p>A simple format for programming. (RSS.)</p></li>
<li><p>A popular mobile device for listening. (iPod.)</p></li>
</ul>
<p>A million flowers bloomed. (Podcast clients.)</p>
<p>Impossible to siloize. (They tried.)</p>
+ Wed, 15 Oct 2025 06:54:54 GMT
+ https://daveverse.org/2025/10/15/why-did-podcasting-work/
+ https://daveverse.org/2025/10/15/why-did-podcasting-work/
+ My theory is that we had..
* An indisputable definition of audio. (MP3.)
* A simple format for programming. (RSS.)
* A popular mobile device for listening. (iPod.)
A million flowers bloomed. (Podcast clients.)
Impossible to siloize. (They tried.)
+ 2558
+
+ -
+
Times I've been ambushed at conferences
+ <p>Well, I think I'm done. I've got the outline for the slides complete. I can't possibly talk about all the stuff that's in the slides. Once I leave tomorrow I think perhaps I'll post a link for the slides and maybe offer a place to comment. Maybe. </p>
<p>I get very nervous about these things and then remember when I've prepared as much as I have for this, the talk goes quickly and people generally are nice, though I've been ambushed a few memorable times. Let's see -- Austin, Cambridge, San Francisco and Nashville come to mind. ;-)</p>
<p>In Austin it was because I was privileged. I was being honored because it was the 25th year of my blog, and I was one of the keynoters. I told the promoter his people wouldn't like me, and then I forgot I said it when it happened. I was stuck, I didn't want to get into a public argument with anyone. (Had I wanted to rebut, I would have said everyone in this room is privileged, just look around at how well fed and educated everyone is. We all flew in here. We live in a rich country where we are the elite of the elite. Now STFU, in my dreams.) </p>
<p>There have been times when I welcomed an argument...</p>
<p>In San Francisco, I was invited to lead a panel from the music industry about how great Napster was. This was probably in 2000 or 2001 when Napster was at its peak. It was an ambush. All the panelists made me the issue, and then they voted to kick me off the stage. I stayed there and waited until they exhausted their rage, and then asked them a question about music and Napster. Acted like nothing had happened. I had earned my place there, I was a very early industry adopter of Napster. I loved what it did for us. Imagine until then you either had to buy an album to listen to music, build a collection, or wait until it was played on the radio. (What is radio? Kind of an early form of podcasting.) People were talking about music in supermarkets and airports. This could not be stopped, I was sure of it, and they were acting like babies. I stood up and prevailed.</p>
<p>In Nashville, I was invited to be a sort of keynoter for a conference that was patterned after BloggerCon. I did not organize it, but I led a session, which was attended by a famous right wing blogger who I had invited to the Harvard BloggerCon. He brought a bunch of his friends, and they each said no one was listening to them but we were listening to them. I eventually sat down and let them have a session dominated by a few people repeating themselves. It was boring. </p>
<p>Finally I was set up by the promoters of a CMS conference which Berkman hosted at Harvard. I was the master of ceremonies. No one told me that one of my most virulent trolls was there, and when he got up to rage at me I asked him to sit down, but Charlie Nesson who was the senior educator there, and kind of naive about internet trolls, said he should speak his mind. I should have walked out at that point. I knew what was coming. It really shook me. </p>
<p>In Nashville a columnist in the local paper who said I caused the riot, btw. I swear to god I always take my discussion leader role seriously.</p>
+ Tue, 14 Oct 2025 15:24:34 GMT
+ https://daveverse.org/2025/10/14/times-ive-been-ambushed-at-conferences/
+ https://daveverse.org/2025/10/14/times-ive-been-ambushed-at-conferences/
+ Well, I think I'm done. I've got the outline for the slides complete. I can't possibly talk about all the stuff that's in the slides. Once I leave tomorrow I think perhaps I'll post a link for the slides and maybe offer a place to comment. Maybe.
I get very nervous about these things and then remember when I've prepared as much as I have for this, the talk goes quickly and people generally are nice, though I've been ambushed a few memorable times. Let's see -- Austin, Cambridge, San Francisco and Nashville come to mind. ;-)
In Austin it was because I was privileged. I was being honored because it was the 25th year of my blog, and I was one of the keynoters. I told the promoter his people wouldn't like me, and then I forgot I said it when it happened. I was stuck, I didn't want to get into a public argument with anyone. (Had I wanted to rebut, I would have said everyone in this room is privileged, just look around at how well fed and educated everyone is. We all flew in here. We live in a rich country where we are the elite of the elite. Now STFU, in my dreams.)
There have been times when I welcomed an argument...
In San Francisco, I was invited to lead a panel from the music industry about how great Napster was. This was probably in 2000 or 2001 when Napster was at its peak. It was an ambush. All the panelists made me the issue, and then they voted to kick me off the stage. I stayed there and waited until they exhausted their rage, and then asked them a question about music and Napster. Acted like nothing had happened. I had earned my place there, I was a very early industry adopter of Napster. I loved what it did for us. Imagine until then you either had to buy an album to listen to music, build a collection, or wait until it was played on the radio. (What is radio? Kind of an early form of podcasting.) People were talking about music in supermarkets and airports. This could not be stopped, I was sure of it, and they were acting like babies. I stood up and prevailed.
In Nashville, I was invited to be a sort of keynoter for a conference that was patterned after BloggerCon. I did not organize it, but I led a session, which was attended by a famous right wing blogger who I had invited to the Harvard BloggerCon. He brought a bunch of his friends, and they each said no one was listening to them but we were listening to them. I eventually sat down and let them have a session dominated by a few people repeating themselves. It was boring.
Finally I was set up by the promoters of a CMS conference which Berkman hosted at Harvard. I was the master of ceremonies. No one told me that one of my most virulent trolls was there, and when he got up to rage at me I asked him to sit down, but Charlie Nesson who was the senior educator there, and kind of naive about internet trolls, said he should speak his mind. I should have walked out at that point. I knew what was coming. It really shook me.
In Nashville a columnist in the local paper who said I caused the riot, btw. I swear to god I always take my discussion leader role seriously.
+ 2554
+
+ -
+
How to go fullscreen in Chrome on Mac
+ <p>I finally figured out how to make presentations full screen on the Mac. </p>
<p>I'm using Chrome to display the presentation. </p>
<ol>
<li><p>In Chrome's View menu turn off the first three options.</p></li>
<li><p>Choose Enter full screen.</p></li>
<li><p>Voila -- full screen!</p></li>
<li><p>Whew.</p></li>
</ol>
<p>BTW, neither Claude.ai or ChatGPT knew that Chrome has all the functionality needed to do this. The commands were in the same menu as the one command the both insisted would do it. So this human beat them both on something they really should’ve been much better at.</p>
+ Tue, 14 Oct 2025 00:07:57 GMT
+ https://daveverse.org/2025/10/13/how-to-go-fullscreen-in-chrome-on-mac/
+ https://daveverse.org/2025/10/13/how-to-go-fullscreen-in-chrome-on-mac/
+ I finally figured out how to make presentations full screen on the Mac.
I'm using Chrome to display the presentation.
1. In Chrome's View menu turn off the first three options.
2. Choose Enter full screen.
3. Voila -- full screen!
4. Whew.
BTW, neither Claude.ai or ChatGPT knew that Chrome has all the functionality needed to do this. The commands were in the same menu as the one command the both insisted would do it. So this human beat them both on something they really should’ve been much better at.
+ 2548
+
+ -
+
Zeroing in on the editor
+ <p>Going through quick hits on my list, not taking chances of breaking core stuff.</p>
<p>I want a way to zero in on the editor and hide the timeline, so you can focus just on editing. </p>
<p>I don't think I have the answer yet, but I do have a way of trying the idea out. </p>
<p>A new command in the main menu entitled <em>Focus on editor.</em></p>
<p>Not a great command name either. But we'll iterate to the answer.</p>
+ Mon, 13 Oct 2025 14:40:02 GMT
+ https://daveverse.org/2025/10/13/zeroing-in-on-the-editor/
+ https://daveverse.org/2025/10/13/zeroing-in-on-the-editor/
+ Going through quick hits on my list, not taking chances of breaking core stuff.
I want a way to zero in on the editor and hide the timeline, so you can focus just on editing.
I don't think I have the answer yet, but I do have a way of trying the idea out.
A new command in the main menu entitled _Focus on editor._
Not a great command name either. But we'll iterate to the answer.
+ 2539
+
+ -
+
Closing editor after publish pref
+ <p>Added a setting to close the editor after you publish. </p>
<p>This is useful if you do a lot of linkblogging. Typically you don't edit the posts, because they go to systems that don't allow updates.</p>
+ Mon, 13 Oct 2025 14:00:26 GMT
+ https://daveverse.org/2025/10/13/closing-editor-after-publish-pref/
+ https://daveverse.org/2025/10/13/closing-editor-after-publish-pref/
+ Added a setting to close the editor after you publish.
This is useful if you do a lot of linkblogging. Typically you don't edit the posts, because they go to systems that don't allow updates.
+ 2537
+
+ -
+
Peace in our time? Hmm far from it.
+ <p>Just listened to NPR news and they're quoting people basting Trump with effusive praise for whatever just happened in Gaza and Israel. Well I haven't forgotten that Trump is deploying the military to Portland, Chicago and DC and probably everywhere else before too long. That he's threatened Canada's independence. He says Antifa is his enemy which (as a math major) I am happy to tell you means that he is the <a href="https://en.wikipedia.org/wiki/Fascism">fa</a> in Antifa. He admits it. Thanks for that Uncle Trump.</p>
<p>I'd also like to add that before you heap that much praise on Trump, remember that Netanyahu is a member of the Republican Party (yes I know officially he's part of Likud, but I've been paying attention to how little respect he had for Obama and Biden, he even went over Obama's head and addressed Congress on his own, which put him on my permanent shit list, What happened here is that Trump gave him an order as he does to other members of the Republican Party. They don't discuss these things, they just do them, because they are scared shitless of Trump and Stephen Miller. </p>
<p>One more thing, the history of the US and Israel is a long one, and there have been plenty of big moments when everyone said peace has finally come to the region, only to find out soon after that it hadn't. It's like celebrating your victory in the World Series when you haven't even made the playoffs yet. Be careful about declaring victory. In this case the odds are not good. </p>
<p>NPR is, I guess, hoping to not get sent to the gulag when Trump decides it's time to clean up journalism in the US. I suppose we're all thinking that way to a certain extent, but that's also not a winning strategy imho.</p>
+ Mon, 13 Oct 2025 12:20:22 GMT
+ https://daveverse.org/2025/10/13/peace-in-our-time-hmm-far-from-it/
+ https://daveverse.org/2025/10/13/peace-in-our-time-hmm-far-from-it/
+ Just listened to NPR news and they're quoting people basting Trump with effusive praise for whatever just happened in Gaza and Israel. Well I haven't forgotten that Trump is deploying the military to Portland, Chicago and DC and probably everywhere else before too long. That he's threatened Canada's independence. He says Antifa is his enemy which (as a math major) I am happy to tell you means that he is the [fa](https://en.wikipedia.org/wiki/Fascism) in Antifa. He admits it. Thanks for that Uncle Trump.
I'd also like to add that before you heap that much praise on Trump, remember that Netanyahu is a member of the Republican Party (yes I know officially he's part of Likud, but I've been paying attention to how little respect he had for Obama and Biden, he even went over Obama's head and addressed Congress on his own, which put him on my permanent shit list, What happened here is that Trump gave him an order as he does to other members of the Republican Party. They don't discuss these things, they just do them, because they are scared shitless of Trump and Stephen Miller.
One more thing, the history of the US and Israel is a long one, and there have been plenty of big moments when everyone said peace has finally come to the region, only to find out soon after that it hadn't. It's like celebrating your victory in the World Series when you haven't even made the playoffs yet. Be careful about declaring victory. In this case the odds are not good.
NPR is, I guess, hoping to not get sent to the gulag when Trump decides it's time to clean up journalism in the US. I suppose we're all thinking that way to a certain extent, but that's also not a winning strategy imho.
+ 2531
+
+ -
+
One place all your writing emanates from
+ <p>Idea to add to slides. The ideal is to write everything you’re going to publish anywhere in one place, and distribute the text, or ideally pointers to the text to the places people want to read it. So you maintain the original text in one place. That can’t happen until there’s some basic agreement of what text is. This is something that was established in html, but since twitter the question has been much more of a challenge. Then there have to be APIs that allow full flow I. Both directions.</p>
<p>Web — no platform vendor.</p>
+ Mon, 13 Oct 2025 05:41:25 GMT
+ https://daveverse.org/2025/10/13/one-place-where-all-your-writing-emanates-from/
+ https://daveverse.org/2025/10/13/one-place-where-all-your-writing-emanates-from/
+ Idea to add to slides. The ideal is to write everything you’re going to publish anywhere in one place, and distribute the text, or ideally pointers to the text to the places people want to read it. So you maintain the original text in one place. That can’t happen until there’s some basic agreement of what text is. This is something that was established in html, but since twitter the question has been much more of a challenge. Then there have to be APIs that allow full flow I. Both directions.
Web — no platform vendor.
+ 2525
+
+ -
+
Laptop tests are good too
+ <p>Another test post. This one done on the laptop. I think there's some problem that only pops up on the iPad.</p>
+ Sun, 12 Oct 2025 23:00:16 GMT
+ https://daveverse.org/2025/10/12/laptop-tests-are-good-too/
+ https://daveverse.org/2025/10/12/laptop-tests-are-good-too/
+ Another test post. This one done on the laptop. I think there's some problem that only pops up on the iPad.
+ 2523
+
+ -
+
Test posts R us
+ <p>Time for another test post to make sure I wasn’t seeing things before. 😵💫</p>
+ Sun, 12 Oct 2025 21:39:17 GMT
+ https://daveverse.org/2025/10/12/test-posts-r-us/
+ https://daveverse.org/2025/10/12/test-posts-r-us/
+ Time for another test post to make sure I wasn’t seeing things before. 😵💫
+ 2521
+
+ -
+
<p>Trying the same experiment on the iPad.</p>
+ Sat, 11 Oct 2025 17:55:18 GMT
+ https://daveverse.org/2025/10/11/2516/
+ https://daveverse.org/2025/10/11/2516/
+ Trying the same experiment on the iPad.
+ 2516
+
+ -
+
this should work
+ <p>i want to sign off this specific problem. here's the experiment that has to work...</p>
<ol>
<li>post this</li>
<li>see it immediately show up in the timeline </li>
<li>reload the page</li>
<li>still see it in the timeline</li>
<li>edit the post (this is me editing the post)</li>
<li>publish</li>
<li>see the update in the timeline</li>
<li>reload the page, still see the update</li>
</ol>
<p>we're making sure the update appears not only in the browser i'm editing in, but also in the feedland database running behind the scenes.</p>
<p>result of experiment. it worked! omg i can't believe it. thank you thank you. ;-)</p>
+ Sat, 11 Oct 2025 14:49:23 GMT
+ https://daveverse.org/2025/10/11/this-should-work/
+ https://daveverse.org/2025/10/11/this-should-work/
+ i want to sign off this specific problem. here's the experiment that has to work...
1. post this
2. see it immediately show up in the timeline
3. reload the page
4. still see it in the timeline
5. edit the post (this is me editing the post)
6. publish
7. see the update in the timeline
8. reload the page, still see the update
we're making sure the update appears not only in the browser i'm editing in, but also in the feedland database running behind the scenes.
result of experiment. it worked! omg i can't believe it. thank you thank you. ;-)
+ 2509
+
+ -
+
Covering all the bets haha
+ <p>I think we have all bets covered now. </p>
<p>When I post this to Daveverse it will show up immediately in the timeline. </p>
<p>And for good luck we also send a message to FeedLand to check it, so even if it doesn't get an rssCloud ping due to misconfiguration of the server, it will still show up if I reload the page, and on any other system that doesn't happen to be the authors. </p>
<p>Glad I investigated this now, would hate to have to work on it later, knowing how I had to insert calls into very sensitive parts of the system. Small pieces loosely joined require some time to burn in before inflicting it on innocent users. 😀</p>
<p>Let's make an edit happen.</p>
+ Sat, 11 Oct 2025 14:31:44 GMT
+ https://daveverse.org/2025/10/11/covering-all-the-best-haha/
+ https://daveverse.org/2025/10/11/covering-all-the-best-haha/
+ I think we have all bets covered now.
When I post this to Daveverse it will show up immediately in the timeline.
And for good luck we also send a message to FeedLand to check it, so even if it doesn't get an rssCloud ping due to misconfiguration of the server, it will still show up if I reload the page, and on any other system that doesn't happen to be the authors.
Glad I investigated this now, would hate to have to work on it later, knowing how I had to insert calls into very sensitive parts of the system. Small pieces loosely joined require some time to burn in before inflicting it on innocent users. 😀
Let's make an edit happen.
+ 2503
+
+ -
+
daveverse.org and rssCloud support
+ <p>I think perhaps the Daveverse server is not doing the rssCloud notifications for subscribers, because: </p>
<ul>
<li>when i publish something new to daveverse, feedland doesn't immediately check the feed, as it would if it were getting a rssCloud ping.</li>
<li>the rssCloud mechanism appears to be working properly for wordpress.com-hosted sites, and for Scripting News and other sites that support rssCloud.</li>
<li>i find that if i cause the check to happen in WordLand (something it can do because it can talk directly to the feedland server) i get the notification via websocket and the update happens in the timeline.</li>
<li>note that daveverse.org is hosted on my own server, with help from Scott Hanson.</li>
<li>since this is being posted on daveverse.org it serves as a test case for me to confirm some of the things i said here. ;-)</li>
</ul>
+ Sat, 11 Oct 2025 13:39:13 GMT
+ https://daveverse.org/2025/10/11/daveverse-org-and-rsscloud-support/
+ https://daveverse.org/2025/10/11/daveverse-org-and-rsscloud-support/
+ I think perhaps the Daveverse server is not doing the rssCloud notifications for subscribers, because:
* when i publish something new to daveverse, feedland doesn't immediately check the feed, as it would if it were getting a rssCloud ping.
* the rssCloud mechanism appears to be working properly for wordpress.com-hosted sites, and for Scripting News and other sites that support rssCloud.
* i find that if i cause the check to happen in WordLand (something it can do because it can talk directly to the feedland server) i get the notification via websocket and the update happens in the timeline.
* note that daveverse.org is hosted on my own server, with help from Scott Hanson.
* since this is being posted on daveverse.org it serves as a test case for me to confirm some of the things i said here. ;-)
+ 2497
+
+ -
+
A good morning message
+ <p>Good morning Daveverse! </p>
<p>I learned something new today. Sometimes my keyboard stops working. Or one key stops working. I try turning it on and off. Usually fixes the problem. But today the Return key stopped working. I figured okay this keyboard is burned out, so I got one of my other supposedly burned out keyboards and swapped it in. Return key still doesn't work. Oh.</p>
<p>Then I tried quitting Chrome and relaunching it. And boom it works. </p>
<p>Keep remembering sometimes it's a software error and sometimes it isn't your software that's misbehaving, probably.</p>
+ Sat, 11 Oct 2025 13:13:49 GMT
+ https://daveverse.org/2025/10/11/a-good-morning-message/
+ https://daveverse.org/2025/10/11/a-good-morning-message/
+ Good morning Daveverse!
I learned something new today. Sometimes my keyboard stops working. Or one key stops working. I try turning it on and off. Usually fixes the problem. But today the Return key stopped working. I figured okay this keyboard is burned out, so I got one of my other supposedly burned out keyboards and swapped it in. Return key still doesn't work. Oh.
Then I tried quitting Chrome and relaunching it. And boom it works.
Keep remembering sometimes it's a software error and sometimes it isn't your software that's misbehaving, probably.
+ 2495
+
+ -
+
Wow, I actually have a lot to share!
+ <p>OK, so this is the acid test I am now trying to create a new post from my iPad and previously it wouldn’t have shown up in the timeline and now it should show up in the in the timeline and. And when I actually try it, we will see if it actually works or if it doesn’t in which case we will have to pick this up in the morning because it’s time for me to eat food and hang out and you know what I can’t work 24 hours a day I have to take most of the time to enjoy life and do things other than like torture myself by working and finding that there is a difference between HTTP and HTTPS and don’t ask me what it is because I don’t even know. Thank you very much. Have a nice day over and out your pal Dave. xxx</p>
+ Fri, 10 Oct 2025 21:56:30 GMT
+ https://daveverse.org/2025/10/10/wow-i-actually-have-a-lot-to-share/
+ https://daveverse.org/2025/10/10/wow-i-actually-have-a-lot-to-share/
+ OK, so this is the acid test I am now trying to create a new post from my iPad and previously it wouldn’t have shown up in the timeline and now it should show up in the in the timeline and. And when I actually try it, we will see if it actually works or if it doesn’t in which case we will have to pick this up in the morning because it’s time for me to eat food and hang out and you know what I can’t work 24 hours a day I have to take most of the time to enjoy life and do things other than like torture myself by working and finding that there is a difference between HTTP and HTTPS and don’t ask me what it is because I don’t even know. Thank you very much. Have a nice day over and out your pal Dave. xxx
+ 2491
+
+ -
+
A relaxed baseball playoffs this year
+ <p>I plan to watch baseball tonight. We're at the climax of the first non wild-card round. The Phillies have been eliminated by the Dodgers. Both teams the Mets have played many times in the last 20 years or so in playoffs. </p>
<p>The Cubs and Brewers are still in it as are the Tigers and Mariners. </p>
<p>Good luck to the fans of all these teams. I'm still watching. Tried to watch a Knicks preseason game last night and my heart wasn't in it yet. Will be soon. </p>
<p>BTW, in case you didn't know, my team, the Mets, did not make the playoffs this year. I was actually relieved, it's been very painful to watch the team as we approached the end of the season.</p>
+ Fri, 10 Oct 2025 21:44:54 GMT
+ https://daveverse.org/2025/10/10/a-relaxed-baseball-playoffs-this-year/
+ https://daveverse.org/2025/10/10/a-relaxed-baseball-playoffs-this-year/
+ I plan to watch baseball tonight. We're at the climax of the first non wild-card round. The Phillies have been eliminated by the Dodgers. Both teams the Mets have played many times in the last 20 years or so in playoffs.
The Cubs and Brewers are still in it as are the Tigers and Mariners.
Good luck to the fans of all these teams. I'm still watching. Tried to watch a Knicks preseason game last night and my heart wasn't in it yet. Will be soon.
BTW, in case you didn't know, my team, the Mets, did not make the playoffs this year. I was actually relieved, it's been very painful to watch the team as we approached the end of the season.
+ 2489
+
+ -
+
Blasting the perf of timeline update on new post
+ <p>I'm trying out some new core code in the system-level stuff in WordLand. </p>
<p>The connection between the editor and the timeline when you post something new.</p>
<p>I am going to try to build a shortcut between the two. When you post something for the first time, we notify the timeline component, and it adds it immediately, not waiting for the rssCloud loop to close. I don't want to wait.</p>
+ Fri, 10 Oct 2025 14:26:24 GMT
+ https://daveverse.org/2025/10/10/2485/
+ https://daveverse.org/2025/10/10/2485/
+ I'm trying out some new core code in the system-level stuff in WordLand.
The connection between the editor and the timeline when you post something new.
I am going to try to build a shortcut between the two. When you post something for the first time, we notify the timeline component, and it adds it immediately, not waiting for the rssCloud loop to close. I don't want to wait.
+ 2485
+
+ -
+
<p>This is the beginning of a new post. </p>
<p>Enjoy the thrill of it. </p>
<p>I'm just doing this because I've set a breakpoint in the code and want to see what the data looks like at that point, so I can think about creating something else from it.</p>
<p>I realize now that kids who are learning how to program now are going to be a whole other thing from the rest of us. </p>
<p>In my generation the ace we had was personal computers. I had the briefest taste of what it was like to work on mainframes in an office environment. We were able to do much more user-focused work when we did the programming on the user's machine. Big difference. </p>
<p>Anyway. Back to my breakpoint.</p>
+ Thu, 09 Oct 2025 21:38:12 GMT
+ https://daveverse.org/2025/10/09/2474/
+ https://daveverse.org/2025/10/09/2474/
+ This is the beginning of a new post.
Enjoy the thrill of it.
I'm just doing this because I've set a breakpoint in the code and want to see what the data looks like at that point, so I can think about creating something else from it.
I realize now that kids who are learning how to program now are going to be a whole other thing from the rest of us.
In my generation the ace we had was personal computers. I had the briefest taste of what it was like to work on mainframes in an office environment. We were able to do much more user-focused work when we did the programming on the user's machine. Big difference.
Anyway. Back to my breakpoint.
+ 2474
+
+
+
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/markdown2.rss b/Modules/RSParser/Tests/RSParserTests/Resources/markdown2.rss
new file mode 100644
index 000000000..4ae38c0c2
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/markdown2.rss
@@ -0,0 +1,223 @@
+
+
+
+
+ links.daveverse.org
+ https://links.daveverse.org
+
+ Wed, 29 Oct 2025 14:58:20 GMT
+ Wed, 29 Oct 2025 14:58:33 GMT
+ en-us
+ WordLand v0.7.4
+ https://cyber.law.harvard.edu/rss/rss.html
+ Wednesday, October 29, 2025 at 10:58 AM
+ https://wordland.social/scripting/246529703/rss.xml
+ 246529703
+
+
+ links.daveverse.org
+ https://imgs.scripting.com/2025/06/13/tomatoSoup.png
+ https://links.daveverse.org
+
+ -
+
<p>ICE and CBP Agents Are Scanning Peoples’ Faces on the Street To Verify Citizenship.</p>
+ Wed, 29 Oct 2025 14:58:20 GMT
+ https://www.404media.co/ice-and-cbp-agents-are-scanning-peoples-faces-on-the-street-to-verify-citizenship/
+ https://links.daveverse.org/2025/10/29/1731/
+ ICE and CBP Agents Are Scanning Peoples’ Faces on the Street To Verify Citizenship.
+ 1731
+
+ -
+
<p>Oklahoma Oil Regulators Failed to Stop Spread of Toxic Wastewater.</p>
+ Wed, 29 Oct 2025 14:44:02 GMT
+ https://www.propublica.org/article/oklahoma-oil-gas-wastewater-pollution?utm_source=mastodon&utm_medium=social&utm_campaign=mastodon-post
+ https://links.daveverse.org/2025/10/29/1729/
+ Oklahoma Oil Regulators Failed to Stop Spread of Toxic Wastewater.
+ 1729
+
+ -
+
<p>Om: Why Tech Needs Personalization.</p>
+ Wed, 29 Oct 2025 14:27:22 GMT
+ https://om.co/2025/10/29/why-tech-needs-personalization/
+ https://links.daveverse.org/2025/10/29/1727/
+ Om: Why Tech Needs Personalization.
+ 1727
+
+ -
+
<p>My WordPress News page is faster and shows better on phones. And lots of new sources.</p>
+ Tue, 28 Oct 2025 23:23:42 GMT
+ https://wp.feedland.org/
+ https://links.daveverse.org/2025/10/28/1725/
+ My WordPress News page is faster and shows better on phones. And lots of new sources.
+ 1725
+
+ -
+
<p>Canada Needs a New Bestie.</p>
+ Tue, 28 Oct 2025 19:12:15 GMT
+ https://www.theatlantic.com/politics/archive/2025/10/canada-us-foreign-policy-trump/684719/?gift=f35zZN0v_gDFE8xNwlQAHarxgsf8KbwKKHzxNoBJMzk&utm_source=copy-link&utm_medium=social&utm_campaign=share
+ https://links.daveverse.org/2025/10/28/1723/
+ Canada Needs a New Bestie.
+ 1723
+
+ -
+
<p>11 Delicious Food Blog Examples to Savor and Learn From.</p>
+ Tue, 28 Oct 2025 19:01:38 GMT
+ https://wordpress.com/blog/2025/10/28/food-blog-examples/
+ https://links.daveverse.org/2025/10/28/1721/
+ 11 Delicious Food Blog Examples to Savor and Learn From.
+ 1721
+
+ -
+
<p>The Hunger Games Begin.</p>
+ Tue, 28 Oct 2025 18:03:18 GMT
+ https://paulkrugman.substack.com/p/the-hunger-games-begin
+ https://links.daveverse.org/2025/10/28/1719/
+ The Hunger Games Begin.
+ 1719
+
+ -
+
<p>Donald Trump’s Plan to Subvert the Midterms Is Already Under Way.</p>
+ Tue, 28 Oct 2025 17:56:43 GMT
+ https://www.theatlantic.com/magazine/archive/2025/12/2026-midterms-trump-threat/684615/?gift=hVZeG3M9DnxL4CekrWGK3-2SrhMTxvxvr23JppEIh0U
+ https://links.daveverse.org/2025/10/28/1717/
+ Donald Trump’s Plan to Subvert the Midterms Is Already Under Way.
+ 1717
+
+ -
+
<p>Sorry TechCrunch there's no new security risks in giving OpenAI or Perplexity the same access to our accounts that we already give Google. Someone ought to fact-check these articles at least at a basic level.</p>
+ Tue, 28 Oct 2025 13:16:01 GMT
+ https://techcrunch.com/2025/10/25/the-glaring-security-risks-with-ai-browser-agents/
+ https://links.daveverse.org/2025/10/28/1715/
+ Sorry TechCrunch there's no new security risks in giving OpenAI or Perplexity the same access to our accounts that we already give Google. Someone ought to fact-check these articles at least at a basic level.
+ 1715
+
+ -
+
<p>On this day in 2019: 'Lock Him Up' is very American.</p>
+ Tue, 28 Oct 2025 13:14:28 GMT
+ http://scripting.com/2019/10/28/140358.html
+ https://links.daveverse.org/2025/10/28/1713/
+ On this day in 2019: 'Lock Him Up' is very American.
+ 1713
+
+ -
+
<p>Grokipedia article for Elon Musk.</p>
+ Tue, 28 Oct 2025 12:23:02 GMT
+ https://grokipedia.com/page/Elon_Musk
+ https://links.daveverse.org/2025/10/28/1711/
+ Grokipedia article for Elon Musk.
+ 1711
+
+ -
+
<p>Rep. Stansbury: Families are about to lose their food assistance.</p>
+ Tue, 28 Oct 2025 12:16:06 GMT
+ https://m.youtube.com/watch?v=zZjXTdL68VU&t=70s&pp=2AFGkAIB0gcJCR4Bo7VqN5tD
+ https://links.daveverse.org/2025/10/28/1709/
+ Rep. Stansbury: Families are about to lose their food assistance.
+ 1709
+
+ -
+
<p>Elon Musk launches Grokipedia, an AI-powered Wikipedia rival.</p>
+ Tue, 28 Oct 2025 12:09:59 GMT
+ https://wapo.st/47PKzTd
+ https://links.daveverse.org/2025/10/28/1707/
+ Elon Musk launches Grokipedia, an AI-powered Wikipedia rival.
+ 1707
+
+ -
+
<p>Medicare Advantage: Last Week Tonight with John Oliver (HBO).</p>
+ Mon, 27 Oct 2025 23:13:43 GMT
+ https://m.youtube.com/watch?v=Ejoi9yfLVCc
+ https://links.daveverse.org/2025/10/27/1705/
+ Medicare Advantage: Last Week Tonight with John Oliver (HBO).
+ 1705
+
+ -
+
<p>I thought this piece would be yet another that says men are somehow inadequate, but it isn't.</p>
+ Mon, 27 Oct 2025 16:22:04 GMT
+ https://www.theatlantic.com/culture/2025/10/dear-james-male-friends-nongrowth-mindset/684552/?gift=f35zZN0v_gDFE8xNwlQAHUXzcik9EreCxLp0ZfJGSL0&utm_source=copy-link&utm_medium=social&utm_campaign=share
+ https://links.daveverse.org/2025/10/27/1703/
+ I thought this piece would be yet another that says men are somehow inadequate, but it isn't.
+ 1703
+
+ -
+
<p>Luxury Retirement Communities Are Embracing Private Clubs.</p>
+ Mon, 27 Oct 2025 15:45:10 GMT
+ https://www.nytimes.com/2025/10/24/realestate/senior-living-luxury-retirement-communities.html
+ https://links.daveverse.org/2025/10/27/1701/
+ Luxury Retirement Communities Are Embracing Private Clubs.
+ 1701
+
+ -
+
<p>ICE’s Hiring Surge Is Already a Disaster.</p>
+ Mon, 27 Oct 2025 15:14:25 GMT
+ https://www.doomsdayscenario.co/p/ice-s-hiring-surge-is-already-a-disaster
+ https://links.daveverse.org/2025/10/27/1699/
+ ICE’s Hiring Surge Is Already a Disaster.
+ 1699
+
+ -
+
<p>US is ‘on a trajectory’ toward authoritarian rule, ex-officials warn.</p>
+ Mon, 27 Oct 2025 14:34:06 GMT
+ https://www.theguardian.com/us-news/2025/oct/16/trump-authoritarianism-warning?CMP=share_btn_url&fbclid=IwY2xjawNsYexleHRuA2FlbQIxMQBicmlkETFuYklsRG5UTW1VUXY0NVpGAR4ZUAsahJUU7NO0_c_yXjPEr-uu95r_AYMgXoL1S-vUYRTfaHeDIwUsQmYeFQ_aem_H4hatJxjYP9ECwule9CU6Q
+ https://links.daveverse.org/2025/10/27/1697/
+ US is ‘on a trajectory’ toward authoritarian rule, ex-officials warn.
+ 1697
+
+ -
+
<p>What to know when your doctors get booted from your health insurance network.</p>
+ Mon, 27 Oct 2025 10:18:01 GMT
+ https://www.npr.org/2025/10/27/nx-s1-5580608/health-insurance-network-contract-doctors-missouri?utm_source=bsky.app&utm_term=nprnews&utm_campaign=npr&utm_medium=social
+ https://links.daveverse.org/2025/10/27/1695/
+ What to know when your doctors get booted from your health insurance network.
+ 1695
+
+ -
+
<p>Meet all 37 White House ballroom donors funding the $300 million build.</p>
+ Mon, 27 Oct 2025 08:32:50 GMT
+ https://fortune.com/2025/10/26/37-white-house-ballroom-donors-funding-300-million-build-tech-ceos-trump/
+ https://links.daveverse.org/2025/10/27/1693/
+ Meet all 37 White House ballroom donors funding the $300 million build.
+ 1693
+
+ -
+
<p>How the Trump Administration Demolished the White House East Wing.</p>
+ Sun, 26 Oct 2025 22:53:15 GMT
+ https://www.bloomberg.com/news/newsletters/2025-10-26/how-the-trump-administration-demolished-the-white-house-east-wing
+ https://links.daveverse.org/2025/10/26/1691/
+ How the Trump Administration Demolished the White House East Wing.
+ 1691
+
+ -
+
<p>US Department of Agriculture says no food aid benefits will be issued next month.</p>
+ Sun, 26 Oct 2025 22:44:48 GMT
+ https://www.reuters.com/world/us/us-department-agriculture-says-no-food-aid-benefits-will-be-issued-next-month-2025-10-26/
+ https://links.daveverse.org/2025/10/26/1689/
+ US Department of Agriculture says no food aid benefits will be issued next month.
+ 1689
+
+ -
+
<p>A single point of failure triggered the Amazon outage affecting millions.</p>
+ Sun, 26 Oct 2025 19:52:30 GMT
+ https://arstechnica.com/gadgets/2025/10/a-single-point-of-failure-triggered-the-amazon-outage-affecting-millions/
+ https://links.daveverse.org/2025/10/26/1687/
+ A single point of failure triggered the Amazon outage affecting millions.
+ 1687
+
+ -
+
<p>A House of Dynamite deserves the stellar reviews it has been getting.</p>
+ Sun, 26 Oct 2025 13:02:12 GMT
+ https://www.metacritic.com/movie/a-house-of-dynamite/
+ https://links.daveverse.org/2025/10/26/1685/
+ A House of Dynamite deserves the stellar reviews it has been getting.
+ 1685
+
+ -
+
<p>President Reagan's Radio Address on Free and Fair Trade on April 25, 1987.</p>
+ Sun, 26 Oct 2025 02:59:48 GMT
+ https://m.youtube.com/watch?v=5t5QK03KXPc
+ https://links.daveverse.org/2025/10/25/1683/
+ President Reagan's Radio Address on Free and Fair Trade on April 25, 1987.
+ 1683
+
+
+
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom b/Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom
new file mode 100644
index 000000000..65f12c4e6
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/neverworkintheory.atom
@@ -0,0 +1,969 @@
+
+
+ It Will Never Work in Theory
+
+
+ 2024-03-21T22:48:52+00:00
+ https://neverworkintheory.org
+
+ Greg Wilson
+ gvwilson@third-bit.com
+
+
+
+ Retrospective
+
+ 2024-03-21T00:00:00+00:00
+ https://neverworkintheory.org/2024/03/21/retrospective
+ <p>
+ <em>IEEE Software</em> is publishing a short retrospective on this project in 2024.
+ A preprint is available on
+ <a href="https://www.computer.org/csdl/magazine/so/5555/01/10424425/1Ulj1Qa8tJ6">the magazine's site</a>,
+ or you can <a href="https://www.computer.org/csdl/api/v1/periodical/mags/so/5555/01/10424425/1Ulj1Qa8tJ6/download-article/pdf">download a PDF</a> directly.
+</p>
+
+<pre>
+@article{nwit2024,
+ author = {Greg Wilson and Jorge Aranda and Michael Hoye and Brittany Johnson},
+ title = {It Will Never Work in Theory},
+ journal = {IEEE Software},
+ year = {2024},
+ doi = {10.1109/MS.2024.3362649},
+ link = {https://www.computer.org/csdl/magazine/so/5555/01/10424425/1Ulj1Qa8tJ6}
+}
+</pre>
+
+
+
+
+ Shurui Zhou on Sustainability of Open Source Scientific Software
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/zhou-shurui
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/zhou-shurui.png" width="80%" alt="Shurui Zhou"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.eecg.utoronto.ca/~shuruiz/" class="person">Shurui Zhou</a>
+ <br>
+ "Understanding the sustainability challenges for building open-source scientific software."
+ </p>
+ <p>
+ <em>
+ Shurui is an Assistant Professor in Electrical and Computer Engineering at the University of Toronto in Canada.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/zhou-shurui.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/zhou-shurui-en.txt">English</a>
+
+
+<a href="/static/2023-04/zhou-shurui-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/24BdlgcK2mE"></iframe>
+
+
+
+
+
+ Andreas Zeller on Creating Nasty Test Inputs
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/zeller-andreas
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/zeller-andreas.jpg" width="80%" alt="Andreas Zeller"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://andreas-zeller.info/" class="person">Andreas Zeller</a>
+ <br>
+ "How to create the nastiest test inputs ever."
+ </p>
+ <p>
+ <em>
+ Andreas is faculty at the CISPA Helmholtz Center for Information Security and Professor of Software Engineering at Saarland University in Saarbrücken, Germany.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/zeller-andreas.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/zeller-andreas-en.txt">English</a>
+
+
+<a href="/static/2023-04/zeller-andreas-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/GCy8bYJ_G0I"></iframe>
+
+
+
+
+
+ Ethel Tshukudu on Conceptual Transfer in Students Learning New Programming Languages
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/tshukudu-ethel
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/tshukudu-ethel.jpg" width="80%" alt="Ethel Tshukudu"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.csedbotswana.org/" class="person">Ethel Tshukudu</a>
+ <br>
+ "Understanding conceptual transfer in students learning new programming languages."
+ </p>
+ <p>
+ <em>
+ Ethel is a Lecturer at the University of Botswana and a Founder and Director of CSEdBotswana.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/tshukudu-ethel.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/tshukudu-ethel-en.txt">English</a>
+
+
+<a href="/static/2023-04/tshukudu-ethel-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/MHwSnjLx-64"></iframe>
+
+
+
+
+
+ Allison Sullivan on the Benefits of Unit Tests for Software Models
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/sullivan-allison
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/sullivan-allison.jpg" width="80%" alt="Allison Sullivan"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://allisonius.github.io/" class="person">Allison Sullivan</a>
+ <br>
+ "Proofreading the proofreader: the benefits of unit tests for software models."
+ </p>
+ <p>
+ <em>
+ Allison is an Assistant Professor at the University of Texas at Arlington.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/sullivan-allison.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/sullivan-allison-en.txt">English</a>
+
+
+<a href="/static/2023-04/sullivan-allison-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/H6vyMSoVN5s"></iframe>
+
+
+
+
+
+ Alexander Serebrenik on Employability and Experiences of Older Developers
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/serebrenik-alexander
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/serebrenik-alexander.jpg" width="80%" alt="Alexander Serebrenik"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.win.tue.nl/~aserebre/" class="person">Alexander Serebrenik</a>
+ <br>
+ "Getting old: employability and experiences of veteran software developers."
+ </p>
+ <p>
+ <em>
+ Alexander is a Full Professor of Social Software Engineering at Eindhoven University of Technology in the Netherlands.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/serebrenik-alexander.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/serebrenik-alexander-en.txt">English</a>
+
+
+<a href="/static/2023-04/serebrenik-alexander-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/vofY6oeAaBQ"></iframe>
+
+
+
+
+
+ Kai Presler-Marshall on Teaching Collaborative Skills to Undergrads
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/presler-marshall-kai
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/presler-marshall-kai.jpg" width="80%" alt="Kai Presler-Marshall"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://kpresler.github.io/" class="person">Kai Presler-Marshall</a>
+ <br>
+ "Teaching collaborative skills to undergraduate software engineering students."
+ </p>
+ <p>
+ <em>
+ Kai completed his PhD at North Carolina State University and now teaches computer science at Bowdoin College in Maine.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/presler-marshall-kai.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/presler-marshall-kai-en.txt">English</a>
+
+
+<a href="/static/2023-04/presler-marshall-kai-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/CvwHg9N7gWo"></iframe>
+
+
+
+
+
+ Gustavo Pinto on Cognitive-Driven Development
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/pinto-gustavo
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/pinto-gustavo.jpg" width="80%" alt="Gustavo Pinto"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://gustavopinto.org/" class="person">Gustavo Pinto</a>
+ <br>
+ "Cognitive-driven development helps software teams to keep code units under the limit."
+ </p>
+ <p>
+ <em>
+ Gustavo is Head of Research at Zup Innovation and Assistant Professor at Federal University of Pará in Brazil.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/pinto-gustavo.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/pinto-gustavo-en.txt">English</a>
+
+
+<a href="/static/2023-04/pinto-gustavo-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/g_ht_LDm5Hw"></iframe>
+
+
+
+
+
+ Christian Newman on Crafting Strong Identifier Naming Practices
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/newman-christian
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/newman-christian.png" width="80%" alt="Christian Newman"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.scanl.org/" class="person">Christian Newman</a>
+ <br>
+ "Crafting strong identifier naming practices."
+ </p>
+ <p>
+ <em>
+ Christian is assistant faculty in the Software Engineering Department at Rochester Institute of Technology.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/newman-christian.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/newman-christian-en.txt">English</a>
+
+
+<a href="/static/2023-04/newman-christian-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/Q85GhN7871c"></iframe>
+
+
+
+
+
+ Ariana Mirian on Enterprise Vulnerability Remediation
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/mirian-ariana
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/mirian-ariana.jpg" width="80%" alt="Ariana Mirian"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://arianamirian.com/" class="person">Ariana Mirian</a>
+ <br>
+ "The theory and practice of enterprise vulnerability remediation."
+ </p>
+ <p>
+ <em>
+ Ariana is a security researcher at the University of California San Diego in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/mirian-ariana.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/mirian-ariana-en.txt">English</a>
+
+
+<a href="/static/2023-04/mirian-ariana-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/ceuNc5cy1UA"></iframe>
+
+
+
+
+
+ Lauren Margulieux on Things Software Developers Should Know About Learning
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/margulieux-lauren
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/margulieux-lauren.jpg" width="80%" alt="Lauren Margulieux"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://laurenmarg.com/" class="person">Lauren Margulieux</a>
+ <br>
+ "Things software developers should learn about learning."
+ </p>
+ <p>
+ <em>
+ Lauren is an Associate Professor of Learning Sciences at Georgia State University.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/margulieux-lauren.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/margulieux-lauren-en.txt">English</a>
+
+
+<a href="/static/2023-04/margulieux-lauren-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/XGF8ljfL4ZA"></iframe>
+
+
+
+
+
+ Sherlock Licorish on Using Genetic Improvement to Enhance Code Snippets
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/licorish-sherlock
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/licorish-sherlock.jpg" width="80%" alt="Sherlock Licorish"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.otago.ac.nz/info-science/people/staff/sherlock-licorish.html" class="person">Sherlock Licorish</a>
+ <br>
+ "Can genetic improvement enhance online code snippets?"
+ </p>
+ <p>
+ <em>
+ Sherlock is an Associate Professor in the Department of Information Science at the University of Otago.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/licorish-sherlock.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/licorish-sherlock-en.txt">English</a>
+
+
+<a href="/static/2023-04/licorish-sherlock-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/ylREDaqKWEk"></iframe>
+
+
+
+
+
+ Carol Lee on Developer Thriving
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/lee-carol
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/lee-carol.jpg" width="80%" alt="Carol Lee"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.carol-s-lee-phd.com/" class="person">Carol Lee</a>
+ <br>
+ "Developer thriving: why developers deserve more than satisfaction."
+ </p>
+ <p>
+ <em>
+ Carol is a senior research scientist at Pluralsight Flow's Developer Success Lab in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/lee-carol.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/lee-carol-en.txt">English</a>
+
+
+<a href="/static/2023-04/lee-carol-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/8gfTqazvejI"></iframe>
+
+
+
+
+
+ Thomas LaToza on Programming Strategically
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/latoza-thomas
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/latoza-thomas.jpg" width="80%" alt="Thomas LaToza"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://cs.gmu.edu/~tlatoza/" class="person">Thomas LaToza</a>
+ <br>
+ "Programming strategically."
+ </p>
+ <p>
+ <em>
+ Thomas is an Associate Professor of Computer Science at George Mason University in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/latoza-thomas.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/latoza-thomas-en.txt">English</a>
+
+
+<a href="/static/2023-04/latoza-thomas-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/Dyo7WpndWog"></iframe>
+
+
+
+
+
+ Raula Kula on What We Know About Libraries and Their Dependencies
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/kula-raula
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/kula-raula.jpg" width="80%" alt="Raula Kula"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://raux.github.io/" class="person">Raula Kula</a>
+ <br>
+ "What do we know about libraries and their dependencies?"
+ </p>
+ <p>
+ <em>
+ Raula is an Assistant Professor at the Nara Institute of Science and Technology (NAIST) in Japan.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/kula-raula.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/kula-raula-en.txt">English</a>
+
+
+<a href="/static/2023-04/kula-raula-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/O-PZX7d7YWo"></iframe>
+
+
+
+
+
+ Elvan Kula on Understanding and Predicting Delays in Software Development
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/kula-elvan
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/kula-elvan.png" width="80%" alt="Elvan Kula"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://serg.ewi.tudelft.nl/members/elvan-kula/" class="person">Elvan Kula</a>
+ <br>
+ "Understanding and predicting delays in large-scale software development."
+ </p>
+ <p>
+ <em>
+ Elvan is chapter lead of Analytics and AI Research at ING and a doctoral candidate at TU Delft.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/kula-elvan.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/kula-elvan-en.txt">English</a>
+
+
+<a href="/static/2023-04/kula-elvan-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/g3b8JfkV5jQ"></iframe>
+
+
+
+
+
+ Rashina Hoda on Making Sense of User Feedback
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/hoda-rashina
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/hoda-rashina.jpg" width="80%" alt="Rashina Hoda"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://rashina.com/" class="person">Rashina Hoda</a>
+ <br>
+ "You asked for it: making sense of user feedback."
+ </p>
+ <p>
+ <em>
+ Rashina is an Associate Professor of Software Engineering and Deputy Director of the HumaniSE lab at Monash University in Australia.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/hoda-rashina.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/hoda-rashina-en.txt">English</a>
+
+
+<a href="/static/2023-04/hoda-rashina-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/O03LRJMgOf0"></iframe>
+
+
+
+
+
+ Prem Devanbu on Leveraging the Bimodality of Software
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/devanbu-prem
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/devanbu-prem.jpg" width="80%" alt="Prem Devanbu"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://web.cs.ucdavis.edu/~devanbu/" class="person">Prem Devanbu</a>
+ <br>
+ "Leveraging the bimodality of software."
+ </p>
+ <p>
+ <em>
+ Prem is a Distinguished Professor (Emeritus) of Computer Science at the University of California Davis in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/devanbu-prem.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/devanbu-prem-en.txt">English</a>
+
+
+<a href="/static/2023-04/devanbu-prem-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/LQ43KdojuTI"></iframe>
+
+
+
+
+
+ Zadia Codabux on Technical Debt in R Packages
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/codabux-zadia
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/codabux-zadia.jpg" width="80%" alt="Zadia Codabux"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://www.cs.usask.ca/faculty/zadiacodabux/" class="person">Zadia Codabux</a>
+ <br>
+ "Technical debt in R packages."
+ </p>
+ <p>
+ <em>
+ Zadia is an Assistance Professor at the University of Saskatchewan in Canada.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/codabux-zadia.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/codabux-zadia-en.txt">English</a>
+
+
+<a href="/static/2023-04/codabux-zadia-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/-T0vuUkQCFg"></iframe>
+
+
+
+
+
+ Preetha Chatterjee on Emotion Awareness in Software Engineering
+
+ 2023-06-13T00:00:00+00:00
+ https://neverworkintheory.org/2023/06/13/chatterjee-preetha
+
+
+<div class="row">
+ <div class="col-4">
+ <p>
+ <img src="/static/2023-04/chatterjee-preetha.jpg" width="80%" alt="Preetha Chatterjee"/>
+ </p>
+ </div>
+ <div class="col-1"></div>
+ <div class="col-6">
+ <p>
+ <a href="https://preethac.github.io/" class="person">Preetha Chatterjee</a>
+ <br>
+ "Emotion awareness in software engineering."
+ </p>
+ <p>
+ <em>
+ Preetha is an Assistant Professor at Drexel University in the United States.
+ </em>
+ </p>
+ <p>
+ <a href="/static/2023-04/chatterjee-preetha.pdf">slides</a>
+
+<br/>
+Transcript:
+
+
+<a href="/static/2023-04/chatterjee-preetha-en.txt">English</a>
+
+
+<a href="/static/2023-04/chatterjee-preetha-es.txt">Español</a>
+
+
+
+ </p>
+ </div>
+ <div class="col-1"></div>
+</div>
+
+<iframe width="800" height="450" src="https://youtube.com/embed/lkatTyerkwg"></iframe>
+
+
+
+
+
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom b/Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom
new file mode 100644
index 000000000..5c8641964
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/qemu.atom
@@ -0,0 +1,302 @@
+Jekyll 2025-10-08T23:46:50+00:00 /feed.xml QEMU QEMU is a FAST! processor emulator
+ QEMU version 10.1.0 released 2025-08-26T23:25:00+00:00 2025-08-26T23:25:00+00:00 /2025/08/26/qemu-10-1-0 We’d like to announce the availability of the QEMU 10.1.0 release. This release contains 2700+ commits from 226 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ VFIO: Initial support for accessing/mapping memory for confidential guests when guest_memfd is being utilized, allowing passthrough support for virtual machines running under SEV-SNP/TDX
+ Live migration: support for utilizing multifd to accelerate post-copy migration, optimizations for pre-copy migration, and RDMA migration support for ipv6
+ QEMU guest agent: support for querying load of virtual machines running Windows via new ‘guest-get-load’ command
+ ARM: support for CPU features FEAT_SME2, FEAT_SME2p1, FEAT_SME_B16B16, FEAT_SME_F16F16, FEAT_SVE_B16B16, and FEAT_SVE2p1
+ ARM: support for new board/machine models ‘max78000fthr’, ‘ast2700fc’, ‘catalina-bmc’, ‘gb200-bmc’, and ‘ast2700a0-evb’
+ ARM: ‘virt’ board now supports nested virtualization under KVM, CXL, and ACPI-based PCI hotplug
+ LoongArch: support for in-kernel irqchip
+ Microblaze: support for selecting the endianess of ‘petalogix_s3adsp1800’ machine type
+ RISC-V: ISA/extension support for atomic instruction fetch (Ziccif), ‘Svrsw60t59b’, and numerous other improvements/additions/fixes
+ RISC-V: support for Kunminghu CPU and platform
+ x86: KVM support for running confidential guests via Intel TDX
+ x86: Support for initializing AMD SEV/SEV-ES/SEV-SNP virtual machines using the IGVM file format
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]>QEMU version 10.0.0 released 2025-04-23T18:14:00+00:00 2025-04-23T18:14:00+00:00 /2025/04/23/qemu-10-0-0 We’d like to announce the availability of the QEMU 10.0.0 release. This release contains 2800+ commits from 211 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ block: virtio-scsi multiqueue support for using different I/O threads to process requests for each queue (similar to the virtio-blk multiqueue support that was added in QEMU 9.2)
+ VFIO: improved support for IGD passthrough on all Intel Gen 11/12 devices
+ Documentation: significant improvement/overhaul of documentation for QEMU Machine Protocol to make it clearer and more organized, including all commands/events/types now being cross-reference-able via click-able links in generated documentation
+ ARM: emulation support for Secure EL2 physical and virtual timers
+ ARM: emulation support for FEAT_AFP, FEAT_RPRES, and FEAT_XS architecture features
+ ARM: new board models for NPCM8445 Evaluation and i.MX 8M Plus EVK boards
+ HPPA: new SeaBIOS-hppa version 18 with lots of fixes and enhancements
+ HPPA: translation speed and virtual CPU reset improvements
+ HPPA: emulation support for Diva GSP BMC boards
+ LoongArch: support for CPU hotplug, paravirtual IPIs, KVM steal time accounting, and virtual ‘extioi’ interrupt routing.
+ RISC-V: ISA/extension support for riscv-iommu-sys devices, ‘svukte’, ‘ssstateen’, ‘smrnmi’, ‘smdbltrp’/’ssdbltrp’, ‘supm’/’sspm’, and IOMMU translation tags
+ RISC-V: emulation support for Ascalon and RV64 Xiangshan Nanhu CPUs, and Microblaze V boards.
+ s390x: add CPU model support for the generation 17 mainframe CPU
+ s390x: add support for virtio-mem and for bypassing IOMMU to improve PCI device performance
+ x86: CPU model support for Clearwater Forest and Sierra Forest v2
+ x86: faster emulation of string instructions
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> Announcing QEMU Google Summer of Code 2025 internships 2025-03-06T07:00:00+00:00 2025-03-06T07:00:00+00:00 /2025/03/06/gsoc-2025 QEMU is participating in Google Summer of
+Code again this year! Google Summer of Code
+is an open source internship program that offers paid remote work
+opportunities for contributing to open source. Internships run May through
+August, so if you have time and want to experience open source development,
+read on to find out how you can apply.
+
+Each intern is paired with one or more mentors, experienced QEMU contributors
+who support them during the internship. Code developed by the intern is
+submitted through the same open source development process that all QEMU
+contributions follow. This gives interns experience with contributing to open
+source software. Some interns then choose to pursue a career in open source
+software after completing their internship.
+
+Find out if you are eligible
+Information on who can apply for Google Summer of Code is
+here .
+
+Select a project idea
+Look through the the list of QEMU project
+ideas and see if there is
+something you are interested in working on. Once you have found a project idea
+you want to apply for, email the mentor for that project idea to ask any
+questions you may have and discuss the idea further.
+
+Submit your application
+You can apply for Google Summer of Code
+from March 24th to April 8th.
+
+Good luck with your applications!
+
+If you have questions about applying for QEMU GSoC, please email
+Stefan Hajnoczi or ask on the #qemu-gsoc IRC
+channel .
]]> QEMU version 9.2.0 released 2024-12-11T23:42:00+00:00 2024-12-11T23:42:00+00:00 /2024/12/11/qemu-9-2-0 We’d like to announce the availability of the QEMU 9.2.0 release. This release contains 1700+ commits from 209 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ virtio-gpu: support for 3D acceleration of Vulkan applications via Venus Vulkan driver in the guest and virglrenderer host library
+ crypto: GLib crypto backend now supports SHA-384 hashes
+ migration: QATzip-accelerated compression support while using multiple migration streams
+ Rust: experimental support for device models written in Rust (for development use only)
+ ARM: emulation support for FEAT_EBF16, FEAT_CMOW architecture features
+ ARM: support for two-stage SMMU translation for sbsa-ref and virt boards
+ ARM: support for CPU Security Extensions for xilinx-zynq-a9 board
+ ARM: 64GB+ memory support when using HVF acceleration on newer Mac systems
+ HPPA: SeaBIOS-hppa v17 firmware with various fixes and enhancements
+ RISC-V: IOMMU support for virt machine
+ RISC-V: support for control flow integrity and Svvptc extensions, and support for Bit-Manipulation extension on OpenTitan boards
+ RISC-V: improved performance for vector unit-stride/whole register ld/st instructions
+ s390x: support for booting from other devices if the previous ones fail
+ x86: support for new nitro-enclave machine type that can emulate AWS Nitro Enclave and can boot from Enclave Image Format files.
+ x86: KVM support for enabling AVX10, as well as enabling specific AVX10 versions via command-line
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 9.1.0 released 2024-09-03T23:08:00+00:00 2024-09-03T23:08:00+00:00 /2024/09/03/qemu-9-1-0 We’d like to announce the availability of the QEMU 9.1.0 release. This release contains 2800+ commits from 263 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ migration: compression offload support via Intel In-Memory Analytics Accelerator (IAA) or User Space Accelerator Development Kit (UADK), along with enhanced support for postcopy failure recovery
+ virtio: support for VIRTIO_F_NOTIFICATION_DATA, allowing guest drivers to provide additional data as part of sending device notifications for performance/debug purposes
+ guest-agent: support for guest-network-get-route command on linux, guest-ssh-* commands on Windows, and enhanced CLI support for configuring allowed/blocked commands
+ block: security fixes for QEMU NBD server and NBD TLS encryption
+ ARM: emulation support for FEAT_NMI, FEAT_CSV2_3, FEAT_ETS2, FEAT_Spec_FPACC, FEAT_WFxT, FEAT_Debugv8p8 architecture features
+ ARM: nested/two-stage page table support for emulated SMMUv3
+ ARM: xilinx_zynq board support for cache controller and multiple CPUs, and B-L475E-IOT01A board support for a DM163 display
+ LoongArch: support for directly booting an ELF kernel and for running up to 256 vCPUs via extioi virt extension
+ LoongArch: enhanced debug/GDB support
+ RISC-V: support for version 1.13 of privileged architecture specification
+ RISC-V: support for Zve32x, Zve64x, Zimop, Zcmop, Zama16b, Zabha, Zawrs, and Smcntrpmf extensions
+ RISC-V: enhanced debug/GDB support and general fixes
+ SPARC: emulation support for FMAF, IMA, VIS3, and VIS4 architecture features
+ x86: KVM support for running AMD SEV-SNP guests
+ x86: CPU emulation support for Icelake-Server-v7, SapphireRapids-v3, and SierraForest
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> KVM Forum 2024: Call for presentations 2024-05-06T06:00:00+00:00 2024-05-06T06:00:00+00:00 /2024/05/06/kvm-forum-cfp The KVM Forum 2024 conference will take
+place in Brno, Czech Republic on September 22-23, 2024. KVM Forum brings
+together the Linux virtualization community, especially around the KVM stack,
+including QEMU and other virtual machine monitors.
+
+The Call for Presentations is open until June 8, 2024. You are invited to
+submit presentation proposals via the KVM Forum CfP
+page . All presentation slots will be
+25 minutes + 5 minutes for questions.
+
+Suggested topics include:
+
+
+ Scalability and Optimization
+ Hardening and security
+ Confidential computing
+ Testing
+ KVM and the Linux Kernel
+
+ New Features and Architecture Ports
+ Device Passthrough: VFIO, mdev, vDPA
+ Network Virtualization
+ Virtio and vhost
+
+
+ Virtual Machine Monitors and Management
+
+ VMM Implementation: APIs, Live Migration, Performance Tuning, etc.
+ Multi-process VMMs: vhost-user, vfio-user, QEMU Storage Daemon, SPDK
+ QEMU without KVM: Hypervisor.framework, Windows Hypervisor Platform, etc.
+ Managing KVM: Libvirt, KubeVirt, Kata Containers
+
+
+ Emulation
+
+ New Devices, Boards and Architectures
+ CPU Emulation and Binary Translation
+
+
+ ]]> QEMU version 9.0.0 released 2024-04-23T23:02:00+00:00 2024-04-23T23:02:00+00:00 /2024/04/23/qemu-9-0-0 We’d like to announce the availability of the QEMU 9.0.0 release. This release contains 2700+ commits from 220 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ block: virtio-blk now supports multiqueue where different queues of a single disk can be processed by different I/O threads
+ gdbstub: various improvements such as catching syscalls in user-mode, support for fork-follow modes, and support for siginfo:read
+ memory: preallocation of memory backends can now be handled concurrently using multiple threads in some cases
+ migration: support for “mapped-ram” capability allowing for more efficient VM snapshots, improved support for zero-page detection, and checkpoint-restart support for VFIO
+ ARM: architectural feature support for ECV (Enhanced Counter Virtualization), NV (Nested Virtualization), and NV2 (Enhanced Nested Virtualization)
+ ARM: board support for B-L475E-IOT01A IoT node, mp3-an536 (MPS3 dev board + AN536 firmware), and raspi4b (Raspberry Pi 4 Model B)
+ ARM: additional IO/disk/USB/SPI/ethernet controller and timer support for Freescale i.MX6, Allwinner R40, Banana Pi, npcm7xxx, and virt boards
+ HPPA: numerous bug fixes and SeaBIOS-hppa firmware updated to version 16
+ LoongArch: KVM acceleration support, including LSX/LASX vector extensions
+ RISC-V: ISA/extension support for Zacas, amocas, RVA22 profiles, Zaamo, Zalrsc, Ztso, and more
+ RISC-V: SMBIOS support for RISC-V virt machine, ACPI support for SRAT, SLIT, AIA, PLIC and updated RHCT table support, and numerous fixes
+ s390x: Emulation support for CVDG, CVB, CVBY and CVBG instructions, and fixes for LAE (Load Address Extended) emulation
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 8.2.0 released 2023-12-20T16:33:00+00:00 2023-12-20T16:33:00+00:00 /2023/12/20/qemu-8-2-0 We’d like to announce the availability of the QEMU 8.2.0 release. This release contains 3200+ commits from 238 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ New virtio-sound device emulation
+ New virtio-gpu rutabaga device emulation used by Android emulator
+ New hv-balloon for dynamic memory protocol device for Hyper-V guests
+ New Universal Flash Storage device emulation
+ Network Block Device (NBD) 64-bit offsets for improved performance
+ dump-guest-memory now supports the standard kdump format
+ ARM: Xilinx Versal board now models the CFU/CFI, and the TRNG device
+ ARM: CPU emulation support for cortex-a710 and neoverse-n2
+ ARM: architectural feature support for PACQARMA3, EPAC, Pauth2, FPAC, FPACCOMBINE, TIDCP1, MOPS, HBC, and HPMN0
+ HPPA: CPU emulation support for 64-bit PA-RISC 2.0
+ HPPA: machine emulation support for C3700, including Astro memory controller and four Elroy PCI bridges
+ LoongArch: ISA support for LASX extension and PRELDX instruction
+ LoongArch: CPU emulation support for la132
+ RISC-V: ISA/extension support for AIA virtualization support via KVM, and vector cryptographic instructions
+ RISC-V: Numerous extension/instruction cleanups, fixes, and reworks
+ s390x: support for vfio-ap passthrough of crypto adapter for protected virtualization guests
+ Tricore: support for TC37x CPU which implements ISA v1.6.2
+ Tricore: support for CRCN, FTOU, FTOHP, and HPTOF instructions
+ x86: Zen support for PV console and network devices
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 8.1.0 released 2023-08-22T16:42:00+00:00 2023-08-22T16:42:00+00:00 /2023/08/22/qemu-8-1-0 We’d like to announce the availability of the QEMU 8.1.0 release. This release contains 2900+ commits from 250 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ VFIO: improved live migration support, no longer an experimental feature
+ GTK GUI now supports multi-touch events
+ ARM, PowerPC, and RISC-V can now use AES acceleration on host processor
+ PCIe: new QMP commands to inject CXL General Media events, DRAM events and
+Memory Module events
+ ARM: KVM VMs on a host which supports MTE (the Memory Tagging Extension)
+can now use MTE in the guest
+ ARM: emulation support for bpim2u (Banana Pi BPI-M2 Ultra) board and
+neoverse-v1 (Cortex Neoverse-V1) CPU
+ ARM: new architectural feature support for: FEAT_PAN3 (SCTLR_ELx.EPAN),
+FEAT_LSE2 (Large System Extensions v2), and experimental support for
+FEAT_RME (Realm Management Extensions)
+ Hexagon: new instruction support for v68/v73 scalar, and v68/v69 HVX
+ Hexagon: gdbstub support for HVX
+ MIPS: emulation support for Ingenic XBurstR1/XBurstR2 CPUs, and MXU
+instructions
+ PowerPC: TCG SMT support, allowing pseries and powernv to run with up to 8
+threads per core
+ PowerPC: emulation support for Power9 DD2.2 CPU model, and perf sampling
+support for POWER CPUs
+ RISC-V: ISA extension support for BF16/Zfa, and disassembly support
+for Zcm/Z inx/XVentanaCondOps/Xthead
+ RISC-V: CPU emulation support for Veyron V1
+ RISC-V: numerous KVM/emulation fixes and enhancements
+ s390: instruction emulation fixes for LDER, LCBB, LOCFHR, MXDB, MXDBR,
+EPSW, MDEB, MDEBR, MVCRL, LRA, CKSM, CLM, ICM, MC, STIDP, EXECUTE, and
+CLGEBR(A)
+ SPARC: updated target/sparc to use tcg_gen_lookup_and_goto_ptr() for
+improved performance
+ Tricore: emulation support for TC37x CPU that supports ISA v1.6.2
+instructions
+ Tricore: instruction emulation of POPCNT.W, LHA, CRC32L.W, CRC32.B,
+SHUFFLE, SYSCALL, and DISABLE
+ x86: CPU model support for GraniteRapids
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]> QEMU version 8.0.0 released 2023-04-20T18:53:00+00:00 2023-04-20T18:53:00+00:00 /2023/04/20/qemu-8-0-0 We’d like to announce the availability of the QEMU 8.0.0 release. This release contains 2800+ commits from 238 authors.
+
+You can grab the tarball from our download page . The full list of changes are available in the changelog .
+
+Highlights include:
+
+
+ ARM: emulation support for FEAT_EVT, FEAT_FGT, and AArch32 ARMv8-R
+ ARM: CPU emulation for Cortex-A55 and Cortex-R52, and new Olimex
+STM32 H405 machine type
+ ARM: gdbstub support for M-profile system registers
+ HPPA: fid (Floating-Point Identify) instruction support and 32-bit
+emulation improvements
+ RISC-V: additional ISA and Extension support for smstateen, native
+debug icount trigger, cache-related PMU events in virtual mode,
+Zawrs/Svadu/T-Head/Zicond extensions, and ACPI support
+ RISC-V: updated machine support for OpenTitan, PolarFire, and
+OpenSBI
+ RISC-V: wide ranges of fixes covering PMP propagation for TLB,
+mret exceptions, uncompressed instructions, and other
+emulation/virtualization improvements
+ s390x: improved zPCI passthrough device handling
+ s390x: support for asynchronous teardown of memory of secure KVM
+guests during reboot
+ x86: support for Xen guests under KVM with Linux v5.12+
+ x86: new SapphireRapids CPU model
+ x86: TCG support for FSRM, FZRM, FSRS, and FSRC CPUID flags
+ virtio-mem: support for using preallocation in conjunction with live
+migration
+ VFIO: experimental migration support updated to v2 VFIO migration
+protocol
+ qemu-nbd: improved efficient over TCP and when using TLS
+ and lots more…
+
+
+Thank you to everybody who contributed to this release, whether that was by writing code, reporting bugs, improving documentation, testing, or providing the project with CI resources. We couldn’t do these without you!
]]>
\ No newline at end of file
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/root-author.atom b/Modules/RSParser/Tests/RSParserTests/Resources/root-author.atom
new file mode 100644
index 000000000..82b527924
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/root-author.atom
@@ -0,0 +1,629 @@
+
+
+ Florens Verschelde
+ urn:uuid:c6e9028c-f392-5f5f-9a97-3267a03f1956
+
+
+ 2021-01-11T20:25:38+01:00
+ https://fvsch.com/assets/images/icon.png?v=ql0r5y
+
+ Florens Verschelde
+
+
+ urn:uuid:4baef108-e14e-59e6-935a-52224a141d9e
+
+ RAW Power 3: an affordable digital photo development app for macOS
+ 2021-01-11T00:00:00+01:00
+ 2021-01-11T00:00:00+01:00
+ My personal review of RAW Power, a photo editing app for macOS and iOS that is shaping up to be an alternative to Lightroom or Aperture.
+ <p>I used to dabble in digital photography, even attended a series of workshops for a year. I’m still amateur level, I think, and haven’t shot much in the past 7 years or so. Still, I have a few thousand pictures, some edited and some not at all, that sit in my archives, and I’d like to edit and publish at least some of those.</p>
+<p>Only problem: I didn’t have any photo management and development software I’m comfortable with.</p>
+<p>I used to own Lightroom 3 and 4. I still do, but they probably don’t install on current Macs, and Adobe made it hard if not impossible to get a license for the current Lightroom Classic app without paying 20 euros per month. So I’ve been looking for alternatives.</p>
+<article-nav></article-nav>
+<h2><span>Rounding up photo editors</span></h2>
+<p>Here’s a list of what I found:</p>
+<ul>
+<li>Capture One, the priciest option for pros (around €500).</li>
+<li>DxO PhotoLab, more affordable (€130); I’ve heard some good things.</li>
+<li>ON1 Photo Raw (€102), not a good option for my M1 Mac<sup id="fnref1:1"><a href="#fn:1" class="footnote-ref">1</a></sup>.</li>
+<li>Exposure X6 (€110), which seems interesting.</li>
+<li>Skylum Luminar (€90 standalone, €150 with their new “AI” tools), which was slow when I tried it a few years back but might have improved since.</li>
+<li>Darkroom (€88, or a €22/year subscription), seems to integrate with the Apple Photos library and provide a bunch of tools in a nicely designed package <sup id="fnref1:2"><a href="#fn:2" class="footnote-ref">2</a></sup>.</li>
+<li>Photoscape X (€44), seems marketed for the Instagram crowd but could be powerful anyway.</li>
+<li>Picktorial ($5/month subscription).</li>
+<li>Apple’s own Photos app (included with macOS), which I tried briefly, but I don’t want to import my photos from my archive folders on external drives and into their Photos Library; I hear the development tools are a bit limited too.</li>
+</ul>
+<p>I also got Affinity Photo and Pixelmator Pro, each for around €50. While they can do some RAW development, and have some great features, they’re closer to Photoshop in spirit. So not my cup of tea. They also don’t include a library browser or manager.</p>
+<p>There are a few open-source options too, such as Darktable, RawTherapee and LightZone. I didn’t consider them because they tend to have limited macOS support<sup id="fnref1:3"><a href="#fn:3" class="footnote-ref">3</a></sup>, a steep learning curve, and questionable usability<sup id="fnref1:4"><a href="#fn:4" class="footnote-ref">4</a></sup>.</p>
+<p>Finally, after reading <a href="http://austinmann.com/trek/iphone-proraw">this review of the Apple ProRAW format</a>, I discovered a small macOS and iOS app called <a href="https://gentlemencoders.com/raw-power-for-macos/">RAW Power</a>. It piqued my interest since it’s cheap (around €30), runs natively on Apple’s new CPUs, and looks similar in spirit to early versions of Lightroom and Aperture.</p>
+<h2><span>The RAW Power UI</span></h2>
+<p>RAW Power is developed by Nik Bhatt, who worked for years at Apple on the Aperture team. A bunch of user comments call RAW Power a spiritual successor to Aperture, though at this time its feature set seems more limited (with a few exceptions where it’s more up-to-date).</p>
+<p>It was originally a development extension for Apple Photos, before gaining a photo library module in version 2 (improved further in version 3), making it usable as a standalone app as well. You can get a trial version on the app’s website, which is fully functional and adds a watermark to exported photos.</p>
+<p>Before trying it out, I took an hour to watch <a href="https://www.youtube.com/watch?v=ME229JqbM48&list=PLgF1Bfd-tVLa8sizMIG2g42x6CdPUmHsb">this video tutorial series recorded by Nik</a>. I especially liked this one, <a href="https://www.youtube.com/watch?v=ONNR8CDgQEc">RAW Power 3 for Mac: Rating and Filtering Workflow</a>. That workflow is not super specific to RAW Power, and could be reproduced in several apps, but sharing this method was a nice touch.</p>
+<p>The RAW Power UI looks like this:</p>
+<figure class="full"><img src="https://fvsch.com/articles/raw-power-mac/rawpower-ui.png" width="650" height="408" alt="Screenshot of the RAW Power app."></figure>
+<p>The UI can be customized a bit, and includes:</p>
+<ul>
+<li>Top: a toolbar that can be customized and rearranged</li>
+<li>Left: a library explorer showing folders or Apple Photos albums</li>
+<li>Center: the main photo view</li>
+<li>Bottom a tab strip</li>
+<li>Right: a sidebar which shows either photo metadata or RAW development tools</li>
+</ul>
+<p>All those UI components can be hidden or toggled. And if you hide the main photo viewer, the thumbnail strip becomes a bigger thumbnail grid.</p>
+<p>This lets you customize your workspace however you want, but sometimes I find that I want to go from one UI configuration to another, and clicking 3 buttons to change things one way and then 3 buttons to change it back is a bit painful.<sup id="fnref1:5"><a href="#fn:5" class="footnote-ref">5</a></sup></p>
+<p>On the customizing front, you can also reorder and show or hide each of the RAW “adjustments” modules that appear in the Edit sidebar. The interface for that would benefit from some improvements though, since you need to use different menus to add a module, hide a module, and reorder modules; it would be possible to unify all that in a single, more intuitive config view.</p>
+<figure><img src="https://fvsch.com/articles/raw-power-mac/rawpower-adjustment-order.png" width="505" height="390" alt="The Reorder Adjustments dialogue"></figure>
+<p>Personally, I’m missing a way to quickly show the photo’s metadata when I’m in Edit mode<sup id="fnref1:6"><a href="#fn:6" class="footnote-ref">6</a></sup>. I have to switch the sidebar from Edit to Info, which takes a good second for some reason, on top of making me lose my place. I’d also love to keep a histogram in Info mode.</p>
+<h2><span>The adjustment tools</span></h2>
+<p>The adjustment sidebar has a bunch of good tools:</p>
+<ul>
+<li>A good histogram with black/white and color clipping highlighting.</li>
+<li>White Balance (with a decent Auto option and manual control).</li>
+<li>A good Crop tool (I like being able to control the precise pixel size and coordinates, it came in handy working on a photo series where I’m trying to align 20 pictures taken from the same spot!), and a Perspective tool that is maybe less intuitive.</li>
+<li>Basics/Tone/Enhance has the usual suspects: exposure, brightness, highlights and shadows, clarity…</li>
+<li>Black & White, Channel Mixer, HSL Color.</li>
+<li>Curves, Levels, Vignette.</li>
+<li>A LUT tool that lets you apply predefined styles, including some film simulation or black and white ones. I wasn’t familiar with the “LUT” term, but apparently LUTs are a kind of color map that pairs each input color to its destination color, and there are a bunch of LUTs available online from different providers, with both free and paid options.</li>
+</ul>
+<figure><img src="https://fvsch.com/articles/raw-power-mac/rawpower-basics.png" width="300" height="390" alt="The Basics, Tone and Enhance controls"><figcaption>Not sure why Brightness is a “Basics” control but “Exposure” is a “Tone” control. Or why Deepen and Lighten are in “Enhance” and not “Tone”, or why “Sharpen” is in a different category (with a single slider) and not in “Enhance”. So I’ve reordered those modules to put them together.</figcaption></figure>
+<p>Things I like about the adjustment sliders in RAW Power:</p>
+<ul>
+<li>It’s easy to see which slider you tweaked (used the system highlight color, which is pink in my case) and which uses the default value.</li>
+<li>Double-click resets to the default value.</li>
+<li>The numbers are text inputs, and can be edited manually for precision.</li>
+</ul>
+<p>Some things I don’t like:</p>
+<ul>
+<li>Sometimes text inputs require two clicks to get focus. Not sure if it’s a bug-bug, or a usability bug somewhere.</li>
+<li>Some text inputs support the Up and Down keys to increment or decrement the value, and others don’t, depending on the module.</li>
+<li>Based on system settings, it decided I want a comma as the decimal separator, and wouldn’t accept input like <code>1.5</code> (resetting to the default value instead). I worked around it by changing my system settings, but being more forgiving and handing both dots and commas as decimal separators would be better.</li>
+<li>The way out of bounds values are handled (if I input <code>5</code> and the maximum is <code>2.0</code>, please use <code>2.0</code> instead of discarding my input).</li>
+<li>Slider values are single digit numbers plus two decimals, e.g. <code>1.00</code> or <code>-2.54</code>. Most of them go from <code>0.00</code> to <code>1.00</code>, and would be easier to work with if they were shown as integers between <code>0</code> and <code>100</code> (same precision, but you don’t have to type a decimal separator all the time).</li>
+</ul>
+<p>Arguably, I’m finicky. That’s the problem when you use and review software as a UI developer & designer. 😛</p>
+<p>Overall I like the tools, they’re rather powerful. There are a few useful presets you can apply, and a couple “Auto Enhance” features which look decent but not quite magical.</p>
+<p>One tool which is both powerful and a bit confusing is the RAW Processing adjustment. It shows 9 sliders and a couple options:</p>
+<figure><img src="https://fvsch.com/articles/raw-power-mac/rawpower-raw-processing.png" width="300" height="315" alt="The RAW Processing controls, with sliders such as Boost, Black Point, Luma Nose, Color Noise, Moiré, and RAW Sharpen"></figure>
+<p>The noise controls are part of this first RAW processing pass. I haven’t worked with very noisy images yet, so I’m not sure if they’re good. The Color Noise correction seems to work well.</p>
+<p>The “Boost” feature is interesting. It’s set at its maximum by default. If you move it back to 0%, you get a much more washed-out, lifeless picture, like you get in some RAW processing software out of the box (especially in some of the open-source ones, when they’re not set up to apply some default enhancements). Comparing the results at 0%, 50% and 100% Boost, I tend to like what it does.</p>
+<figure class="full"><img src="https://fvsch.com/articles/raw-power-mac/boost-demo.jpg" width="680" height="450" alt="A side-by-side comparison of the same image with two different development settings. Left one looks a bit gray and lacks contrast. Right one is more colorful and contrasted."><figcaption>Boost at 0% and 100%</figcaption></figure>
+<p>In the video tutorials, Nik shows how sometimes Boost goes a bit too far, and it’s better to lower it a bit or completely before applying other adjustments (such as highlight recovery). I’ve sometimes moved it down to 90% or 80%, but rarely all the way down.</p>
+<p>Another slider I’ve used at times is Black Point, which er makes more or fewer parts of the image black or dark?</p>
+<p>Sometimes it looks like there are a few ways to do the same thing, especially when it comes to contrast with: Boost, RAW Contrast, Contrast, Curves and Levels, to name a few. Or micro-contrast with RAW Sharpen, Clarity and Sharpen. It probably takes some time and expertise to learn what works best for you and your images.</p>
+<p>I just discovered the <a href="https://gentlemencoders.com/wp-content/uploads/2020/04/RAW-Power-3.0-for-Mac-Help.pdf">RAW Power user manual (50 page PDF)</a>, which has more details on how adjustments work. Maybe that’ll clarify what the best approach is for some use cases.</p>
+<figure><img src="https://fvsch.com/articles/raw-power-mac/rawpower-curves.png" width="300" height="390" alt="The Curves adjustment tool"><figcaption>The Curves tool is powerful and lets you set as many points as you want, but it’s hard to move a point just right on the vertical axis, and a little nudge can have an overblown effect. I was a bit more at ease with Lightroom’s four number inputs, which make it easy to create a symmetrical S-curve and control how strong the effect is.</figcaption></figure>
+<p>Finally, there are no local adjustment tool: no brushes, no gradients, no repair, etc. While things like machine-learning based local repairs can be done by other software working on an exported TIFF file, it would be great to at least have support for gradient filters, e.g. to handle sky-vs-land exposure.</p>
+<p>RAW Power 3.2 added support for Apple’s ProRAW (part of the DNG 1.6 format), which includes precomputed local adjustments from the iPhone’s software as a kind of mask or extra layer (I’m not sure) that you can turn on or off or apply partially. Maybe some of the work done on ProRAW support lays the groundwork for local adjustments? One can dream. 😄</p>
+<h2><span>Data portability</span></h2>
+<p>In an ideal world, adjustments made to a RAW photo in one app would be understood by another app. Sadly we don’t leave in this world, because RAW development and image correction algorithms are specific to each app, and there’s no standard even for common things such as exposure correction, black and white or color processing, curves, vignette, embedded LUTs, etc.</p>
+<p>So development settings done in Lightroom, RAW Power or DxO PhotoLab won’t be interoperable at all. Okay. But can we at least make sure that those development settings are saved reliably?</p>
+<p>Lightroom lets you write development settings as “sidecar files”, which use the <code>.xmp</code> extension, or embedded inside DNG files. This comes in handy when syncing files via Dropbox, saving photos on an external drive, or changing computers or operating system.</p>
+<p>RAW Power saves development data in <code>Documents/RAW Power</code>, with no option to use sidecar files. This folder may look like this:</p>
+<figure><img src="https://fvsch.com/articles/raw-power-mac/rawpower-metadata.png" width="555" height="370" alt="The RAW Power folder, which stores JPEG previews and development data with a .rawpower extension"></figure>
+<p>If you move or rename a photo, you risk losing the link with this development data, as stated in the help pages:</p>
+<blockquote>
+<p>RAW Power stores its editing and rating / flag information in files stored within its “sandbox,” which is a directory inside your home folder on your disk. RAW Power stores information in the sandbox that lets it connect its data with your original images. Part of the identifier is the file name of your image, and part is the identifier generated by macOS. As a result of this system, RAW Power can connect editing and rating information to your original even if you move the file elsewhere on your disk. However, if you rename it, or move it to another volume, the link is broken.</p>
+</blockquote>
+<p>So if you store photos on a drive, that drive dies and you later get a backup of your photos: sorry, your development data will be lost or not linked to the photos.</p>
+<p>In my book, that’s a serious risk that will have me keep looking at alternatives.</p>
+<h2><span>My recommendation</span></h2>
+<p>Despite a few pain points and concerns, I find that RAW Power is a capable tool and I’ll probably use it more in the future, while keeping an eye on the pricier competition.</p>
+<p>If you liked Lightroom Classic or Aperture, RAW Power might be a good fit for you, provided you can forgive a few issues and missing features.</p>
+<p>RAW Power is, as far as I can tell, indie software with a team of one and a low price. It should give you a lot of value for your money.</p>
+<p>I heartily recommend giving it a try.</p>
+<div class="footnotes">
+<hr />
+<ol>
+<li id="fn:1">
+<p>I bought a ON1 Photo Raw 2020 license in a sale last year. It fails to install on my computer. The 2021 version — a somewhat pricy upgrade — is an Intel app that runs too slowly to be comfortable. I might reconsider later if the price and performance are right. <a href="#fnref1:1" rev="footnote" class="footnote-backref">↩</a></p>
+</li>
+<li id="fn:2">
+<p>Subjectively and just based on screenshots, Darkroom has the most attractive design. <a href="#fnref1:2" rev="footnote" class="footnote-backref">↩</a></p>
+</li>
+<li id="fn:3">
+<p>Darktable tells you “Good Luck :)” if you want to install a macOS version. <a href="#fnref1:3" rev="footnote" class="footnote-backref">↩</a></p>
+</li>
+<li id="fn:4">
+<p>That’s not a condemnation of those projects. I understand that open-source side projects made by developers might focus on Linux support and/or powerful features that scratch one’s itch over the years-long design process needed for best-in-class usability. <a href="#fnref1:4" rev="footnote" class="footnote-backref">↩</a></p>
+</li>
+<li id="fn:5">
+<p>For browsing and rating I might show the left sidebar, a thumbnail grid with medium thumbnails, and the metadata sidebar. For editing a particular photo, I’d hide the left sidebar, show the main photo view, and either hide the thumbnails or keep them at the smallest size. If I count the clicks needed to go from the first configuration to the other one: that’s 4 clicks. <a href="#fnref1:5" rev="footnote" class="footnote-backref">↩</a></p>
+</li>
+<li id="fn:6">
+<p>For instance, I’ve wanted to check data such as the shooting date and hour when tweaking white balance, to make sure the white balance is consistent with the hour and season when I’m going for a realistic look. <a href="#fnref1:6" rev="footnote" class="footnote-backref">↩</a></p>
+</li>
+</ol>
+</div>
+
+
+ urn:uuid:2380b5bb-eb96-5bed-9f3c-8ad36e8deb61
+
+ Learning XState by refactoring an old project
+ 2021-01-06T17:00:00+01:00
+ 2021-01-06T17:00:00+01:00
+ I’ve been wanting to learn XState, a JavaScript state machine library. I had one exercise in mind: porting the hand-rolled state code in the small click precision game I built last year, if possible.
+ <p>For a while I’ve wanted to learn the <a href="https://xstate.js.org">XState library</a>, which is presented as a solution to gnarly UI state issues where “what should we show and how should it act?” becomes hard to determine.</p>
+<p>Since the best way to learn is to actually build something, I’m thinking I can try to port an old project of mine over to XState, and see how it turns out. Continue reading if you want to follow along!</p>
+<article-nav></article-nav>
+<h2><span>Why state machines?</span></h2>
+<p>I’ve been building a bunch of app or app-like user interfaces with React and other frameworks, and you quickly run into situations where a screen or component’s UI state is represented by a series of variables.</p>
+<p>For instance, if a component loads data from a server, you can end up with variables like:</p>
+<ul>
+<li><code>data</code> (<code>undefined</code>, empty Array, or Array with data)</li>
+<li><code>error</code> (<code>undefined</code> or an error object or message)</li>
+<li><code>loading</code> (boolean)</li>
+</ul>
+<p>You end up writing conditions like this:</p>
+<pre><code class="language-js">const hasContent =
+ !error &&
+ !loading &&
+ Array.isArray(data) &&
+ data.length > 0;</code></pre>
+<p>Add a couple more UX or business rules to this UI component, and you’re in trouble. Your code will be littered with complex conditions, and it’s easy to get one of those wrong and end up with subtle bugs where different parts of the UI disagree about what state the application or component is in. So, what’s a poor UI developer to do?</p>
+<p>Enter finite-state machines.</p>
+<p>As a literature major with no formal computer science training, I’m not quite sure what I’m talking about, but apparently a <a href="https://en.wikipedia.org/wiki/Finite-state_machine">“finite-state machine”</a> is a programming concept where:</p>
+<ul>
+<li>the program has a list of possible states;</li>
+<li>it can be in only one state at a time;</li>
+<li>and it defines how each state can or cannot transition to other states.</li>
+</ul>
+<p>This can be used to describe physical devices like elevators, traffic lights, vending machines and more, and often those devices do run programs that implement a finite-state machine.</p>
+<p>Last year I built a tiny <a href="https://click-precision-game.netlify.app/">click precision game</a>, with zero experience in game development. I used <a href="https://svelte.dev/">Svelte</a>, and designed the game’s state somewhat naively. Often thinking “I should use an established formalism here” but being pressed for time, I improvised some ad hoc code.</p>
+<p>Shortly after that, I heard of XState, a JavaScript library that helps with implementing state machines. And I wondered how would things have worked out if I had used XState. Let’s find out!</p>
+<h2><span>How the game currently works</span></h2>
+<p>Since this is a refactoring operation, we should review key parts of the <a href="https://github.com/fvsch/click-precision-game/tree/v1.0.0">current code for click-precision-game</a>. How does it handle the main gameplay state?</p>
+<p>Let’s look at the main gameplay in the <a href="https://github.com/fvsch/click-precision-game/blob/v1.0.0/src/components/Playground.svelte"><code>Playground.svelte</code> component</a>. There’s a lot of logic there. The game follows a linear timeline where each instance of the game is divided in two parts:</p>
+<ol>
+<li>A countdown, divided in a few phases (showing “click the green square”, “3”, “2”, “1”).</li>
+<li>Then a series of 20 “turns”, each turn divided in 2 phases: the “turn” itself (time when the game’s target is visible and must be clicked), and a “cooldown” (short pause before the next turn).</li>
+</ol>
+<p>That information is encoded as a collection of objects:</p>
+<pre><code class="language-js">export const PLAY_PHASES = {
+ START: {
+ next: "COUNTDOWN_3",
+ durationRatio: 1,
+ minDuration: 1000,
+ countdown: 4,
+ showTarget: false,
+ },
+ COUNTDOWN_3: {
+ next: "COUNTDOWN_2",
+ durationRatio: 0.5,
+ minDuration: 400,
+ countdown: 3,
+ showTarget: false,
+ },
+ COUNTDOWN_2: {
+ next: "COUNTDOWN_1",
+ /* … */
+ },
+ COUNTDOWN_1: {
+ next: "TURN",
+ /* … */
+ },
+ TURN: {
+ next: "COOLDOWN",
+ /* … */
+ },
+ COOLDOWN: {
+ next: "TURN",
+ /* … */
+ }
+};</code></pre>
+<p>When the <code>Playground</code> component is mounted, we’re triggering the first phase:</p>
+<pre><code class="language-js">onMount(() => {
+ startPhase("START");
+});</code></pre>
+<p>And the <code>startPhase</code> function does the heavy lifting. Here it is, partly abridged and annotated:</p>
+<pre><code class="language-js">function startPhase(key) {
+ // If we’re just starting a turn
+ if (key === "TURN") {
+ // increment the turn count
+ turns += 1;
+ // reset the success/failure state to a neutral value
+ turnState = TURN_STATE.INITIAL;
+ // place the target at a random position
+ targetPosition = getTargetPosition();
+ }
+
+ // If ending a turn, we check the component state
+ // to see if we have registered a successful click
+ // on the target
+ if (key === "COOLDOWN") {
+ if (turnState === TURN_STATE.SUCCESS) {
+ successCount += 1;
+ }
+ }
+
+ // Get config for this phase
+ const phase = PLAY_PHASES[key];
+ // update UI
+ countdown = phase.countdown;
+ showTarget = phase.showTarget;
+ // schedule next phase
+ timeout = setTimeout(
+ () => startPhase(phase.next),
+ Math.max(phase.minDuration, phase.durationRatio * $gameSpeed)
+ );
+}</code></pre>
+<p>Note that the <code>countdown</code> and <code>showTarget</code> variables are reactive, and tracked by Svelte. When we update their value, Svelte does its <a href="https://svelte.dev/blog/svelte-3-rethinking-reactivity">reactivity magic</a> and updates the view. If we were in React land, we could probably use <code>useState</code> and update these state variables with:</p>
+<pre><code class="language-js">const [countdown, setCountdown] = useState();
+const [showTarget, setShowTarget] = useState();
+
+const startPhase = (key) => {
+ /* … */
+ setCountdown(phase.countdown);
+ setShowTarget(phase.showTarget);
+ /* … */
+}</code></pre>
+<p>Anyway, that’s how it works right now. Doing a bit of reading on <a href="https://statecharts.github.io/">statecharts</a> and <a href="https://css-tricks.com/robust-react-user-interfaces-with-finite-state-machines/">this introduction to state machines by David Khourshid on CSS-Tricks</a>, it looks like I was close enough to a hand-rolled finite state machine. Yay me!</p>
+<h2><span>Getting comfortable with XState</span></h2>
+<p>Originally I wanted to open the XState docs in one tab, my current code on another screen, and just start converting stuff and figuring things out along the way.</p>
+<p>Turns out that XState is a bit more complex than I thought. It’s not very hard, but there are a few concepts to learn: machines, services, actions, actors maybe? Is that more than I bargained for?</p>
+<p>So, change of plan: before tacking the gameplay state, I want to make sure I’m comfortable with basic usage of XState and how to integrate it in Svelte.</p>
+<p>Let’s start with a simpler bit of state then; I picked the main navigation state.</p>
+<p>The game has 3 different screens:</p>
+<ul>
+<li><code>"setup"</code> (configures a game’s parameters before starting)</li>
+<li><code>"playing"</code> (plays the game’s main loop)</li>
+<li><code>"results"</code> (shows your points)</li>
+</ul>
+<p>We start at the Setup screen:</p>
+<figure><img src="https://fvsch.com/articles/learning-xstate/game-setup-screen.png" width="504" height="504" alt="A start screen with form fields for choosing a target size, playground size and game speed, and a “Start” button."></figure>
+<p>The information for “which screen should we show?” is stored as a string in a Svelte store (a reactive variable that can be shared between components). It’s defined like this:</p>
+<pre><code class="language-js">import { writable } from "svelte/store";
+
+export const screen = writable("setup");</code></pre>
+<p>And in our root component we have a kind of switch statement where we pick which component to render:</p>
+<pre><code class="language-svelte"><script>
+ import { screen } from "../store.js";
+ import Setup from "./Setup.svelte";
+ /* … */
+</script>
+
+{#if $screen === "setup"}
+ <Setup />
+{:else if $screen === "playing"}
+ <Playground />
+{:else if $screen === "results"}
+ <Results />
+{/if}</code></pre>
+<p>To navigate between screens, we change the store’s value:</p>
+<pre><code class="language-js">function startPlaying() {
+ $screen = "playing";
+}</code></pre>
+<p>Note: we’re using the dollar syntax, <code>$screen</code>, to access the value of the <code>screen</code> store in a reactive way (<a href="https://svelte.dev/docs#4_Prefix_stores_with_$_to_access_their_values">read more in the Svelte docs</a>).</p>
+<p>Converting this to XState is probably overkill, but using XState we can enforce a few rules:</p>
+<ol>
+<li>Restrict the state to known values (e.g. make it impossible to set the current screen to <code>"whoops"</code> if that’s not a known state).</li>
+<li>Specify relationships between states, e.g. only the <code>"playing"</code> state can go to the <code>"results"</code> state.</li>
+</ol>
+<p>Let’s create a basic XState machine to keep track of the current screen:</p>
+<pre><code class="language-js">// src/state/screen.js
+import { Machine } from "xstate";
+
+const screenMachine = Machine({
+ id: "screen",
+ initial: "setup",
+ states: {
+ setup: {},
+ playing: {},
+ results: {}
+ }
+});</code></pre>
+<p>Right now our 3 states have no rules or features attached, but we’ll flesh them out later.</p>
+<p>Now if I’m understanding correctly, a XState “machine” is a static set of rules, but it is itself stateless: it doesn’t have a current state or a state history. To hold a “current value”, we need a XState “service”:</p>
+<pre><code class="language-js">// src/state/screen.js
+import { interpret, Machine } from "xstate";
+
+const screenMachine = Machine({
+ id: "screen",
+ initial: "setup",
+ states: {
+ setup: {},
+ playing: {},
+ results: {}
+ }
+});
+
+const screenService = interpret(screenMachine);
+export default screenService;</code></pre>
+<p>This feels a bit like a class-vs-instance thing. We have a kind of blueprint (a class, or a machine in this case) which is used to create a structure that holds data or state (instance/service). Not sure if that makes sense, this is just how it looks to me. 😅</p>
+<p>Let’s update our top component to use the <code>screenService</code> instead of the <code>screen</code> Svelte store:</p>
+<pre><code class="language-svelte"><script>
+ import screenService from "../state/screen.js";
+ import Setup from "./Setup.svelte";
+ /* … */
+</script>
+
+{#if screenService.state.matches("setup")}
+ <Setup />
+{:else if screenService.state.matches("playing")}
+ <Playground />
+{:else if screenService.state.matches("results")}
+ <Results />
+{/if}</code></pre>
+<p>This looks good to me, but alas! it fails. We get a blank screen. What’s going on in the Console?</p>
+<blockquote>
+<p>Warning: Attempted to read state from uninitialized service 'screen'. Make sure the service is started first.</p>
+</blockquote>
+<p>Indeed, when we run <code>console.log(screenService.state)</code>, that’s <code>undefined</code>! Looks like we have to start the service to make it go to its initial state (<code>"setup"</code>):</p>
+<pre><code class="language-js">const screenService = interpret(screenMachine);
+screenService.start();</code></pre>
+<p>That works! I’m seeing the Setup screen, and if I change the <code>initial</code> value in <code>stateMachine</code> and reload the page I can see the Playground or Results components — though Results are broken, because the result data is missing.</p>
+<p>So we have a navigation state. Now we need some navigation actions, i.e. a way to go from one state to the other.</p>
+<p>XState handles that with events, which are defined on the machine. It looks like, by convention, state names are lowercase and event names are uppercase, so we’ll follow that.</p>
+<pre><code class="language-js">const screenMachine = Machine({
+ id: "screen",
+ initial: "setup",
+ states: {
+ setup: {
+ on: {
+ START_PLAYING: "playing"
+ }
+ },
+ playing: {
+ on: {
+ SHOW_RESULTS: "results",
+ SHOW_SETUP: "setup"
+ }
+ },
+ results: {
+ on: {
+ SHOW_SETUP: "setup"
+ }
+ }
+ }
+});</code></pre>
+<p>With that setup:</p>
+<ol>
+<li>to start playing, we must be on the <code>"setup"</code> state and send a <code>"START_PLAYING"</code> event;</li>
+<li>the <code>"playing"</code> state can go to the <code>"results"</code> state or to the <code>"setup"</code> state (e.g. if the user wants to interrupt a game);</li>
+<li>the <code>"results"</code> state can only go back to the <code>"setup"</code> state, to start a new game.</li>
+</ol>
+<p>And we could add events to handle more features. For instance, if we want to add a “Try Again” button on the results screen that starts a new game with the same parameters, we can add: <code>PLAY_AGAIN: "playing"</code>.</p>
+<p>We send events with the service’s <code>send</code> method. Let’s start with the <code>Setup</code> page. It listens to the form’s <code>"submit"</code> event and navigates, so we’ll update that:</p>
+<pre><code class="language-js">// src/components/Setup.svelte
+<script>
+ import screenService from "../state/screen.js";
+
+ function onSubmit(event) {
+ event.preventDefault();
+ screenService.send("START_PLAYING");
+ }
+</script>
+
+<form on:submit={onSubmit}>
+ <!-- … -->
+</form></code></pre>
+<p>And… it doesn’t work.</p>
+<p>Nothing in the Console. Hmm, how else can we debug what’s happening? We have two options:</p>
+<ul>
+<li>add a bunch of <code>console.log</code>s;</li>
+<li>use the Redux DevTools browser extension and <a href="https://xstate.js.org/docs/guides/interpretation.html#options">tell XState to send it state information</a>.</li>
+</ul>
+<p>Looking closer, once we call <code>send("START_PLAYING")</code>, here is what happens:</p>
+<ol>
+<li>The event is dispatched correctly on the <code>screenService</code>.</li>
+<li>The <code>screenService</code>’s state changes to <code>"playing"</code>.</li>
+<li>But nothing in <code>Game.svelte</code> reacts to this change.</li>
+</ol>
+<p>We need to make Svelte aware of changes in the <code>screenService</code>!</p>
+<p>Thankfully, XState’s docs have <a href="https://xstate.js.org/docs/recipes/svelte.html">a recipe for using XState with Svelte</a>, which shows two solutions. My favorite is to treat the XState service as a Svelte store, which is possible because a XState service has a <code>subscribe</code> method that <a href="https://svelte.dev/docs#Store_contract">fulfills Svelte’s “store contract”</a>.</p>
+<p>In short, that means we can use <code>$screenService</code> as a reactive version of <code>screenService.state</code>. Our code becomes:</p>
+<pre><code class="language-svelte"><script>
+ import screenService from "../state/screen.js";
+ /* … */
+</script>
+
+{#if $screenService.matches("setup")}
+ <Setup />
+{:else if $screenService.matches("playing")}
+ <Playground />
+{:else if $screenService.matches("results")}
+ <Results />
+{/if}</code></pre>
+<p>And with that, navigating between screens finally works!</p>
+<h2><span>Tackling the main game loop</span></h2>
+<p>Okay, that wasn’t super simple and there was a bit of a learning curve, but we finally know how to make a basic state machine with XState. Should we create one for the <code>PLAY_PHASES</code> structure we described earlier? As a reminder, it looked like this:</p>
+<pre><code class="language-js">export const PLAY_PHASES = {
+ START: {
+ next: "COUNTDOWN_3"
+ },
+ COUNTDOWN_3: {
+ next: "COUNTDOWN_2"
+ },
+ COUNTDOWN_2: {
+ next: "COUNTDOWN_1"
+ },
+ COUNTDOWN_1: {
+ next: "TURN"
+ },
+ TURN: {
+ next: "COOLDOWN"
+ },
+ COOLDOWN: {
+ next: "TURN"
+ }
+};</code></pre>
+<p>The first-level keys are our states, and we have just one event, <code>"next"</code>, telling us what the next state should be.</p>
+<p>As a XState machine, this could look like:</p>
+<pre><code class="language-js">const playMachine = Machine({
+ id: "play",
+ initial: "start",
+ states: {
+ start: {
+ on: { NEXT: "countdown_3" }
+ },
+ countdown_3: {
+ on: { NEXT: "countdown_2" }
+ },
+ countdown_2: {
+ on: { NEXT: "countdown_1" }
+ },
+ countdown_1: {
+ on: { NEXT: "turn" }
+ },
+ turn: {
+ on: { NEXT: "cooldown" }
+ },
+ cooldown: {
+ on: { NEXT: "turn" }
+ }
+ }
+});</code></pre>
+<p>While working on the XState refactor for this article, I realized that the 4 first states (from <code>"start"</code> to <code>"countdown_1</code>) represent a single countdown animation with 4 “stages”. To simplify the state logic a bit, I decided to turn those states into a single <code>“countdown”</code> state, and moved the animation logic to <a href="https://github.com/fvsch/click-precision-game/blob/v2.0.0/src/components/Countdown.svelte">a CSS animation in the Countdown component</a>. This simplifies our machine:</p>
+<pre><code class="language-js">const playMachine = Machine({
+ id: "play",
+ initial: "countdown",
+ states: {
+ countdown: {
+ on: { NEXT: "turn" }
+ },
+ turn: {
+ on: { NEXT: "cooldown" }
+ },
+ cooldown: {
+ on: { NEXT: "turn" }
+ }
+ }
+});</code></pre>
+<p>Another problem to solve: how do we start this <code>playMachine</code> at the right time in our app’s life?</p>
+<p>One solution would be to create and start a new <code>playService</code> every time that the <code>Playground</code> component is mounted.</p>
+<p>Another option is to merge our <code>screenMachine</code> and our <code>playMachine</code> in one <a href="https://xstate.js.org/docs/guides/hierarchical.html">hierarchical state machine</a>. The states from our <code>playMachine</code> can be children of the <code>playing</code> state.</p>
+<p>(You don’t need to have a single machine for your whole app’s state. It’s perfectly okay to have several machines for several features or screens. But since the game loop only exists in the <code>"playing"</code> screen, a single hierarchical machine makes sense here.)</p>
+<p>Our merged machine will handle most of the game’s state, so let’s call it <code>gameMachine</code>:</p>
+<pre><code class="language-js">// src/state/game.js
+import { interpret, Machine } from "xstate";
+
+const gameMachine = Machine({
+ id: "game",
+ initial: "setup",
+ states: {
+ setup: {
+ on: {
+ START_PLAYING: "playing",
+ }
+ },
+ playing: {
+ on: {
+ SHOW_RESULTS: "results",
+ SHOW_SETUP: "setup"
+ },
+ initial: "countdown",
+ states: {
+ countdown: {
+ on: { NEXT: "turn" }
+ },
+ turn: {
+ on: { NEXT: "cooldown" }
+ },
+ cooldown: {
+ on: { NEXT: "turn" }
+ }
+ }
+ },
+ results: {
+ on: {
+ SHOW_SETUP: "setup"
+ }
+ }
+ }
+});
+
+const gameService = interpret(gameMachine);
+gameService.start();
+
+export default gameService;</code></pre>
+<p>This machine can be <a href="https://xstate.js.org/viz/?gist=897990dba921cb329062644d3b551c65">visualized using XState’s interactive visualizer</a>:</p>
+<figure class="frame"><iframe width="100%" height="400" src="https://xstate.js.org/viz/?gist=897990dba921cb329062644d3b551c65&embed=1" title="OK"></iframe>
+</figure>
+<p>If you try clicking on the event names in the visualization, you’ll see that:</p>
+<ol>
+<li>We start at the <code>setup</code> state.</li>
+<li>We can go to the <code>playing</code> state, which starts at its <code>playing.countdown</code> state.</li>
+<li>In the <code>playing</code> state, we can go to <code>playing.turn</code>, then to <code>playing.cooldown</code>, then to <code>playing.turn</code> again, and we stay there in a loop.</li>
+<li>We can go from the <code>playing</code> state forward to the <code>results</code> state, or back to <code>setup</code>.</li>
+</ol>
+<p>Pretty good. Now, in the <code>Playground</code> component we need to react to changes in the game state to:</p>
+<ul>
+<li>show or hide the countdown;</li>
+<li>show the square target with a new position, and increment the turn count;</li>
+<li>hide the square target.</li>
+</ul>
+<p>Most of that logic happens in the <code>startPhase</code> function we described earlier. Our previous logic relied on calling <code>startPhase</code> recursively, with a delay. Schematically, it looked like:</p>
+<pre><code class="language-js">import { onMount } from "svelte";
+import { PLAY_PHASES } from "./constants.js";
+
+onMount(() => {
+ startPhase("countdown");
+});
+
+function startPhase(key) {
+ // 1. Perform side effects (update the UI):
+ // …
+ // 2. Set a timer for the next phase:
+ const nextKey = PLAY_PHASES[key].next;
+ const duration = PLAY_PHASES[key].duration;
+ setTimeout(() => {
+ startPhase(nextKey);
+ }, duration);
+}</code></pre>
+<p>With our state machine, we’re going to split this in two:</p>
+<ul>
+<li>We’re going to call <code>startPhase</code> every time the <code>gameService</code>’s state changes. For that, we need to subscribe to updates.</li>
+<li>At the end of a game phase (in our <code>setTimeout</code> function), we’re going to send a <code>"NEXT"</code> event instead of calling <code>startPhase</code> directly.</li>
+</ul>
+<pre><code class="language-js">import { onMount, onDestroy } from "svelte";
+import gameService from "../state/game.js";
+import { gamePhaseDurations } from "../state/setup.js";
+
+// Listen to state transitions
+onMount(() => {
+ gameService.onTransition(startPhase);
+});
+onDestroy(() => {
+ gameService.off(startPhase);
+});
+
+function startPhase(state) {
+ // state.value looks like: {playing: "countdown"}
+ const key = state.value.playing;
+ // 1. Perform side effects (update the UI):
+ // …
+ // 2. Set a timer for the next phase:
+ const duration = $gamePhaseDurations[key];
+ setTimeout(() => {
+ gameService.send("NEXT");
+ }, duration);
+}</code></pre>
+<p>And we’re done!</p>
+<p>The <a href="https://github.com/fvsch/click-precision-game/blob/v2.0.0/src/components/Playground.svelte">actual logic</a> is a bit more complex — it handles things like counting turns and points, sending a <code>send("SHOW_RESULTS")</code> event after 20 turns, etc. — but this is a good representation of how the state machine powers the game loop.</p>
+<h2><span>My impressions of XState</span></h2>
+<p>I found XState to be more complex than I had anticipated. Granted I knew next to nothing about state machines and <a href="https://statecharts.github.io">statecharts</a>. But the learning curve was a bit steep, I think, for two reasons:</p>
+<ol>
+<li>There’s a bit of jargon to wrap your head around.</li>
+<li>XState has a lot of features, and it’s easy to get lost asking yourself if one feature is essential for your use case or not, or that other feature, or maybe this one…</li>
+</ol>
+<p>At first I tried diving in for a couple hours, writing some code, expecting to know my way around the concepts and library in that time-frame. That didn’t work at all.</p>
+<p>So I took a step back, actually read some of the docs, watched a couple videos and read some articles, before diving back in with a smaller scope: porting the navigation state.</p>
+<p>After that, porting the main game loop to XState was still a lot of work, but mostly because my own UI logic had a lot of parts to account for, and changing some of its state management meant I had a lot of loose ends to reconnect.</p>
+<figure><img width="620" height="402" src="https://fvsch.com/articles/learning-xstate/telephone-switchboard-operator.jpg" alt="An operator plugging cables in an very big switchboard"><figcaption>Me trying to make <code>Playground.svelte</code> work again.</figcaption></figure>
+<p>While I initially wanted to spend 1–2 days learning XState, I ended up spending close to a week learning and refactoring, and then 2–3 days writing this post (I’m a slow writer).</p>
+<p>There were a few more things I wanted to try, but had to drop for lack of time:</p>
+<ol>
+<li>
+<p>Statecharts can have “extended state”, <a href="https://xstate.js.org/docs/guides/context.html">called “Context” in XState</a>. It looks like it would make sense to store the points and turn count in the <code>gameService</code>’s context.</p>
+</li>
+<li>
+<p>With the turn count stored in the <code>gameService</code>, the branching logic for going to the next turn <em>or</em> ending the game could be part of the state machine as well (instead of the <code>Playground</code> component’s state and the <code>startPhase</code> function). Probably using <a href="https://xstate.js.org/docs/guides/guards.html">Guarded Transitions</a>.</p>
+</li>
+<li>
+<p>I tried putting the playing phase duration config on the state machine, using <a href="https://xstate.js.org/docs/guides/states.html#state-meta-data">state meta data</a>, but it was awkward and created other issues for that use case.</p>
+</li>
+</ol>
+<p>Would I use XState on a new project? Definitely. Being able to reason about an app, screen or feature’s state by reading a statechart definition is invaluable, and the visualizations are a nice touch. And while I haven’t used most of the advanced features, reading up on them makes me confident that I could handle complex use cases.</p>
+<p>A word of caution though: when bringing XState to a team project, I’d factor in the learning curve for everyone involved. It’s probably worth doing some basic training, at least.</p>
+
+
diff --git a/Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom b/Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom
new file mode 100644
index 000000000..e2273fb67
--- /dev/null
+++ b/Modules/RSParser/Tests/RSParserTests/Resources/yakubin.atom
@@ -0,0 +1,11436 @@
+
+
+ 2025-02-20T00:00:00Z
+ yakubin’s notes
+
+
+
+ Jakub Alba (yakubin)
+ https://yakubin.com
+
+ urn:uuid:a81c5f80-f5ca-4b3a-8a31-9d61a9fadf30
+
+
+ Thoughts about Prolog
+
+ urn:uuid:034e3deb-01fe-48bb-9c30-0ad0df9b1c26
+
+ 2025-01-17T00:00:00Z
+
+ 2025-01-17T00:00:00Z
+
+
+ <p>The most advertised feature of Prolog is its ability to run
+computations both forwards and backwards. This is a simplification. More
+accurately, Prolog doesn’t have functions which return values. It has
+predicates. In order to model a traditional function in Prolog, the
+programmer can treat one of the predicate’s arguments as its return
+value. E.g. the following predicate models the function
+<code>f(x) = 2x</code>:</p>
+<pre><code>:- use_module(library(clpfd)).
+
+f(X, Y) :- Y #= 2 * X.</code></pre>
+<p>Now we can ask Prolog to run this “function” forwards by asking for
+valid substitutions of <code>Y</code>:</p>
+<pre><code>?- f(1, Y).
+Y = 2.</code></pre>
+<p>But we may also run it backwards by asking for valid substitutions of
+<code>X</code> instead:</p>
+<pre><code>?- f(X, 2).
+X = 1.</code></pre>
+<p>We can also ask Prolog for the general solution:</p>
+<pre><code>?- f(X, Y).
+2*X#=Y.</code></pre>
+<p>With more arguments, we’ll have many more directions we can run the
+computation in and which one is forwards is just a matter of
+convention.</p>
+<p>Unfortunately, this works only for the most trivial programs. It
+breaks down on things as simple as quicksort. With the following
+definition:</p>
+<pre><code>:- use_module(library(clpfd)).
+
+quicksort_forwards([X|Xs], Ys) :-
+ partition(Xs, X, Littles, Bigs),
+ quicksort_forwards(Littles, Ls),
+ quicksort_forwards(Bigs, Bs),
+ append(Ls, [X|Bs], Ys).
+quicksort_forwards([], []).
+
+partition([X|Xs], Y, [X|Ls], Bs) :- X #=< Y, !, partition(Xs, Y, Ls, Bs).
+partition([X|Xs], Y, Ls, [X|Bs]) :- X #> Y, !, partition(Xs, Y, Ls, Bs).
+partition([], Y, [], []).</code></pre>
+<p>We can run this quicksort implementation forwards with no issues:</p>
+<pre><code>?- quicksort_forwards([2, 1], L).
+L = [1, 2] .</code></pre>
+<p>But running it backwards fails due to the program hitting the stack
+limit:</p>
+<pre><code>?- quicksort_forwards(L, [1, 2]).
+ERROR: Stack limit (1.0Gb) exceeded
+ERROR: Stack sizes: local: 2Kb, global: 1.0Gb, trail: 66.4Mb
+ERROR: Stack depth: 1,053,286, last-call: 100%, Choice points: 7
+ERROR: In:
+ERROR: [1,053,286] clpfd:left_right_linsum_const(_104836684, _104836686, _104836688, _104836690, _104836692)
+ERROR: [1,053,285] clpfd:clpfd_geq_(_104836710, _104836712)
+ERROR: [1,053,284] clpfd:clpfd_geq(_104836730, _104836732)
+ERROR: [1,053,283] user:partition([length:1|_104836762], _104836752, [length:1|_104836768], _104836756)
+ERROR: [12] user:quicksort_forwards([length:1,053,272|_104836794], [length:2])
+ERROR:
+ERROR: Use the --stack_limit=size[KMG] command line option or
+ERROR: ?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit.
+^ Exception: (1,053,283) partition(_104836436, _174{clpfd = ...}, _104836442, _114) ? abort
+% Execution Aborted</code></pre>
+<p>Why is that? Prolog traverses the search tree in depth-first order,
+starting with the first clause. In this case, the first clause of
+<code>quicksort_forwards</code> is
+<code>partition(Xs, X, Littles, Bigs)</code>. At this point the only
+variables bound are <code>X</code> and <code>Xs</code>.
+<code>Littles</code> and <code>Bigs</code> are unbound. Going deeper
+into <code>partition</code>, Prolog is going to begin infinite
+recursion, generating all possible lists that it could substitute for
+<code>Littles</code> and <code>Bigs</code> in
+<code>quicksort_forwards</code>. It’s never going to reach the recursive
+clause <code>quicksort_forwards</code> in
+<code>quicksort_forwards</code>. The stack is going to be filled with
+calls to <code>partition</code>.</p>
+<p>We can fix this by reordering the clauses so that the length of the
+generated list is established first, preventing infinite recursion:</p>
+<pre><code>quicksort_backwards([X|Xs], Ys) :-
+ append(Ls, [X|Bs], Ys),
+ quicksort_backwards(Littles, Ls),
+ quicksort_backwards(Bigs, Bs),
+ partition(Xs, X, Littles, Bigs).
+quicksort_backwards([], []).</code></pre>
+<p>The <code>append</code> call, which is placed first, is going to
+recursively establish possible contents of <code>Ls</code> and
+<code>Bs</code> (along with their lengths). After that we recurse into
+<code>quicksort_backwards</code>, which is going to establish similar
+splits for progressively smaller lists comprising the input. Finally the
+call to <code>partition</code> is going to establish how the smaller
+lists are synthesised into bigger lists.</p>
+<p>Lo and behold, it works:</p>
+<pre><code>?- quicksort_backwards(L, [1, 2]).
+L = [1, 2] ;
+L = [2, 1] ;
+false.</code></pre>
+<p>But only backwards. We can’t run it forwards anymore:</p>
+<pre><code>?- quicksort_backwards([2, 1], L).
+ERROR: Stack limit (1.0Gb) exceeded
+ERROR: Stack sizes: local: 0.8Gb, global: 0.2Gb, trail: 53.9Mb
+ERROR: Stack depth: 2,353,978, last-call: 0%, Choice points: 4,707,935
+ERROR: Possible non-terminating recursion:
+ERROR: [2,353,978] user:quicksort_backwards(_42391182, [])
+ERROR: [2,353,977] user:quicksort_backwards([length:1|_42391210], [length:1|_42391216])
+ Exception: (2,352,548) quicksort_backwards(_42365378, _42365374) ? abort
+% Execution Aborted</code></pre>
+<p>That experience forms my general impression of Prolog. The promise of
+being able to run computations in multiple directions is false. The
+programmer needs to think about a specific direction anyway and even
+after reordering the clauses to get <code>quicksort_backwards</code>,
+what we get is not Heap’s algorithm, but something much less efficient.
+At that point one might as well pick a more standard algorithmic
+language, where the direction is explicit and the language is more
+efficient in general.</p>
+
+
+
+
+
+ Naive Gaussian elimination in floating-point vs exact arithmetic [PDF]
+
+ urn:uuid:ddb2699a-063f-41e3-9f38-da11665feb53
+
+ 2024-11-18T00:00:00Z
+
+ 2024-11-18T00:00:00Z
+
+
+
+
+
+ In appreciation of segment LCDs
+
+ urn:uuid:456233f8-d1fe-4795-a53e-db30f6084e29
+
+ 2024-10-22T00:00:00Z
+
+ 2024-10-22T00:00:00Z
+
+
+ <p>I love segment LCDs. They’re low-power. Custom segments allow them to
+display perfectly sharp symbols, without any pixelation. They don’t need
+any special controllers/drivers/GPUs to program. To me as a user they
+signal that I’m dealing with a no-nonsense device that’s not going to
+display ads or other annoyances. And I just love their aesthetic. So
+here I’m going to collect photos of some that I’ve used that were done
+particularly well.</p>
+<p>Canon EOS 5D Mark IV:</p>
+<p><img src="canon-eos-5d-mark-iv-top.jpg" alt="Top side of Canon EOS 5D Mark IV" /></p>
+<p>Fluke 179:</p>
+<p><img src="fluke-179.webp" alt="Fluke 179 multimeter" /></p>
+
+
+
+
+
+ Floating-point Gaussian elimination errors for Hilbert matrices
+
+ urn:uuid:656f798c-b4ce-4c75-8574-ac5a2b0c58f7
+
+ 2024-09-16T00:00:00Z
+
+ 2024-10-14T00:00:00Z
+
+
+ <p>I’ve written a program which calculates the solution to a system of n
+affine equations of n variables using arbitrary-precision fractions, as
+well as IEEE754 64-bit binary floating-point numbers with the Gaussian
+elimination algorithm with partial and complete pivoting, and calculates
+the numerical error of the latter 2 methods based on the exact solution.
+The input matrices I’ve used are known as Hilbert matrices,
+i.e. <code>H[i][j] = 1/(i + j - 1)</code>. The results show that without
+a thorough analysis of the numerical conditioning of a problem, even
+using a numerically-stable method (like Gaussian elimination with
+complete pivoting), floating-point numbers lead to catastrophic
+errors.</p>
+<p>Results: <a href="/notes/hilbert.csv">hilbert.csv</a>. R program used
+to generate the plots: <a
+href="/notes/hilbert-error-plots.R">hilbert-error-plots.R</a>.</p>
+<p><img src="/notes/hilbert-matrix-rel-error.png" alt="Gaussian elimination relative error for Hilbert matrices" />
+<img src="/notes/hilbert-matrix-abs-error.png" alt="Gaussian elimination absolute error for Hilbert matrices" /></p>
+
+
+
+
+
+ Race conditions in procfs
+
+ urn:uuid:f915aa6b-373f-4135-8b78-c12951b9b667
+
+ 2024-06-12T00:00:00Z
+
+ 2024-06-18T00:00:00Z
+
+
+ <p>OpenBSD deleted <code>procfs</code> in 5.7 release (2015), <a
+href="https://www.openbsd.org/plus57.html">citing race conditions</a> as
+one of the main issues. FreeBSD deprecated it in 2011 and doesn’t mount
+it by default. Instead users are expected to rely on tools like the
+<code>procstat</code> command-line tool and the <code>libprocstat</code>
+C library, which underneath use the <code>sysctl(3)</code> interface to
+communicate with the kernel. In contrast, Linux supports
+<code>procfs</code> with no plans of deprecating in sight and lots of
+basic things on Linux can only be done through <code>procfs</code>. On
+Linux, tools like <code>ps</code>, <code>pmap</code>,
+<code>pgrep</code>, <code>pkill</code>, <code>lsof</code> all rely on
+<code>procfs</code>.</p>
+<p>Personally, I dislike the idea of <code>/proc</code> itself: exposing
+system information that’s available in the kernel in binary form by
+converting it to text only to be converted back to binary in user
+processes, probably with some bugs along the way. Or, putting it
+differently: stringly-typed programming. This has consequences, such as
+most files in <code>/proc</code> reporting their size through
+<code>fstat(2)</code> as 0, even though they’re not empty when you
+actually read them. In order for the kernel to report the actual size of
+such a file, it would need to serialise its data into text every time
+you ask it for the size, since the relation between the size of binary
+data represented by the text and the size of the text is
+non-obvious.</p>
+<p>Another issue is that this API masquerades such files as regular
+files, making them available through the same method as any other files,
+even though when they are treated as regular files, bugs are inevitable.
+There is no warning that they should be treated specially in order for
+the user to receive correct data. So using tools like the
+<code>cat</code> command or generic function for reading files like
+<code>base::ReadFileToString()</code> in Chromium leads to incorrect
+data. And that’s assuming that receiving correct data can even somehow
+be guaranteed. It can be for some files in <code>/proc</code>, but not
+for others, as I’ll show here.</p>
+<p>Some files in <code>/proc</code> guarantee that their content is
+consistent when read in a single <code>read(2)</code> syscall. Others
+don’t. The obvious issue here is that in order to be able to read a
+whole file in a single <code>read(2)</code> syscall, we need to know its
+size first. And most files in <code>/proc</code> report that their size
+is 0, even though they’re not empty:</p>
+<pre><code>$ ls -l /proc | egrep -v '^d' | head
+total 0
+-r--r--r-- 1 root root 0 Jun 11 03:47 buddyinfo
+-r--r--r-- 1 root root 0 Jun 11 03:42 cgroups
+-r--r--r-- 1 root root 0 Jun 11 03:42 cmdline
+-r--r--r-- 1 root root 0 Jun 11 03:47 consoles
+-r--r--r-- 1 root root 0 Jun 11 03:42 cpuinfo
+-r--r--r-- 1 root root 0 Jun 11 03:47 crypto
+-r--r--r-- 1 root root 0 Jun 11 03:42 devices
+-r--r--r-- 1 root root 0 Jun 11 03:47 diskstats
+-r--r--r-- 1 root root 0 Jun 11 03:47 dma
+$ wc -c /proc/cpuinfo
+5508 /proc/cpuinfo</code></pre>
+<h2>Demo: Linux</h2>
+<p>So is it a real problem? Everything seems to work. Can we get
+incorrect data in practice? For demonstration purposes I’ll focus on the
+<code>/proc/[pid]/maps</code> file, since I can easily programatically
+control its contents and show how mutating it (which happens e.g. when a
+program allocates or deallocates memory) and reading it concurrently
+leads to incorrect data.</p>
+<p>How should we read it? I’ll go with simulating the behaviour of the
+<a
+href="https://chromium.googlesource.com/chromium/src/+/62114f568675eb0c3d18307a3f42d9d3b6100ab1/base/files/file_util.cc#364"><code>base::ReadFileToString()</code></a>
+function from Chromium, which, through a sequence of indirections,
+ultimately calls <a
+href="https://chromium.googlesource.com/chromium/src/+/62114f568675eb0c3d18307a3f42d9d3b6100ab1/base/files/file_util.cc#63"><code>base::ReadStreamToSpanWithMaxSize()</code></a>.
+This function in turn uses the <code>fread(3)</code> C standard library
+function to read the file in chunks. If the file has a non-zero size
+reported by <code>fstat(2)</code>, then it uses that as the chunk size.
+If the reported size is zero on the other hand, it uses a 4kiB chunk for
+the first read and 64kiB after that if it’s not enough. One might ask:
+what does <code>pmap</code> do? It’s behaviour is actually more
+bug-prone. It uses <code>fgets(3)</code>, which, according to
+<code>strace</code>, on my system reduces to reading the file in
+1024-byte chunks.</p>
+<p>This is the function I’m going to use for reading
+<code>/proc/[pid]/maps</code>:</p>
+<pre><code>void linux_copy_maps_to_file(const char* dst, pid_t pid) {
+ const size_t big_chunk_size = 1 << 16;
+ const size_t small_chunk_size = 1 << 12;
+
+ char maps_path[26] = {0};
+ snprintf(maps_path, (sizeof maps_path) - 1, "/proc/%u/maps", (unsigned) pid);
+
+ FILE* src_fp = fopen(maps_path, "r");
+ if (src_fp == NULL) {
+ perror("fopen");
+ return;
+ }
+
+ FILE* dst_fp = fopen(dst, "w");
+ if (dst_fp == NULL) {
+ perror("fopen");
+ return;
+ }
+
+ char chunk[big_chunk_size];
+ for (size_t chunk_size = small_chunk_size; ; chunk_size = big_chunk_size) {
+ size_t n = fread(chunk, 1, chunk_size, src_fp);
+ if (0 < n) {
+ size_t m = fwrite(chunk, 1, n, dst_fp);
+ if (n != m) {
+ fprintf(stderr, "fwrite failed\n");
+ return;
+ }
+ }
+ if (n < chunk_size) {
+ if (ferror(src_fp)) {
+ fprintf(stderr, "fread failed\n");
+ return;
+ }
+ if (feof(src_fp)) {
+ break;
+ }
+ }
+ }
+
+ if (fflush(dst_fp)) {
+ perror("fflush");
+ return;
+ }
+
+ fclose(src_fp);
+ fclose(dst_fp);
+}
+
+#ifdef __linux__
+#define copy_maps_to_file linux_copy_maps_to_file
+#endif
+
+void copy_maps_n_times(pid_t pid, int n) {
+ assert(n < 100);
+ for (int i = 0; i < n; i++) {
+ char dstPathBuf[30] = {0};
+ snprintf(dstPathBuf, sizeof dstPathBuf - 1, "./saved-maps-%02d.txt", i);
+ copy_maps_to_file(dstPathBuf, pid);
+ }
+}</code></pre>
+<p>Now the mutating part of my program. I’m going to allocate a region
+of memory and start by marking every other page of it as read-only,
+initially leaving the other ones with no permissions. This ensures that
+<code>/proc/[pid]/maps</code> doesn’t collapse the whole allocation into
+one line, but instead has a separate line for each page, making the file
+big enough, exceeding the size of the chunks used to read it. After
+that, I’m going to mark the first page as read-write and copy
+<code>/proc/[pid]/maps</code> to a local file named
+<code>saved-maps.txt</code>. Then I’m going to start another process
+which in the background is going to copy <code>/proc/[pid]/maps</code>
+in a loop to local files named using the pattern
+<code>saved-maps-%02d.txt</code>. While this process is doing that, in
+the original process I’m going to iterate through the mapped region of
+memory, in each iteration first marking another page as read-write and
+then marking the previous one (from the previous iteration) as having no
+permissions. This way <strong>the mapped region always has exactly 1 or
+2 pages of memory with read-write permissions.</strong> Other pages are
+either read-only or have no permissions. In order to make the pattern
+more erratic, before the loop I’m going to shuffle an array of pointers
+to pages that I’m going to iterate over. In order to verify the result,
+the program is also going to print the start and end addresses of the
+mapped region of memory. The code:</p>
+<pre><code>int main() {
+ struct sigaction act = {0};
+ act.sa_handler = do_nothing;
+ if (sigaction(SIGCHLD, &act, NULL) != 0) {
+ perror("sigaction");
+ return 1;
+ }
+
+ pid_t pid = getpid();
+
+ size_t pagesize = sysconf(_SC_PAGESIZE);
+ size_t total = 65000;
+
+ void** pages = mmap(NULL, total * sizeof *pages, PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+ if (pages == MAP_FAILED) {
+ perror("mmap");
+ return 2;
+ }
+
+#ifdef MAP_NORESERVE
+ int noreserve = MAP_NORESERVE;
+#else
+ int noreserve = 0;
+#endif
+
+ void* arena = mmap(NULL, total * pagesize, PROT_NONE,
+ MAP_PRIVATE | MAP_ANONYMOUS | noreserve, -1, 0);
+ if (pages == MAP_FAILED) {
+ perror("mmap");
+ return 3;
+ }
+
+ printf("%p %p\n", arena, arena + total * pagesize);
+
+ for (size_t i = 0; i < total; i++) {
+ pages[i] = arena + i * pagesize;
+ if (i % 2 == 0 && mprotect(pages[i], pagesize, PROT_READ) != 0) {
+ perror("mprotect read");
+ return 4;
+ }
+ }
+
+ if (shuffle(pages, total)) {
+ return 5;
+ }
+
+ if (mprotect(pages[0], pagesize, PROT_READ | PROT_WRITE) != 0) {
+ perror("mprotect prot_read_write");
+ return 6;
+ }
+
+ copy_maps_to_file("./saved-maps.txt", pid);
+
+ if (fork() == 0) {
+ copy_maps_n_times(pid, 20);
+ return 0;
+ }
+
+ int ret = 0;
+
+ for (size_t i = 1; i < total; i++) {
+ if (mprotect(pages[i], pagesize, PROT_READ | PROT_WRITE) != 0) {
+ perror("mprotect prot_read_write");
+ ret = 7;
+ break;
+ }
+ if (mprotect(pages[i - 1], pagesize, PROT_NONE) != 0) {
+ perror("mprotect prot_none");
+ ret = 8;
+ break;
+ }
+ }
+
+ int child_pid;
+ do {
+ int stat_loc;
+ child_pid = wait(&stat_loc);
+ } while (child_pid < 0 && errno == EINTR);
+
+ if (child_pid < 0) {
+ perror("wait");
+ ret = 9;
+ }
+
+ return ret;
+}</code></pre>
+<p>The whole file can be downloaded from here: <a
+href="rolling-mmap.c">rolling-mmap.c</a></p>
+<p>Build it:</p>
+<pre><code>cc -std=gnu11 -O2 -Wall -Wextra -o rolling-mmap rolling-mmap.c</code></pre>
+<p>In order to verify the result I wrote a little helper script. Given 2
+arguments representing the start and end addresses of the mapped region
+of memory, it will print the number of read-write pages in that
+region:</p>
+<pre><code>linux-count-rw-maps.sh</code><code>#!/usr/bin/env sh
+
+[ $# -ne 2 ] && (echo "usage: $0 <start> <end>"; exit)
+
+sed -E -e 's/^([^-]+)-([^ ]+) /0x\1 0x\2 /' | gawk -v start="$1" -v end="$2" 'BEGIN{c=0} strtonum($1) >= strtonum(start) && strtonum($2) < strtonum(end) && $3 ~ /^rw/{c+=(strtonum($2) - strtonum($1)) / 4096} END{print c}'</code></pre>
+<p>The result:</p>
+<pre><code>$ ./rolling-mmap
+0x7fa44f494000 0x7fa45f27c000
+$ <saved-maps.txt ./linux-count-rw-maps.sh 0x7fa44f494000 0x7fa45f27c000
+1
+$ for f in saved-maps-*.txt; do <"$f" ./linux-count-rw-maps.sh 0x7fa44f494000 0x7fa45f27c000; done
+1
+1
+4
+2
+2
+1
+1
+2
+2
+4
+0
+1
+2
+3
+1
+2
+2
+2
+1
+3</code></pre>
+<p>Well, that’s odd. Remember, <strong>the mapped region always has
+exactly 1 or 2 pages of memory with read-write permissions.</strong> And
+yet according to those copies of <code>/proc/[pid]/maps</code> sometimes
+there were 4, sometimes 3, sometimes 0.</p>
+<h2>Alternative: FreeBSD</h2>
+<p>Now let’s look at what result we may get on a system that uses a
+different API for fetching the same information. The FreeBSD
+<code>libprocstat</code> library provides <a
+href="https://cgit.freebsd.org/src/tree/lib/libprocstat/libprocstat.c?id=a880104a21bf41ebbb4ead26e6d4adda32bad76c#n1937"><code>procstat_getvmmap()</code></a>,
+which for running processes calls <code>kinfo_getvmmap()</code>:</p>
+<pre><code>struct kinfo_vmentry *
+procstat_getvmmap(struct procstat *procstat, struct kinfo_proc *kp,
+ unsigned int *cntp)
+{
+
+ switch(procstat->type) {
+ case PROCSTAT_KVM:
+ warnx("kvm method is not supported");
+ return (NULL);
+ case PROCSTAT_SYSCTL:
+ return (kinfo_getvmmap(kp->ki_pid, cntp));
+ case PROCSTAT_CORE:
+ return (kinfo_getvmmap_core(procstat->core, cntp));
+ default:
+ warnx("unknown access method: %d", procstat->type);
+ return (NULL);
+ }
+}</code></pre>
+<p><a
+href="https://cgit.freebsd.org/src/tree/lib/libutil/kinfo_getvmmap.c?id=a880104a21bf41ebbb4ead26e6d4adda32bad76c#n10"><code>kinfo_getvmmap()</code></a>
+in turn calls <code>sysctl</code> twice:</p>
+<pre><code>struct kinfo_vmentry *
+kinfo_getvmmap(pid_t pid, int *cntp)
+{
+ int mib[4];
+ int error;
+ int cnt;
+ size_t len;
+ char *buf, *bp, *eb;
+ struct kinfo_vmentry *kiv, *kp, *kv;
+
+ *cntp = 0;
+ len = 0;
+ mib[0] = CTL_KERN;
+ mib[1] = KERN_PROC;
+ mib[2] = KERN_PROC_VMMAP;
+ mib[3] = pid;
+
+ error = sysctl(mib, nitems(mib), NULL, &len, NULL, 0);
+ if (error)
+ return (NULL);
+ len = len * 4 / 3;
+ buf = malloc(len);
+ if (buf == NULL)
+ return (NULL);
+ error = sysctl(mib, nitems(mib), buf, &len, NULL, 0);
+ if (error) {
+ free(buf);
+ return (NULL);
+ }
+ // code snipped -- this is followed by unpacking
+ // the data into structs expected by callers</code></pre>
+<p>And now the consistency guarantees of this code. From the <a
+href="https://man.freebsd.org/cgi/man.cgi?query=sysctl&apropos=0&sektion=3&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html"><code>sysctl(3)</code>
+manpage</a>:</p>
+<blockquote>
+<p>Unless explicitly noted below, sysctl() returns a consistent snapshot
+of the data requested. Consistency is obtained by locking the
+destination buffer into memory so that the data may be copied out
+without blocking. Calls to sysctl() are serialized to avoid
+deadlock.</p>
+<p>[…]</p>
+<p>The information is copied into the buffer specified by oldp. The size
+of the buffer is given by the location specified by oldlenp before the
+call, and that location gives the amount of data copied after a
+successful call and after a call that returns with the error code
+ENOMEM. If the amount of data available is greater than the size of the
+buffer supplied, the call supplies as much data as fits in the buffer
+provided and returns with the error code ENOMEM. If the old value is not
+desired, oldp and oldlenp should be set to NULL.</p>
+</blockquote>
+<p>So the first call to <code>sysctl(3)</code> is to find out the size
+of the data to be fetched. After that, <code>kinfo_getvmmap()</code>
+allocates a buffer that’s a bit bigger (4/3 times) just in case the size
+changes in the mean time. The second call fetches the actual data. If
+the data is truncated, <code>sysctl(3)</code> will return an error and
+set <code>errno</code> to <code>ENOMEM</code>. In that situation,
+<code>kinfo_getvmmap()</code> is going to return <code>NULL</code>,
+which is going to be forwarded by <code>procstat_getvmmap()</code> to
+users of <code>libprocstat</code>. So <code>procstat_getvmmap()</code>
+either returns <code>NULL</code> or consistent accurate data. No other
+option.</p>
+<p>Now time for a demonstration. The most natural way to write the
+FreeBSD equivalent of what my little demo program does would be to use
+<code>procstat_getvmmap()</code> directly and check the permission bits
+in C. However, in order to make the comparison more direct, I also want
+this data to be in text at the end and the easiest way to do it is to
+shell out to <code>procstat</code>:</p>
+<pre><code>void freebsd_copy_maps_to_file(const char* dst, pid_t pid) {
+ char pid_str[11] = {0};
+ snprintf(pid_str, (sizeof pid_str) - 1, "%u", (unsigned) pid);
+
+ if (fork() == 0) {
+ int fd;
+ do {
+ fd = open(dst, O_CREAT | O_TRUNC | O_WRONLY, 0644);
+ } while (fd < 0 && errno == EINTR);
+
+ if (fd < 0) {
+ perror("open");
+ return;
+ }
+
+ // Redirect stdout to the output file.
+ if (dup2(fd, 1) < 0) {
+ perror("dup2");
+ return;
+ }
+ close(fd);
+
+ execl("/usr/bin/procstat", "procstat", "vm", pid_str, NULL);
+ perror("exec procstat");
+ return;
+ }
+
+ int child_pid;
+ do {
+ int stat_loc;
+ child_pid = wait(&stat_loc);
+ } while (child_pid < 0 && errno == EINTR);
+
+ if (child_pid < 0) {
+ perror("wait");
+ }
+}
+
+#ifdef __FreeBSD__
+#define copy_maps_to_file freebsd_copy_maps_to_file
+#endif</code></pre>
+<p>The FreeBSD <code>procstat</code> output is printed in a format which
+is a bit different than <code>/proc/[pid]/maps</code> on Linux so the
+script to parse it is also a bit different:</p>
+<pre><code>freebsd-count-rw-maps.sh</code><code>#!/usr/bin/env sh
+
+[ $# -ne 2 ] && (echo "usage: $0 <start> <end>"; exit)
+
+gawk -v start="$1" -v end="$2" 'BEGIN{c=0} strtonum($2) >= strtonum(start) && strtonum($2) < strtonum(end) && $4 ~ /^rw/{c+=(strtonum($3) - strtonum($2)) / 4096} END{print c}'</code></pre>
+<p>I have my FreeBSD box configured in such a way that one unprivileged
+process can’t read the memory maps of another process, so here I’m going
+to need to run the program with elevated privileges. The result:</p>
+<pre><code>$ doas ./rolling-mmap
+0x825f28000 0x835d10000
+$ <saved-maps.txt ./freebsd-count-rw-maps.sh 0x825f28000 0x835d10000
+1
+$ for f in saved-maps-*.txt; do <"$f" ./freebsd-count-rw-maps.sh 0x825f28000 0x835d10000; done
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1</code></pre>
+<p>Speaks for itself.</p>
+
+
+
+
+
+ Debugging vtable corruption with mmap
+
+ urn:uuid:89039ef2-435a-4fb0-95f8-60c7871f082a
+
+ 2024-06-06T00:00:00Z
+
+ 2024-06-11T00:00:00Z
+
+
+ <p>In the world of C++ programming memory corruption bugs are common.
+Sometimes you can track down their source with ASAN, but more often then
+not ASAN is not a practical solution given real-life constraints. Here
+is a short demonstration of how one can instead tweak how objects of a
+certain type are allocated in order to catch corruption of the vtable
+pointer. Inspired by real-life events.</p>
+<p>Let’s say we have a program of roughly this shape:</p>
+<pre><code>a.hpp</code><code>#pragma once
+
+class A {
+public:
+ virtual ~A() = default;
+ virtual int GetInt() const = 0;
+ void PrintInt() const;
+};
+</code></pre>
+<pre><code>a.cpp</code><code>#include "a.hpp"
+
+#include <stdio.h>
+
+void A::PrintInt() const {
+ int n = GetInt();
+ printf("%d\n", n);
+}</code></pre>
+<pre><code>b.hpp</code><code>#pragma once
+
+#include "a.hpp"
+
+class B : public A {
+public:
+ int GetInt() const override;
+};</code></pre>
+<pre><code>b.cpp</code><code>#include "b.hpp"
+
+int B::GetInt() const {
+ return 42;
+}</code></pre>
+<pre><code>test1.cpp</code><code>#include "b.hpp"
+
+int main() {
+ A* a = new B;
+ void** vtable_ptr = (void**) a;
+ *vtable_ptr = (void*)0xdeadbeef;
+ a->PrintInt();
+ delete a;
+}</code></pre>
+<p>In such a short program the memory corruption is trivial to find and
+unlikely to be made. But, let me assure you, this debugging story is
+inspired by real events and in a real-life program the memory corruption
+is much harder to find and more likely to be made.</p>
+<p>To compile:</p>
+<pre><code>g++ -std=c++17 -Wall -Wextra -Og -g -o test1 test1.cpp a.cpp b.cpp</code></pre>
+<p>Now let’s run this program:</p>
+<pre><code>$ ./test1
+zsh: segmentation fault ./test1</code></pre>
+<p>A crash.</p>
+<h2>Finding the cause of the crash</h2>
+<p>Let’s run it under a debugger. Here we do it live. In reality you’ll
+probably only get a core dump, but in this instance a core dump would
+also be entirely sufficient.</p>
+<pre><code>$ gdb ./test1
+--- GDB spam omitted ---
+(gdb) r
+Starting program: /home/yakubin/code/vtable-corruption/test1
+
+Program received signal SIGSEGV, Segmentation fault.
+0x0000555555555199 in A::PrintInt (this=0x55555556aeb0) at a.cpp:6
+6 int n = GetInt();</code></pre>
+<p>First step now is to determine what instruction causes the segfault.
+In order to find out, we disassemble the instruction that the program
+counter points to:</p>
+<pre><code>(gdb) set disassembly-flavor intel
+(gdb) x/i $pc
+=> 0x555555555199 <_ZNK1A8PrintIntEv+7>: call QWORD PTR [rax+0x10]</code></pre>
+<p>Ok. It tries to call a function whose address is 16 bytes after the
+address contained in the rax register. Where does the value of rax come
+from? Let’s disassemble all instructions in current function until the
+current one to get some context:</p>
+<pre><code>(gdb) x/3i _ZNK1A8PrintIntEv
+ 0x555555555192 <_ZNK1A8PrintIntEv>: sub rsp,0x8
+ 0x555555555196 <_ZNK1A8PrintIntEv+4>: mov rax,QWORD PTR [rdi]
+=> 0x555555555199 <_ZNK1A8PrintIntEv+7>: call QWORD PTR [rax+0x10]</code></pre>
+<p>It seems that rax contains a value loaded from the address stored in
+rdi. This pattern – a read from memory, followed by another read from
+memory displaced by a constant, followed by a call (on x86 the last two
+are fused into one, but on load-store architectures like ARM they’re
+separate) – always screams to me “vtable indirection”, i.e. a virtual
+method call. The <code>mov</code> reads the address of the vtable from
+the rdi register. The <code>call</code> reads the address of a virtual
+method, which it would later jump to.</p>
+<p>Another piece of corroborating evidence for this hypothesis is the
+fact that the supposed vtable address is read from the rdi register,
+which, according to the Unix System V AMD64 ABI, holds the first
+function argument. In C++ <code>this</code> is implicitly passed as the
+first argument and typically vtable address is stored at the beginning
+of each object which has a vtable. We can check that indeed rdi holds
+the value of <code>this</code>:</p>
+<pre><code>(gdb) p/x this
+$1 = 0x55555556aeb0
+(gdb) p/x $rdi
+$2 = 0x55555556aeb0</code></pre>
+<p>Similar heuristics can be applied on other platforms based on cursory
+familiarity with their ABIs.</p>
+<p>Finally, we can inspect what the current vtable address is:</p>
+<pre><code>(gdb) p/x *(void**)$rdi
+$3 = 0xdeadbeef</code></pre>
+<p>Alternatively:</p>
+<pre><code>(gdb) p/x $rax
+$4 = 0xdeadbeef</code></pre>
+<p>That’s the value we put in our code to simulate memory
+corruption.</p>
+<h2>Finding the memory corruption</h2>
+<p>We know some of our memory is corrupted, but we don’t know who did
+it. To find out, we’ll use memory permissions. We can allocate our
+objects in such a way that the vtable address is going to be stored in
+read-only memory, while everything else will be in read-write memory.
+This way if someone tries to overwrite it, the program will crash. So
+the end result is going to be the same as before, but this time the
+backtrace is going to show us who’s really at fault.</p>
+<p>Memory permissions can be set with page granularity, so we’re going
+to need two pages for each object (assuming each object fits in a single
+page, which it should or else you have very big structs).</p>
+<p>The code:</p>
+<pre><code>test2.cpp</code><code>#include <new>
+#include <stdio.h>
+#include <sys/mman.h>
+#include <unistd.h>
+
+#include "b.hpp"
+
+int main() {
+ long pagesize = sysconf(_SC_PAGESIZE);
+
+ // Map 2 pages with read-write permissions.
+ char* p = (char*) mmap(NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
+ if (p == MAP_FAILED) {
+ perror("mmap");
+ return 1;
+ }
+
+ // Calculate the address that is one pointer size before the end of
+ // the first page.
+ char* buf = p + pagesize - sizeof p;
+
+ // We use placement new operator to place the object in previously allocated
+ // memory, running its constructor, initialising the vtable address etc.
+ A* a = new (buf) B;
+ void** vtable_ptr = (void**) a;
+
+ // Make the first page read-only after the object is constructed
+ // (i.e. the vtable address is already written).
+ if (mprotect(p, pagesize, PROT_READ) != 0) {
+ perror("mprotect");
+ return 2;
+ }
+
+ *vtable_ptr = (void*)0xdeadbeef;
+ a->PrintInt();
+
+ // Make the first page read-write again before calling the destructor.
+ if (mprotect(p, pagesize, PROT_READ | PROT_WRITE) != 0) {
+ perror("mprotect");
+ return 3;
+ }
+
+ // Calling the destructor and freeing memory.
+ a->~A();
+ munmap(p, 2 * pagesize);
+}</code></pre>
+<p>Compile:</p>
+<pre><code>g++ -std=c++17 -Wall -Wextra -Og -g -o test2 test2.cpp a.cpp b.cpp</code></pre>
+<p>And this time gdb shows the line that corrupted the memory instead of
+the one that crashed later because of it:</p>
+<pre><code>(gdb) r
+Starting program: /home/yakubin/code/vtable-corruption/test2
+
+Program received signal SIGSEGV, Segmentation fault.
+0x000055555555520f in main () at test2.cpp:35
+35 *vtable_ptr = (void*)0xdeadbeef;</code></pre>
+<h2>Watchpoints</h2>
+<p>You could theoretically use GDB watchpoints for the same purpose,
+but:</p>
+<ol type="1">
+<li>Each CPU supports only a limited number of hardware watchpoints –
+e.g. amd64 supports 4. Once you set one more watchpoint, GDB emulates
+watchpoints in software, single-stepping every instruction one at a
+time. This makes reproduction of the issue unlikely, since your program
+will cease to be functional in any way much earlier. So if we don’t know
+ahead of time which of a large number of objects of a given type is
+going to have its vtable pointer corrupted, this is not practical.
+(There is the <code>rr</code> reverse debugger, but its range of
+supported hardware platforms is so narrow that it could as well not
+exist.)</li>
+<li>To set watchpoints, you need to be live-debugging the issue. In
+reality you’re probably not even present when the issue is reproduced
+and all you get is a core dump. With the approach that I presented here
+on the other hand, you don’t need to be present during reproduction and
+the device where the issue is reproduced doesn’t even need to have gdb
+or gdbserver installed. Your level of interference with the environment
+is generally minimal.</li>
+</ol>
+
+
+
+
+
+ Using external tools inside Docker containers
+
+ urn:uuid:5d97930d-0e90-470b-94a7-affcc3b7f111
+
+ 2024-05-27T00:00:00Z
+
+ 2024-05-27T00:00:00Z
+
+
+ <p>I often work with Docker containers which lack basic observability
+tools like <code>ss</code> (the new Linux <code>netstat</code>).
+Luckily, thanks to <code>nsenter</code>, it’s possible to use programs
+from the host inside containers.</p>
+<p>Let’s say I started an Ubuntu container:</p>
+<pre><code>$ docker container ls
+CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
+91c5c431ebb0 ubuntu:20.04 "/bin/bash" 5 minutes ago Up 5 minutes agitated_cohen</code></pre>
+<p>First we need to get the PID of the main process within the
+container:</p>
+<pre><code>$ docker inspect -f '{{.State.Pid}}' 91c5c431ebb0
+17802</code></pre>
+<p>Now we can use <code>nsenter</code> to run a command inside the
+network namespace (<code>-n</code> flag) of the container:</p>
+<pre><code>$ sudo nsenter -t 17802 -n ss -lntp
+State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
+LISTEN 0 1 0.0.0.0:80 0.0.0.0:* users:(("nc",pid=18381,fd=3))</code></pre>
+<p>Putting it all together:</p>
+<pre><code>$ sudo nsenter -t "$(docker inspect -f '{{.State.Pid}}' 91c5c431ebb0)" -n ss -lntp
+State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
+LISTEN 0 1 0.0.0.0:80 0.0.0.0:* users:(("nc",pid=18381,fd=3))</code></pre>
+
+
+
+
+
+ Windows UTC clock
+
+ urn:uuid:7f26868a-a5f9-4007-8644-badb2dbb9ae7
+
+ 2024-05-14T00:00:00Z
+
+ 2024-05-14T00:00:00Z
+
+
+ <p>If you use Windows along with any other OS on the same computer in a
+dual-boot setup, you will run into the issue that, each time you boot
+Windows after using another OS, or boot another OS after using Windows,
+the system clock will show incorrect time until NTP corrects it.</p>
+<p>This is because Windows interprets the value stored in the hardware
+real-time clock as local time, while every other OS interprets it as UTC
+time. So after boot each OS reads the value and interprets it relative
+to the wrong timezone, and then after NTP synchronisation it writes time
+relative to a different timezone than the other OS expects.</p>
+<p>To fix the issue, run the following command in Administrator’s
+Powershell:</p>
+<pre><code>Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation -Name RealTimeIsUniversal -Value 1 -Type DWord -Force</code></pre>
+<p>It will change an entry in the Windows Registry, convincing Windows
+to treat the value stored by the real-time clock as UTC time.</p>
+
+
+
+
+
+ Archived links
+
+ urn:uuid:9d38ab97-cda2-44a0-bf8f-08b659de22f7
+
+ 2023-05-13T00:00:00Z
+
+ 2025-02-20T00:00:00Z
+
+
+ <p><a href="https://dwheeler.com/essays/fixing-unix-linux-filenames.html">Fixing
+Unix/Linux/POSIX Filenames: Control Characters (such as Newline),
+Leading Dashes, and Other Problems</a>
+(<a href="https://web.archive.org/web/20250130122641/https://dwheeler.com/essays/fixing-unix-linux-filenames.html">archive</a>)</p>
+<p><a href="https://pvk.ca/Blog/2012/07/30/binary-search-is-a-pathological-case-for-caches/">Binary
+search is a pathological case for caches</a>
+(<a href="https://web.archive.org/web/20250206211110/https://www.pvk.ca/Blog/2012/07/30/binary-search-is-a-pathological-case-for-caches/">archive</a>)</p>
+<p><a href="https://papers.freebsd.org/2006/bsdcan/evans-jemalloc.files/evans-jemalloc-paper.pdf">A
+Scalable Concurrent malloc(3) Implementation for FreeBSD</a>
+(<a href="https://web.archive.org/web/20241115215529/https://papers.freebsd.org/2006/bsdcan/evans-jemalloc.files/evans-jemalloc-paper.pdf">archive</a>)</p>
+<p><a href="https://www.ryanjuckett.com/printing-floating-point-numbers/">Printing
+Floating-Point Numbers</a>
+(<a href="https://web.archive.org/web/20241213214811/https://www.ryanjuckett.com/printing-floating-point-numbers/">archive</a>)</p>
+<p><a href="https://www.informit.com/articles/article.aspx?p=1390172">The
+Failure of the GPL by David Chisnall</a>
+(<a href="https://web.archive.org/web/20240612221434/https://www.informit.com/articles/article.aspx?p=1390172">archive</a>)</p>
+<p><a href="https://lemire.me/blog/2016/06/30/fast-random-shuffling/">Fast
+random shuffling</a>
+(<a href="http://web.archive.org/web/20231207131657/https://lemire.me/blog/2016/06/30/fast-random-shuffling/">archive</a>)</p>
+<p><a href="https://www.pcg-random.org/posts/bounded-rands.html">Efficiently
+Generating a Number in a Range</a>
+(<a href="http://web.archive.org/web/20240913190638/https://www.pcg-random.org/posts/bounded-rands.html">archive</a>)</p>
+<p><a href="https://codingnest.com/generating-random-numbers-using-c-standard-library-the-problems/">Generating
+random numbers using C++ standard library: the problems</a>
+(<a href="https://web.archive.org/web/20241213221133/https://codingnest.com/generating-random-numbers-using-c-standard-library-the-problems/">archive</a>)</p>
+<p><a href="https://man.freebsd.org/cgi/man.cgi?query=knockd&apropos=0&sektion=0&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html">Port
+knocking (get rid of noise from sshd logs)</a>
+(<a href="https://web.archive.org/web/20240605232217/https://man.freebsd.org/cgi/man.cgi?query=knockd&apropos=0&sektion=0&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html">archive</a>)</p>
+<p><a href="https://lwn.net/Articles/276782/">20-part linker essay by
+Ian Lance Taylor</a>
+(<a href="https://web.archive.org/web/20240424081856/https://lwn.net/Articles/276782/">archive</a>)</p>
+<p><a href="https://www.scs.stanford.edu/~dm/blog/va-opt.html">Recursive
+macros with C++20 __VA_OPT__</a>
+(<a href="https://web.archive.org/web/20240415055231/https://www.scs.stanford.edu/~dm/blog/va-opt.html">archive</a>)</p>
+<p><a href="https://brendangregg.com/blog/2015-03-12/freebsd-offcpu-flame-graphs.html">FreeBSD
+Off-CPU Flame Graphs</a>
+(<a href="https://web.archive.org/web/20240224225723/https://www.brendangregg.com/blog/2015-03-12/freebsd-offcpu-flame-graphs.html">archive</a>)</p>
+<p><a href="https://bford.info/pub/net/p2pnat/index.html">Peer-to-Peer
+Communication Across NATs</a>
+(<a href="https://web.archive.org/web/20221207090527/https://bford.info/pub/net/p2pnat/index.html">archive</a>)</p>
+<p><a href="https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/coroutines-philosophy/">Philosophy
+of coroutines</a>
+(<a href="https://web.archive.org/web/20240202062134/https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/coroutines-philosophy/">archive</a>)</p>
+<p><a href="https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html">Things
+UNIX can do atomically</a>
+(<a href="https://web.archive.org/web/20240229021849/https://rcrowley.org/2010/01/06/things-unix-can-do-atomically.html">archive</a>)</p>
+<p><a href="https://mmapped.blog/posts/23-numeric-tower-fiasco">The
+numeric tower fiasco</a>
+(<a href="https://web.archive.org/web/20240530072613/https://mmapped.blog/posts/23-numeric-tower-fiasco">archive</a>)</p>
+<hr/>
+<p>Somehow I got nerd-sniped into reading not just one, but three
+articles on fixed-point sine approximation.</p>
+<p><a href="https://www.nullhardware.com/blog/fixed-point-sine-and-cosine-for-embedded-systems/">5th
+Order Polynomial Fixed-Point Sine Approximation</a>
+(<a href="https://web.archive.org/web/20230611005525/https://www.nullhardware.com/blog/fixed-point-sine-and-cosine-for-embedded-systems/">archive</a>)</p>
+<p><a href="https://www.coranac.com/2009/07/sines/">Another fast
+fixed-point sine approximation</a>
+(<a href="https://web.archive.org/web/20240211112404/https://www.coranac.com/2009/07/sines/">archive</a>)</p>
+<p><a href="https://web.archive.org/web/20160512180550/http://console-dev.de/wordpress/?p=138">Nintendo
+DS: Sine approximation using fixed point math</a></p>
+<hr/>
+<p><a href="https://swtch.com/~rsc/regexp/regexp1.html">Regex#1: Regular
+Expression Matching Can Be Simple And Fast</a>
+(<a href="https://web.archive.org/web/20250213044918/https://swtch.com/~rsc/regexp/regexp1.html">archive</a>)</p>
+<p><a href="https://swtch.com/~rsc/regexp/regexp2.html">Regex#2: Regular
+Expression Matching: the Virtual Machine Approach</a>
+(<a href="https://web.archive.org/web/20250124121122/https://swtch.com/~rsc/regexp/regexp2.html">archive</a>)</p>
+<p><a href="https://swtch.com/~rsc/regexp/regexp3.html">Regex#3: Regular
+Expression Matching in the Wild</a>
+(<a href="https://web.archive.org/web/20250211004719/https://swtch.com/~rsc/regexp/regexp3.html">archive</a>)</p>
+<p><a href="https://swtch.com/~rsc/regexp/regexp4.html">Regex#4: Regular
+Expression Matching with a Trigram Index</a>
+(<a href="https://web.archive.org/web/20250213081532/https://swtch.com/~rsc/regexp/regexp4.html">archive</a>)</p>
+<hr/>
+<p><a href="https://carter.sande.duodecima.technology/javascript-page-navigation/">Browsers
+are pretty good at loading pages, it turns out</a></p>
+<p><a href="https://blog.hqcodeshop.fi/archives/273-GNU-Parted-Solving-the-dreaded-The-resulting-partition-is-not-properly-aligned-for-best-performance.html">GNU
+Parted: Solving the dreaded “The resulting partition is not properly
+aligned for best performance”</a>
+(<a href="https://web.archive.org/web/20250106141555/https://blog.hqcodeshop.fi/archives/273-GNU-Parted-Solving-the-dreaded-The-resulting-partition-is-not-properly-aligned-for-best-performance.html">archive</a>)</p>
+<p><a href="https://dougallj.github.io/applecpu/firestorm.html">Apple M1
+microarchitecture documentation</a>
+(<a href="https://web.archive.org/web/20240521005242/https://dougallj.github.io/applecpu/firestorm.html">archive</a>)</p>
+<p><a href="https://graphics.stanford.edu/~seander/bithacks.html">Bit
+Twiddling Hacks</a>
+(<a href="https://web.archive.org/web/20240526115215/http://graphics.stanford.edu/~seander/bithacks.html">archive</a>)</p>
+<p><a href="https://www.researchgate.net/publication/2809440_Using_de_Bruijn_Sequences_to_Index_a_1_in_a_Computer_Word">Using
+de Bruijn Sequences to Index a 1 in a Computer Word</a></p>
+<p><a href="https://outerproduct.net/2021-02-13_att-asm.html">Why no one
+should use the AT&T syntax ever, for any reason, under any
+circumstances</a>
+(<a href="https://web.archive.org/web/20250201103905/https://outerproduct.net/2021-02-13_att-asm.html">archive</a>)</p>
+<p><a href="https://lore.kernel.org/lkml/20040923234520.GA7303@pclin040.win.tue.nl/">Re:
+[PATCH] oom_pardon, aka don’t kill my xlock</a>
+(<a href="https://web.archive.org/web/20231211101343/https://lore.kernel.org/lkml/20040923234520.GA7303@pclin040.win.tue.nl/">archive</a>)</p>
+
+
+
+
+
+ Atomic site updates
+
+ urn:uuid:99b11ccd-fae6-4565-9bf8-0f962d7e9d18
+
+ 2023-01-16T00:00:00Z
+
+ 2024-04-19T00:00:00Z
+
+
+ <p>Whenever I have new photos to add to my website, it takes a while for
+rsync to upload them. It leaves a short time window, during which
+loading my website used to result in it being loaded only partially,
+with placeholders for photos which failed to load, because the HTML got
+updated before the new photos were uploaded. To solve this issue, I
+decided to dig into how to atomically update a static site. It turns out
+to be pretty easy.</p>
+<p>The first step is to make the webroot a symlink. Neither Caddy, nor
+Nginx cache the canonical path this symlink resolves to, which is very
+fortunate. You place one version of your website in a directory next to
+it and point the symlink at that directory. When you want to update the
+website, you upload it into yet another directory next to it, create a
+new symlink, which points to the new directory, and overwrite the
+original symlink with the new one, using the <code>rename()</code>
+syscall (which is atomic). You then delete the old directory.</p>
+<p>To optimise the upload itself, you may use the rsync
+<code>--link-dest</code> option to avoid transferring, or indeed even
+writing new files, when they’re unchanged from the previous version.
+Instead rsync will create hardlinks to the old files in the new
+directory. It makes the transfer faster and avoids a temporary doubling
+of disk use.</p>
+<p>Now the code.</p>
+<pre><code>Caddyfile</code><code>yakubin.com, www.yakubin.com {
+ root * /website/current
+ file_server
+}</code></pre>
+<pre><code>$ ls -l /website
+total 8
+drwxr-xr-x 6 yakubin yakubin 512 Jan 15 11:22 I7wyFs
+lrwxr-xr-x 1 yakubin yakubin 6 Jan 15 11:22 current -> I7wyFs
+-rwxr-xr-x 1 yakubin yakubin 180 Jan 6 01:45 switch.sh</code></pre>
+<pre><code>/website/switch.sh</code><code>#!/usr/bin/env sh
+
+set -euxo pipefail
+
+ln -s "$1" new-current
+mv -fh new-current current # If you're on Linux, replace "-fh" with "-fT"
+
+# Remove all directories except the one with the current website version
+find . -mindepth 1 -maxdepth 1 -type d | grep -Fxv "./$(readlink current)" | xargs rm -rf</code></pre>
+<p>FreeBSD’s <code>mv</code> has the <code>-h</code> option, which is
+documented in its man page as follows:</p>
+<pre><code>-h If the target operand is a symbolic link to a directory, do not
+ follow it. This causes the mv utility to rename the file source
+ to the destination path target rather than moving source into the
+ directory referenced by target.</code></pre>
+<p>On Linux the same thing is done with <code>-T</code>.</p>
+<p>And now the upload script. It accepts a path to a local directory
+with the new website version as its first and only command line
+argument:</p>
+<pre><code>#!/usr/bin/env sh
+
+set -eux
+
+# Setting pipefail breaks this script.
+
+directory="$(</dev/urandom LC_ALL=C tr -cd 'A-Za-z0-9' | head -c 6)"
+rsync -crlDivz --link-dest=../current/ "$1"/ yakubin.com:"/website/$directory/"
+ssh yakubin.com "cd /website; ./switch.sh $directory"</code></pre>
+
+
+
+
+
+ Reserve and commit
+
+ urn:uuid:cf3298a6-76d3-4667-8c34-81f6f4dbad48
+
+ 2023-01-14T00:00:00Z
+
+ 2024-06-11T00:00:00Z
+
+
+ <p>This page contains a bit of maths. To view it correctly you need a
+web browser which supports MathML. That means either Firefox, Safari or
+Chrome. Chrome should be in version 109 or later.</p>
+<p>I’ve been working on a yet-unpublished side project in Rust and
+decided to use a bump allocator provided by <code>bumpalo</code> to
+simplify lifetimes and improve performance of my code. Generally, making
+lots of micro-allocations and then freeing them one by one is far from
+optimal, when you can instead group them into larger allocations and
+free all at once. In the same way, a large number of little objects with
+their own separate lifetimes is a lot harder to keep track of
+conceptually than when their lifetimes are grouped into just a few
+longer ones. Fewer, longer lifetimes also make working with the
+borrow-checker easier.</p>
+<p>In broad strokes, <code>bumpalo</code> provides memory by allocating
+chunks of memory from the OS and keeping track of how many bytes in the
+last chunk are already used. When you request
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+bytes from <code>bumpalo</code>, it gives you memory from the free
+portion of the last chunk and increments its counter of used bytes. When
+there isn’t enough space in the last chunk, it allocates another one and
+does the same.</p>
+<p>Works well enough. However:</p>
+<ol type="1">
+<li>It involves much more memory management code than I’d like.</li>
+<li>It fragments memory over disparate chunks, where there’s likely
+always going to be unused space left at the end of each chunk.</li>
+<li>Freeing <code>Bump</code> takes linear time relative to the number
+of chunks.</li>
+<li>Reserving memory upfront by setting capacity avoids fragmentation
+into chunks, but it takes that amount of memory from the OS, regardless
+of whether all that memory is actually going to be used. That means the
+user needs to have very precise upfront expectations of memory use if
+they want to avoid fragmentation by reserving. Whether it’s difficult
+and fragile, or impossible varies on a case-by-case basis.</li>
+</ol>
+<p>There is a way to implement a bump allocator without using chunks,
+and without taking unnecessary memory from the OS. I’m going to describe
+it later down this page, but first I want to establish a data structure
+which could serve as a benchmark of whether that allocator is any
+good.</p>
+<p>In this text I’m going to use C++, because it’s the official language
+of Windows APIs, it makes it easy to access C APIs on other platforms as
+well, and it’s more established than Rust, so talking about data
+structures provided by the C++ standard library is going to meet with
+less suspicion than doing the same with the Rust standard library.</p>
+<h2>Dynamic arrays</h2>
+<p>Dynamic arrays are arrays which can change their length. A typical
+implementation of this data structure, such as <code>std::vector</code>,
+when it isn’t being modified, behaves like a normal array, meaning that
+it holds its elements in a contiguous memory buffer.
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>N</mi><annotation encoding="application/x-tex">N</annotation></semantics></math>th
+element (starting from
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>)
+starts at
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">N \times M</annotation></semantics></math>
+bytes after the start of
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>th
+element, when each element is
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>M</mi><annotation encoding="application/x-tex">M</annotation></semantics></math>
+bytes long. Length (reported by <code>size()</code>) and capacity
+(<code>capacity()</code>) are stored on the side. Length is the number
+of elements currently stored, while capacity is the number of elements
+<code>std::vector</code> is capable of storing in the current
+allocation.
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo>≤</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">\mathit{Length} \le \mathit{Capacity}</annotation></semantics></math>.</p>
+<p>To store its elements, <code>std::vector</code> asks the allocator
+for a buffer big enough to store all elements. When you append an
+element to the end using <code>push_back()</code>,
+<code>std::vector</code> checks whether the last allocation has enough
+extra space to hold another element between the current last element and
+the end of allocation. In other words, it checks whether
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo>+</mo><mn>1</mn><mo>≤</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">\mathit{Length} + 1 \le \mathit{Capacity}</annotation></semantics></math>.
+If yes, then it puts the new element right after the current last
+element and updates the length by adding
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+to it.</p>
+<p>If however
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo>=</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">\mathit{Length} = \mathit{Capacity}</annotation></semantics></math>,
+then there is no more space in the current allocation. In that case,
+<code>std::vector</code> asks the allocator for another buffer, this
+time of size
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>×</mo><mrow><mi>𝐶</mi><mi>𝑎</mi><mi>𝑝</mi><mi>𝑎</mi><mi>𝑐</mi><mi>𝑖</mi><mi>𝑡</mi><mi>𝑦</mi></mrow></mrow><annotation encoding="application/x-tex">G\times\mathit{Capacity}</annotation></semantics></math>.
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>G</mi><annotation encoding="application/x-tex">G</annotation></semantics></math>
+is called the <em>growth factor</em>. <code>libstdc++</code> and
+<code>libc++</code> use
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">G=2</annotation></semantics></math>.
+MSVC uses
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mfrac><mn>3</mn><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex">G=\frac{3}{2}</annotation></semantics></math>.</p>
+<p>After allocating the new bigger buffer, elements from the old buffer
+are copied to the new one and the new element is put after them. Old
+buffer is freed, length is incremented by
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>,
+and capacity is set to the size of the newly-allocated buffer.</p>
+<h3>Performance Cost</h3>
+<h4>Time</h4>
+<p>If the <code>std::vector</code> had
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>N</mi><annotation encoding="application/x-tex">N</annotation></semantics></math>
+elements before the whole operation, all of that required
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mi>N</mi><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(N)</annotation></semantics></math>
+steps (due to copying). However, this copying doesn’t happen at every
+<code>push_back()</code>. It happens at every
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mi>G</mi><mi>N</mi></msup><annotation encoding="application/x-tex">G^N</annotation></semantics></math>th
+<code>push_back()</code>. In other cases this method takes constant
+time.</p>
+<p>If we consider a sequence of
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+<code>push_back()</code> calls, then they are going to include
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><annotation encoding="application/x-tex">\lceil\log_{G}n\rceil</annotation></semantics></math>
+calls which copy the underlying buffer, and
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><annotation encoding="application/x-tex">n - \lceil\log_{G}n\rceil</annotation></semantics></math>
+calls which do not. All the copies taken together are going to take
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mo>+</mo><mi>G</mi><mo>+</mo><msup><mi>G</mi><mn>2</mn></msup><mo>+</mo><mi>⋯</mi><mo>+</mo><msup><mi>G</mi><mrow><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow></msup><mo>=</mo><mfrac><mrow><msup><mi>G</mi><mrow><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow></msup><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>≈</mo><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac></mrow><annotation encoding="application/x-tex">1 + G + G^2 + \cdots + G^{\lceil\log_{G}n\rceil} = \frac{G^{\lceil\log_{G}n\rceil} - 1}{G - 1} \approx \frac{n - 1}{G - 1}</annotation></semantics></math>
+steps. The copy-less <code>push_back()</code> calls taken together are
+going to take
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><annotation encoding="application/x-tex">n - \lceil\log_{G}n\rceil</annotation></semantics></math>
+steps. Adding it together we get that all <code>push_back()</code> calls
+together cost us
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>+</mo><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(\frac{n - 1}{G - 1} + n - \lceil\log_{G}n\rceil)</annotation></semantics></math>.</p>
+<p>There are
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+<code>push_back()</code> calls, so on average <code>push_back()</code>
+takes constant time:</p>
+<center>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>+</mo><mi>n</mi><mo>−</mo><mo stretchy="false" form="prefix">⌈</mo><msub><mo>log</mo><mi>G</mi></msub><mi>n</mi><mo stretchy="false" form="postfix">⌉</mo></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn></mrow><mrow><mi>G</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo>+</mo><mi>n</mi></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mi>n</mi><mo>−</mo><mn>1</mn><mo>+</mo><mi>n</mi></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mfrac><mrow><mn>2</mn><mi>n</mi></mrow><mi>n</mi></mfrac><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mn>2</mn><mo stretchy="true" form="postfix">)</mo></mrow><mo>=</mo><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(\frac{\frac{n - 1}{G - 1} + n - \lceil\log_{G}n\rceil}{n}) = O(\frac{\frac{n - 1}{G - 1} + n}{n}) = O(\frac{n - 1 + n}{n}) = O(\frac{2n}{n}) = O(2) = O(1)</annotation></semantics></math>
+</center>
+<p>That’s why it’s sometimes said that
+<code>std::vector::push_back()</code> takes constant time
+<em>amortised</em> – the cost of every expensive
+<code>push_back()</code>, which copies
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+elements, is amortised over
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+previous <code>push_back()</code>s, each of which took constant
+time.</p>
+<p>However, the latency of <code>push_back()</code> is pretty bad, as
+demonstrated by the measurements later in this note.</p>
+<h4>Space</h4>
+<p>Between allocating the new buffer and discarding the old one after
+copying it, the two buffers occupied
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mo stretchy="true" form="prefix">(</mo><mi>N</mi><mo>+</mo><mi>G</mi><mo>×</mo><mi>N</mi><mo stretchy="true" form="postfix">)</mo></mrow><mo>×</mo><mi>M</mi><mo>=</mo><mrow><mo stretchy="true" form="prefix">(</mo><mi>G</mi><mo>+</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow><mo>×</mo><mi>N</mi><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">(N + G \times N) \times M = (G+1) \times N \times M</annotation></semantics></math>
+bytes of memory, which means that in order to get an
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>+</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">N+1</annotation></semantics></math>-element
+<code>std::vector</code>, we need almost
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>+</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">G+1</annotation></semantics></math>
+times as much memory as is needed for our elements. That’s
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+times for <code>libstdc++</code> and <code>libc++</code>, and
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2.5</mn><annotation encoding="application/x-tex">2.5</annotation></semantics></math>
+times for MSVC. It’s a short time window, so most of the time it isn’t
+terrible, but sometimes we may not have this much memory available to
+us.</p>
+<p>After <code>push_back()</code> finishes, we’re using
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>×</mo><mi>N</mi><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">G \times N \times M</annotation></semantics></math>
+bytes to store our
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mo stretchy="true" form="prefix">(</mo><mi>N</mi><mo>+</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow><mo>×</mo><mi>M</mi></mrow><annotation encoding="application/x-tex">(N+1) \times M</annotation></semantics></math>,
+which gives us the lower bound for space utilisation. For
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mfrac><mn>3</mn><mn>2</mn></mfrac></mrow><annotation encoding="application/x-tex">G=\frac{3}{2}</annotation></semantics></math>,
+space utilisation of <code>std::vector</code> is in the range
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">(</mo><mfrac><mn>2</mn><mn>3</mn></mfrac><mo>,</mo><mn>1</mn><mo stretchy="false" form="postfix">]</mo></mrow><annotation encoding="application/x-tex">(\frac{2}{3}, 1]</annotation></semantics></math>.
+For
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>G</mi><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">G=2</annotation></semantics></math>,
+it is in the range
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">(</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mo>,</mo><mn>1</mn><mo stretchy="false" form="postfix">]</mo></mrow><annotation encoding="application/x-tex">(\frac{1}{2}, 1]</annotation></semantics></math>.</p>
+<p>Not terrible, not great.</p>
+<h3>Complexity cost</h3>
+<p>Due to all the copying, our program cannot depend on any elements
+staying in one place for too long. If we want to refer to a string
+stored in a <code>std::vector</code>, we cannot simply grab a
+reference/pointer/<code>string_view</code> to it, as that could result
+in a dangling reference/pointer after a <code>push_back()</code>
+call.</p>
+<p>We could work around this problem by grabbing index of the string in
+that <code>std::vector</code>. However, that would mean that functions
+operating on that string would need to operate on such indices instead
+of references/pointers to strings, which in turn would mean that they
+would either need to take the <code>std::vector</code> as another
+argument, or that they would work only with strings from a selected
+<code>std::vector</code>. That would make using those functions in
+different contexts difficult. E.g. we wouldn’t be able to just pass a
+string directly to those functions in tests (normal, or transient).</p>
+<p>We also wouldn’t be able to easily refer to substrings without
+copying them or creating a substring struct of the form
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="true" form="prefix">(</mo><mrow><mi>𝐼</mi><mi>𝑛</mi><mi>𝑑</mi><mi>𝑒</mi><mi>𝑥</mi><mi>𝑂</mi><mi>𝑓</mi><mi>𝑆</mi><mi>𝑡</mi><mi>𝑟</mi><mi>𝑖</mi><mi>𝑛</mi><mi>𝑔</mi></mrow><mo>,</mo><mrow><mi>𝑆</mi><mi>𝑡</mi><mi>𝑎</mi><mi>𝑟</mi><mi>𝑡</mi><mi>𝑃</mi><mi>𝑜</mi><mi>𝑠</mi></mrow><mo>,</mo><mrow><mi>𝐸</mi><mi>𝑛</mi><mi>𝑑</mi><mi>𝑃</mi><mi>𝑜</mi><mi>𝑠</mi></mrow><mo>,</mo><mrow><mi>𝑉</mi><mi>𝑒</mi><mi>𝑐</mi></mrow><mo stretchy="true" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">(\mathit{IndexOfString}, \mathit{StartPos}, \mathit{EndPos}, \mathit{Vec})</annotation></semantics></math>,
+which is a lot more things to keep track of than just a plain
+<code>std::string_view</code>, i.e. a
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="true" form="prefix">(</mo><mrow><mi>𝑃</mi><mi>𝑜</mi><mi>𝑖</mi><mi>𝑛</mi><mi>𝑡</mi><mi>𝑒</mi><mi>𝑟</mi><mi>𝑇</mi><mi>𝑜</mi><mi>𝑆</mi><mi>𝑡</mi><mi>𝑎</mi><mi>𝑟</mi><mi>𝑡</mi></mrow><mo>,</mo><mrow><mi>𝐿</mi><mi>𝑒</mi><mi>𝑛</mi><mi>𝑔</mi><mi>𝑡</mi><mi mathvariant="italic">h</mi></mrow><mo stretchy="true" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">(\mathit{PointerToStart}, \mathit{Length})</annotation></semantics></math>.
+And again, the functions operating on those structs would be confined to
+operating only on those special objects instead of arbitrary
+substrings.</p>
+<p>Surely, there must be a way to make it all simpler and more
+efficient?</p>
+<h2>Virtual memory</h2>
+<p>Let’s take a step back and ponder what it means to allocate memory on
+a typical operating system these days. Essentially, we want to get
+access to a region of RAM. That access is controlled by the OS and the
+CPU using a <em>memory management unit</em> (MMU).</p>
+<p>These components logically divide memory into <em>pages</em>. A page
+usually spans
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>kiB
+of memory. To address every byte in such a page we need
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mo>log</mo><mn>2</mn></msub><mn>4096</mn><mo>=</mo><mn>12</mn></mrow><annotation encoding="application/x-tex">\log_{2}4096 = 12</annotation></semantics></math>
+bits, so we can treat the first
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>64</mn><mo>−</mo><mn>12</mn><mo>=</mo><mn>52</mn></mrow><annotation encoding="application/x-tex">64 - 12 = 52</annotation></semantics></math>
+bits as index of the page itself. If we have an address and want to know
+the index of the page holding the byte under that address, we only need
+to perform a logical shift right on the address by 12 bits.</p>
+<p>The operating system manages a <em>page table</em>, which
+conceptually is a hash table from page indices to page indices and some
+minimal metadata, such as permissions. (Due to space constraints on
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64</mn><annotation encoding="application/x-tex">64</annotation></semantics></math>-bit
+systems, on most systems the hash table is actually nested.)</p>
+<p>When a process reads from or writes to memory at an address, the CPU
+fetches the hash table entry for that address, checks whether the
+process has appropriate permissions and accesses the memory with the
+page index replaced with the one stored in the value fetched from the
+page table. If the process doesn’t have the appropriate permissions
+however, the CPU will trigger a hardware page fault, which is going to
+be caught by the OS and redirected to the process as a segfault
+(<code>SIGSEGV</code> on POSIX systems<a href="#fn1"
+class="footnote-ref" id="fnref1"
+role="doc-noteref"><sup>1</sup></a>).</p>
+<p>This arrangement creates two <em>address spaces</em>: virtual and
+physical. The virtual address space consists of addresses the way
+processes see them. The physical address space consists of addresses
+directly referring to physical memory (RAM). Each of them is divided
+into pages. The virtual address space is divided into <em>virtual
+pages</em>, while the physical address space into <em>physical
+pages</em>. The page table maintains a mapping from virtual to physical
+pages. Each process lives in a separate virtual address space.</p>
+<h2>Reserving vs committing memory</h2>
+<p>When we write a program and want to be able to access a piece of
+memory, we need to first ask the OS to update the page table. To create
+a new mapping, we need to call <code>VirtualAlloc()</code> on Windows,
+or <code>mmap()</code> on POSIX. Both of them accept an argument,
+hinting which virtual address the new mapping should start at. If this
+argument is null, the OS picks an address of its own choosing. Those
+functions are what’s used underneath by <code>malloc()</code> from the C
+standard library.</p>
+<p>Looking at all that, maybe our dynamic array could allocate memory
+page after page in contiguity? Each time we want to append a new
+element, if we used up all the previously-allocated space, we’d just
+call <code>VirtualAlloc()</code>/<code>mmap()</code> to give us another
+virtual page directly after our existing allocation and continue
+normally.</p>
+<p>That sounds almost like a good plan, but there is no guarantee that
+the virtual page right after our allocation isn’t already mapped. It
+could be mapped before our process even started execution, or we could
+have mapped it ourselves in a different place in code.</p>
+<p>What we need is a way to tell the OS that a certain region of virtual
+address space shouldn’t be mapped, unless we specifically ask for it
+(using the address and length arguments of
+<code>VirtualAlloc()</code>/<code>mmap()</code>). This way we can ensure
+that when we need another virtual page mapped, it is available to us.
+And when we don’t need it, we don’t use up scarce physical memory.</p>
+<p><code>VirtualAlloc()</code> allows us to do just that. It separates
+<em>reserving</em> memory from <em>committing</em> it. Reserving memory
+is exactly what I described in the last paragraph: telling the OS not to
+map virtual pages in a given address range, unless we specifically ask
+for it. Committing memory is the act of mapping virtual pages to
+physical pages. On Windows committed memory is counted towards the
+<em>Working Set Size</em> (WSS) of a process, which is what’s presented
+to the user in the Task Manager as the amount of memory a process
+consumes.</p>
+<p>While physical memory is scarce, virtual memory on
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64</mn><annotation encoding="application/x-tex">64</annotation></semantics></math>-bit
+systems is abundant. On <code>amd64</code> systems we typically have
+about
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>48</mn><annotation encoding="application/x-tex">48</annotation></semantics></math>
+bits of virtual address space available, which amounts to
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mfrac><mn>1</mn><mn>4</mn></mfrac><annotation encoding="application/x-tex">\frac{1}{4}</annotation></semantics></math>PiB.
+So while my PC has only
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>GiB
+of RAM, I can reserve about
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16384</mn><annotation encoding="application/x-tex">16384</annotation></semantics></math>
+times as much virtual memory.</p>
+<h3>Lazy Overcommit</h3>
+<p>On POSIX systems, such as Mac, FreeBSD and Linux which I’m going to
+be using here, there is no explicit way to differentiate reserving
+memory from committing it. However, those systems in a normal
+configuration use <em>lazy overcommit</em>, i.e. when a process asks for
+memory to be mapped, the operating system doesn’t update the page table
+right away. Instead it tells the process that the mapping succeeded, and
+when the process tries to access one of the virtual pages, which it was
+led to believe is mapped, CPU generates a page fault, the OS catches it,
+updates the page table and resumes execution of the process from the
+instruction which triggered the page fault, as if nothing happened.
+That’s why it’s called <em>lazy</em>.</p>
+<p>In that setup, memory allocations done with <code>mmap()</code>
+almost never fail (which would allow processes to handle the error
+condition), even when the sum of memory requested with
+<code>mmap()</code> is more than is available in the system (that’s why
+it’s called <em>overcommit</em>). Instead the operating system waits
+until after all allocations are made and processes actually try to use
+the allocated memory.</p>
+<p>When it turns out that the processes weren’t joking and they really
+attempt to use all that memory, which is more than the physical memory
+available, the operating system starts an out-of-memory (OOM) killer
+which picks a process according to its own fancy and terminates it,
+thereby sacrificing it on the altar of overcommit. It may not be the
+process responsible for excessive memory consumption. It may be a
+process critical to the security of your system, like your screen
+locker. This is repeated, until the amount of memory that surviving
+processes try to access doesn’t exceed the amount of physical memory
+available. <a href="https://lwn.net/Articles/104185/">This is
+stupid</a>.</p>
+<p>However, in the absence of a proper reserve and commit API, it lets
+us emulate reserve and commit using <code>mprotect()</code> calls,
+preventing us from accessing pages of memory we didn’t explicitly
+“commit” by disabling all permissions on those pages. When we want to
+“commit” pages, we change their permissions to allow us to access them
+and let lazy overcommit take care of the fact that the initial
+<code>mmap()</code> call requested more memory than we may need and
+possibly than is even available in the system.</p>
+<p>As long as the system administrator didn’t disable overcommit. But
+given that overcommit is expected on POSIX, applications in the POSIX
+world in general aren’t written with expectation that memory allocations
+can fail. So when overcommit is disabled, things are going to break
+anyway.</p>
+<h2>The code</h2>
+<p>I’ll go over key parts of the code here, but omit other parts.
+Complete code is available in its own <a
+href="https://git.yakubin.com/reserve-and-commit/">git repository</a>.
+If you find bugs, I do accept patches. <a
+href="https://git.yakubin.com/reserve-and-commit/about/">README</a>
+describes how to send them.</p>
+<p>I’m going to first present the platform-specific parts of code, and
+then follow them with platform-independent code. All platform-specific
+code is in namespace <code>pal</code> (for <em>platform abstraction
+layer</em>).</p>
+<h3>Windows</h3>
+<p>Apparently that’s how you declare the entry-point function on
+Windows:</p>
+<pre><code>#define DECL_MAIN int __cdecl wmain()</code></pre>
+<p>For benchmarks I’ll want to prevent inlining in a couple places to
+prevent the optimiser from knowing the value of a couple arguments
+passed to benchmarking functions, which could influence the results.</p>
+<pre><code>#define NOINLINE __declspec(noinline)</code></pre>
+<p>Theoretically we should fetch page size with
+<code>GetSystemInfo()</code>, but I want to keep the example code
+simple, and on Windows it’s almost always going to be 4096 anyway:</p>
+<pre><code>static constexpr size_t kPageSize = 0x1000;</code></pre>
+<p>Reserving memory:</p>
+<pre><code>inline void* MemReserve(size_t len) {
+ void* buf = VirtualAlloc(nullptr, len, MEM_RESERVE, PAGE_NOACCESS);
+ if (buf == nullptr) {
+ DWORD last_error = GetLastError();
+ std::cerr << "Reserving memory with VirtualAlloc failed. Error code: " << last_error << std::endl;
+ return nullptr;
+ }
+
+ return buf;
+}</code></pre>
+<p>Committing memory:</p>
+<pre><code>inline bool MemCommit(void* p, size_t len) {
+ void* committed = VirtualAlloc(p, len, MEM_COMMIT, PAGE_READWRITE);
+ if (committed == nullptr) {
+ DWORD last_error = GetLastError();
+ std::cerr << "Committing memory with VirtualAlloc failed. Error code: " << last_error << std::endl;
+ return false;
+ }
+
+ return true;
+}</code></pre>
+<p>Freeing memory:</p>
+<pre><code>inline void MemFree(void* p, size_t /*len*/) {
+ VirtualFree(p, 0, MEM_RELEASE);
+}</code></pre>
+<p>That’s all we need for memory allocation. Now, a couple functions for
+the measurements done in benchmarks. First, peak memory use (working set
+size):</p>
+<pre><code>inline size_t GetPeakMemoryUse() {
+ PROCESS_MEMORY_COUNTERS mem;
+ bool res = GetProcessMemoryInfo(GetCurrentProcess(), &mem, sizeof mem);
+ if (!res) {
+ DWORD last_error = GetLastError();
+ std::cerr << "GetProcessMemoryInfo failed. Error code: " << last_error << std::endl;
+ return 0;
+ }
+
+ return mem.PeakWorkingSetSize;
+}</code></pre>
+<p>And the time the process spent on-CPU, adding time spent in user-mode
+and in kernel-mode, in microseconds:</p>
+<pre><code>inline uint64_t ConvertFiletimeToMicroseconds(FILETIME t) {
+ ULARGE_INTEGER li;
+ li.LowPart = t.dwLowDateTime;
+ li.HighPart = t.dwHighDateTime;
+ return static_cast<uint64_t>(li.QuadPart) / 10;
+}
+
+inline uint64_t GetCpuTime() {
+ FILETIME a, b, c, d;
+ if (GetProcessTimes(GetCurrentProcess(), &a, &b, &c, &d) != 0) {
+ auto kernel_time = ConvertFiletimeToMicroseconds(c);
+ auto user_time = ConvertFiletimeToMicroseconds(d);
+ return user_time + kernel_time;
+ } else {
+ std::cerr << "failed to get CPU time\n";
+ assert(false);
+ return 0;
+ }
+}</code></pre>
+<h3>POSIX</h3>
+<p>Most of the code is common to all POSIX platforms with a couple tiny
+differences handled with the preprocessor. Normally, I’d split them into
+separate files, but that felt like too much ceremony than is necessary
+for this little post.</p>
+<p><code>main</code>:</p>
+<pre><code>#define DECL_MAIN int main()</code></pre>
+<p><code>NOINLINE</code>:</p>
+<pre><code>#define NOINLINE __attribute__((noinline))</code></pre>
+<p>I’m going to be working with FreeBSD and Linux on amd64, which use
+4kiB pages, and Mac M1 which uses 16kiB pages (as all ARM-based
+platforms from Apple do):</p>
+<pre><code>static constexpr size_t kPageSize =
+ #if defined(__APPLE__) && defined(__aarch64__)
+ 0x4000
+ #else
+ 0x1000
+ #endif
+ ;</code></pre>
+<p>Reserving memory. We call <code>mmap()</code> with
+<code>PROT_NONE</code> to disable all permissions and add
+<code>MAP_NORESERVE</code> flag, when it’s available (in practice it
+means Linux), to opt into overcommit, when it’s in heuristic mode:</p>
+<pre><code>inline void* MemReserve(size_t len) {
+ int flags = MAP_PRIVATE | MAP_ANONYMOUS;
+
+ #ifdef MAP_NORESERVE
+ // On Linux, guarantee lazy commit even if /proc/sys/vm/overcommit_memory is set to `heuristic` (0).
+ flags |= MAP_NORESERVE;
+ #endif
+
+ void* buf = mmap(nullptr, len, PROT_NONE, flags, -1, 0);
+ if (buf == MAP_FAILED) {
+ int saved_errno = errno;
+ std::cerr << "Reserving memory with mmap failed. Exit code: " << saved_errno << std::endl;
+ return nullptr;
+ }
+
+ return buf;
+}</code></pre>
+<p>Commit by adding read and write permissions:</p>
+<pre><code>inline bool MemCommit(void* p, size_t len) {
+ if (mprotect(p, len, PROT_READ | PROT_WRITE) != 0) {
+ int saved_errno = errno;
+ std::cerr << "Committing memory with mprotect failed. Exit code: " << saved_errno << std::endl;
+ return false;
+ }
+
+ return true;
+}</code></pre>
+<p>Free:</p>
+<pre><code>inline void MemFree(void* p, size_t len) {
+ if (munmap(p, len) != 0) {
+ int saved_errno = errno;
+ std::cerr << "Failed to unmap memory. Exit code: " << saved_errno << std::endl;
+ }
+}</code></pre>
+<p>On POSIX platforms <em>Resident Set Size</em> (RSS) is what’s
+interpreted as “memory use”. To measure that, we’re going to use
+<code>getrusage()</code> and here is where POSIX lets us down. Everyone
+has this function, but everyone interprets the meaning of the returned
+<code>ru_maxrss</code> differently. On FreeBSD and Linux it’s in
+kilobytes. On Mac it’s in bytes. And curiously on illumos it’s in pages.
+The similarities are sufficient to lull you into a sense that everything
+is working fine when porting: everything has the same names, everything
+compiles, but then the interpretation of results is completely
+different. The only reason I noticed it is because suddenly results
+differed by several orders of magnitude between Mac and FreeBSD/Linux.
+Others may not be this fortunate. Reading the Linux and FreeBSD man
+pages, it wasn’t clear to me whether by kilobytes they meant
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1024</mn><annotation encoding="application/x-tex">1024</annotation></semantics></math>
+bytes or
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1000</mn><annotation encoding="application/x-tex">1000</annotation></semantics></math>
+bytes. I settled for
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1000</mn><annotation encoding="application/x-tex">1000</annotation></semantics></math>:</p>
+<pre><code>inline size_t GetPeakMemoryUse() {
+ rusage r_usage;
+ if (getrusage(RUSAGE_SELF, &r_usage) != 0) {
+ int saved_errno = errno;
+ std::cerr << "Failed to fetch memory use. Exit code: " << saved_errno << std::endl;
+ return 0;
+ }
+
+ // On Mac, ru_maxrss is in bytes. On Linux and FreeBSD it's in kilobytes. So much for POSIX.
+ #ifdef __APPLE__
+ size_t multiplier = 1;
+ #else
+ size_t multiplier = 1000;
+ #endif
+
+ return r_usage.ru_maxrss * multiplier;
+}</code></pre>
+<p>Measuring CPU time is done the same way everywhere:</p>
+<pre><code>inline uint64_t ConvertTimevalToMicroseconds(timeval t) {
+ return static_cast<uint64_t>(t.tv_sec) * 1000000ULL + static_cast<uint64_t>(t.tv_usec);
+}
+
+inline uint64_t GetCpuTime() {
+ rusage r_usage;
+ if (getrusage(RUSAGE_SELF, &r_usage) != 0) {
+ int saved_errno = errno;
+ std::cerr << "Failed to fetch memory use. Exit code: " << saved_errno << std::endl;
+ return 0;
+ }
+
+ auto user_time = ConvertTimevalToMicroseconds(r_usage.ru_utime);
+ auto kernel_time = ConvertTimevalToMicroseconds(r_usage.ru_stime);
+ return user_time + kernel_time;
+}</code></pre>
+<h3>Platform-independent part</h3>
+<p>For simplicity, let’s first write a basic arena of bytes, so we don’t
+need to trouble ourselves with templates for now.</p>
+<p>Unlike <code>std::vector</code>, we’re going to grow the allocation
+linearly, not exponentially, which should give us better space
+efficiency. Let’s settle on the amount of pages we’re going to add each
+time we run out of space in our allocation. I say
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+is a pretty good start:</p>
+<pre><code>static constexpr size_t kBytesPerCommit = pal::kPageSize;</code></pre>
+<p>We also need a way to calculate the number of pages needed to hold
+the bytes in our arena, multiplied by number of bytes in a page, since
+<code>VirtualAlloc</code> accepts length in bytes, not pages. We
+calculate it by rounding the number of bytes we need to store up to the
+nearest page boundary. To do that, we perform ceiled division by
+<code>kBytesPerCommit</code>, followed by multiplication by
+<code>kBytesPerCommit</code>:</p>
+<pre><code>size_t GetCommittedBytes(size_t used_bytes) {
+ return ((used_bytes + kBytesPerCommit - 1) / kBytesPerCommit) * kBytesPerCommit;
+}</code></pre>
+<p>Now the struct for arena bookkeeping, which should be pretty
+self-explanatory at this point:</p>
+<pre><code>struct Arena {
+ char* base = nullptr;
+ size_t cap = 0;
+ size_t len = 0;
+
+ // ... methods ...
+};</code></pre>
+<p>RAII boilerplate:</p>
+<pre><code> Arena() = delete;
+ Arena(const Arena&) = delete;
+ Arena(Arena&& other) {
+ base = other.base;
+ cap = other.cap;
+ len = other.len;
+
+ other.base = nullptr;
+ other.cap = 0;
+ other.len = 0;
+ }</code></pre>
+<p>Main constructor, followed by the destructor:</p>
+<pre><code> explicit Arena(size_t max_len) {
+ assert(max_len != 0);
+
+ cap = GetCommittedBytes(max_len);
+ len = 0;
+
+ void* buf = pal::MemReserve(cap);
+ if (buf == nullptr) {
+ throw std::bad_alloc();
+ }
+
+ base = static_cast<char*>(buf);
+ }
+
+ ~Arena() {
+ if (base != nullptr) {
+ pal::MemFree(base, cap);
+ }
+ }</code></pre>
+<p>I apologise for exceptions. However, I didn’t want to use extra
+templates like <code>std::optional</code> in this POC, which would get
+in the way of demonstration.</p>
+<p>Our constructor reserves the amount of memory requested in its
+argument. It doesn’t commit anything. Destructor frees the whole
+arena.</p>
+<p>Growing logic:</p>
+<pre><code> bool Grow(size_t additional_len) {
+ assert(len+additional_len <= cap);
+ size_t old_committed = GetCommittedBytes(len);
+ size_t new_committed = GetCommittedBytes(len+additional_len);
+ size_t delta = new_committed - old_committed;
+ if (delta == 0) {
+ len += additional_len;
+ return true;
+ }
+
+ if (!pal::MemCommit(base + old_committed, delta)) {
+ return false;
+ }
+
+ len += additional_len;
+ return true;
+ }</code></pre>
+<p>If we can fit the additional bytes in current allocation, we only
+update the length and report success. Otherwise, we attempt to commit
+more pages (the minimal amount that’s needed to fit the additional
+bytes).</p>
+<p>Our POC arena is complete. Now let’s move on to the dynamic array of
+elements of type <code>T</code>:</p>
+<pre><code>template <typename T>
+class DynArray {
+ Arena arena;
+
+public:
+ // ... methods ...
+};</code></pre>
+<p>No surprises here. RAII boilerplate:</p>
+<pre><code> // Redundant, but useful as documentation.
+ DynArray() = delete;
+ DynArray(const DynArray<T>& other) = delete;
+ DynArray(DynArray&& other) = default;</code></pre>
+<p>Copy constructor is left as an exercise for the reader.</p>
+<p>Main constructor just forwards a scaled argument to the arena. For
+more robust code, we should add a check for arithmetic overflow, but for
+simplicity of examples let’s leave it out:</p>
+<pre><code> explicit DynArray(size_t max_len)
+ : arena(max_len * sizeof(T)) {}</code></pre>
+<p>Support for range loops:</p>
+<pre><code> T* begin() {
+ return reinterpret_cast<T*>(arena.base);
+ }
+
+ T* end() {
+ return reinterpret_cast<T*>(arena.base + arena.len);
+ }</code></pre>
+<p>Methods for querying the length and indexing with square brackets
+would also be nice:</p>
+<pre><code> size_t Len() const {
+ return arena.len / sizeof(T);
+ }
+
+ T& operator[](size_t i) {
+ assert(i < Len());
+ return begin()[i];
+ }</code></pre>
+<p>And the meat of the structure:</p>
+<pre><code> bool Append(T v) {
+ auto* dst = end();
+
+ if (!arena.Grow(sizeof(T))) {
+ return false;
+ }
+
+ *dst = std::move(v);
+ return true;
+ }</code></pre>
+<p>Should be pretty obvious.</p>
+<p>Theoretically, we should make sure that we put <code>T</code> at
+addresses aligned according to the alignment requirements of
+<code>T</code>. However, the base address of the arena, which is
+returned by <code>VirtualAlloc()</code>, will always be aligned to a
+page boundary. Alignment needs to be a power of 2. Additionally, in
+practice I don’t think there are any types with alignment bigger than
+page size<a href="#fn2" class="footnote-ref" id="fnref2"
+role="doc-noteref"><sup>2</sup></a>, which is also a power of 2. It
+follows that alignment always divides page size equally, therefore we
+satisfy alignment requirements with no additional effort.</p>
+<h4>Demonstrative tests</h4>
+<p>Now for some rudimentary tests. First, the arena:</p>
+<pre><code> // Reserving 16GiB.
+ auto a = Arena(16ULL * 1024ULL * 1024ULL * 1024ULL);
+
+ // Committing 1MiB to make space for 4 bytes (with some headroom).
+ bool committed = a.Grow(4);
+ assert(committed);
+
+ a.base[0] = 'a';
+ a.base[1] = 'b';
+ a.base[2] = 'c';
+ a.base[4] = '\0';
+
+ std::cout << a.base << std::endl;
+
+ // Past the declared length, but still in committed memory.
+ // No segfault, but in real code it's probably a bug.
+ a.base[5] = 'x';
+ a.base[kBytesPerCommit-1] = 'y';
+
+ // Reserved, but not committed memory. Segfault.
+ // a.base[kBytesPerCommit] = 'x';</code></pre>
+<p>That code should print “abc” and exit without crashing. We can see
+that unfortunately we can access elements beyond the stated length of
+the arena, in this case elements with indices
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+and
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mrow><mi>𝚔</mi><mi>𝙱</mi><mi>𝚢</mi><mi>𝚝</mi><mi>𝚎</mi><mi>𝚜</mi><mi>𝙿</mi><mi>𝚎</mi><mi>𝚛</mi><mi>𝙲</mi><mi>𝚘</mi><mi>𝚖</mi><mi>𝚖</mi><mi>𝚒</mi><mi>𝚝</mi></mrow><mo>−</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">\mathtt{kBytesPerCommit}-1</annotation></semantics></math>,
+because they’re placed on the same page of memory which is used to store
+valid elements. However, we cannot reach beyond this page, which is
+demonstrated with the last line. After uncommenting it and running the
+program, it’s going to crash due to a segfault. The uncommitted pages at
+the end serve as natural guard pages, providing a margin of safety, even
+in situations where for some reason it’s been decided that
+bounds-checking should be disabled (which is most C++ shops).</p>
+<p>And the dynamic array:</p>
+<pre><code> static constexpr size_t N = 100000;
+ auto a = DynArray<int>(N);
+
+ for (size_t i = 0; i < 16; i++) {
+ assert(a.Append(static_cast<int>(i)));
+ }
+
+ for (size_t i = 0; i < 12; i++) {
+ std::cout << a[i] << "\n";
+ }
+
+ for (size_t i = 16; i < N; i++) {
+ a.Append(static_cast<int>(i));
+ }
+
+ size_t real_cap = GetCommittedBytes(N * sizeof(int)) / sizeof(int);
+
+ for (size_t i = N; i < real_cap; i++) {
+ a.Append(static_cast<int>(i));
+ }
+
+ // Exceeded capacity. Assertion failure.
+ // a.Append(0);</code></pre>
+<p>That should print:</p>
+<pre><code>0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11</code></pre>
+<p>Uncommenting the last line would cause an assertion failure, this
+time because we run out of reserved space (due to deliberately smaller
+capacity declared in the beginning).</p>
+<h4>Performance cost</h4>
+<p>When <code>DynArray</code> has
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+elements, <code>Append()</code> takes
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mrow><mo stretchy="true" form="prefix">(</mo><mn>1</mn><mo stretchy="true" form="postfix">)</mo></mrow></mrow><annotation encoding="application/x-tex">O(1)</annotation></semantics></math>
+time and doesn’t have any temporary spikes in space use, meaning that
+the amount of space used during <code>Append()</code> never exceeds the
+amount of space used after it.</p>
+<p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>-element
+<code>DynArray</code> uses
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">⌈</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mn>4096</mn></mfrac><mo stretchy="false" form="postfix">⌉</mo><mo>×</mo><mn>4096</mn></mrow><annotation encoding="application/x-tex">\lceil\frac{n\times M}{4096}\rceil\times 4096</annotation></semantics></math>
+bytes for the buffer plus the constant amount of space for length,
+capacity and pointer to buffer. This amounts to
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mrow><mo stretchy="false" form="prefix">⌈</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mn>4096</mn></mfrac><mo stretchy="false" form="postfix">⌉</mo><mo>×</mo><mn>4096</mn></mrow></mfrac><mo>≈</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mrow><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mn>4096</mn></mfrac><mo>×</mo><mn>4096</mn></mrow></mfrac><mo>=</mo><mfrac><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow><mrow><mi>n</mi><mo>×</mo><mi>M</mi></mrow></mfrac><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">\frac{n\times M}{\lceil\frac{n\times M}{4096}\rceil\times 4096} \approx \frac{n\times M}{\frac{n\times M}{4096}\times 4096} = \frac{n\times M}{n\times M} = 1</annotation></semantics></math>
+space utilisation.</p>
+<p>Pretty good. As
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>n</mi><annotation encoding="application/x-tex">n</annotation></semantics></math>
+grows, we’re approaching perfect space utilisation, and non-utilised
+space never exceeds
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4095</mn><annotation encoding="application/x-tex">4095</annotation></semantics></math>
+bytes, whereas in the case of <code>std::vector</code> it grows
+exponentially.</p>
+<h4>Benchmarks</h4>
+<p>I’ve run all Windows, FreeBSD and Linux tests on the exact same
+machine. It’s a PC with an AMD Ryzen 7 2700X CPU and 16 GB of DDR4 RAM.
+For Mac tests I used my 2020 Mac Mini M1 with 16GB RAM. It wasn’t my
+objective to compare which compiler is better than another compiler, so
+to keep things shorter I used only one compiler on each platform, the
+one that was closest to the <em>official</em> one. Software
+versions:</p>
+<ol type="1">
+<li>Windows 10 Pro with MSVC <code>19.32.31332</code> running from
+<code>x64 Native Tools Command Prompt for VS 2022</code>. Compilation
+script: <code>build.bat</code>.</li>
+<li>MacOS Monterey <code>12.6.2</code> with
+<code>Apple clang version 13.0.0</code>
+(<code>clang-1300.0.29.30</code>), the version shipped with Xcode
+<code>13.2.1</code>. Compilation script:
+<code>build-clang.sh</code>.</li>
+<li>FreeBSD <code>13.1-p3</code> (with <code>13.1-p5</code> userland)
+with Clang <code>13.0.0</code>
+(<code>FreeBSD clang version 13.0.0</code>), which is shipped with the
+base system. Compilation script: <code>build-clang.sh</code>.</li>
+<li>Debian <code>11.6</code>
+(<code>5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux</code>)
+with GCC (<code>g++ (Debian 10.2.1-6) 10.2.1 20210110</code>) installed
+with APT through the <code>g++</code> package. Compilation script:
+<code>build-gcc.sh</code>.</li>
+</ol>
+<h5>Windows</h5>
+<h6>Memory</h6>
+<p>First we’ll measure peak memory use, when constructing arrays of
+sizes
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>,
+and
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>.
+For details, see <code>mem_dynarray.cpp</code> and
+<code>mem_stdvec.cpp</code> in the repo.</p>
+<p>Reminder: I don’t call <code>std::vector::reserve()</code>, because
+that method doesn’t <em>reserve</em> memory according to the Windows
+(and our) nomenclature, it actually <em>commits</em> memory, and the
+whole motivation for this page is finding a memory management strategy
+for situations when I don’t have accurate <em>and</em> precise
+predictions for how much memory I’m going to need. Besides, if I had
+them, instead of <code>std::vector</code>, I’d use a structure which
+allocates only once, and doesn’t have all that resizing logic.</p>
+<table>
+<tr>
+<th rowspan="2">
+Array Size
+</th>
+<th colspan="2">
+Peak WSS (bytes)
+</th>
+</tr>
+<tr>
+<th>
+<code>DynArray</code>
+</th>
+<th>
+<code>std::vector</code>
+</th>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>088</mn><mspace width="0.167em"></mspace><mn>384</mn></mrow><annotation encoding="application/x-tex">3\,088\,384</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>551</mn><mspace width="0.167em"></mspace><mn>808</mn></mrow><annotation encoding="application/x-tex">2\,551\,808</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>086</mn><mspace width="0.167em"></mspace><mn>080</mn></mrow><annotation encoding="application/x-tex">7\,086\,080</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>190</mn><mspace width="0.167em"></mspace><mn>848</mn></mrow><annotation encoding="application/x-tex">10\,190\,848</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>002</mn><mspace width="0.167em"></mspace><mn>926</mn><mspace width="0.167em"></mspace><mn>592</mn></mrow><annotation encoding="application/x-tex">4\,002\,926\,592</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>5</mn><mspace width="0.167em"></mspace><mn>521</mn><mspace width="0.167em"></mspace><mn>395</mn><mspace width="0.167em"></mspace><mn>712</mn></mrow><annotation encoding="application/x-tex">5\,521\,395\,712</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>859</mn><mspace width="0.167em"></mspace><mn>588</mn><mspace width="0.167em"></mspace><mn>608</mn></mrow><annotation encoding="application/x-tex">12\,859\,588\,608</annotation></semantics></math>
+</td>
+<td style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+</table>
+<p><code>DynArray</code> uses more memory when the whole array can fit
+in space smaller than a single memory page, but for bigger arrays it
+uses less space, because it grows linearly, not exponentially as
+<code>std::vector</code> does. In fact, as the last row demonstrates,
+<code>std::vector</code> failed to scale to
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+elements on my machine, reporting a memory allocation error, whereas
+<code>DynArray</code> continued working.</p>
+<h6>Throughput</h6>
+<p>Now let’s see how many elements we’re able to append in a given time
+period. We take the total time it takes to construct the whole array and
+then divide it by the number of elements. Each benchmark is repeated for
+different sizes of the resulting dynamic array. Results are included for
+builds with different levels of optimisation: no optimisation,
+<code>/O1</code> and <code>/O2</code>.</p>
+<p>Aside from ints, we also use <code>std::unique_ptr</code>s to
+demonstrate how those dynamic arrays scale when their elements have
+non-trivial (but still almost-trivial) move constructors. For details,
+see <code>bench.cpp</code> in the repo.</p>
+<table>
+<tr>
+<th colspan="5">
+No optimisation
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">32\,000\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.078</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">0.078\,125</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>800</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">12\,800\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.140</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.140\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>111</mn><mspace width="0.167em"></mspace><mn>111</mn></mrow><annotation encoding="application/x-tex">7\,111\,111</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14.828</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">14.828\,125</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>67</mn><mspace width="0.167em"></mspace><mn>439</mn><mspace width="0.167em"></mspace><mn>409</mn></mrow><annotation encoding="application/x-tex">67\,439\,409</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>23.078</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">23.078\,125</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>43</mn><mspace width="0.167em"></mspace><mn>331</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">43\,331\,076</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>84.656</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">84.656\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>812</mn><mspace width="0.167em"></mspace><mn>476</mn></mrow><annotation encoding="application/x-tex">11\,812\,476</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>297.937</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">297.937\,500</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>356</mn><mspace width="0.167em"></mspace><mn>408</mn></mrow><annotation encoding="application/x-tex">3\,356\,408</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>174.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">174.093\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>57</mn><mspace width="0.167em"></mspace><mn>440</mn><mspace width="0.167em"></mspace><mn>315</mn></mrow><annotation encoding="application/x-tex">57\,440\,315</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>/O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">21\,333\,333</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">32\,000\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.328</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">4.328\,125</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>231</mn><mspace width="0.167em"></mspace><mn>046</mn><mspace width="0.167em"></mspace><mn>931</mn></mrow><annotation encoding="application/x-tex">231\,046\,931</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.828</mn><mspace width="0.167em"></mspace><mn>125</mn></mrow><annotation encoding="application/x-tex">2.828\,125</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>353</mn><mspace width="0.167em"></mspace><mn>591</mn><mspace width="0.167em"></mspace><mn>160</mn></mrow><annotation encoding="application/x-tex">353\,591\,160</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>62.359</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">62.359\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>036</mn><mspace width="0.167em"></mspace><mn>081</mn></mrow><annotation encoding="application/x-tex">16\,036\,081</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>213.609</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">213.609\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>681</mn><mspace width="0.167em"></mspace><mn>442</mn></mrow><annotation encoding="application/x-tex">4\,681\,442</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>59.812</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">59.812\,500</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>167</mn><mspace width="0.167em"></mspace><mn>189</mn><mspace width="0.167em"></mspace><mn>132</mn></mrow><annotation encoding="application/x-tex">167\,189\,132</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>/O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64000</mn><annotation encoding="application/x-tex">64000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">21\,333\,333</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">21\,333\,333</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.406</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">4.406\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>226</mn><mspace width="0.167em"></mspace><mn>950</mn><mspace width="0.167em"></mspace><mn>354</mn></mrow><annotation encoding="application/x-tex">226\,950\,354</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.765</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">2.765\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>361</mn><mspace width="0.167em"></mspace><mn>581</mn><mspace width="0.167em"></mspace><mn>920</mn></mrow><annotation encoding="application/x-tex">361\,581\,920</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>49.187</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">49.187\,500</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>330</mn><mspace width="0.167em"></mspace><mn>368</mn></mrow><annotation encoding="application/x-tex">20\,330\,368</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>203.906</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">203.906\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>904</mn><mspace width="0.167em"></mspace><mn>214</mn></mrow><annotation encoding="application/x-tex">4\,904\,214</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>56.687</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">56.687\,500</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>176</mn><mspace width="0.167em"></mspace><mn>405</mn><mspace width="0.167em"></mspace><mn>733</mn></mrow><annotation encoding="application/x-tex">176\,405\,733</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+</table>
+<p>With no optimisations enabled, <code>DynArray</code> has consistently
+higher throughput than <code>std::vector</code>, across all controlled
+parameters. With <code>/O1</code> and <code>/O2</code>,
+<code>std::vector</code> has higher throughput for smaller arrays and
+for big arrays with trivial move constructors; but for large arrays with
+non-trivial move constructors <code>DynArray</code> has the upper hand.
+Extrapolating, the time it takes to construct the whole array, relative
+to its end length, grows much slower in the case of
+<code>DynArray</code> than in the case of <code>std::vector</code>.</p>
+<h6>Latency</h6>
+<p>In case of latency, we measure the time taken by each append call,
+save the minimum and maximum values, and aggregate all times into a
+linear histogram organised into buckets of
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><mn>0</mn><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[0, 10^{-6})</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-6}, 10^{-5})</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-5}, 10^{-4})</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-4}, 10^{-3})</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-3}, 10^{-2})</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><mo>,</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-2}, 10^{-1})</annotation></semantics></math>,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false" form="prefix">[</mo><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><mo>,</mo><mi>∞</mi><mo stretchy="false" form="postfix">)</mo></mrow><annotation encoding="application/x-tex">[10^{-1}, \infty)</annotation></semantics></math>
+seconds. Bucket columns are labeled with the upper bounds. For details,
+see <code>bench.cpp</code> in the repo.</p>
+<table>
+<tr>
+<th colspan="14">
+No optimisation
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>999</mn><annotation encoding="application/x-tex">999</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>983</mn></mrow><annotation encoding="application/x-tex">999\,983</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.062</mn><mspace width="0.167em"></mspace><mn>500</mn></mrow><annotation encoding="application/x-tex">0.062\,500</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>979</mn></mrow><annotation encoding="application/x-tex">999\,979</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>21</mn><annotation encoding="application/x-tex">21</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>983</mn></mrow><annotation encoding="application/x-tex">999\,983</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>977</mn></mrow><annotation encoding="application/x-tex">999\,977</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>23</mn><annotation encoding="application/x-tex">23</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>987</mn><mspace width="0.167em"></mspace><mn>307</mn></mrow><annotation encoding="application/x-tex">999\,987\,307</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>693</mn></mrow><annotation encoding="application/x-tex">12\,693</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.468</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.468\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>987</mn><mspace width="0.167em"></mspace><mn>325</mn></mrow><annotation encoding="application/x-tex">999\,987\,325</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>671</mn></mrow><annotation encoding="application/x-tex">12\,671</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.796</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">1.796\,875</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>965</mn><mspace width="0.167em"></mspace><mn>127</mn></mrow><annotation encoding="application/x-tex">999\,965\,127</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>870</mn></mrow><annotation encoding="application/x-tex">34\,870</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>29.484</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">29.484\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>982</mn><mspace width="0.167em"></mspace><mn>339</mn></mrow><annotation encoding="application/x-tex">999\,982\,339</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>17</mn><mspace width="0.167em"></mspace><mn>646</mn></mrow><annotation encoding="application/x-tex">17\,646</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>15</mn><annotation encoding="application/x-tex">15</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.515</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.515\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>999</mn><mspace width="0.167em"></mspace><mn>869</mn><mspace width="0.167em"></mspace><mn>443</mn></mrow><annotation encoding="application/x-tex">9\,999\,869\,443</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>130</mn><mspace width="0.167em"></mspace><mn>556</mn></mrow><annotation encoding="application/x-tex">130\,556</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>/O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>993</mn></mrow><annotation encoding="application/x-tex">999\,993</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>7</mn><annotation encoding="application/x-tex">7</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.093\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>983</mn></mrow><annotation encoding="application/x-tex">999\,983</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>990</mn></mrow><annotation encoding="application/x-tex">999\,990</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>10</mn><annotation encoding="application/x-tex">10</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn></mrow><annotation encoding="application/x-tex">999\,988</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>12</mn><annotation encoding="application/x-tex">12</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn><mspace width="0.167em"></mspace><mn>885</mn></mrow><annotation encoding="application/x-tex">999\,988\,885</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>115</mn></mrow><annotation encoding="application/x-tex">11\,115</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.484</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">0.484\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>989</mn><mspace width="0.167em"></mspace><mn>172</mn></mrow><annotation encoding="application/x-tex">999\,989\,172</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>824</mn></mrow><annotation encoding="application/x-tex">10\,824</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">0.046\,875</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>975</mn><mspace width="0.167em"></mspace><mn>686</mn></mrow><annotation encoding="application/x-tex">999\,975\,686</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>314</mn></mrow><annotation encoding="application/x-tex">24\,314</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14.109</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">14.109\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>986</mn><mspace width="0.167em"></mspace><mn>756</mn></mrow><annotation encoding="application/x-tex">999\,986\,756</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>13</mn><mspace width="0.167em"></mspace><mn>236</mn></mrow><annotation encoding="application/x-tex">13\,236</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.468</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.468\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>999</mn><mspace width="0.167em"></mspace><mn>887</mn><mspace width="0.167em"></mspace><mn>755</mn></mrow><annotation encoding="application/x-tex">9\,999\,887\,755</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>112</mn><mspace width="0.167em"></mspace><mn>244</mn></mrow><annotation encoding="application/x-tex">112\,244</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>/O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">1\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>987</mn></mrow><annotation encoding="application/x-tex">999\,987</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>13</mn><annotation encoding="application/x-tex">13</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.093\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>985</mn></mrow><annotation encoding="application/x-tex">999\,985</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>15</mn><annotation encoding="application/x-tex">15</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>986</mn></mrow><annotation encoding="application/x-tex">999\,986</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>14</mn><annotation encoding="application/x-tex">14</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.015</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.015\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn></mrow><annotation encoding="application/x-tex">999\,988</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>12</mn><annotation encoding="application/x-tex">12</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.031</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">0.031\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>988</mn><mspace width="0.167em"></mspace><mn>917</mn></mrow><annotation encoding="application/x-tex">999\,988\,917</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>083</mn></mrow><annotation encoding="application/x-tex">11\,083</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.500</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">0.500\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>989</mn><mspace width="0.167em"></mspace><mn>054</mn></mrow><annotation encoding="application/x-tex">999\,989\,054</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>942</mn></mrow><annotation encoding="application/x-tex">10\,942</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.390</mn><mspace width="0.167em"></mspace><mn>625</mn></mrow><annotation encoding="application/x-tex">0.390\,625</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>973</mn><mspace width="0.167em"></mspace><mn>866</mn></mrow><annotation encoding="application/x-tex">999\,973\,866</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>26</mn><mspace width="0.167em"></mspace><mn>133</mn></mrow><annotation encoding="application/x-tex">26\,133</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>13.109</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">13.109\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>999</mn><mspace width="0.167em"></mspace><mn>984</mn><mspace width="0.167em"></mspace><mn>610</mn></mrow><annotation encoding="application/x-tex">999\,984\,610</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>15</mn><mspace width="0.167em"></mspace><mn>381</mn></mrow><annotation encoding="application/x-tex">15\,381</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">0.093\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>999</mn><mspace width="0.167em"></mspace><mn>888</mn><mspace width="0.167em"></mspace><mn>781</mn></mrow><annotation encoding="application/x-tex">9\,999\,888\,781</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>111</mn><mspace width="0.167em"></mspace><mn>219</mn></mrow><annotation encoding="application/x-tex">111\,219</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+</table>
+<p>Except the one flake in the unoptimised benchmark for arrays of
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+elements, the maximum latency of <code>DynArray</code> always stayed
+below the latency of <code>std::vector</code>. In fact, usually it was a
+couple times lower, and for big arrays it was orders of magnitude lower,
+where, if you care about latency at all, performance of
+<code>std::vector</code> wasn’t acceptable by any standards.</p>
+<p>All latency measurements demonstrate a bimodal distribution. In the
+case of <code>std::vector</code> it’s no surprise – that’s what we
+should expect when we have two paths, one the common case of no resize,
+one the odd case of resize. However, in the case of
+<code>DynArray</code>, the bimodal distribution surprised me, as I
+didn’t see any cause for it in any of the code that I wrote: on the one
+hand, <code>VirtualAlloc()</code> isn’t called in every
+<code>Append()</code>, but on the other hand the number of calls to one
+is linearly proportional to the other, and the numbers do not reflect
+that, so I decided to dig into it.</p>
+<p>I tried to collect hardware performance counters (PMC), but Intel
+VTune failed to gather any for my AMD CPU. AMD μProf didn’t seem to even
+have any place to display them. Microsoft’s <code>tracelog.exe</code>
+also failed to collect anything. The ETL file contained no PMC data.
+That’s quite a let-down compared to the ease of collecting this data on
+Linux with <code>perf</code>.</p>
+<p>Luckily, DTrace was ported to Windows, so I decided to use that.
+First I tried to measure how much time <code>VirtualAlloc()</code> takes
+in my tests, so I wrote the following script, using the
+<code>syscall</code> DTrace provider:</p>
+<pre><code>syscall::NtAllocateVirtualMemory:entry
+/execname == "bench2.exe"/
+{
+ self->ts = timestamp;
+}
+
+syscall::NtAllocateVirtualMemory:return
+/execname == "bench2.exe"/
+{
+ @alloc[execname] = quantize((timestamp - self->ts) / 1000);
+}</code></pre>
+<p>That collects running times (in microseconds) of the
+<code>NtAllocateVirtualMemory()</code> syscall into a histogram. I run
+<code>bench2.exe</code> in one terminal, while in the Administrator’s
+<code>cmd.exe</code> in another window I typed:</p>
+<pre><code>"C:\Program Files\DTrace\dtrace.exe" -s virtualallochist.d</code></pre>
+<p>That printed:</p>
+<pre><code> bench2.exe
+ value ------------- Distribution ------------- count
+ 0 | 0
+ 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 25497083
+ 2 |@ 765607
+ 4 | 42939
+ 8 | 7796
+ 16 | 2619
+ 32 | 233
+ 64 | 20
+ 128 | 41
+ 256 | 89
+ 512 | 90
+ 1024 | 46
+ 2048 | 4
+ 4096 | 12
+ 8192 | 6
+ 16384 | 4
+ 32768 | 0</code></pre>
+<p><math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>384</mn></mrow><annotation encoding="application/x-tex">16\,384</annotation></semantics></math>
+microseconds
+(<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.016</mn><mspace width="0.167em"></mspace><mn>384</mn></mrow><annotation encoding="application/x-tex">0.016\,384</annotation></semantics></math>
+seconds) isn’t near anything explaining the times from my benchmarks,
+where append once took as much as
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0.390</mn><annotation encoding="application/x-tex">0.390</annotation></semantics></math>
+seconds. I had to dig deeper.</p>
+<p>At that point I thought: I’m not calling
+<code>NtAllocateVirtualMemory()</code> directly, I’m calling
+<code>VirtualAlloc()</code>. I should measure that. That’s a bit harder,
+but still doable. <code>VirtualAlloc()</code> is not a syscall of the NT
+kernel, but a normal function defined in one of DLLs distributed with
+Windows, so I can’t trace it with the <code>syscall</code> DTrace
+provider.</p>
+<p>However, I can use the <code>pid</code> provider. For tracing with
+that provider, I needed to know the PID of the executable to trace, not
+just the <code>execname</code>. One way to get it is to use the
+<code>-c <cmd></code> option to <code>dtrace.exe</code>, which
+starts the <code><cmd></code> command and passes its PID to the
+DTrace script as <code>$target</code>. However, that approach caused
+DTrace to run out of memory very fast, so I needed to find another
+way.</p>
+<p>I decided to fetch the PID with Powershell and pass it as a
+positional argument to my DTrace script, which measured
+<code>VirtualAlloc()</code> and a couple of my own functions to
+compare:</p>
+<pre><code>pid$1::VirtualAlloc:entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::VirtualAlloc:return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}
+
+pid$1::GetProcessTimes:entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::GetProcessTimes:return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}
+
+pid$1::"DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append":entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::"DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append":return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}
+
+pid$1::"DynArray<int>::Append":entry
+{
+ self->ts[probefunc] = timestamp;
+}
+
+pid$1::"DynArray<int>::Append":return
+{
+ @[execname,probefunc] = quantize((timestamp - self->ts[probefunc]) / 1000);
+}</code></pre>
+<p>When optimisations are enabled, some of those <code>DynArray</code>
+methods are inlined and eliminated from the executable. So I needed to
+use <code>bench0.exe</code>, the unoptimised version of the benchmark.
+After starting <code>bench0.exe</code> in one terminal, I typed the
+following in Administrator’s Powershell:</p>
+<pre><code>& "C:\Program Files\DTrace\dtrace.exe" -s virtualallochist.d (Get-Process -Name "bench0").Id</code></pre>
+<p>That made the benchmark run several times longer than normally (~2.5
+days compared to ~2 hours) in wall clock time, but CPU time seemed to be
+completely unaffected. (Actually, during first attempt Windows Update
+rebooted my computer after 1.5 days without asking me for
+permission.)</p>
+<p>The results were as follows:</p>
+<pre><code> bench0.exe VirtualAlloc
+ value ------------- Distribution ------------- count
+ 1 | 0
+ 2 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 25247233
+ 4 | 100680
+ 8 | 7843
+ 16 | 509
+ 32 | 16
+ 64 | 5
+ 128 | 21
+ 256 | 71
+ 512 | 4
+ 1024 | 2
+ 2048 | 0
+ 4096 | 0
+ 8192 | 1
+ 16384 | 0
+ 32768 | 1
+ 65536 | 0
+ 131072 | 1
+ 262144 | 1
+ 524288 | 0
+
+ bench0.exe DynArray<std::unique_ptr<int,std::default_delete<int> > >::Append
+ value ------------- Distribution ------------- count
+ 1 | 0
+ 2 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1995992981
+ 4 | 641329
+ 8 | 4288545
+ 16 | 65842
+ 32 | 380
+ 64 | 361
+ 128 | 3862
+ 256 | 6963
+ 512 | 670
+ 1024 | 31
+ 2048 | 8
+ 4096 | 27
+ 8192 | 0
+ 16384 | 0
+ 32768 | 1
+ 65536 | 0
+
+ bench0.exe DynArray<int>::Append
+ value ------------- Distribution ------------- count
+ 0 | 0
+ 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 21782293396
+ 2 | 155237404
+ 4 | 15543570
+ 8 | 9630471
+ 16 | 117290
+ 32 | 3117
+ 64 | 1737
+ 128 | 26619
+ 256 | 38741
+ 512 | 12741
+ 1024 | 15708
+ 2048 | 6991
+ 4096 | 77
+ 8192 | 24
+ 16384 | 40
+ 32768 | 3
+ 65536 | 0
+ 131072 | 1
+ 262144 | 1
+ 524288 | 0
+
+ bench0.exe GetProcessTimes
+ value ------------- Distribution ------------- count
+ 0 | 0
+ 1 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 27825184719
+ 2 | 177795208
+ 4 | 1094430
+ 8 | 3752032
+ 16 | 127442
+ 32 | 3074
+ 64 | 1284
+ 128 | 13774
+ 256 | 35437
+ 512 | 606
+ 1024 | 2
+ 2048 | 1
+ 4096 | 0</code></pre>
+<p>Here we can see that the outliers of <code>VirtualAlloc()</code>
+practically perfectly correspond to the outliers of
+<code>DynArray<int>::Append()</code>.
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>262</mn><mspace width="0.167em"></mspace><mn>144</mn></mrow><annotation encoding="application/x-tex">262\,144</annotation></semantics></math>
+microseconds for
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>262</mn><mspace width="0.167em"></mspace><mn>144</mn></mrow><annotation encoding="application/x-tex">262\,144</annotation></semantics></math>
+microseconds.
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>131</mn><mspace width="0.167em"></mspace><mn>072</mn></mrow><annotation encoding="application/x-tex">131\,072</annotation></semantics></math>
+microseconds for
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>131</mn><mspace width="0.167em"></mspace><mn>072</mn></mrow><annotation encoding="application/x-tex">131\,072</annotation></semantics></math>
+microseconds. The rest of numbers don’t correspond as perfectly, but
+generally are in the right ballpark, after dividing the amounts by 3
+orders of magnitude (<code>VirtualAlloc()</code> isn’t called in every
+<code>Append()</code>). That to me was sufficient evidence that
+<code>DynArray::Append()</code> latency really was determined by the
+latency of <code>VirtualAlloc()</code> and not by something extra that I
+did.</p>
+<p>For the other platforms, I’m only going to comment the numbers, when
+I see something unexpected in them.</p>
+<h5>Mac</h5>
+<h6>Memory</h6>
+<table>
+<tr>
+<th rowspan="2">
+Array Size
+</th>
+<th colspan="2">
+Peak RSS (bytes)
+</th>
+</tr>
+<tr>
+<th>
+<code>DynArray</code>
+</th>
+<th>
+<code>std::vector</code>
+</th>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>490</mn><mspace width="0.167em"></mspace><mn>944</mn></mrow><annotation encoding="application/x-tex">1\,490\,944</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>474</mn><mspace width="0.167em"></mspace><mn>560</mn></mrow><annotation encoding="application/x-tex">1\,474\,560</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>5</mn><mspace width="0.167em"></mspace><mn>521</mn><mspace width="0.167em"></mspace><mn>408</mn></mrow><annotation encoding="application/x-tex">5\,521\,408</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>715</mn><mspace width="0.167em"></mspace><mn>712</mn></mrow><annotation encoding="application/x-tex">9\,715\,712</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>001</mn><mspace width="0.167em"></mspace><mn>513</mn><mspace width="0.167em"></mspace><mn>472</mn></mrow><annotation encoding="application/x-tex">4\,001\,513\,472</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>564</mn><mspace width="0.167em"></mspace><mn>942</mn><mspace width="0.167em"></mspace><mn>848</mn></mrow><annotation encoding="application/x-tex">4\,564\,942\,848</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>247</mn><mspace width="0.167em"></mspace><mn>536</mn><mspace width="0.167em"></mspace><mn>640</mn></mrow><annotation encoding="application/x-tex">10\,247\,536\,640</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>684</mn><mspace width="0.167em"></mspace><mn>904</mn><mspace width="0.167em"></mspace><mn>960</mn></mrow><annotation encoding="application/x-tex">11\,684\,904\,960</annotation></semantics></math>
+</td>
+</tr>
+</table>
+<h6>Throughput</h6>
+<table>
+<tr>
+<th colspan="5">
+No optimisation (<code>-O0</code>)
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>260</mn></mrow><annotation encoding="application/x-tex">0.000\,260</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>846</mn><mspace width="0.167em"></mspace><mn>153</mn></mrow><annotation encoding="application/x-tex">3\,846\,153</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>089</mn></mrow><annotation encoding="application/x-tex">0.000\,089</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>235</mn><mspace width="0.167em"></mspace><mn>955</mn></mrow><annotation encoding="application/x-tex">11\,235\,955</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>462</mn></mrow><annotation encoding="application/x-tex">0.000\,462</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>164</mn><mspace width="0.167em"></mspace><mn>502</mn></mrow><annotation encoding="application/x-tex">2\,164\,502</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>372</mn></mrow><annotation encoding="application/x-tex">0.000\,372</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>688</mn><mspace width="0.167em"></mspace><mn>172</mn></mrow><annotation encoding="application/x-tex">2\,688\,172</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.023</mn><mspace width="0.167em"></mspace><mn>056</mn></mrow><annotation encoding="application/x-tex">0.023\,056</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>43</mn><mspace width="0.167em"></mspace><mn>372</mn><mspace width="0.167em"></mspace><mn>657</mn></mrow><annotation encoding="application/x-tex">43\,372\,657</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.036</mn><mspace width="0.167em"></mspace><mn>736</mn></mrow><annotation encoding="application/x-tex">0.036\,736</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>27</mn><mspace width="0.167em"></mspace><mn>221</mn><mspace width="0.167em"></mspace><mn>254</mn></mrow><annotation encoding="application/x-tex">27\,221\,254</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.051</mn><mspace width="0.167em"></mspace><mn>803</mn></mrow><annotation encoding="application/x-tex">0.051\,803</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19</mn><mspace width="0.167em"></mspace><mn>303</mn><mspace width="0.167em"></mspace><mn>901</mn></mrow><annotation encoding="application/x-tex">19\,303\,901</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.093</mn><mspace width="0.167em"></mspace><mn>763</mn></mrow><annotation encoding="application/x-tex">0.093\,763</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>665</mn><mspace width="0.167em"></mspace><mn>187</mn></mrow><annotation encoding="application/x-tex">10\,665\,187</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7.423</mn><mspace width="0.167em"></mspace><mn>329</mn></mrow><annotation encoding="application/x-tex">7.423\,329</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>134</mn><mspace width="0.167em"></mspace><mn>710</mn><mspace width="0.167em"></mspace><mn>451</mn></mrow><annotation encoding="application/x-tex">134\,710\,451</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.339</mn><mspace width="0.167em"></mspace><mn>444</mn></mrow><annotation encoding="application/x-tex">19.339\,444</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51</mn><mspace width="0.167em"></mspace><mn>707</mn><mspace width="0.167em"></mspace><mn>794</mn></mrow><annotation encoding="application/x-tex">51\,707\,794</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>77.600</mn><mspace width="0.167em"></mspace><mn>856</mn></mrow><annotation encoding="application/x-tex">77.600\,856</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12</mn><mspace width="0.167em"></mspace><mn>886</mn><mspace width="0.167em"></mspace><mn>455</mn></mrow><annotation encoding="application/x-tex">12\,886\,455</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>98.452</mn><mspace width="0.167em"></mspace><mn>377</mn></mrow><annotation encoding="application/x-tex">98.452\,377</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>157</mn><mspace width="0.167em"></mspace><mn>195</mn></mrow><annotation encoding="application/x-tex">10\,157\,195</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76.536</mn><mspace width="0.167em"></mspace><mn>928</mn></mrow><annotation encoding="application/x-tex">76.536\,928</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>130</mn><mspace width="0.167em"></mspace><mn>655</mn><mspace width="0.167em"></mspace><mn>884</mn></mrow><annotation encoding="application/x-tex">130\,655\,884</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>245.702</mn><mspace width="0.167em"></mspace><mn>541</mn></mrow><annotation encoding="application/x-tex">245.702\,541</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>40</mn><mspace width="0.167em"></mspace><mn>699</mn><mspace width="0.167em"></mspace><mn>619</mn></mrow><annotation encoding="application/x-tex">40\,699\,619</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>-O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>317</mn></mrow><annotation encoding="application/x-tex">0.000\,317</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>154</mn><mspace width="0.167em"></mspace><mn>574</mn></mrow><annotation encoding="application/x-tex">3\,154\,574</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>021</mn></mrow><annotation encoding="application/x-tex">0.000\,021</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>619</mn><mspace width="0.167em"></mspace><mn>047</mn></mrow><annotation encoding="application/x-tex">47\,619\,047</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>388</mn></mrow><annotation encoding="application/x-tex">0.000\,388</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>577</mn><mspace width="0.167em"></mspace><mn>319</mn></mrow><annotation encoding="application/x-tex">2\,577\,319</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>100</mn></mrow><annotation encoding="application/x-tex">0.000\,100</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">10\,000\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.013</mn><mspace width="0.167em"></mspace><mn>400</mn></mrow><annotation encoding="application/x-tex">0.013\,400</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>74</mn><mspace width="0.167em"></mspace><mn>626</mn><mspace width="0.167em"></mspace><mn>865</mn></mrow><annotation encoding="application/x-tex">74\,626\,865</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.020</mn><mspace width="0.167em"></mspace><mn>791</mn></mrow><annotation encoding="application/x-tex">0.020\,791</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>097</mn><mspace width="0.167em"></mspace><mn>734</mn></mrow><annotation encoding="application/x-tex">48\,097\,734</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.046</mn><mspace width="0.167em"></mspace><mn>920</mn></mrow><annotation encoding="application/x-tex">0.046\,920</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>312</mn><mspace width="0.167em"></mspace><mn>872</mn></mrow><annotation encoding="application/x-tex">21\,312\,872</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.045</mn><mspace width="0.167em"></mspace><mn>331</mn></mrow><annotation encoding="application/x-tex">0.045\,331</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>059</mn><mspace width="0.167em"></mspace><mn>958</mn></mrow><annotation encoding="application/x-tex">22\,059\,958</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.411</mn><mspace width="0.167em"></mspace><mn>640</mn></mrow><annotation encoding="application/x-tex">4.411\,640</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>226</mn><mspace width="0.167em"></mspace><mn>673</mn><mspace width="0.167em"></mspace><mn>073</mn></mrow><annotation encoding="application/x-tex">226\,673\,073</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8.280</mn><mspace width="0.167em"></mspace><mn>048</mn></mrow><annotation encoding="application/x-tex">8.280\,048</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>120</mn><mspace width="0.167em"></mspace><mn>772</mn><mspace width="0.167em"></mspace><mn>246</mn></mrow><annotation encoding="application/x-tex">120\,772\,246</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>61.713</mn><mspace width="0.167em"></mspace><mn>235</mn></mrow><annotation encoding="application/x-tex">61.713\,235</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>203</mn><mspace width="0.167em"></mspace><mn>979</mn></mrow><annotation encoding="application/x-tex">16\,203\,979</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>49.259</mn><mspace width="0.167em"></mspace><mn>080</mn></mrow><annotation encoding="application/x-tex">49.259\,080</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>300</mn><mspace width="0.167em"></mspace><mn>825</mn></mrow><annotation encoding="application/x-tex">20\,300\,825</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45.927</mn><mspace width="0.167em"></mspace><mn>810</mn></mrow><annotation encoding="application/x-tex">45.927\,810</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>217</mn><mspace width="0.167em"></mspace><mn>733</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">217\,733\,003</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>107.315</mn><mspace width="0.167em"></mspace><mn>495</mn></mrow><annotation encoding="application/x-tex">107.315\,495</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>93183188</mn><annotation encoding="application/x-tex">93183188</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>-O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>313</mn></mrow><annotation encoding="application/x-tex">0.000\,313</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>194</mn><mspace width="0.167em"></mspace><mn>888</mn></mrow><annotation encoding="application/x-tex">3\,194\,888</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>166</mn><mspace width="0.167em"></mspace><mn>666</mn><mspace width="0.167em"></mspace><mn>666</mn></mrow><annotation encoding="application/x-tex">166\,666\,666</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>374</mn></mrow><annotation encoding="application/x-tex">0.000\,374</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>673</mn><mspace width="0.167em"></mspace><mn>796</mn></mrow><annotation encoding="application/x-tex">2\,673\,796</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">0.000\,049</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>408</mn><mspace width="0.167em"></mspace><mn>163</mn></mrow><annotation encoding="application/x-tex">20\,408\,163</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>542</mn></mrow><annotation encoding="application/x-tex">0.006\,542</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>152</mn><mspace width="0.167em"></mspace><mn>858</mn><mspace width="0.167em"></mspace><mn>453</mn></mrow><annotation encoding="application/x-tex">152\,858\,453</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.003</mn><mspace width="0.167em"></mspace><mn>067</mn></mrow><annotation encoding="application/x-tex">0.003\,067</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>326</mn><mspace width="0.167em"></mspace><mn>051</mn><mspace width="0.167em"></mspace><mn>516</mn></mrow><annotation encoding="application/x-tex">326\,051\,516</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.033</mn><mspace width="0.167em"></mspace><mn>893</mn></mrow><annotation encoding="application/x-tex">0.033\,893</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>29</mn><mspace width="0.167em"></mspace><mn>504</mn><mspace width="0.167em"></mspace><mn>617</mn></mrow><annotation encoding="application/x-tex">29\,504\,617</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.018</mn><mspace width="0.167em"></mspace><mn>518</mn></mrow><annotation encoding="application/x-tex">0.018\,518</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>54</mn><mspace width="0.167em"></mspace><mn>001</mn><mspace width="0.167em"></mspace><mn>512</mn></mrow><annotation encoding="application/x-tex">54\,001\,512</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.581</mn><mspace width="0.167em"></mspace><mn>145</mn></mrow><annotation encoding="application/x-tex">2.581\,145</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>387</mn><mspace width="0.167em"></mspace><mn>424</mn><mspace width="0.167em"></mspace><mn>960</mn></mrow><annotation encoding="application/x-tex">387\,424\,960</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.024</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">1.024\,011</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>976</mn><mspace width="0.167em"></mspace><mn>552</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">976\,552\,009</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47.618</mn><mspace width="0.167em"></mspace><mn>644</mn></mrow><annotation encoding="application/x-tex">47.618\,644</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>000</mn><mspace width="0.167em"></mspace><mn>177</mn></mrow><annotation encoding="application/x-tex">21\,000\,177</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.480</mn><mspace width="0.167em"></mspace><mn>989</mn></mrow><annotation encoding="application/x-tex">19.480\,989</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51</mn><mspace width="0.167em"></mspace><mn>332</mn><mspace width="0.167em"></mspace><mn>096</mn></mrow><annotation encoding="application/x-tex">51\,332\,096</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>28.125</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">28.125\,049</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>355</mn><mspace width="0.167em"></mspace><mn>554</mn><mspace width="0.167em"></mspace><mn>936</mn></mrow><annotation encoding="application/x-tex">355\,554\,936</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34.616</mn><mspace width="0.167em"></mspace><mn>087</mn></mrow><annotation encoding="application/x-tex">34.616\,087</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>288</mn><mspace width="0.167em"></mspace><mn>883</mn><mspace width="0.167em"></mspace><mn>027</mn></mrow><annotation encoding="application/x-tex">288\,883\,027</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<h6>Latency</h6>
+<table>
+<tr>
+<th colspan="14">
+No optimisation (<code>-O0</code>)
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>023</mn></mrow><annotation encoding="application/x-tex">0.000\,023</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>736</mn><annotation encoding="application/x-tex">736</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>263</mn><annotation encoding="application/x-tex">263</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>042</mn></mrow><annotation encoding="application/x-tex">0.000\,042</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>726</mn><annotation encoding="application/x-tex">726</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>271</mn><annotation encoding="application/x-tex">271</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>004</mn></mrow><annotation encoding="application/x-tex">0.000\,004</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>735</mn><annotation encoding="application/x-tex">735</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>265</mn><annotation encoding="application/x-tex">265</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>018</mn></mrow><annotation encoding="application/x-tex">0.000\,018</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>700</mn><annotation encoding="application/x-tex">700</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>299</mn><annotation encoding="application/x-tex">299</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">0.000\,011</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>766</mn><mspace width="0.167em"></mspace><mn>875</mn></mrow><annotation encoding="application/x-tex">766\,875</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>233</mn><mspace width="0.167em"></mspace><mn>123</mn></mrow><annotation encoding="application/x-tex">233\,123</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.002</mn><mspace width="0.167em"></mspace><mn>437</mn></mrow><annotation encoding="application/x-tex">0.002\,437</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>769</mn><mspace width="0.167em"></mspace><mn>699</mn></mrow><annotation encoding="application/x-tex">769\,699</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>230</mn><mspace width="0.167em"></mspace><mn>290</mn></mrow><annotation encoding="application/x-tex">230\,290</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>077</mn></mrow><annotation encoding="application/x-tex">0.000\,077</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>746</mn><mspace width="0.167em"></mspace><mn>335</mn></mrow><annotation encoding="application/x-tex">746\,335</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>649</mn></mrow><annotation encoding="application/x-tex">253\,649</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.016</mn><mspace width="0.167em"></mspace><mn>903</mn></mrow><annotation encoding="application/x-tex">0.016\,903</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>739</mn><mspace width="0.167em"></mspace><mn>203</mn></mrow><annotation encoding="application/x-tex">739\,203</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>260</mn><mspace width="0.167em"></mspace><mn>770</mn></mrow><annotation encoding="application/x-tex">260\,770</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>19</mn><annotation encoding="application/x-tex">19</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>119</mn></mrow><annotation encoding="application/x-tex">0.000\,119</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>778</mn><mspace width="0.167em"></mspace><mn>041</mn><mspace width="0.167em"></mspace><mn>048</mn></mrow><annotation encoding="application/x-tex">778\,041\,048</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>221</mn><mspace width="0.167em"></mspace><mn>953</mn><mspace width="0.167em"></mspace><mn>956</mn></mrow><annotation encoding="application/x-tex">221\,953\,956</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>995</mn></mrow><annotation encoding="application/x-tex">4\,995</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.372</mn><mspace width="0.167em"></mspace><mn>019</mn></mrow><annotation encoding="application/x-tex">2.372\,019</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>773</mn><mspace width="0.167em"></mspace><mn>599</mn><mspace width="0.167em"></mspace><mn>499</mn></mrow><annotation encoding="application/x-tex">773\,599\,499</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>226</mn><mspace width="0.167em"></mspace><mn>394</mn><mspace width="0.167em"></mspace><mn>128</mn></mrow><annotation encoding="application/x-tex">226\,394\,128</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>358</mn></mrow><annotation encoding="application/x-tex">6\,358</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.004</mn><mspace width="0.167em"></mspace><mn>569</mn></mrow><annotation encoding="application/x-tex">0.004\,569</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>746</mn><mspace width="0.167em"></mspace><mn>486</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">746\,486\,003</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>494</mn><mspace width="0.167em"></mspace><mn>790</mn></mrow><annotation encoding="application/x-tex">253\,494\,790</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19</mn><mspace width="0.167em"></mspace><mn>085</mn></mrow><annotation encoding="application/x-tex">19\,085</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>106</mn><annotation encoding="application/x-tex">106</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>18.939</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">18.939\,011</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>741</mn><mspace width="0.167em"></mspace><mn>265</mn><mspace width="0.167em"></mspace><mn>650</mn></mrow><annotation encoding="application/x-tex">741\,265\,650</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>258</mn><mspace width="0.167em"></mspace><mn>717</mn><mspace width="0.167em"></mspace><mn>702</mn></mrow><annotation encoding="application/x-tex">258\,717\,702</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>547</mn></mrow><annotation encoding="application/x-tex">16\,547</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>85</mn><annotation encoding="application/x-tex">85</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>128</mn></mrow><annotation encoding="application/x-tex">0.000\,128</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>781</mn><mspace width="0.167em"></mspace><mn>041</mn><mspace width="0.167em"></mspace><mn>097</mn></mrow><annotation encoding="application/x-tex">7\,781\,041\,097</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>218</mn><mspace width="0.167em"></mspace><mn>900</mn><mspace width="0.167em"></mspace><mn>231</mn></mrow><annotation encoding="application/x-tex">2\,218\,900\,231</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>58</mn><mspace width="0.167em"></mspace><mn>622</mn></mrow><annotation encoding="application/x-tex">58\,622</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>50</mn><annotation encoding="application/x-tex">50</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51.349</mn><mspace width="0.167em"></mspace><mn>387</mn></mrow><annotation encoding="application/x-tex">51.349\,387</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>738</mn><mspace width="0.167em"></mspace><mn>549</mn><mspace width="0.167em"></mspace><mn>626</mn></mrow><annotation encoding="application/x-tex">7\,738\,549\,626</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>261</mn><mspace width="0.167em"></mspace><mn>396</mn><mspace width="0.167em"></mspace><mn>549</mn></mrow><annotation encoding="application/x-tex">2\,261\,396\,549</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>53</mn><mspace width="0.167em"></mspace><mn>792</mn></mrow><annotation encoding="application/x-tex">53\,792</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>-O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>779</mn><annotation encoding="application/x-tex">779</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>220</mn><annotation encoding="application/x-tex">220</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>737</mn><annotation encoding="application/x-tex">737</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>260</mn><annotation encoding="application/x-tex">260</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>002</mn></mrow><annotation encoding="application/x-tex">0.000\,002</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>742</mn><annotation encoding="application/x-tex">742</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>258</mn><annotation encoding="application/x-tex">258</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>737</mn><annotation encoding="application/x-tex">737</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>263</mn><annotation encoding="application/x-tex">263</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>011</mn></mrow><annotation encoding="application/x-tex">0.000\,011</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>758</mn><mspace width="0.167em"></mspace><mn>870</mn></mrow><annotation encoding="application/x-tex">758\,870</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>241</mn><mspace width="0.167em"></mspace><mn>126</mn></mrow><annotation encoding="application/x-tex">241\,126</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>177</mn></mrow><annotation encoding="application/x-tex">0.000\,177</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>758</mn><mspace width="0.167em"></mspace><mn>529</mn></mrow><annotation encoding="application/x-tex">758\,529</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>241</mn><mspace width="0.167em"></mspace><mn>453</mn></mrow><annotation encoding="application/x-tex">241\,453</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>052</mn></mrow><annotation encoding="application/x-tex">0.000\,052</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>740</mn><mspace width="0.167em"></mspace><mn>348</mn></mrow><annotation encoding="application/x-tex">740\,348</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>259</mn><mspace width="0.167em"></mspace><mn>644</mn></mrow><annotation encoding="application/x-tex">259\,644</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>409</mn></mrow><annotation encoding="application/x-tex">0.006\,409</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>745</mn><mspace width="0.167em"></mspace><mn>641</mn></mrow><annotation encoding="application/x-tex">745\,641</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>254</mn><mspace width="0.167em"></mspace><mn>334</mn></mrow><annotation encoding="application/x-tex">254\,334</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>19</mn><annotation encoding="application/x-tex">19</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>042</mn></mrow><annotation encoding="application/x-tex">0.000\,042</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>772</mn><mspace width="0.167em"></mspace><mn>114</mn><mspace width="0.167em"></mspace><mn>172</mn></mrow><annotation encoding="application/x-tex">772\,114\,172</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>227</mn><mspace width="0.167em"></mspace><mn>881</mn><mspace width="0.167em"></mspace><mn>241</mn></mrow><annotation encoding="application/x-tex">227\,881\,241</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>587</mn></mrow><annotation encoding="application/x-tex">4\,587</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.204</mn><mspace width="0.167em"></mspace><mn>094</mn></mrow><annotation encoding="application/x-tex">0.204\,094</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>767</mn><mspace width="0.167em"></mspace><mn>987</mn><mspace width="0.167em"></mspace><mn>634</mn></mrow><annotation encoding="application/x-tex">767\,987\,634</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>232</mn><mspace width="0.167em"></mspace><mn>007</mn><mspace width="0.167em"></mspace><mn>898</mn></mrow><annotation encoding="application/x-tex">232\,007\,898</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>457</mn></mrow><annotation encoding="application/x-tex">4\,457</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.002</mn><mspace width="0.167em"></mspace><mn>871</mn></mrow><annotation encoding="application/x-tex">0.002\,871</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>748</mn><mspace width="0.167em"></mspace><mn>034</mn><mspace width="0.167em"></mspace><mn>858</mn></mrow><annotation encoding="application/x-tex">748\,034\,858</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>251</mn><mspace width="0.167em"></mspace><mn>951</mn><mspace width="0.167em"></mspace><mn>964</mn></mrow><annotation encoding="application/x-tex">251\,951\,964</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>13</mn><mspace width="0.167em"></mspace><mn>154</mn></mrow><annotation encoding="application/x-tex">13\,154</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8.329</mn><mspace width="0.167em"></mspace><mn>990</mn></mrow><annotation encoding="application/x-tex">8.329\,990</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>745</mn><mspace width="0.167em"></mspace><mn>391</mn><mspace width="0.167em"></mspace><mn>293</mn></mrow><annotation encoding="application/x-tex">745\,391\,293</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>254</mn><mspace width="0.167em"></mspace><mn>599</mn><mspace width="0.167em"></mspace><mn>112</mn></mrow><annotation encoding="application/x-tex">254\,599\,112</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>572</mn></mrow><annotation encoding="application/x-tex">9\,572</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>7</mn><annotation encoding="application/x-tex">7</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>7</mn><annotation encoding="application/x-tex">7</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>072</mn></mrow><annotation encoding="application/x-tex">0.000\,072</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>720</mn><mspace width="0.167em"></mspace><mn>702</mn><mspace width="0.167em"></mspace><mn>598</mn></mrow><annotation encoding="application/x-tex">7\,720\,702\,598</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>279</mn><mspace width="0.167em"></mspace><mn>248</mn><mspace width="0.167em"></mspace><mn>850</mn></mrow><annotation encoding="application/x-tex">2\,279\,248\,850</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>552</mn></mrow><annotation encoding="application/x-tex">48\,552</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.388</mn><mspace width="0.167em"></mspace><mn>545</mn></mrow><annotation encoding="application/x-tex">16.388\,545</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>679</mn><mspace width="0.167em"></mspace><mn>523</mn><mspace width="0.167em"></mspace><mn>460</mn></mrow><annotation encoding="application/x-tex">7\,679\,523\,460</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>320</mn><mspace width="0.167em"></mspace><mn>428</mn><mspace width="0.167em"></mspace><mn>793</mn></mrow><annotation encoding="application/x-tex">2\,320\,428\,793</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>726</mn></mrow><annotation encoding="application/x-tex">47\,726</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>-O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>008</mn></mrow><annotation encoding="application/x-tex">0.000\,008</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>768</mn><annotation encoding="application/x-tex">768</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>232</mn><annotation encoding="application/x-tex">232</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>054</mn></mrow><annotation encoding="application/x-tex">0.000\,054</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>758</mn><annotation encoding="application/x-tex">758</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>237</mn><annotation encoding="application/x-tex">237</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>748</mn><annotation encoding="application/x-tex">748</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>252</mn><annotation encoding="application/x-tex">252</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>741</mn><annotation encoding="application/x-tex">741</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>259</mn><annotation encoding="application/x-tex">259</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>763</mn><mspace width="0.167em"></mspace><mn>508</mn></mrow><annotation encoding="application/x-tex">763\,508</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>236</mn><mspace width="0.167em"></mspace><mn>491</mn></mrow><annotation encoding="application/x-tex">236\,491</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>185</mn></mrow><annotation encoding="application/x-tex">0.000\,185</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>765</mn><mspace width="0.167em"></mspace><mn>899</mn></mrow><annotation encoding="application/x-tex">765\,899</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>234</mn><mspace width="0.167em"></mspace><mn>092</mn></mrow><annotation encoding="application/x-tex">234\,092</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>074</mn></mrow><annotation encoding="application/x-tex">0.000\,074</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>745</mn><mspace width="0.167em"></mspace><mn>131</mn></mrow><annotation encoding="application/x-tex">745\,131</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>254</mn><mspace width="0.167em"></mspace><mn>864</mn></mrow><annotation encoding="application/x-tex">254\,864</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>895</mn></mrow><annotation encoding="application/x-tex">0.000\,895</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>750</mn><mspace width="0.167em"></mspace><mn>934</mn></mrow><annotation encoding="application/x-tex">750\,934</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>249</mn><mspace width="0.167em"></mspace><mn>047</mn></mrow><annotation encoding="application/x-tex">249\,047</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>15</mn><annotation encoding="application/x-tex">15</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>054</mn></mrow><annotation encoding="application/x-tex">0.000\,054</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>769</mn><mspace width="0.167em"></mspace><mn>831</mn><mspace width="0.167em"></mspace><mn>147</mn></mrow><annotation encoding="application/x-tex">769\,831\,147</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>230</mn><mspace width="0.167em"></mspace><mn>164</mn><mspace width="0.167em"></mspace><mn>413</mn></mrow><annotation encoding="application/x-tex">230\,164\,413</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>440</mn></mrow><annotation encoding="application/x-tex">4\,440</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.210</mn><mspace width="0.167em"></mspace><mn>026</mn></mrow><annotation encoding="application/x-tex">0.210\,026</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>770</mn><mspace width="0.167em"></mspace><mn>968</mn><mspace width="0.167em"></mspace><mn>775</mn></mrow><annotation encoding="application/x-tex">770\,968\,775</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>229</mn><mspace width="0.167em"></mspace><mn>027</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">229\,027\,009</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>204</mn></mrow><annotation encoding="application/x-tex">4\,204</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>377</mn></mrow><annotation encoding="application/x-tex">0.006\,377</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>753</mn><mspace width="0.167em"></mspace><mn>974</mn><mspace width="0.167em"></mspace><mn>964</mn></mrow><annotation encoding="application/x-tex">753\,974\,964</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>246</mn><mspace width="0.167em"></mspace><mn>013</mn><mspace width="0.167em"></mspace><mn>774</mn></mrow><annotation encoding="application/x-tex">246\,013\,774</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">11\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.935</mn><mspace width="0.167em"></mspace><mn>007</mn></mrow><annotation encoding="application/x-tex">2.935\,007</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>752</mn><mspace width="0.167em"></mspace><mn>346</mn><mspace width="0.167em"></mspace><mn>656</mn></mrow><annotation encoding="application/x-tex">752\,346\,656</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>247</mn><mspace width="0.167em"></mspace><mn>643</mn><mspace width="0.167em"></mspace><mn>704</mn></mrow><annotation encoding="application/x-tex">247\,643\,704</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>9</mn><mspace width="0.167em"></mspace><mn>616</mn></mrow><annotation encoding="application/x-tex">9\,616</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>132</mn></mrow><annotation encoding="application/x-tex">0.000\,132</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>699</mn><mspace width="0.167em"></mspace><mn>417</mn><mspace width="0.167em"></mspace><mn>275</mn></mrow><annotation encoding="application/x-tex">7\,699\,417\,275</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>300</mn><mspace width="0.167em"></mspace><mn>534</mn><mspace width="0.167em"></mspace><mn>425</mn></mrow><annotation encoding="application/x-tex">2\,300\,534\,425</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>299</mn></mrow><annotation encoding="application/x-tex">48\,299</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.338</mn><mspace width="0.167em"></mspace><mn>763</mn></mrow><annotation encoding="application/x-tex">16.338\,763</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>689</mn><mspace width="0.167em"></mspace><mn>689</mn><mspace width="0.167em"></mspace><mn>639</mn></mrow><annotation encoding="application/x-tex">7\,689\,689\,639</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>310</mn><mspace width="0.167em"></mspace><mn>264</mn><mspace width="0.167em"></mspace><mn>815</mn></mrow><annotation encoding="application/x-tex">2\,310\,264\,815</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45</mn><mspace width="0.167em"></mspace><mn>530</mn></mrow><annotation encoding="application/x-tex">45\,530</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<h5>FreeBSD</h5>
+<h6>Memory</h6>
+<table>
+<tr>
+<th rowspan="2">
+Array Size
+</th>
+<th colspan="2">
+Peak RSS (bytes)
+</th>
+</tr>
+<tr>
+<th>
+<code>DynArray</code>
+</th>
+<th>
+<code>std::vector</code>
+</th>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>792</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">3\,792\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>548</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">4\,548\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>913</mn><mspace width="0.167em"></mspace><mn>836</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">3\,913\,836\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8</mn><mspace width="0.167em"></mspace><mn>093</mn><mspace width="0.167em"></mspace><mn>936</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">8\,093\,936\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<td style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+<td style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<p>The first row is a bit surprising. It turns out that if I execute
+<code>mem_dynarray1000</code> in an infinite loop,
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>90</mn><mi>%</mi></mrow><annotation encoding="application/x-tex">90\%</annotation></semantics></math>
+of the time it prints
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>,
+and other times it prints numbers which differ by several orders of
+magnitude between each other. It looks like a bug. Results on Mac and
+Linux are stable between runs. It’s safe to assume numbers in this table
+are underreported.</p>
+<p>When it comes to the OOM killer, the first time I run the test it
+killed not only the process running the benchmark, but also my SSH
+session. Case in point for my rant about overcommit and OOM killer
+earlier.</p>
+<h6>Throughput</h6>
+<table>
+<tr>
+<th colspan="5">
+No optimisation (<code>-O0</code>)
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>017</mn></mrow><annotation encoding="application/x-tex">0.000\,017</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>58</mn><mspace width="0.167em"></mspace><mn>823</mn><mspace width="0.167em"></mspace><mn>529</mn></mrow><annotation encoding="application/x-tex">58\,823\,529</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>061</mn></mrow><annotation encoding="application/x-tex">0.000\,061</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16</mn><mspace width="0.167em"></mspace><mn>393</mn><mspace width="0.167em"></mspace><mn>442</mn></mrow><annotation encoding="application/x-tex">16\,393\,442</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>069</mn></mrow><annotation encoding="application/x-tex">0.000\,069</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14</mn><mspace width="0.167em"></mspace><mn>492</mn><mspace width="0.167em"></mspace><mn>753</mn></mrow><annotation encoding="application/x-tex">14\,492\,753</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>145</mn></mrow><annotation encoding="application/x-tex">0.000\,145</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>896</mn><mspace width="0.167em"></mspace><mn>551</mn></mrow><annotation encoding="application/x-tex">6\,896\,551</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.014</mn><mspace width="0.167em"></mspace><mn>053</mn></mrow><annotation encoding="application/x-tex">0.014\,053</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>71</mn><mspace width="0.167em"></mspace><mn>159</mn><mspace width="0.167em"></mspace><mn>183</mn></mrow><annotation encoding="application/x-tex">71\,159\,183</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.030</mn><mspace width="0.167em"></mspace><mn>769</mn></mrow><annotation encoding="application/x-tex">0.030\,769</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>500</mn><mspace width="0.167em"></mspace><mn>243</mn></mrow><annotation encoding="application/x-tex">32\,500\,243</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.064</mn><mspace width="0.167em"></mspace><mn>249</mn></mrow><annotation encoding="application/x-tex">0.064\,249</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>15</mn><mspace width="0.167em"></mspace><mn>564</mn><mspace width="0.167em"></mspace><mn>444</mn></mrow><annotation encoding="application/x-tex">15\,564\,444</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.127</mn><mspace width="0.167em"></mspace><mn>867</mn></mrow><annotation encoding="application/x-tex">0.127\,867</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>820</mn><mspace width="0.167em"></mspace><mn>626</mn></mrow><annotation encoding="application/x-tex">7\,820\,626</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>12.720</mn><mspace width="0.167em"></mspace><mn>856</mn></mrow><annotation encoding="application/x-tex">12.720\,856</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>78</mn><mspace width="0.167em"></mspace><mn>611</mn><mspace width="0.167em"></mspace><mn>062</mn></mrow><annotation encoding="application/x-tex">78\,611\,062</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>33.253</mn><mspace width="0.167em"></mspace><mn>775</mn></mrow><annotation encoding="application/x-tex">33.253\,775</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>30</mn><mspace width="0.167em"></mspace><mn>071</mn><mspace width="0.167em"></mspace><mn>773</mn></mrow><annotation encoding="application/x-tex">30\,071\,773</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66.044</mn><mspace width="0.167em"></mspace><mn>360</mn></mrow><annotation encoding="application/x-tex">66.044\,360</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>15</mn><mspace width="0.167em"></mspace><mn>141</mn><mspace width="0.167em"></mspace><mn>338</mn></mrow><annotation encoding="application/x-tex">15\,141\,338</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>134.103</mn><mspace width="0.167em"></mspace><mn>236</mn></mrow><annotation encoding="application/x-tex">134.103\,236</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>456</mn><mspace width="0.167em"></mspace><mn>941</mn></mrow><annotation encoding="application/x-tex">7\,456\,941</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>-O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>012</mn></mrow><annotation encoding="application/x-tex">0.000\,012</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>83</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">83\,333\,333</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>043</mn></mrow><annotation encoding="application/x-tex">0.000\,043</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>23</mn><mspace width="0.167em"></mspace><mn>255</mn><mspace width="0.167em"></mspace><mn>813</mn></mrow><annotation encoding="application/x-tex">23\,255\,813</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>029</mn></mrow><annotation encoding="application/x-tex">0.000\,029</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>482</mn><mspace width="0.167em"></mspace><mn>758</mn></mrow><annotation encoding="application/x-tex">34\,482\,758</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>030</mn></mrow><annotation encoding="application/x-tex">0.000\,030</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>33</mn><mspace width="0.167em"></mspace><mn>333</mn><mspace width="0.167em"></mspace><mn>333</mn></mrow><annotation encoding="application/x-tex">33\,333\,333</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.008</mn><mspace width="0.167em"></mspace><mn>916</mn></mrow><annotation encoding="application/x-tex">0.008\,916</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>112</mn><mspace width="0.167em"></mspace><mn>157</mn><mspace width="0.167em"></mspace><mn>918</mn></mrow><annotation encoding="application/x-tex">112\,157\,918</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>711</mn></mrow><annotation encoding="application/x-tex">0.005\,711</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>175</mn><mspace width="0.167em"></mspace><mn>100</mn><mspace width="0.167em"></mspace><mn>682</mn></mrow><annotation encoding="application/x-tex">175\,100\,682</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.024</mn><mspace width="0.167em"></mspace><mn>446</mn></mrow><annotation encoding="application/x-tex">0.024\,446</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>40</mn><mspace width="0.167em"></mspace><mn>906</mn><mspace width="0.167em"></mspace><mn>487</mn></mrow><annotation encoding="application/x-tex">40\,906\,487</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.020</mn><mspace width="0.167em"></mspace><mn>466</mn></mrow><annotation encoding="application/x-tex">0.020\,466</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>48</mn><mspace width="0.167em"></mspace><mn>861</mn><mspace width="0.167em"></mspace><mn>526</mn></mrow><annotation encoding="application/x-tex">48\,861\,526</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.729</mn><mspace width="0.167em"></mspace><mn>038</mn></mrow><annotation encoding="application/x-tex">3.729\,038</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>268</mn><mspace width="0.167em"></mspace><mn>165</mn><mspace width="0.167em"></mspace><mn>677</mn></mrow><annotation encoding="application/x-tex">268\,165\,677</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.950</mn><mspace width="0.167em"></mspace><mn>968</mn></mrow><annotation encoding="application/x-tex">3.950\,968</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>102</mn><mspace width="0.167em"></mspace><mn>530</mn></mrow><annotation encoding="application/x-tex">253\,102\,530</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.577</mn><mspace width="0.167em"></mspace><mn>674</mn></mrow><annotation encoding="application/x-tex">16.577\,674</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>60</mn><mspace width="0.167em"></mspace><mn>322</mn><mspace width="0.167em"></mspace><mn>093</mn></mrow><annotation encoding="application/x-tex">60\,322\,093</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.598</mn><mspace width="0.167em"></mspace><mn>912</mn></mrow><annotation encoding="application/x-tex">19.598\,912</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>51</mn><mspace width="0.167em"></mspace><mn>023</mn><mspace width="0.167em"></mspace><mn>240</mn></mrow><annotation encoding="application/x-tex">51\,023\,240</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>-O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>007</mn></mrow><annotation encoding="application/x-tex">0.000\,007</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>142</mn><mspace width="0.167em"></mspace><mn>857</mn><mspace width="0.167em"></mspace><mn>142</mn></mrow><annotation encoding="application/x-tex">142\,857\,142</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>022</mn></mrow><annotation encoding="application/x-tex">0.000\,022</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45</mn><mspace width="0.167em"></mspace><mn>454</mn><mspace width="0.167em"></mspace><mn>545</mn></mrow><annotation encoding="application/x-tex">45\,454\,545</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>015</mn></mrow><annotation encoding="application/x-tex">0.000\,015</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66</mn><mspace width="0.167em"></mspace><mn>666</mn><mspace width="0.167em"></mspace><mn>666</mn></mrow><annotation encoding="application/x-tex">66\,666\,666</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>015</mn></mrow><annotation encoding="application/x-tex">0.000\,015</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66</mn><mspace width="0.167em"></mspace><mn>666</mn><mspace width="0.167em"></mspace><mn>666</mn></mrow><annotation encoding="application/x-tex">66\,666\,666</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.003</mn><mspace width="0.167em"></mspace><mn>832</mn></mrow><annotation encoding="application/x-tex">0.003\,832</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>260</mn><mspace width="0.167em"></mspace><mn>960</mn><mspace width="0.167em"></mspace><mn>334</mn></mrow><annotation encoding="application/x-tex">260\,960\,334</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.002</mn><mspace width="0.167em"></mspace><mn>374</mn></mrow><annotation encoding="application/x-tex">0.002\,374</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>421</mn><mspace width="0.167em"></mspace><mn>229</mn><mspace width="0.167em"></mspace><mn>991</mn></mrow><annotation encoding="application/x-tex">421\,229\,991</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.014</mn><mspace width="0.167em"></mspace><mn>070</mn></mrow><annotation encoding="application/x-tex">0.014\,070</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>71</mn><mspace width="0.167em"></mspace><mn>073</mn><mspace width="0.167em"></mspace><mn>205</mn></mrow><annotation encoding="application/x-tex">71\,073\,205</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.011</mn><mspace width="0.167em"></mspace><mn>030</mn></mrow><annotation encoding="application/x-tex">0.011\,030</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>90</mn><mspace width="0.167em"></mspace><mn>661</mn><mspace width="0.167em"></mspace><mn>831</mn></mrow><annotation encoding="application/x-tex">90\,661\,831</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.948</mn><mspace width="0.167em"></mspace><mn>549</mn></mrow><annotation encoding="application/x-tex">3.948\,549</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>253</mn><mspace width="0.167em"></mspace><mn>257</mn><mspace width="0.167em"></mspace><mn>589</mn></mrow><annotation encoding="application/x-tex">253\,257\,589</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.587</mn><mspace width="0.167em"></mspace><mn>411</mn></mrow><annotation encoding="application/x-tex">2.587\,411</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>386</mn><mspace width="0.167em"></mspace><mn>486</mn><mspace width="0.167em"></mspace><mn>723</mn></mrow><annotation encoding="application/x-tex">386\,486\,723</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.367</mn><mspace width="0.167em"></mspace><mn>930</mn></mrow><annotation encoding="application/x-tex">16.367\,930</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>61</mn><mspace width="0.167em"></mspace><mn>095</mn><mspace width="0.167em"></mspace><mn>080</mn></mrow><annotation encoding="application/x-tex">61\,095\,080</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19.173</mn><mspace width="0.167em"></mspace><mn>182</mn></mrow><annotation encoding="application/x-tex">19.173\,182</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>52</mn><mspace width="0.167em"></mspace><mn>156</mn><mspace width="0.167em"></mspace><mn>183</mn></mrow><annotation encoding="application/x-tex">52\,156\,183</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<h6>Latency</h6>
+<table>
+<tr>
+<th colspan="14">
+No optimisation (<code>-O0</code>)
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>015</mn></mrow><annotation encoding="application/x-tex">0.000\,015</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>840</mn><annotation encoding="application/x-tex">840</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>159</mn><annotation encoding="application/x-tex">159</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>229</mn></mrow><annotation encoding="application/x-tex">0.000\,229</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>794</mn><annotation encoding="application/x-tex">794</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>205</mn><annotation encoding="application/x-tex">205</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>727</mn><annotation encoding="application/x-tex">727</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>273</mn><annotation encoding="application/x-tex">273</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.048</mn><mspace width="0.167em"></mspace><mn>135</mn></mrow><annotation encoding="application/x-tex">0.048\,135</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>721</mn><annotation encoding="application/x-tex">721</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>277</mn><annotation encoding="application/x-tex">277</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>504</mn></mrow><annotation encoding="application/x-tex">0.007\,504</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>957</mn><mspace width="0.167em"></mspace><mn>349</mn></mrow><annotation encoding="application/x-tex">957\,349</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>42</mn><mspace width="0.167em"></mspace><mn>619</mn></mrow><annotation encoding="application/x-tex">42\,619</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>10</mn><annotation encoding="application/x-tex">10</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>21</mn><annotation encoding="application/x-tex">21</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>498</mn></mrow><annotation encoding="application/x-tex">0.007\,498</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>954</mn><mspace width="0.167em"></mspace><mn>260</mn></mrow><annotation encoding="application/x-tex">954\,260</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>45</mn><mspace width="0.167em"></mspace><mn>710</mn></mrow><annotation encoding="application/x-tex">45\,710</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>8</mn><annotation encoding="application/x-tex">8</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>17</mn><annotation encoding="application/x-tex">17</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>491</mn></mrow><annotation encoding="application/x-tex">0.007\,491</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>952</mn><mspace width="0.167em"></mspace><mn>252</mn></mrow><annotation encoding="application/x-tex">952\,252</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>717</mn></mrow><annotation encoding="application/x-tex">47\,717</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.025</mn><mspace width="0.167em"></mspace><mn>308</mn></mrow><annotation encoding="application/x-tex">0.025\,308</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>910</mn><mspace width="0.167em"></mspace><mn>396</mn></mrow><annotation encoding="application/x-tex">910\,396</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>89</mn><mspace width="0.167em"></mspace><mn>553</mn></mrow><annotation encoding="application/x-tex">89\,553</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>14</mn><annotation encoding="application/x-tex">14</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>26</mn><annotation encoding="application/x-tex">26</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>476</mn></mrow><annotation encoding="application/x-tex">0.007\,476</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>935</mn><mspace width="0.167em"></mspace><mn>647</mn><mspace width="0.167em"></mspace><mn>184</mn></mrow><annotation encoding="application/x-tex">935\,647\,184</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>64</mn><mspace width="0.167em"></mspace><mn>329</mn><mspace width="0.167em"></mspace><mn>993</mn></mrow><annotation encoding="application/x-tex">64\,329\,993</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>64</mn><annotation encoding="application/x-tex">64</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>495</mn><annotation encoding="application/x-tex">495</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>22264</mn><annotation encoding="application/x-tex">22264</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.924</mn><mspace width="0.167em"></mspace><mn>694</mn></mrow><annotation encoding="application/x-tex">4.924\,694</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>904</mn><mspace width="0.167em"></mspace><mn>947</mn><mspace width="0.167em"></mspace><mn>744</mn></mrow><annotation encoding="application/x-tex">904\,947\,744</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>95</mn><mspace width="0.167em"></mspace><mn>027</mn><mspace width="0.167em"></mspace><mn>736</mn></mrow><annotation encoding="application/x-tex">95\,027\,736</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>120</mn><annotation encoding="application/x-tex">120</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>388</mn></mrow><annotation encoding="application/x-tex">24\,388</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.004</mn><mspace width="0.167em"></mspace><mn>695</mn></mrow><annotation encoding="application/x-tex">0.004\,695</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>863</mn><mspace width="0.167em"></mspace><mn>930</mn><mspace width="0.167em"></mspace><mn>190</mn></mrow><annotation encoding="application/x-tex">863\,930\,190</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>136</mn><mspace width="0.167em"></mspace><mn>034</mn><mspace width="0.167em"></mspace><mn>658</mn></mrow><annotation encoding="application/x-tex">136\,034\,658</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>684</mn></mrow><annotation encoding="application/x-tex">3\,684</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>361</mn><annotation encoding="application/x-tex">361</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>31</mn><mspace width="0.167em"></mspace><mn>107</mn></mrow><annotation encoding="application/x-tex">31\,107</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>28.367</mn><mspace width="0.167em"></mspace><mn>182</mn></mrow><annotation encoding="application/x-tex">28.367\,182</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>869</mn><mspace width="0.167em"></mspace><mn>894</mn><mspace width="0.167em"></mspace><mn>094</mn></mrow><annotation encoding="application/x-tex">869\,894\,094</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>130</mn><mspace width="0.167em"></mspace><mn>069</mn><mspace width="0.167em"></mspace><mn>513</mn></mrow><annotation encoding="application/x-tex">130\,069\,513</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>530</mn></mrow><annotation encoding="application/x-tex">3\,530</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>226</mn><annotation encoding="application/x-tex">226</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>32</mn><mspace width="0.167em"></mspace><mn>623</mn></mrow><annotation encoding="application/x-tex">32\,623</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>-O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">0.000\,009</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>817</mn><annotation encoding="application/x-tex">817</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>183</mn><annotation encoding="application/x-tex">183</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>597</mn></mrow><annotation encoding="application/x-tex">0.000\,597</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>790</mn><annotation encoding="application/x-tex">790</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>209</mn><annotation encoding="application/x-tex">209</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>002</mn></mrow><annotation encoding="application/x-tex">0.000\,002</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>799</mn><annotation encoding="application/x-tex">799</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>201</mn><annotation encoding="application/x-tex">201</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.054</mn><mspace width="0.167em"></mspace><mn>681</mn></mrow><annotation encoding="application/x-tex">0.054\,681</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>857</mn><annotation encoding="application/x-tex">857</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>142</mn><annotation encoding="application/x-tex">142</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>055</mn></mrow><annotation encoding="application/x-tex">0.006\,055</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>943</mn><mspace width="0.167em"></mspace><mn>746</mn></mrow><annotation encoding="application/x-tex">943\,746</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>56</mn><mspace width="0.167em"></mspace><mn>238</mn></mrow><annotation encoding="application/x-tex">56\,238</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>16</mn><annotation encoding="application/x-tex">16</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>036</mn></mrow><annotation encoding="application/x-tex">0.006\,036</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>952</mn><mspace width="0.167em"></mspace><mn>068</mn></mrow><annotation encoding="application/x-tex">952\,068</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>904</mn></mrow><annotation encoding="application/x-tex">47\,904</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>24</mn><annotation encoding="application/x-tex">24</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.006\,013</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>934</mn><mspace width="0.167em"></mspace><mn>911</mn></mrow><annotation encoding="application/x-tex">934\,911</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>65</mn><mspace width="0.167em"></mspace><mn>061</mn></mrow><annotation encoding="application/x-tex">65\,061</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>28</mn><annotation encoding="application/x-tex">28</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>994</mn></mrow><annotation encoding="application/x-tex">0.005\,994</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>937</mn><mspace width="0.167em"></mspace><mn>884</mn></mrow><annotation encoding="application/x-tex">937\,884</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>62</mn><mspace width="0.167em"></mspace><mn>084</mn></mrow><annotation encoding="application/x-tex">62\,084</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>043</mn></mrow><annotation encoding="application/x-tex">0.006\,043</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>892</mn><mspace width="0.167em"></mspace><mn>789</mn><mspace width="0.167em"></mspace><mn>630</mn></mrow><annotation encoding="application/x-tex">892\,789\,630</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>107</mn><mspace width="0.167em"></mspace><mn>189</mn><mspace width="0.167em"></mspace><mn>456</mn></mrow><annotation encoding="application/x-tex">107\,189\,456</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>92</mn><annotation encoding="application/x-tex">92</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>820</mn></mrow><annotation encoding="application/x-tex">20\,820</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.079</mn><mspace width="0.167em"></mspace><mn>716</mn></mrow><annotation encoding="application/x-tex">1.079\,716</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>868</mn><mspace width="0.167em"></mspace><mn>199</mn><mspace width="0.167em"></mspace><mn>213</mn></mrow><annotation encoding="application/x-tex">868\,199\,213</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>131</mn><mspace width="0.167em"></mspace><mn>779</mn><mspace width="0.167em"></mspace><mn>846</mn></mrow><annotation encoding="application/x-tex">131\,779\,846</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>92</mn><annotation encoding="application/x-tex">92</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>837</mn></mrow><annotation encoding="application/x-tex">20\,837</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>322</mn></mrow><annotation encoding="application/x-tex">0.007\,322</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>867</mn><mspace width="0.167em"></mspace><mn>898</mn><mspace width="0.167em"></mspace><mn>304</mn></mrow><annotation encoding="application/x-tex">867\,898\,304</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>132</mn><mspace width="0.167em"></mspace><mn>073</mn><mspace width="0.167em"></mspace><mn>111</mn></mrow><annotation encoding="application/x-tex">132\,073\,111</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>900</mn></mrow><annotation encoding="application/x-tex">4\,900</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>886</mn><annotation encoding="application/x-tex">886</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>799</mn></mrow><annotation encoding="application/x-tex">22\,799</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2.992</mn><mspace width="0.167em"></mspace><mn>284</mn></mrow><annotation encoding="application/x-tex">2.992\,284</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>851</mn><mspace width="0.167em"></mspace><mn>345</mn><mspace width="0.167em"></mspace><mn>064</mn></mrow><annotation encoding="application/x-tex">851\,345\,064</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>148</mn><mspace width="0.167em"></mspace><mn>627</mn><mspace width="0.167em"></mspace><mn>732</mn></mrow><annotation encoding="application/x-tex">148\,627\,732</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>090</mn></mrow><annotation encoding="application/x-tex">4\,090</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>680</mn><annotation encoding="application/x-tex">680</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>424</mn></mrow><annotation encoding="application/x-tex">22\,424</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>-O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>008</mn></mrow><annotation encoding="application/x-tex">0.000\,008</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>818</mn><annotation encoding="application/x-tex">818</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>182</mn><annotation encoding="application/x-tex">182</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>358</mn></mrow><annotation encoding="application/x-tex">0.000\,358</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>804</mn><annotation encoding="application/x-tex">804</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>195</mn><annotation encoding="application/x-tex">195</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>793</mn><annotation encoding="application/x-tex">793</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>207</mn><annotation encoding="application/x-tex">207</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.057</mn><mspace width="0.167em"></mspace><mn>792</mn></mrow><annotation encoding="application/x-tex">0.057\,792</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>847</mn><annotation encoding="application/x-tex">847</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>152</mn><annotation encoding="application/x-tex">152</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>989</mn></mrow><annotation encoding="application/x-tex">0.005\,989</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>952</mn><mspace width="0.167em"></mspace><mn>351</mn></mrow><annotation encoding="application/x-tex">952\,351</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47</mn><mspace width="0.167em"></mspace><mn>624</mn></mrow><annotation encoding="application/x-tex">47\,624</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>962</mn></mrow><annotation encoding="application/x-tex">0.005\,962</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>944</mn><mspace width="0.167em"></mspace><mn>598</mn></mrow><annotation encoding="application/x-tex">944\,598</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>55</mn><mspace width="0.167em"></mspace><mn>372</mn></mrow><annotation encoding="application/x-tex">55\,372</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>23</mn><annotation encoding="application/x-tex">23</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>943</mn></mrow><annotation encoding="application/x-tex">0.005\,943</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>940</mn><mspace width="0.167em"></mspace><mn>700</mn></mrow><annotation encoding="application/x-tex">940\,700</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>59</mn><mspace width="0.167em"></mspace><mn>272</mn></mrow><annotation encoding="application/x-tex">59\,272</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>25</mn><annotation encoding="application/x-tex">25</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>367</mn></mrow><annotation encoding="application/x-tex">0.006\,367</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>950</mn><mspace width="0.167em"></mspace><mn>479</mn></mrow><annotation encoding="application/x-tex">950\,479</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>49</mn><mspace width="0.167em"></mspace><mn>492</mn></mrow><annotation encoding="application/x-tex">49\,492</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>22</mn><annotation encoding="application/x-tex">22</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>070</mn></mrow><annotation encoding="application/x-tex">0.006\,070</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>889</mn><mspace width="0.167em"></mspace><mn>075</mn><mspace width="0.167em"></mspace><mn>210</mn></mrow><annotation encoding="application/x-tex">889\,075\,210</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>110</mn><mspace width="0.167em"></mspace><mn>903</mn><mspace width="0.167em"></mspace><mn>827</mn></mrow><annotation encoding="application/x-tex">110\,903\,827</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>94</mn><annotation encoding="application/x-tex">94</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>867</mn></mrow><annotation encoding="application/x-tex">20\,867</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.102</mn><mspace width="0.167em"></mspace><mn>612</mn></mrow><annotation encoding="application/x-tex">1.102\,612</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>867</mn><mspace width="0.167em"></mspace><mn>475</mn><mspace width="0.167em"></mspace><mn>739</mn></mrow><annotation encoding="application/x-tex">867\,475\,739</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>132</mn><mspace width="0.167em"></mspace><mn>503</mn><mspace width="0.167em"></mspace><mn>564</mn></mrow><annotation encoding="application/x-tex">132\,503\,564</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>103</mn><annotation encoding="application/x-tex">103</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>583</mn></mrow><annotation encoding="application/x-tex">20\,583</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.007</mn><mspace width="0.167em"></mspace><mn>244</mn></mrow><annotation encoding="application/x-tex">0.007\,244</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>876</mn><mspace width="0.167em"></mspace><mn>357</mn><mspace width="0.167em"></mspace><mn>385</mn></mrow><annotation encoding="application/x-tex">876\,357\,385</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>123</mn><mspace width="0.167em"></mspace><mn>614</mn><mspace width="0.167em"></mspace><mn>252</mn></mrow><annotation encoding="application/x-tex">123\,614\,252</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>383</mn></mrow><annotation encoding="application/x-tex">4\,383</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>138</mn></mrow><annotation encoding="application/x-tex">1\,138</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>842</mn></mrow><annotation encoding="application/x-tex">22\,842</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.004</mn><mspace width="0.167em"></mspace><mn>393</mn></mrow><annotation encoding="application/x-tex">3.004\,393</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>843</mn><mspace width="0.167em"></mspace><mn>681</mn><mspace width="0.167em"></mspace><mn>442</mn></mrow><annotation encoding="application/x-tex">843\,681\,442</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>156</mn><mspace width="0.167em"></mspace><mn>290</mn><mspace width="0.167em"></mspace><mn>107</mn></mrow><annotation encoding="application/x-tex">156\,290\,107</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>5</mn><mspace width="0.167em"></mspace><mn>391</mn></mrow><annotation encoding="application/x-tex">5\,391</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>635</mn><annotation encoding="application/x-tex">635</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>22</mn><mspace width="0.167em"></mspace><mn>415</mn></mrow><annotation encoding="application/x-tex">22\,415</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<h5>Linux</h5>
+<h6>Memory</h6>
+<table>
+<tr>
+<th rowspan="2">
+Array Size
+</th>
+<th colspan="2">
+Peak RSS (bytes)
+</th>
+</tr>
+<tr>
+<th>
+<code>DynArray</code>
+</th>
+<th>
+<code>std::vector</code>
+</th>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>912</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">2\,912\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><mspace width="0.167em"></mspace><mn>856</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">2\,856\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>700</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">6\,700\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn><mspace width="0.167em"></mspace><mn>124</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">7\,124\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>909</mn><mspace width="0.167em"></mspace><mn>288</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">3\,909\,288\,000</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>198</mn><mspace width="0.167em"></mspace><mn>016</mn><mspace width="0.167em"></mspace><mn>000</mn></mrow><annotation encoding="application/x-tex">4\,198\,016\,000</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<td style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+<td style="text-align: center">
+<code>std::bad_alloc</code>
+</td>
+</tr>
+</table>
+<p>Interestingly, here <code>std::vector</code> threw
+<code>std::bad_alloc</code> and the benchmark wasn’t killed by the OOM
+killer. However, in later benchmarks of throughput and latency it didn’t
+happen and instead the OOM killer killed the process as usual.</p>
+<h6>Throughput</h6>
+<table>
+<tr>
+<th colspan="5">
+No optimisation (<code>-O0</code>)
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>029</mn></mrow><annotation encoding="application/x-tex">0.000\,029</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>482</mn><mspace width="0.167em"></mspace><mn>758</mn></mrow><annotation encoding="application/x-tex">34\,482\,758</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>046</mn></mrow><annotation encoding="application/x-tex">0.000\,046</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21</mn><mspace width="0.167em"></mspace><mn>739</mn><mspace width="0.167em"></mspace><mn>130</mn></mrow><annotation encoding="application/x-tex">21\,739\,130</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>151</mn></mrow><annotation encoding="application/x-tex">0.000\,151</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6</mn><mspace width="0.167em"></mspace><mn>622</mn><mspace width="0.167em"></mspace><mn>516</mn></mrow><annotation encoding="application/x-tex">6\,622\,516</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>277</mn></mrow><annotation encoding="application/x-tex">0.000\,277</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><mspace width="0.167em"></mspace><mn>610</mn><mspace width="0.167em"></mspace><mn>108</mn></mrow><annotation encoding="application/x-tex">3\,610\,108</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.016</mn><mspace width="0.167em"></mspace><mn>614</mn></mrow><annotation encoding="application/x-tex">0.016\,614</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>60</mn><mspace width="0.167em"></mspace><mn>190</mn><mspace width="0.167em"></mspace><mn>201</mn></mrow><annotation encoding="application/x-tex">60\,190\,201</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.029</mn><mspace width="0.167em"></mspace><mn>401</mn></mrow><annotation encoding="application/x-tex">0.029\,401</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>34</mn><mspace width="0.167em"></mspace><mn>012</mn><mspace width="0.167em"></mspace><mn>448</mn></mrow><annotation encoding="application/x-tex">34\,012\,448</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.111</mn><mspace width="0.167em"></mspace><mn>757</mn></mrow><annotation encoding="application/x-tex">0.111\,757</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8</mn><mspace width="0.167em"></mspace><mn>947</mn><mspace width="0.167em"></mspace><mn>985</mn></mrow><annotation encoding="application/x-tex">8\,947\,985</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.204</mn><mspace width="0.167em"></mspace><mn>039</mn></mrow><annotation encoding="application/x-tex">0.204\,039</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><mspace width="0.167em"></mspace><mn>901</mn><mspace width="0.167em"></mspace><mn>023</mn></mrow><annotation encoding="application/x-tex">4\,901\,023</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>16.356</mn><mspace width="0.167em"></mspace><mn>449</mn></mrow><annotation encoding="application/x-tex">16.356\,449</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>61</mn><mspace width="0.167em"></mspace><mn>137</mn><mspace width="0.167em"></mspace><mn>964</mn></mrow><annotation encoding="application/x-tex">61\,137\,964</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>31.854</mn><mspace width="0.167em"></mspace><mn>182</mn></mrow><annotation encoding="application/x-tex">31.854\,182</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>31</mn><mspace width="0.167em"></mspace><mn>393</mn><mspace width="0.167em"></mspace><mn>052</mn></mrow><annotation encoding="application/x-tex">31\,393\,052</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>-O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>014</mn></mrow><annotation encoding="application/x-tex">0.000\,014</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>71</mn><mspace width="0.167em"></mspace><mn>428</mn><mspace width="0.167em"></mspace><mn>571</mn></mrow><annotation encoding="application/x-tex">71\,428\,571</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76</mn><mspace width="0.167em"></mspace><mn>923</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">76\,923\,076</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">0.000\,049</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>408</mn><mspace width="0.167em"></mspace><mn>163</mn></mrow><annotation encoding="application/x-tex">20\,408\,163</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>051</mn></mrow><annotation encoding="application/x-tex">0.000\,051</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>19</mn><mspace width="0.167em"></mspace><mn>607</mn><mspace width="0.167em"></mspace><mn>843</mn></mrow><annotation encoding="application/x-tex">19\,607\,843</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>999</mn></mrow><annotation encoding="application/x-tex">0.005\,999</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>166</mn><mspace width="0.167em"></mspace><mn>694</mn><mspace width="0.167em"></mspace><mn>449</mn></mrow><annotation encoding="application/x-tex">166\,694\,449</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>483</mn></mrow><annotation encoding="application/x-tex">0.006\,483</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>154</mn><mspace width="0.167em"></mspace><mn>249</mn><mspace width="0.167em"></mspace><mn>575</mn></mrow><annotation encoding="application/x-tex">154\,249\,575</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.041</mn><mspace width="0.167em"></mspace><mn>418</mn></mrow><annotation encoding="application/x-tex">0.041\,418</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>144</mn><mspace width="0.167em"></mspace><mn>091</mn></mrow><annotation encoding="application/x-tex">24\,144\,091</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.024</mn><mspace width="0.167em"></mspace><mn>917</mn></mrow><annotation encoding="application/x-tex">0.024\,917</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>40</mn><mspace width="0.167em"></mspace><mn>133</mn><mspace width="0.167em"></mspace><mn>242</mn></mrow><annotation encoding="application/x-tex">40\,133\,242</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.298</mn><mspace width="0.167em"></mspace><mn>444</mn></mrow><annotation encoding="application/x-tex">3.298\,444</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>303</mn><mspace width="0.167em"></mspace><mn>173</mn><mspace width="0.167em"></mspace><mn>253</mn></mrow><annotation encoding="application/x-tex">303\,173\,253</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4.674</mn><mspace width="0.167em"></mspace><mn>902</mn></mrow><annotation encoding="application/x-tex">4.674\,902</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>213</mn><mspace width="0.167em"></mspace><mn>908</mn><mspace width="0.167em"></mspace><mn>227</mn></mrow><annotation encoding="application/x-tex">213\,908\,227</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="5">
+Optimisation <code>-O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Total time (seconds)
+</th>
+<th>
+Throughput (Hz)
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76</mn><mspace width="0.167em"></mspace><mn>923</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">76\,923\,076</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>76</mn><mspace width="0.167em"></mspace><mn>923</mn><mspace width="0.167em"></mspace><mn>076</mn></mrow><annotation encoding="application/x-tex">76\,923\,076</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>049</mn></mrow><annotation encoding="application/x-tex">0.000\,049</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>20</mn><mspace width="0.167em"></mspace><mn>408</mn><mspace width="0.167em"></mspace><mn>163</mn></mrow><annotation encoding="application/x-tex">20\,408\,163</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>041</mn></mrow><annotation encoding="application/x-tex">0.000\,041</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>390</mn><mspace width="0.167em"></mspace><mn>243</mn></mrow><annotation encoding="application/x-tex">24\,390\,243</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.005</mn><mspace width="0.167em"></mspace><mn>905</mn></mrow><annotation encoding="application/x-tex">0.005\,905</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>169</mn><mspace width="0.167em"></mspace><mn>348</mn><mspace width="0.167em"></mspace><mn>010</mn></mrow><annotation encoding="application/x-tex">169\,348\,010</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>156</mn></mrow><annotation encoding="application/x-tex">0.006\,156</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>162</mn><mspace width="0.167em"></mspace><mn>443</mn><mspace width="0.167em"></mspace><mn>144</mn></mrow><annotation encoding="application/x-tex">162\,443\,144</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.040</mn><mspace width="0.167em"></mspace><mn>347</mn></mrow><annotation encoding="application/x-tex">0.040\,347</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>24</mn><mspace width="0.167em"></mspace><mn>784</mn><mspace width="0.167em"></mspace><mn>990</mn></mrow><annotation encoding="application/x-tex">24\,784\,990</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.022</mn><mspace width="0.167em"></mspace><mn>915</mn></mrow><annotation encoding="application/x-tex">0.022\,915</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>43</mn><mspace width="0.167em"></mspace><mn>639</mn><mspace width="0.167em"></mspace><mn>537</mn></mrow><annotation encoding="application/x-tex">43\,639\,537</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3.295</mn><mspace width="0.167em"></mspace><mn>792</mn></mrow><annotation encoding="application/x-tex">3.295\,792</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>303</mn><mspace width="0.167em"></mspace><mn>417</mn><mspace width="0.167em"></mspace><mn>205</mn></mrow><annotation encoding="application/x-tex">303\,417\,205</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2.972950</mn><annotation encoding="application/x-tex">2.972950</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>336</mn><mspace width="0.167em"></mspace><mn>366</mn><mspace width="0.167em"></mspace><mn>235</mn></mrow><annotation encoding="application/x-tex">336\,366\,235</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="2" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<h6>Latency</h6>
+<table>
+<tr>
+<th colspan="14">
+No optimisation (<code>-O0</code>)
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>016</mn></mrow><annotation encoding="application/x-tex">0.000\,016</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>736</mn><annotation encoding="application/x-tex">736</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>263</mn><annotation encoding="application/x-tex">263</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>002</mn></mrow><annotation encoding="application/x-tex">0.000\,002</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>712</mn><annotation encoding="application/x-tex">712</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>288</mn><annotation encoding="application/x-tex">288</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>003</mn></mrow><annotation encoding="application/x-tex">0.000\,003</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>656</mn><annotation encoding="application/x-tex">656</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>344</mn><annotation encoding="application/x-tex">344</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>040</mn></mrow><annotation encoding="application/x-tex">0.000\,040</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>648</mn><annotation encoding="application/x-tex">648</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>349</mn><annotation encoding="application/x-tex">349</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>802</mn><mspace width="0.167em"></mspace><mn>250</mn></mrow><annotation encoding="application/x-tex">802\,250</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>197</mn><mspace width="0.167em"></mspace><mn>750</mn></mrow><annotation encoding="application/x-tex">197\,750</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>559</mn></mrow><annotation encoding="application/x-tex">0.000\,559</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>752</mn><mspace width="0.167em"></mspace><mn>663</mn></mrow><annotation encoding="application/x-tex">752\,663</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>247</mn><mspace width="0.167em"></mspace><mn>331</mn></mrow><annotation encoding="application/x-tex">247\,331</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">0.000\,009</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>640</mn><mspace width="0.167em"></mspace><mn>887</mn></mrow><annotation encoding="application/x-tex">640\,887</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>359</mn><mspace width="0.167em"></mspace><mn>113</mn></mrow><annotation encoding="application/x-tex">359\,113</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.040</mn><mspace width="0.167em"></mspace><mn>269</mn></mrow><annotation encoding="application/x-tex">0.040\,269</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>629</mn><mspace width="0.167em"></mspace><mn>382</mn></mrow><annotation encoding="application/x-tex">629\,382</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>370</mn><mspace width="0.167em"></mspace><mn>605</mn></mrow><annotation encoding="application/x-tex">370\,605</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>375</mn></mrow><annotation encoding="application/x-tex">0.000\,375</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>828</mn><mspace width="0.167em"></mspace><mn>756</mn><mspace width="0.167em"></mspace><mn>776</mn></mrow><annotation encoding="application/x-tex">828\,756\,776</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>171</mn><mspace width="0.167em"></mspace><mn>243</mn><mspace width="0.167em"></mspace><mn>207</mn></mrow><annotation encoding="application/x-tex">171\,243\,207</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>12</mn><annotation encoding="application/x-tex">12</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.322</mn><mspace width="0.167em"></mspace><mn>032</mn></mrow><annotation encoding="application/x-tex">0.322\,032</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>744</mn><mspace width="0.167em"></mspace><mn>429</mn><mspace width="0.167em"></mspace><mn>501</mn></mrow><annotation encoding="application/x-tex">744\,429\,501</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>255</mn><mspace width="0.167em"></mspace><mn>568</mn><mspace width="0.167em"></mspace><mn>581</mn></mrow><annotation encoding="application/x-tex">255\,568\,581</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>9</mn><annotation encoding="application/x-tex">9</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>899</mn></mrow><annotation encoding="application/x-tex">1\,899</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>-O1</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>018</mn></mrow><annotation encoding="application/x-tex">0.000\,018</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>853</mn><annotation encoding="application/x-tex">853</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>146</mn><annotation encoding="application/x-tex">146</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>016</mn></mrow><annotation encoding="application/x-tex">0.000\,016</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>871</mn><annotation encoding="application/x-tex">871</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>128</mn><annotation encoding="application/x-tex">128</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>005</mn></mrow><annotation encoding="application/x-tex">0.000\,005</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>780</mn><annotation encoding="application/x-tex">780</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>220</mn><annotation encoding="application/x-tex">220</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>006</mn></mrow><annotation encoding="application/x-tex">0.000\,006</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>763</mn><annotation encoding="application/x-tex">763</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>237</mn><annotation encoding="application/x-tex">237</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>007</mn></mrow><annotation encoding="application/x-tex">0.000\,007</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>758</mn><mspace width="0.167em"></mspace><mn>437</mn></mrow><annotation encoding="application/x-tex">758\,437</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>241</mn><mspace width="0.167em"></mspace><mn>563</mn></mrow><annotation encoding="application/x-tex">241\,563</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>414</mn></mrow><annotation encoding="application/x-tex">0.000\,414</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>768</mn><mspace width="0.167em"></mspace><mn>969</mn></mrow><annotation encoding="application/x-tex">768\,969</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>231</mn><mspace width="0.167em"></mspace><mn>025</mn></mrow><annotation encoding="application/x-tex">231\,025</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>016</mn></mrow><annotation encoding="application/x-tex">0.000\,016</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>719</mn><mspace width="0.167em"></mspace><mn>386</mn></mrow><annotation encoding="application/x-tex">719\,386</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>280</mn><mspace width="0.167em"></mspace><mn>613</mn></mrow><annotation encoding="application/x-tex">280\,613</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>132</mn></mrow><annotation encoding="application/x-tex">0.006\,132</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>718</mn><mspace width="0.167em"></mspace><mn>193</mn></mrow><annotation encoding="application/x-tex">718\,193</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>281</mn><mspace width="0.167em"></mspace><mn>800</mn></mrow><annotation encoding="application/x-tex">281\,800</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>351</mn></mrow><annotation encoding="application/x-tex">0.000\,351</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>766</mn><mspace width="0.167em"></mspace><mn>618</mn><mspace width="0.167em"></mspace><mn>933</mn></mrow><annotation encoding="application/x-tex">766\,618\,933</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>233</mn><mspace width="0.167em"></mspace><mn>381</mn><mspace width="0.167em"></mspace><mn>026</mn></mrow><annotation encoding="application/x-tex">233\,381\,026</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>36</mn><annotation encoding="application/x-tex">36</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>5</mn><annotation encoding="application/x-tex">5</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.321</mn><mspace width="0.167em"></mspace><mn>729</mn></mrow><annotation encoding="application/x-tex">0.321\,729</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>760</mn><mspace width="0.167em"></mspace><mn>193</mn><mspace width="0.167em"></mspace><mn>989</mn></mrow><annotation encoding="application/x-tex">760\,193\,989</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>239</mn><mspace width="0.167em"></mspace><mn>804</mn><mspace width="0.167em"></mspace><mn>071</mn></mrow><annotation encoding="application/x-tex">239\,804\,071</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>31</mn><annotation encoding="application/x-tex">31</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1900</mn><annotation encoding="application/x-tex">1900</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th colspan="14">
+Optimisation <code>-O2</code>
+</th>
+</tr>
+<tr>
+<th>
+Length
+</th>
+<th>
+Element
+</th>
+<th>
+Array
+</th>
+<th>
+Min
+</th>
+<th>
+Max
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>6</mn></mrow></msup><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>5</mn></mrow></msup><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>4</mn></mrow></msup><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>3</mn></mrow></msup><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>2</mn></mrow></msup><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mrow><mi>−</mi><mn>1</mn></mrow></msup><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math>
+</th>
+<th>
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mi>∞</mi><annotation encoding="application/x-tex">\infty</annotation></semantics></math>
+</th>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>3</mn></msup><annotation encoding="application/x-tex">10^3</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>019</mn></mrow><annotation encoding="application/x-tex">0.000\,019</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>767</mn><annotation encoding="application/x-tex">767</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>230</mn><annotation encoding="application/x-tex">230</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>023</mn></mrow><annotation encoding="application/x-tex">0.000\,023</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>769</mn><annotation encoding="application/x-tex">769</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>230</mn><annotation encoding="application/x-tex">230</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>004</mn></mrow><annotation encoding="application/x-tex">0.000\,004</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>735</mn><annotation encoding="application/x-tex">735</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>265</mn><annotation encoding="application/x-tex">265</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>005</mn></mrow><annotation encoding="application/x-tex">0.000\,005</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>732</mn><annotation encoding="application/x-tex">732</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>268</mn><annotation encoding="application/x-tex">268</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>6</mn></msup><annotation encoding="application/x-tex">10^6</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>009</mn></mrow><annotation encoding="application/x-tex">0.000\,009</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>764</mn><mspace width="0.167em"></mspace><mn>199</mn></mrow><annotation encoding="application/x-tex">764\,199</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>235</mn><mspace width="0.167em"></mspace><mn>801</mn></mrow><annotation encoding="application/x-tex">235\,801</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>611</mn></mrow><annotation encoding="application/x-tex">0.000\,611</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>761</mn><mspace width="0.167em"></mspace><mn>404</mn></mrow><annotation encoding="application/x-tex">761\,404</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>238</mn><mspace width="0.167em"></mspace><mn>590</mn></mrow><annotation encoding="application/x-tex">238\,590</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>013</mn></mrow><annotation encoding="application/x-tex">0.000\,013</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>702</mn><mspace width="0.167em"></mspace><mn>667</mn></mrow><annotation encoding="application/x-tex">702\,667</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>297</mn><mspace width="0.167em"></mspace><mn>332</mn></mrow><annotation encoding="application/x-tex">297\,332</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.006</mn><mspace width="0.167em"></mspace><mn>420</mn></mrow><annotation encoding="application/x-tex">0.006\,420</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>715</mn><mspace width="0.167em"></mspace><mn>711</mn></mrow><annotation encoding="application/x-tex">715\,711</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>284</mn><mspace width="0.167em"></mspace><mn>282</mn></mrow><annotation encoding="application/x-tex">284\,282</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>1</mn><annotation encoding="application/x-tex">1</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>9</mn></msup><annotation encoding="application/x-tex">10^9</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.000</mn><mspace width="0.167em"></mspace><mn>416</mn></mrow><annotation encoding="application/x-tex">0.000\,416</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>759</mn><mspace width="0.167em"></mspace><mn>662</mn><mspace width="0.167em"></mspace><mn>742</mn></mrow><annotation encoding="application/x-tex">759\,662\,742</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>240</mn><mspace width="0.167em"></mspace><mn>337</mn><mspace width="0.167em"></mspace><mn>214</mn></mrow><annotation encoding="application/x-tex">240\,337\,214</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>38</mn><annotation encoding="application/x-tex">38</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>6</mn><annotation encoding="application/x-tex">6</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>0</mn><annotation encoding="application/x-tex">0</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.322</mn><mspace width="0.167em"></mspace><mn>445</mn></mrow><annotation encoding="application/x-tex">0.322\,445</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>760</mn><mspace width="0.167em"></mspace><mn>329</mn><mspace width="0.167em"></mspace><mn>293</mn></mrow><annotation encoding="application/x-tex">760\,329\,293</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>239</mn><mspace width="0.167em"></mspace><mn>668</mn><mspace width="0.167em"></mspace><mn>772</mn></mrow><annotation encoding="application/x-tex">239\,668\,772</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>26</mn><annotation encoding="application/x-tex">26</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mspace width="0.167em"></mspace><mn>900</mn></mrow><annotation encoding="application/x-tex">1\,900</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>3</mn><annotation encoding="application/x-tex">3</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>4</mn><annotation encoding="application/x-tex">4</annotation></semantics></math>
+</td>
+<td style="text-align: right">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mn>2</mn><annotation encoding="application/x-tex">2</annotation></semantics></math>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="4">
+<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><msup><mn>10</mn><mn>10</mn></msup><annotation encoding="application/x-tex">10^{10}</annotation></semantics></math>
+</th>
+<th rowspan="2">
+<code>int</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th rowspan="2">
+<code>std::unique_ptr</code>
+</th>
+<th>
+<code>DynArray</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+<tr>
+<th>
+<code>std::vector</code>
+</th>
+<td colspan="9" style="text-align: center">
+<code>killed by OOM killer</code>
+</td>
+</tr>
+</table>
+<h2>What about <code>mremap()</code>?</h2>
+<ol type="1">
+<li>As far as I know, there is no equivalent to it on Windows.</li>
+<li>It relocates objects in virtual space, so you can’t use that as a
+basis for an arena, which needs to keep pointers valid without modifying
+them.</li>
+</ol>
+<h2>What about shrinking?</h2>
+<p>I’ve only shown how to increase the length of <code>DynArray</code>.
+If you need shrinking as well, on Windows you call
+<code>VirtualFree()</code> with <code>MEM_DECOMMIT</code> instead of
+<code>MEM_RELEASE</code>, on POSIX you call <code>mprotect()</code> with
+<code>PROT_NONE</code> and <code>madvise()</code> with
+<code>MADV_FREE</code> or <code>MADV_DONTNEED</code> (whichever constant
+is available).</p>
+<p>Personally, I’ve never needed to do that, so I’m not going to bother
+implementing it. It seems that in my style of programming I either throw
+out whole data structures or keep them, but I never delete single
+elements. Judging from the <a
+href="https://www.youtube.com/watch?v=ncHmEUmJZf4">Swiss Tables CppCon
+talk</a>, I’m not alone in that.</p>
+<h2>Closing words</h2>
+<p>So that’s what I’m doing now in my side project. If you have anything
+to add, you may write me an email at <a href="mailto:jakub@yakubin.com"
+class="email">jakub@yakubin.com</a>.</p>
+<p>I dedicate this post to Windows Update.</p>
+<section id="footnotes" class="footnotes footnotes-end-of-document"
+role="doc-endnotes">
+<hr />
+<ol>
+<li id="fn1"><p>Weirdly, it’s called <code>EXC_BAD_ACCESS</code> on
+Mac.<a href="#fnref1" class="footnote-back"
+role="doc-backlink">↩︎</a></p></li>
+<li id="fn2"><p>Unless someone manually sets the alignment of a
+structure with special compiler or linker directives to something
+bigger. But then it’s their problem.<a href="#fnref2"
+class="footnote-back" role="doc-backlink">↩︎</a></p></li>
+</ol>
+</section>
+
+
+
+
+
+ Safe port forwarding with iptables and WireGuard
+
+ urn:uuid:5a3c3df4-b810-4701-879f-2a81ab9ed7ec
+
+ 2022-11-16T00:00:00Z
+
+ 2022-11-16T00:00:00Z
+
+
+ <p><img src="/notes/port-forwarding.svg" alt="port forwarding network topology" /></p>
+<p>You have a problem: there is a computer (C) you want to log into
+remotely from your computer (A), but C is behind a firewall, a NAT or in
+a private network, not directly exposed to the broader Internet. There
+is another computer (B), which can connect to C and is accessible from
+the Internet. So you use <code>ssh</code> to connect to B and establish
+an SSH tunnel to C:</p>
+<pre><code>ssh -L 8888:<IP-ADDRESS-OF-C>:22 <IP-ADDRESS-OF-B></code></pre>
+<p>In another terminal you connect to C by connecting to the local port
+created by the SSH tunnel:</p>
+<pre><code>ssh -p 8888 127.0.0.1</code></pre>
+<p>This works pretty well most of the time.</p>
+<p>However, there are several issues here:</p>
+<ol type="1">
+<li>You need to keep a terminal session open as long as you want to
+maintain the SSH tunnel, be it in a real terminal or a <code>tmux</code>
+session.</li>
+<li>If the SSH tunnel ever drops, because your ISP has an outage for a
+couple minutes/hours, or due to any other network issues, you need to
+reestablish the SSH tunnel, instead of caring only about your connection
+to computer C.</li>
+</ol>
+<p>The problem is that we’re trying to use TCP for tunneling, and TCP is
+a connection-oriented protocol, which forces us to maintain the
+connection for the tunnel and reestablish it after downtime. What we
+need instead is a connectionless protocol, like IP or UDP.</p>
+<h2>Port forwarding with iptables</h2>
+<p>Let’s see how we can solve this problem at the routing layer. On
+computer B as <code>root</code>:</p>
+<pre><code># Enable forwarding of IP packets.
+echo 1 > /proc/sys/net/ipv4/ip_forward
+
+# Redirect packets incoming at port 8888 to <IP-ADDRESS-OF-C> at port 22.
+iptables -t nat -A PREROUTING -p tcp --dport 8888 -j DNAT --to-destination <IP-ADDRESS-OF-C>:22
+
+# For outgoing TCP packets going to destination port 22, change the source IP
+# address to the IP address of this computer (B), and the source port to a
+# free port (let's call it P) on this computer.
+#
+# For incoming TCP packets going to destination IP address of B, and the
+# destination port P, change destination IP address to the original source IP
+# address A (before the change to B) and destination port to the original
+# source port (before the change to P).
+iptables -t nat -A POSTROUTING -p tcp --dport 22 -j MASQUERADE
+
+# The following is needed when Docker is installed. Otherwise iptables will
+# drop all forwarded packets.
+iptables -A FORWARD -j ACCEPT</code></pre>
+<p>Now you can ssh to C from A with:</p>
+<pre><code>ssh -p 8888 <IP-ADDRESS-OF-B></code></pre>
+<p>This solution has a caveat: you need root access on the intermediate
+machine (B). But when you have it, it works beautifully:</p>
+<ol type="1">
+<li>No terminal session to keep around.</li>
+<li>When there is a network outage, or you lose connectivity to computer
+B for whatever reason, after things go back to normal, you don’t need to
+go through any ceremony to establish the forwarding again. You just
+reconnect to C with the same <code>ssh</code> command as if nothing ever
+happened.</li>
+</ol>
+<p>There is one risk here though: a malevolent party can now try to
+attack computer C via traffic going to it on port 22, masking itself by
+sending packets to computer B on port 8888 instead, thereby disguising
+the traffic going to computer C as something sent by computer B.</p>
+<p>You can limit the risk by dropping all packets coming to B at port
+8888, which do not originate from a selected trusted IP address (in this
+case computer A). Attacker will still be able to send packets to
+computer C by spoofing the IP address in packets sent to computer B, but
+they will not be able to receive responses to those packets (since those
+will be sent to the trusted IP address of computer A), unless they can
+intercept traffic going between computers A and B, because e.g.:</p>
+<ul>
+<li>computer A is using WiFi with WPA2 for communication with B, while
+the attacker is within WiFi radio range and they captured the 4-way
+handshake between computer A and WiFi router (they don’t need to be
+connected to that WiFi network);</li>
+<li>a router (either the edge router or any router/switch on the path
+between computers A and B) is compromised by the attacker.</li>
+</ul>
+<p>Without the ability to receive packets from C, the attacker is
+severely handicapped in their ability to compromise C; but they can
+still prevent computer A from connecting to C, if <code>fail2ban</code>,
+or anything else of the sort, is enabled on computer C.</p>
+<p>When we got rid of SSH, we lost the much needed authentication. If
+you have total control over what is happening on the network used for
+communication between A and B, then everything’s fine. You may use
+iptables as is without sweating over those risks. If you’d like
+something more secure though, read on.</p>
+<p>How can we add authentication at the routing layer? There’s been some
+hype around WireGuard for a while now. It allows you to set up
+authenticated, encrypted UDP-backed tunnels for IP packets.</p>
+<h2>Authenticating forwarded packets with WireGuard</h2>
+<p>First, we need to generate the private and public keys on computers A
+and B:</p>
+<pre><code>cd /tmp
+umask 077
+wg genkey | tee wireguard.priv | wg pubkey > wireguard.pub</code></pre>
+<p>We’ll create a virtual WireGuard network, where B has the IP address
+<code>192.168.2.1</code> and A has the IP address
+<code>192.168.2.2</code>. Let’s say that B’s public key
+(<code>/tmp/wireguard.pub</code>) is:</p>
+<pre><code>eKykV2v7ryzmr/n+Ok+J8XPsEKAZYqhTQTh4yK/4eTg=</code></pre>
+<p>and A’s public key is:</p>
+<pre><code>uqGxfggNgE41Q/o9muAiqr4YwD0lIgourMlT31xVkig=</code></pre>
+<p>Then on B we should run the following as root:</p>
+<pre><code>ip link add dev wg0 type wireguard
+ip address add dev wg0 192.168.2.1 peer 192.168.2.2
+wg set wg0 listen-port 51820 private-key /tmp/wireguard.priv peer uqGxfggNgE41Q/o9muAiqr4YwD0lIgourMlT31xVkig= allowed-ips 192.168.2.2 endpoint <IP-ADDRESS-OF-A>:8172
+ip link set up wg0</code></pre>
+<p>On A:</p>
+<pre><code>ip link add dev wg0 type wireguard
+ip address add dev wg0 192.168.2.2 peer 192.168.2.1
+wg set wg0 listen-port 8172 private-key /tmp/wireguard.priv peer eKykV2v7ryzmr/n+Ok+J8XPsEKAZYqhTQTh4yK/4eTg= allowed-ips 192.168.2.1 endpoint <IP-ADDRESS-OF-B>:51820
+ip link set up wg0</code></pre>
+<p>That will:</p>
+<ol type="1">
+<li>create a new network interface <code>wg0</code> managed by WireGuard
+using the private keys stored in <code>/tmp/wireguard.priv</code>;</li>
+<li>set the IP addresses as planned (<code>192.168.2.1</code> for B,
+<code>192.168.2.2</code> for A);</li>
+<li>inform each of them which real address (<code>endpoint</code>) to
+find the other one at;</li>
+<li>authorise each of them to use their virtual addresses
+(<code>allowed-ips</code>), when using given key to communicate with the
+other;</li>
+<li>set WireGuard to use the 51820 UDP port on B and the 8172 UDP port
+on A for the tunnel.</li>
+</ol>
+<p>At that point, querying the state of the <code>wg0</code> network
+interface gives some weird results. It’s not <code>UP</code>, nor
+<code>DOWN</code>; it’s just <code>UNKNOWN</code>:</p>
+<pre><code>$ ip -br l | grep wg0
+wg0 UNKNOWN <POINTOPOINT,NOARP,UP,LOWER_UP></code></pre>
+<p>Nonetheless, it works and we can ping A from B and vice versa using
+their virtual addresses (<code>192.168.2.1</code> and
+<code>192.168.2.2</code>).</p>
+<p>Now let’s modify the iptables commands so that only the packets
+coming from the tunnel, or the ones coming from C from TCP port 22
+(<code>ssh</code>) are forwarded by B. On B:</p>
+<pre><code># The PREROUTING rule, redirecting packets addressed for this computer(B) port
+# 8888 to C port 22, is modified to apply only when they come from the wg0
+# network interface (the WireGuard tunnel). Otherwise, no change.
+echo 1 > /proc/sys/net/ipv4/ip_forward
+iptables -t nat -A PREROUTING -p tcp -i wg0 --dport 8888 -j DNAT --to-destination <IP-ADDRESS-OF-C>:22
+iptables -t nat -A POSTROUTING -p tcp --dport 22 -j MASQUERADE
+
+# By default, drop forwarded packets (i.e. those which are not addressed for
+# this computer).
+iptables -P FORWARD DROP
+
+# But forward (accept) packets which come from the wg0 network interface
+# (the WireGuard tunnel).
+iptables -A FORWARD -i wg0 -j ACCEPT
+
+# Also forward TCP packets coming from C port 22 which are in an
+# already-established TCP connection (connection was started from the other
+# side, and those are the responses).
+iptables -A FORWARD -p tcp -s <IP-ADDRESS-OF-C> --sport 22 -m state --state ESTABLISHED -j ACCEPT</code></pre>
+<p>Now on A you can ssh to C by:</p>
+<pre><code>ssh -p 8888 192.168.2.1</code></pre>
+<p>If network is out, you just repeat that same command when it’s up
+again. And if someone wants to attack C, they’ll have to find another
+way than through port forwarding done by B.</p>
+
+
+
+
+
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift b/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
new file mode 100644
index 000000000..dbf7032e3
--- /dev/null
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadCache.swift
@@ -0,0 +1,40 @@
+//
+// DownloadCache.swift
+// RSWeb
+//
+// Created by Brent Simmons on 10/16/25.
+//
+
+import Foundation
+import RSCore
+
+struct DownloadCacheRecord: CacheRecord {
+ let dateCreated = Date()
+ let data: Data?
+ let response: URLResponse?
+
+ init(data: Data?, response: URLResponse?) {
+ self.data = data
+ self.response = response
+ }
+}
+
+final class DownloadCache: Sendable {
+ static let shared = DownloadCache()
+
+ private let cache = Cache(timeToLive: 60 * 13, timeBetweenCleanups: 60 * 2)
+
+ subscript(_ key: String) -> DownloadCacheRecord? {
+ get {
+ cache[key]
+ }
+ set {
+ cache[key] = newValue
+ }
+ }
+
+ func add(_ urlString: String, data: Data?, response: URLResponse?) {
+ let cacheRecord = DownloadCacheRecord(data: data, response: response)
+ cache[urlString] = cacheRecord
+ }
+}
diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
index a49d853f8..e86c00b76 100755
--- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
+++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift
@@ -8,6 +8,7 @@
import Foundation
import os
+import RSCore
// Create a DownloadSessionDelegate, then create a DownloadSession.
// To download things: call download with a set of URLs. DownloadSession will call the various delegate methods.
@@ -20,6 +21,16 @@ public protocol DownloadSessionDelegate {
func downloadSessionDidComplete(_ downloadSession: DownloadSession)
}
+struct HTTP4xxResponse {
+ let statusCode: Int
+ let date: Date
+
+ init(_ statusCode: Int) {
+ self.statusCode = statusCode
+ self.date = Date()
+ }
+}
+
@objc public final class DownloadSession: NSObject {
public let downloadProgress = DownloadProgress(numberOfTasks: 0)
@@ -32,14 +43,16 @@ public protocol DownloadSessionDelegate {
private let delegate: DownloadSessionDelegate
private var redirectCache = [URL: URL]()
private var queue = [URL]()
+ private let cache = DownloadCache.shared
// 429 Too Many Requests responses
private var retryAfterMessages = [String: HTTPResponse429]()
/// URLs with 400-499 responses (except for 429).
- /// These URLs are skipped for the rest of the session.
- private var urlsWith400s = Set()
+ /// These URLs are skipped for a period of time.
+ private var http4xxResponses = [URL: HTTP4xxResponse]()
+ private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "DownloadSession")
public init(delegate: DownloadSessionDelegate) {
@@ -78,9 +91,9 @@ public protocol DownloadSessionDelegate {
}
public func download(_ urls: Set) {
+ cleanUp4xxResponsesCache()
let filteredURLs = Self.filteredURLs(urls)
-
for url in filteredURLs {
addDataTask(url)
}
@@ -101,9 +114,19 @@ extension DownloadSession: URLSessionTaskDelegate {
}
guard let info = infoForTask(task) else {
+ if let url = task.originalRequest?.url {
+ Self.logger.debug("DownloadSession: no task info found for \(url)")
+ } else {
+ Self.logger.debug("DownloadSession: no task info found for unknown URL")
+ }
return
}
+ if let url = task.originalRequest?.url, error == nil {
+ Self.logger.debug("DownloadSession: Caching response for \(url)")
+ cache.add(url.absoluteString, data: info.data as Data, response: info.urlResponse)
+ }
+
delegate.downloadSession(self, downloadDidComplete: info.url, response: info.urlResponse, data: info.data as Data, error: error as NSError?)
}
@@ -119,9 +142,7 @@ extension DownloadSession: URLSessionTaskDelegate {
var modifiedRequest = request
- if let url = request.url, url.isOpenRSSOrgURL {
- modifiedRequest.setValue(UserAgent.openRSSOrgUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
- }
+ modifiedRequest.addSpecialCaseUserAgentIfNeeded()
completionHandler(modifiedRequest)
}
@@ -145,17 +166,24 @@ extension DownloadSession: URLSessionDataDelegate {
taskInfo.urlResponse = response
}
- if !response.statusIsOK {
+ let statusCode = response.forcedStatusCode
+ if statusCode >= 400 {
+ if statusCode != HTTPResponseCode.tooManyRequests {
+ if let urlString = response.url?.absoluteString {
+ Self.logger.debug("DownloadSession: Caching >= 400 response for \(urlString)")
+ cache.add(urlString, data: nil, response: response)
+ }
+ }
+
+ Self.logger.debug("DownloadSession: canceling task due to >= 400 response \(response)")
completionHandler(.cancel)
removeTask(dataTask)
- let statusCode = response.forcedStatusCode
-
if statusCode == HTTPResponseCode.tooManyRequests {
handle429Response(dataTask, response)
} else if (400...499).contains(statusCode), let url = response.url {
- urlsWith400s.insert(url)
+ http4xxResponses[url] = HTTP4xxResponse(statusCode)
}
return
@@ -194,11 +222,18 @@ private extension DownloadSession {
let urlToUse = cachedRedirect(for: url) ?? url
if requestShouldBeDroppedDueToActive429(urlToUse) {
- os_log(.debug, "Dropping request for previous 429: \(urlToUse)")
+ Self.logger.info("DownloadSession: Dropping request for previous 429: \(urlToUse)")
return
}
if requestShouldBeDroppedDueToPrevious400(urlToUse) {
- os_log(.debug, "Dropping request for previous 400-499: \(urlToUse)")
+ Self.logger.info("DownloadSession: Dropping request for previous 400-499: \(urlToUse)")
+ return
+ }
+
+ // Check cache
+ if let cachedResponse = cache[urlToUse.absoluteString] {
+ Self.logger.info("DownloadSession: using cached response for \(urlToUse) - \(cachedResponse.response?.forcedStatusCode ?? -1)")
+ delegate.downloadSession(self, downloadDidComplete: url, response: cachedResponse.response, data: cachedResponse.data ?? Data(), error: nil)
return
}
@@ -207,12 +242,11 @@ private extension DownloadSession {
if let conditionalGetInfo = delegate.downloadSession(self, conditionalGetInfoFor: url) {
conditionalGetInfo.addRequestHeadersToURLRequest(&request)
}
- if url.isOpenRSSOrgURL {
- request.setValue(UserAgent.openRSSOrgUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
- }
+ request.addSpecialCaseUserAgentIfNeeded()
return request
}()
+ Self.logger.debug("DownloadSession: adding dataTask for \(urlToUse)")
let task = urlSession.dataTask(with: urlRequest)
let info = DownloadInfo(url)
@@ -350,7 +384,7 @@ private extension DownloadSession {
func cancelAndRemoveTasksWithHost(_ host: String, in tasks: Set) {
- let lowercaseHost = host.lowercased()
+ let lowercaseHost = host.lowercased(with: localeForLowercasing)
let tasksToRemove = tasks.filter { task in
if let taskHost = task.lowercaseHost, taskHost.contains(lowercaseHost) {
@@ -386,12 +420,25 @@ private extension DownloadSession {
// MARK: - 400-499 responses
- func requestShouldBeDroppedDueToPrevious400(_ url: URL) -> Bool {
+ // Remove 4xx responses placed in the cache more than a while ago.
+ func cleanUp4xxResponsesCache() {
+ let oldDate = Date().bySubtracting(hours: 53)
- if urlsWith400s.contains(url) {
+ for url in http4xxResponses.keys {
+ guard let response = http4xxResponses[url] else {
+ continue
+ }
+ if response.date < oldDate {
+ http4xxResponses[url] = nil
+ }
+ }
+ }
+
+ func requestShouldBeDroppedDueToPrevious400(_ url: URL) -> Bool {
+ if http4xxResponses[url] != nil {
return true
}
- if let redirectedURL = cachedRedirect(for: url), urlsWith400s.contains(redirectedURL) {
+ if let redirectedURL = cachedRedirect(for: url), http4xxResponses[redirectedURL] != nil {
return true
}
@@ -436,7 +483,7 @@ extension URLSessionTask {
guard let request = currentRequest ?? originalRequest else {
return nil
}
- return request.url?.host()?.lowercased()
+ return request.url?.host()?.lowercased(with: localeForLowercasing)
}
}
diff --git a/Modules/RSWeb/Sources/RSWeb/Downloader.swift b/Modules/RSWeb/Sources/RSWeb/Downloader.swift
index 2588eaa9f..998422381 100755
--- a/Modules/RSWeb/Sources/RSWeb/Downloader.swift
+++ b/Modules/RSWeb/Sources/RSWeb/Downloader.swift
@@ -20,12 +20,9 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
public static let shared = Downloader()
private let urlSession: URLSession
private var callbacks = [URL: [DownloadCallback]]()
-
- // Cache — short-lived
- private let cache = Cache(timeToLive: 60 * 3, timeBetweenCleanups: 60 * 2)
-
+ private let cache = DownloadCache.shared
+
nonisolated private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "Downloader")
- nonisolated private static let debugLoggingEnabled = false
private init() {
let sessionConfiguration = URLSessionConfiguration.ephemeral
@@ -59,31 +56,31 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
return
}
+ guard url.isHTTPOrHTTPSURL() else {
+ Self.logger.debug("Downloader: skipping download for non-http/https URL: \(url)")
+ callback(nil, nil, nil)
+ return
+ }
+
let isCacheableRequest = urlRequest.httpMethod == HTTPMethod.get
// Return cached record if available.
if isCacheableRequest {
if let cachedRecord = cache[url.absoluteString] {
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: returning cached record for \(url)")
- }
- callback(cachedRecord.data, cachedRecord.response, cachedRecord.error)
+ Self.logger.debug("Downloader: returning cached record for \(url)")
+ callback(cachedRecord.data, cachedRecord.response, nil)
return
}
}
// Add callback. If there is already a download in progress for this URL, return early.
if callbacks[url] == nil {
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: downloading \(url)")
- }
+ Self.logger.debug("Downloader: downloading \(url)")
callbacks[url] = [callback]
} else {
// A download is already be in progress for this URL. Don’t start a separate download.
// Add the callback to the callbacks array for this URL.
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: download in progress for \(url) — adding callback")
- }
+ Self.logger.debug("Downloader: download in progress for \(url) — adding callback")
callbacks[url]?.append(callback)
return
}
@@ -94,11 +91,8 @@ public typealias DownloadCallback = @MainActor (Data?, URLResponse?, Error?) ->
let task = urlSession.dataTask(with: urlRequestToUse) { (data, response, error) in
if isCacheableRequest {
- if Self.debugLoggingEnabled {
- Self.logger.debug("Downloader: caching record for \(url)")
- }
- let cachedRecord = DownloaderRecord(data: data, response: response, error: error)
- self.cache[url.absoluteString] = cachedRecord
+ Self.logger.debug("Downloader: caching response for \(url)")
+ self.cache.add(url.absoluteString, data: data, response: response)
}
Task { @MainActor in
@@ -124,13 +118,11 @@ private extension Downloader {
return
}
- if Self.debugLoggingEnabled {
- let count = callbacksForURL.count
- if count == 1 {
- Self.logger.debug("Downloader: calling 1 callback for URL \(url)")
- } else {
- Self.logger.debug("Downloader: calling \(count) callbacks for URL \(url)")
- }
+ let count = callbacksForURL.count
+ if count == 1 {
+ Self.logger.debug("Downloader: calling 1 callback for URL \(url)")
+ } else {
+ Self.logger.debug("Downloader: calling \(count) callbacks for URL \(url)")
}
for callback in callbacksForURL {
@@ -138,11 +130,3 @@ private extension Downloader {
}
}
}
-
-struct DownloaderRecord: CacheRecord, Sendable {
-
- let dateCreated = Date()
- let data: Data?
- let response: URLResponse?
- let error: Error?
-}
diff --git a/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift b/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift
index 6d8a0eea4..541d91a07 100644
--- a/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift
+++ b/Modules/RSWeb/Sources/RSWeb/HTMLMetadataDownloader.swift
@@ -17,38 +17,41 @@ public final class HTMLMetadataDownloader: Sendable {
public static let shared = HTMLMetadataDownloader()
private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "HTMLMetadataDownloader")
- private static let debugLoggingEnabled = false
-
+
private let cache = HTMLMetadataCache()
private let attemptDatesLock = OSAllocatedUnfairLock(initialState: [String: Date]())
private let urlsReturning4xxsLock = OSAllocatedUnfairLock(initialState: Set())
public func cachedMetadata(for url: String) -> RSHTMLMetadata? {
-
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader requested cached metadata for \(url)")
+ if Self.shouldSkipDownloadingMetadata(url) {
+ Self.logger.debug("HTMLMetadataDownloader: Skipping requested cached metadata for \(url)")
+ return nil
}
+ Self.logger.debug("HTMLMetadataDownloader requested cached metadata for \(url)")
+
guard let htmlMetadata = cache[url] else {
downloadMetadataIfNeeded(url)
return nil
}
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader returning cached metadata for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader returning cached metadata for \(url)")
return htmlMetadata
}
}
private extension HTMLMetadataDownloader {
+ private static let specialCasesToSkip = [SpecialCase.rachelByTheBayHostName, SpecialCase.openRSSOrgHostName]
+
+ static func shouldSkipDownloadingMetadata(_ urlString: String) -> Bool {
+ SpecialCase.urlStringContainSpecialCase(urlString, specialCasesToSkip)
+ }
+
func downloadMetadataIfNeeded(_ url: String) {
if urlShouldBeSkippedDueToPrevious4xxResponse(url) {
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an earlier request returned a 4xx response.")
- }
+ Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an earlier request returned a 4xx response.")
return
}
@@ -59,9 +62,7 @@ private extension HTMLMetadataDownloader {
let hoursBetweenAttempts = 3 // arbitrary
if let attemptDate = attemptDates[url], attemptDate > currentDate.bySubtracting(hours: hoursBetweenAttempts) {
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an attempt was made less than an hour ago.")
- }
+ Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because an attempt was made less than an hour ago.")
return false
}
@@ -77,15 +78,11 @@ private extension HTMLMetadataDownloader {
func downloadMetadata(_ url: String) {
guard let actualURL = URL(string: url) else {
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because it couldn’t construct a URL.")
- }
+ Self.logger.debug("HTMLMetadataDownloader skipping download for \(url) because it couldn’t construct a URL.")
return
}
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader downloading for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader downloading for \(url)")
Task { @MainActor in
Downloader.shared.download(actualURL) { data, response, error in
@@ -93,9 +90,7 @@ private extension HTMLMetadataDownloader {
let urlToUse = response.url ?? actualURL
let parserData = ParserData(url: urlToUse.absoluteString, data: data)
let htmlMetadata = RSHTMLMetadataParser.htmlMetadata(with: parserData)
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader caching parsed metadata for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader caching parsed metadata for \(url)")
self.cache[url] = htmlMetadata
return
}
@@ -104,9 +99,7 @@ private extension HTMLMetadataDownloader {
self.noteURLDidReturn4xx(url)
}
- if Self.debugLoggingEnabled {
- Self.logger.debug("HTMLMetadataDownloader failed download for \(url)")
- }
+ Self.logger.debug("HTMLMetadataDownloader failed download for \(url)")
}
}
}
diff --git a/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift b/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
index 67c70f6ed..08e92ba5f 100644
--- a/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
+++ b/Modules/RSWeb/Sources/RSWeb/SpecialCases.swift
@@ -8,45 +8,52 @@
import Foundation
import os
+public let localeForLowercasing = Locale(identifier: "en_US")
+
+public struct SpecialCase {
+ public static let rachelByTheBayHostName = "rachelbythebay.com"
+ public static let openRSSOrgHostName = "openrss.org"
+
+ public static func urlStringContainSpecialCase(_ urlString: String, _ specialCases: [String]) -> Bool {
+ let lowerURLString = urlString.lowercased(with: localeForLowercasing)
+ for specialCase in specialCases {
+ if lowerURLString.contains(specialCase) {
+ return true
+ }
+ }
+ return false
+ }
+}
+
+
extension URL {
- private static let openRSSOrgURLCache = OSAllocatedUnfairLock(initialState: [URL: Bool]())
-
public var isOpenRSSOrgURL: Bool {
-
- Self.openRSSOrgURLCache.withLock { cache in
- if let cachedResult = cache[self] {
- return cachedResult
- }
-
- let result: Bool
- if let host = host(), host.contains("openrss.org") {
- result = true
- }
- else {
- result = false
- }
-
- cache[self] = result
- return result
+ guard let host = host() else {
+ return false
}
+ return SpecialCase.urlStringContainSpecialCase(host, [SpecialCase.openRSSOrgHostName])
+ }
+
+ public var isRachelByTheBayURL: Bool {
+ guard let host = host() else {
+ return false
+ }
+ return SpecialCase.urlStringContainSpecialCase(host, [SpecialCase.rachelByTheBayHostName])
}
}
extension Set where Element == URL {
func byRemovingOpenRSSOrgURLs() -> Set {
-
filter { !$0.isOpenRSSOrgURL }
}
func openRSSOrgURLs() -> Set {
-
filter { $0.isOpenRSSOrgURL }
}
func byRemovingAllButOneRandomOpenRSSOrgURL() -> Set {
-
if self.isEmpty || self.count == 1 {
return self
}
@@ -69,17 +76,19 @@ extension Set where Element == URL {
extension URLRequest {
mutating func addSpecialCaseUserAgentIfNeeded() {
-
- if let url, url.isOpenRSSOrgURL {
- setValue(UserAgent.openRSSOrgUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
+ guard let url else {
+ return
+ }
+
+ if url.isOpenRSSOrgURL || url.isRachelByTheBayURL {
+ setValue(UserAgent.extendedUserAgent, forHTTPHeaderField: HTTPRequestHeader.userAgent)
}
}
}
extension UserAgent {
- static let openRSSOrgUserAgent = {
-
+ static let extendedUserAgent = {
#if os(iOS)
let platform = "iOS"
#else
@@ -98,7 +107,6 @@ extension UserAgent {
}()
private static func stringFromInfoPlist(_ key: String) -> String? {
-
guard let s = Bundle.main.object(forInfoDictionaryKey: key) as? String else {
assertionFailure("Expected to get \(key) from infoDictionary.")
return nil
diff --git a/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift b/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift
index 1225a13e6..1668ea3b4 100755
--- a/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift
+++ b/Modules/RSWeb/Sources/RSWeb/URL+RSWeb.swift
@@ -18,11 +18,11 @@ private struct URLConstants {
public extension URL {
func isHTTPSURL() -> Bool {
- return self.scheme?.lowercased() == URLConstants.schemeHTTPS
+ return self.scheme?.lowercased(with: localeForLowercasing) == URLConstants.schemeHTTPS
}
func isHTTPURL() -> Bool {
- return self.scheme?.lowercased() == URLConstants.schemeHTTP
+ return self.scheme?.lowercased(with: localeForLowercasing) == URLConstants.schemeHTTP
}
func isHTTPOrHTTPSURL() -> Bool {
diff --git a/Modules/RSWeb/Tests/RSWebTests/DictionaryTests.swift b/Modules/RSWeb/Tests/RSWebTests/DictionaryTests.swift
index db759dc28..f2b92f508 100644
--- a/Modules/RSWeb/Tests/RSWebTests/DictionaryTests.swift
+++ b/Modules/RSWeb/Tests/RSWebTests/DictionaryTests.swift
@@ -8,7 +8,7 @@
import XCTest
-class DictionaryTests: XCTestCase {
+final class DictionaryTests: XCTestCase {
func testSimpleQueryString() {
diff --git a/Modules/RSWeb/Tests/RSWebTests/StringTests.swift b/Modules/RSWeb/Tests/RSWebTests/StringTests.swift
index 23dc2f4d3..17668eb57 100644
--- a/Modules/RSWeb/Tests/RSWebTests/StringTests.swift
+++ b/Modules/RSWeb/Tests/RSWebTests/StringTests.swift
@@ -8,7 +8,7 @@
import XCTest
-class StringTests: XCTestCase {
+final class StringTests: XCTestCase {
func testHTMLEscaping() {
diff --git a/Modules/Secrets/Sources/Secrets/SecretsManager.swift b/Modules/Secrets/Sources/Secrets/SecretsManager.swift
index c53f5615f..a8e89a77e 100644
--- a/Modules/Secrets/Sources/Secrets/SecretsManager.swift
+++ b/Modules/Secrets/Sources/Secrets/SecretsManager.swift
@@ -7,6 +7,6 @@
import Foundation
-public class SecretsManager {
+public final class SecretsManager {
public static var provider: SecretsProvider!
}
diff --git a/NetNewsWire.xcodeproj/project.pbxproj b/NetNewsWire.xcodeproj/project.pbxproj
index 545de5aea..4d31c61f0 100644
--- a/NetNewsWire.xcodeproj/project.pbxproj
+++ b/NetNewsWire.xcodeproj/project.pbxproj
@@ -279,6 +279,7 @@
6581C73320CED60000F4AD34 /* Subscribe to Feed.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Subscribe to Feed.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
840A1F0A2E4133F400CFCCFC /* CLAUDE.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CLAUDE.md; sourceTree = ""; };
840D617C2029031C009BC708 /* NetNewsWire.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetNewsWire.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 844E47DC2E7DC72A0061A51A /* CODE_OF_CONDUCT.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CODE_OF_CONDUCT.md; sourceTree = ""; };
845B14A51FC2299E0013CF92 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; };
848CEF1E2DB74B56002B35B5 /* NetNewsWire-iOS.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = "NetNewsWire-iOS.xctestplan"; sourceTree = ""; };
848E84CA2DB743FF0023F3BA /* NetNewsWire.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = NetNewsWire.xctestplan; sourceTree = ""; };
@@ -630,6 +631,7 @@
children = (
845B14A51FC2299E0013CF92 /* README.md */,
84D2200922B0BC4B0019E085 /* CONTRIBUTING.md */,
+ 844E47DC2E7DC72A0061A51A /* CODE_OF_CONDUCT.md */,
840A1F0A2E4133F400CFCCFC /* CLAUDE.md */,
848E84CA2DB743FF0023F3BA /* NetNewsWire.xctestplan */,
848CEF1E2DB74B56002B35B5 /* NetNewsWire-iOS.xctestplan */,
diff --git a/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
index 1555d3641..768b3fd32 100644
--- a/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
+++ b/NetNewsWire.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@@ -1,34 +1,50 @@
{
- "object": {
- "pins": [
- {
- "package": "PLCrashReporter",
- "repositoryURL": "https://github.com/microsoft/plcrashreporter.git",
- "state": {
- "branch": null,
- "revision": "b1a342da19ed9b3af61ea2efa7656c2af30aeb7c",
- "version": "1.11.0"
- }
- },
- {
- "package": "RSSparkle",
- "repositoryURL": "https://github.com/Ranchero-Software/Sparkle-Binary.git",
- "state": {
- "branch": null,
- "revision": "d1a8b3c98d96c601453f2e4230f1dd65b60d0581",
- "version": "2.0.1"
- }
- },
- {
- "package": "Zip",
- "repositoryURL": "https://github.com/marmelroy/Zip.git",
- "state": {
- "branch": null,
- "revision": "059e7346082d02de16220cd79df7db18ddeba8c3",
- "version": null
- }
+ "originHash" : "d126877be4ee0ff77baa0e72041e3148c97eca9e4a56e41f57c18ae4a25e6ac2",
+ "pins" : [
+ {
+ "identity" : "plcrashreporter",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/microsoft/plcrashreporter.git",
+ "state" : {
+ "revision" : "b1a342da19ed9b3af61ea2efa7656c2af30aeb7c",
+ "version" : "1.11.0"
}
- ]
- },
- "version": 1
+ },
+ {
+ "identity" : "sparkle-binary",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/Ranchero-Software/Sparkle-Binary.git",
+ "state" : {
+ "revision" : "d1a8b3c98d96c601453f2e4230f1dd65b60d0581",
+ "version" : "2.0.1"
+ }
+ },
+ {
+ "identity" : "swift-cmark",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/swiftlang/swift-cmark.git",
+ "state" : {
+ "revision" : "b97d09472e847a416629f026eceae0e2afcfad65",
+ "version" : "0.7.0"
+ }
+ },
+ {
+ "identity" : "swift-markdown",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/apple/swift-markdown.git",
+ "state" : {
+ "revision" : "d8cf111c276ed18cff82d3cad563d2ca5903b982",
+ "version" : "0.7.1"
+ }
+ },
+ {
+ "identity" : "zip",
+ "kind" : "remoteSourceControl",
+ "location" : "https://github.com/marmelroy/Zip.git",
+ "state" : {
+ "revision" : "059e7346082d02de16220cd79df7db18ddeba8c3"
+ }
+ }
+ ],
+ "version" : 3
}
diff --git a/NetNewsWire.xctestplan b/NetNewsWire.xctestplan
index 54a20e57e..c441b0bbd 100644
--- a/NetNewsWire.xctestplan
+++ b/NetNewsWire.xctestplan
@@ -19,9 +19,30 @@
"testTargets" : [
{
"target" : {
- "containerPath" : "container:Modules\/RSWeb",
- "identifier" : "RSWebTests",
- "name" : "RSWebTests"
+ "containerPath" : "container:Modules\/RSParser",
+ "identifier" : "RSParserTests",
+ "name" : "RSParserTests"
+ }
+ },
+ {
+ "target" : {
+ "containerPath" : "container:Modules\/RSMarkdown",
+ "identifier" : "RSMarkdownTests",
+ "name" : "RSMarkdownTests"
+ }
+ },
+ {
+ "target" : {
+ "containerPath" : "container:Modules\/RSCore",
+ "identifier" : "RSCoreTests",
+ "name" : "RSCoreTests"
+ }
+ },
+ {
+ "target" : {
+ "containerPath" : "container:NetNewsWire.xcodeproj",
+ "identifier" : "849C64701ED37A5D003D8FC0",
+ "name" : "NetNewsWireTests"
}
},
{
@@ -31,16 +52,6 @@
"name" : "AccountTests"
}
},
- {
- "skippedTests" : [
- "ScriptingTests\/testFeedOPML()"
- ],
- "target" : {
- "containerPath" : "container:NetNewsWire.xcodeproj",
- "identifier" : "849C64701ED37A5D003D8FC0",
- "name" : "NetNewsWireTests"
- }
- },
{
"target" : {
"containerPath" : "container:Modules\/RSDatabase",
@@ -50,16 +61,9 @@
},
{
"target" : {
- "containerPath" : "container:Modules\/RSParser",
- "identifier" : "RSParserTests",
- "name" : "RSParserTests"
- }
- },
- {
- "target" : {
- "containerPath" : "container:Modules\/RSCore",
- "identifier" : "RSCoreTests",
- "name" : "RSCoreTests"
+ "containerPath" : "container:Modules\/RSWeb",
+ "identifier" : "RSWebTests",
+ "name" : "RSWebTests"
}
}
],
diff --git a/Shared/Activity/ActivityManager.swift b/Shared/Activity/ActivityManager.swift
index b964d1e90..82c21f934 100644
--- a/Shared/Activity/ActivityManager.swift
+++ b/Shared/Activity/ActivityManager.swift
@@ -15,7 +15,7 @@ import Articles
import Intents
import UniformTypeIdentifiers
-class ActivityManager {
+final class ActivityManager {
private var nextUnreadActivity: NSUserActivity?
private var selectingActivity: NSUserActivity?
diff --git a/Shared/Article Extractor/ArticleExtractor.swift b/Shared/Article Extractor/ArticleExtractor.swift
index efff97cdc..0d43d9eb2 100644
--- a/Shared/Article Extractor/ArticleExtractor.swift
+++ b/Shared/Article Extractor/ArticleExtractor.swift
@@ -23,7 +23,7 @@ protocol ArticleExtractorDelegate {
func articleExtractionDidComplete(extractedArticle: ExtractedArticle)
}
-class ArticleExtractor {
+final class ArticleExtractor {
private var dataTask: URLSessionDataTask? = nil
diff --git a/Shared/Article Rendering/WebViewConfiguration.swift b/Shared/Article Rendering/WebViewConfiguration.swift
new file mode 100644
index 000000000..b67f05ac9
--- /dev/null
+++ b/Shared/Article Rendering/WebViewConfiguration.swift
@@ -0,0 +1,77 @@
+//
+// WebViewConfiguration.swift
+// NetNewsWire
+//
+// Created by Brent Simmons on 1/15/25.
+// Copyright © 2025 Ranchero Software. All rights reserved.
+//
+
+import Foundation
+import WebKit
+
+final class WebViewConfiguration {
+
+ static func configuration(with urlSchemeHandler: WKURLSchemeHandler) -> WKWebViewConfiguration {
+ assert(Thread.isMainThread)
+
+ let configuration = WKWebViewConfiguration()
+
+ configuration.preferences = preferences
+ configuration.defaultWebpagePreferences = webpagePreferences
+ configuration.mediaTypesRequiringUserActionForPlayback = .all
+ configuration.setURLSchemeHandler(urlSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
+ configuration.userContentController = userContentController
+
+#if os(iOS)
+ configuration.allowsInlineMediaPlayback = true
+#endif
+
+ return configuration
+ }
+}
+
+private extension WebViewConfiguration {
+
+ static var preferences: WKPreferences {
+ let preferences = WKPreferences()
+ preferences.javaScriptCanOpenWindowsAutomatically = false
+ preferences.minimumFontSize = 12
+
+#if os(iOS)
+ preferences.isElementFullscreenEnabled = true
+#endif
+
+ return preferences
+ }
+
+ static var webpagePreferences: WKWebpagePreferences {
+ assert(Thread.isMainThread)
+
+ let preferences = WKWebpagePreferences()
+ preferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
+ return preferences
+ }
+
+ static var userContentController: WKUserContentController {
+ let userContentController = WKUserContentController()
+ for script in articleScripts {
+ userContentController.addUserScript(script)
+ }
+ return userContentController
+ }
+
+ static let articleScripts: [WKUserScript] = {
+#if os(iOS)
+ let filenames = ["main", "main_ios", "newsfoot"]
+#else
+ let filenames = ["main", "main_mac", "newsfoot"]
+#endif
+
+ let scripts = filenames.map { filename in
+ let scriptURL = Bundle.main.url(forResource: filename, withExtension: ".js")!
+ let scriptSource = try! String(contentsOf: scriptURL, encoding: .utf8)
+ return WKUserScript(source: scriptSource, injectionTime: .atDocumentStart, forMainFrameOnly: true)
+ }
+ return scripts
+ }()
+}
diff --git a/Shared/Article Rendering/stylesheet.css b/Shared/Article Rendering/stylesheet.css
index 2d50fdf34..d674ac1bd 100644
--- a/Shared/Article Rendering/stylesheet.css
+++ b/Shared/Article Rendering/stylesheet.css
@@ -517,6 +517,13 @@ a.footnote:hover,
.articleBody a:link, .articleBody a:visited {
border-bottom: 1px solid var(--accent-color);
}
+
+ .articleBody a:has(img),
+ .articleBody a:has(img):link,
+ .articleBody a:has(img):visited {
+ border-bottom: none;
+ }
+
.articleBody a:hover {
border-radius: 2px;
background: linear-gradient(0deg, var(--hover-gradient-color-start) 0%, var(--hover-gradient-color-end) 100%);
@@ -524,6 +531,13 @@ a.footnote:hover,
color: white;
text-decoration: none;
}
+
+ .articleBody a:has(img):hover {
+ background: none;
+ border-bottom: none;
+ color: inherit;
+ border-radius: 0;
+ }
.articleBody a:hover u {
color: white;
}
diff --git a/Shared/Extensions/ArticleStringFormatter.swift b/Shared/Extensions/ArticleStringFormatter.swift
index dac926b34..95ae5c3f3 100644
--- a/Shared/Extensions/ArticleStringFormatter.swift
+++ b/Shared/Extensions/ArticleStringFormatter.swift
@@ -99,9 +99,7 @@ struct ArticleStringFormatter {
return cachedBody
}
var s = body.rsparser_stringByDecodingHTMLEntities()
- s = s.strippingHTML(maxCharacters: 250)
- s = s.trimmingWhitespace
- s = s.collapsingWhitespace
+ s = s.strippingHTML(maxCharacters: 300)
if s == "Comments" { // Hacker News.
s = ""
}
diff --git a/Shared/Extensions/ArticleUtilities.swift b/Shared/Extensions/ArticleUtilities.swift
index 0b52c15d8..2deaa3f52 100644
--- a/Shared/Extensions/ArticleUtilities.swift
+++ b/Shared/Extensions/ArticleUtilities.swift
@@ -47,15 +47,15 @@ extension Article {
}
var url: URL? {
- return URL.reparingIfRequired(rawLink)
+ return URL.encodeSpacesIfNeeded(rawLink)
}
var externalURL: URL? {
- return URL.reparingIfRequired(rawExternalLink)
+ return URL.encodeSpacesIfNeeded(rawExternalLink)
}
var imageURL: URL? {
- return URL.reparingIfRequired(rawImageLink)
+ return URL.encodeSpacesIfNeeded(rawImageLink)
}
var link: String? {
@@ -126,11 +126,7 @@ extension Article {
let fm = FileManager.default
var path = fm.urls(for: .cachesDirectory, in: .userDomainMask)[0]
let feedID = webFeed.webFeedID.replacingOccurrences(of: "/", with: "_")
- #if os(macOS)
- path.appendPathComponent(feedID + "_smallIcon.tiff")
- #else
path.appendPathComponent(feedID + "_smallIcon.png")
- #endif
fm.createFile(atPath: path.path, contents: image.image.dataRepresentation()!, attributes: nil)
return path
} else {
diff --git a/Shared/Extensions/CacheCleaner.swift b/Shared/Extensions/CacheCleaner.swift
index fa00603e7..3688fb19d 100644
--- a/Shared/Extensions/CacheCleaner.swift
+++ b/Shared/Extensions/CacheCleaner.swift
@@ -7,12 +7,12 @@
//
import Foundation
-import os.log
+import os
import RSWeb
struct CacheCleaner {
- static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "CacheCleaner")
+ static private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "CacheCleaner")
static func purgeIfNecessary() {
@@ -35,19 +35,16 @@ struct CacheCleaner {
for tempItem in [faviconsFolderURL, imagesFolderURL, feedURLToIconURL, homePageToIconURL, homePagesWithNoIconURL] {
do {
- os_log(.info, log: self.log, "Removing cache file: %@", tempItem.absoluteString)
+ logger.info("Removing cache file: \(tempItem.absoluteString)")
try FileManager.default.removeItem(at: tempItem)
} catch {
- os_log(.error, log: self.log, "Could not delete cache file: %@", error.localizedDescription)
+ logger.error("Could not delete cache file: \(error.localizedDescription)")
}
}
AppDefaults.shared.lastImageCacheFlushDate = Date()
-
}
}
}
-
}
-
}
diff --git a/Shared/Extensions/RSImage-Extensions.swift b/Shared/Extensions/RSImage-Extensions.swift
index 94ae44892..1d6e57f47 100644
--- a/Shared/Extensions/RSImage-Extensions.swift
+++ b/Shared/Extensions/RSImage-Extensions.swift
@@ -40,7 +40,7 @@ extension RSImage {
// MARK: - IconScalerQueue
-private class IconScalerQueue {
+private final class IconScalerQueue {
static let shared = IconScalerQueue()
diff --git a/Shared/Extensions/URL-Extensions.swift b/Shared/Extensions/URL-Extensions.swift
index dd96df60e..8676a4b29 100644
--- a/Shared/Extensions/URL-Extensions.swift
+++ b/Shared/Extensions/URL-Extensions.swift
@@ -26,9 +26,6 @@ extension URL {
return URL(string: urlString)
}
- /// Reverse chronological list of release notes.
- static var releaseNotes = URL(string: "https://github.com/Ranchero-Software/NetNewsWire/releases/")!
-
func valueFor(_ parameter: String) -> String? {
guard let components = URLComponents(url: self, resolvingAgainstBaseURL: false),
let queryItems = components.queryItems,
@@ -38,16 +35,14 @@ extension URL {
return value
}
-
- static func reparingIfRequired(_ link: String?) -> URL? {
- // If required, we replace any space characters to handle malformed links that are otherwise percent
- // encoded but contain spaces. For performance reasons, only try this if initial URL init fails.
- guard let link = link, !link.isEmpty else { return nil }
- if let url = URL(string: link) {
- return url
- } else {
- return URL(string: link.replacingOccurrences(of: " ", with: "%20"))
- }
- }
+ /// Percent-encode spaces in links that may contain spaces but are otherwise already percent-encoded.
+ ///
+ /// For performance reasons, try this only if initial URL init fails.
+ static func encodeSpacesIfNeeded(_ link: String?) -> URL? {
+ guard let link, !link.isEmpty else {
+ return nil
+ }
+ return URL(string: link.replacingOccurrences(of: " ", with: "%20"))
+ }
}
diff --git a/Shared/Favicons/FaviconDownloader.swift b/Shared/Favicons/FaviconDownloader.swift
index e4d5495d1..7d290b067 100644
--- a/Shared/Favicons/FaviconDownloader.swift
+++ b/Shared/Favicons/FaviconDownloader.swift
@@ -75,9 +75,12 @@ final class FaviconDownloader {
}
func favicon(for webFeed: WebFeed) -> IconImage? {
-
assert(Thread.isMainThread)
+ if shouldSkipDownloadingFavicon(feed: webFeed) {
+ return nil
+ }
+
var homePageURL = webFeed.homePageURL
if let faviconURL = webFeed.faviconURL {
return favicon(with: faviconURL, homePageURL: homePageURL)
@@ -97,19 +100,16 @@ final class FaviconDownloader {
}
func faviconAsIcon(for webFeed: WebFeed) -> IconImage? {
-
+
if let image = cache[webFeed] {
return image
}
-
- if let iconImage = favicon(for: webFeed), let imageData = iconImage.image.dataRepresentation() {
- if let scaledImage = RSImage.scaledForIcon(imageData) {
- let scaledIconImage = IconImage(scaledImage)
- cache[webFeed] = scaledIconImage
- return scaledIconImage
- }
+
+ if let iconImage = favicon(for: webFeed) {
+ cache[webFeed] = iconImage
+ return iconImage
}
-
+
return nil
}
@@ -209,6 +209,12 @@ final class FaviconDownloader {
private extension FaviconDownloader {
+ static let specialCasesToSkip = [SpecialCase.rachelByTheBayHostName, SpecialCase.openRSSOrgHostName]
+
+ func shouldSkipDownloadingFavicon(feed: WebFeed) -> Bool {
+ SpecialCase.urlStringContainSpecialCase(feed.url, Self.specialCasesToSkip)
+ }
+
static let localeForLowercasing = Locale(identifier: "en_US")
func findFaviconURLs(with homePageURL: String) -> [String]? {
diff --git a/Shared/Favicons/SingleFaviconDownloader.swift b/Shared/Favicons/SingleFaviconDownloader.swift
index bc952bdf4..8ebc6b127 100644
--- a/Shared/Favicons/SingleFaviconDownloader.swift
+++ b/Shared/Favicons/SingleFaviconDownloader.swift
@@ -29,8 +29,8 @@ final class SingleFaviconDownloader {
var iconImage: IconImage?
let homePageURL: String?
- private var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "SingleFaviconDownloader")
-
+ static private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "SingleFaviconDownloader")
+
private var lastDownloadAttemptDate: Date
private var diskStatus = DiskStatus.unknown
private var diskCache: BinaryDiskCache
@@ -66,7 +66,7 @@ final class SingleFaviconDownloader {
lastDownloadAttemptDate = Date()
findFavicon()
-
+
return true
}
}
@@ -93,7 +93,7 @@ private extension SingleFaviconDownloader {
}
self.postDidLoadFaviconNotification()
-
+
}
}
}
@@ -141,17 +141,17 @@ private extension SingleFaviconDownloader {
Task { @MainActor in
Downloader.shared.download(url) { (data, response, error) in
-
+
if let data = data, !data.isEmpty, let response = response, response.statusIsOK, error == nil {
self.saveToDisk(data)
RSImage.image(with: data, imageResultBlock: completion)
return
}
-
+
if let error = error {
- os_log(.info, log: self.log, "Error downloading image at %@: %@.", url.absoluteString, error.localizedDescription)
+ Self.logger.error("Error downloading image at \(url.absoluteString): \(error.localizedDescription)")
}
-
+
completion(nil)
}
}
@@ -162,5 +162,5 @@ private extension SingleFaviconDownloader {
assert(Thread.isMainThread)
NotificationCenter.default.post(name: .DidLoadFavicon, object: self)
}
-
+
}
diff --git a/Shared/HelpURL.swift b/Shared/HelpURL.swift
new file mode 100644
index 000000000..9b1174ed7
--- /dev/null
+++ b/Shared/HelpURL.swift
@@ -0,0 +1,28 @@
+//
+// HelpURL.swift
+// NetNewsWire
+//
+// Created by Brent Simmons on 9/29/25.
+// Copyright © 2025 Ranchero Software. All rights reserved.
+//
+
+import Foundation
+
+enum HelpURL: String {
+
+ case helpHome = "https://netnewswire.com/help/"
+ case website = "https://netnewswire.com/"
+ case releaseNotes = "https://github.com/Ranchero-Software/NetNewsWire/releases/"
+ case howToSupportNetNewsWire = "https://github.com/Ranchero-Software/NetNewsWire/blob/main/Technotes/HowToSupportNetNewsWire.markdown"
+ case githubRepo = "https://github.com/Ranchero-Software/NetNewsWire"
+ case bugTracker = "https://github.com/Ranchero-Software/NetNewsWire/issues"
+ case slack = "https://netnewswire.com/slack"
+ case technotes = "https://github.com/Ranchero-Software/NetNewsWire/tree/main/Technotes"
+ case privacyPolicy = "https://netnewswire.com/privacypolicy.html"
+
+#if os(macOS)
+ func open() {
+ Browser.open(self.rawValue, inBackground: false)
+ }
+#endif
+}
diff --git a/Shared/IconImageCache.swift b/Shared/IconImageCache.swift
index 7722f382f..50468f78d 100644
--- a/Shared/IconImageCache.swift
+++ b/Shared/IconImageCache.swift
@@ -10,7 +10,7 @@ import Foundation
import Account
import Articles
-class IconImageCache {
+final class IconImageCache {
static var shared = IconImageCache()
diff --git a/Shared/Images/FeedIconDownloader.swift b/Shared/Images/FeedIconDownloader.swift
index 8af01a5d1..363f4e95f 100644
--- a/Shared/Images/FeedIconDownloader.swift
+++ b/Shared/Images/FeedIconDownloader.swift
@@ -53,6 +53,9 @@ public final class FeedIconDownloader {
if let homePageURLString = feed.homePageURL, let homePageURL = URL(string: homePageURLString), (homePageURL.host == "nnw.ranchero.com" || homePageURL.host == "netnewswire.blog") {
return IconImage.nnwFeedIcon
}
+ if (Self.shouldSkipDownloadingFeedIcon(feed: feed)) {
+ return nil
+ }
func checkHomePageURL() {
guard let homePageURL = feed.homePageURL else {
@@ -113,11 +116,23 @@ public final class FeedIconDownloader {
private extension FeedIconDownloader {
- static let homePagesWithUglyIcons: Set = Set(["https://www.macsparky.com/", "https://xkcd.com/"])
+ static let specialCasesToSkip = ["macsparky.com", "xkcd.com", SpecialCase.rachelByTheBayHostName, SpecialCase.openRSSOrgHostName]
+
+ static func shouldSkipDownloadingFeedIcon(feed: WebFeed) -> Bool {
+ shouldSkipDownloadingFeedIcon(feed.url)
+ }
+
+ static func shouldSkipDownloadingFeedIcon(_ urlString: String) -> Bool {
+ SpecialCase.urlStringContainSpecialCase(urlString, specialCasesToSkip)
+ }
func icon(forHomePageURL homePageURL: String, feed: WebFeed, _ resultBlock: @escaping (RSImage?, String?) -> Void) {
+ if Self.shouldSkipDownloadingFeedIcon(homePageURL) {
+ resultBlock(nil, nil)
+ return
+ }
- if homePagesWithNoIconURL.contains(homePageURL) || Self.homePagesWithUglyIcons.contains(homePageURL) {
+ if homePagesWithNoIconURL.contains(homePageURL) {
resultBlock(nil, nil)
return
}
diff --git a/Shared/Images/ImageDownloader.swift b/Shared/Images/ImageDownloader.swift
index b5233ae55..252a789fc 100644
--- a/Shared/Images/ImageDownloader.swift
+++ b/Shared/Images/ImageDownloader.swift
@@ -21,7 +21,7 @@ final class ImageDownloader {
public static let shared = ImageDownloader()
- private var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "ImageDownloader")
+ static private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "ImageDownloader")
private var diskCache: BinaryDiskCache
private let queue: DispatchQueue
@@ -107,20 +107,20 @@ private extension ImageDownloader {
Task { @MainActor in
Downloader.shared.download(imageURL) { (data, response, error) in
-
+
if let data = data, !data.isEmpty, let response = response, response.statusIsOK, error == nil {
self.saveToDisk(url, data)
completion(data)
return
}
-
+
if let response = response as? HTTPURLResponse, response.statusCode >= HTTPResponseCode.badRequest && response.statusCode <= HTTPResponseCode.notAcceptable {
self.badURLs.insert(url)
}
if let error = error {
- os_log(.info, log: self.log, "Error downloading image at %@: %@.", url, error.localizedDescription)
+ Self.logger.error("Error downloading image at \(url) \(error.localizedDescription)")
}
-
+
completion(nil)
}
}
diff --git a/Shared/Resources/Sepia.nnwtheme/stylesheet.css b/Shared/Resources/Sepia.nnwtheme/stylesheet.css
index 3f88f177d..0368b9a97 100644
--- a/Shared/Resources/Sepia.nnwtheme/stylesheet.css
+++ b/Shared/Resources/Sepia.nnwtheme/stylesheet.css
@@ -10,7 +10,9 @@ body {
}
a {
- text-decoration: none;
+ text-decoration: underline;
+ text-decoration-style: dotted;
+ text-decoration-offset: 0.15em;
}
a:hover {
text-shadow: 0 1px rgba(255, 255, 255, 2);
diff --git a/Shared/Settings/AddCloudKitAccount.swift b/Shared/Settings/AddCloudKitAccount.swift
new file mode 100644
index 000000000..8e2e6878c
--- /dev/null
+++ b/Shared/Settings/AddCloudKitAccount.swift
@@ -0,0 +1,68 @@
+//
+// AddCloudKitAccount.swift
+// NetNewsWire
+//
+// Created by Brent Simmons on 9/22/25.
+// Copyright © 2025 Ranchero Software. All rights reserved.
+//
+
+import Foundation
+#if canImport(AppKit)
+import AppKit
+#endif
+#if canImport(UIKit)
+import UIKit
+#endif
+
+enum AddCloudKitAccountError: LocalizedError, RecoverableError {
+
+ case iCloudDriveMissing
+
+ var errorDescription: String? {
+ NSLocalizedString("Can’t Add iCloud Account", comment: "CloudKit account setup failure description — iCloud Drive not enabled.")
+ }
+
+ var recoverySuggestion: String? {
+ #if os(macOS)
+ NSLocalizedString("Open System Settings to configure iCloud and enable iCloud Drive.", comment: "CloudKit account setup recovery suggestion")
+ #else
+ NSLocalizedString("Open Settings to configure iCloud and enable iCloud Drive.", comment: "CloudKit account setup recovery suggestion")
+ #endif
+ }
+
+ var recoveryOptions: [String] {
+ #if os(macOS)
+ [NSLocalizedString("Open System Settings", comment: "Open System Settings button"), NSLocalizedString("Cancel", comment: "Cancel button")]
+ #else
+ [NSLocalizedString("Open Settings", comment: "Open Settings button"), NSLocalizedString("Cancel", comment: "Cancel button")]
+ #endif
+ }
+
+ func attemptRecovery(optionIndex recoveryOptionIndex: Int) -> Bool {
+ guard recoveryOptionIndex == 0 else {
+ return false
+ }
+
+ AddCloudKitAccountUtilities.openiCloudSettings()
+ return true
+ }
+}
+
+struct AddCloudKitAccountUtilities {
+
+ static var isiCloudDriveEnabled: Bool {
+ FileManager.default.ubiquityIdentityToken != nil
+ }
+
+ static func openiCloudSettings() {
+#if os(macOS)
+ if let url = URL(string: "x-apple.systempreferences:com.apple.preferences.AppleIDPrefPane") {
+ NSWorkspace.shared.open(url)
+ }
+#else
+ if let url = URL(string: "App-prefs:APPLE_ACCOUNT") {
+ UIApplication.shared.open(url)
+ }
+#endif
+ }
+}
diff --git a/Shared/ShareExtension/ExtensionContainersFile.swift b/Shared/ShareExtension/ExtensionContainersFile.swift
index 094a5360d..32d6bf4b8 100644
--- a/Shared/ShareExtension/ExtensionContainersFile.swift
+++ b/Shared/ShareExtension/ExtensionContainersFile.swift
@@ -13,15 +13,15 @@ import RSParser
import Account
final class ExtensionContainersFile {
-
- private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionContainersFile")
+
+ static private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "ExtensionContainersFile")
private static var filePath: String = {
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
return containerURL!.appendingPathComponent("extension_containers.plist").path
}()
-
+
private var isDirty = false {
didSet {
queueSaveToDiskIfNeeded()
@@ -33,7 +33,7 @@ final class ExtensionContainersFile {
if !FileManager.default.fileExists(atPath: ExtensionContainersFile.filePath) {
save()
}
-
+
NotificationCenter.default.addObserver(self, selector: #selector(markAsDirty), name: .UserDidAddAccount, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(markAsDirty), name: .UserDidDeleteAccount, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(markAsDirty), name: .AccountStateDidChange, object: nil)
@@ -53,14 +53,14 @@ final class ExtensionContainersFile {
extensionContainers = try? decoder.decode(ExtensionContainers.self, from: fileData)
}
})
-
+
if let error = errorPointer?.pointee {
- os_log(.error, log: log, "Read from disk coordination failed: %@.", error.localizedDescription)
+ Self.logger.error("Read from disk coordination failed: \(error.localizedDescription)")
}
return extensionContainers
}
-
+
}
private extension ExtensionContainersFile {
@@ -68,7 +68,7 @@ private extension ExtensionContainersFile {
@objc func markAsDirty() {
isDirty = true
}
-
+
func queueSaveToDiskIfNeeded() {
saveQueue.add(self, #selector(saveToDiskIfNeeded))
}
@@ -87,7 +87,7 @@ private extension ExtensionContainersFile {
let errorPointer: NSErrorPointer = nil
let fileCoordinator = NSFileCoordinator()
let fileURL = URL(fileURLWithPath: ExtensionContainersFile.filePath)
-
+
fileCoordinator.coordinate(writingItemAt: fileURL, options: [], error: errorPointer, byAccessor: { writeURL in
do {
let extensionAccounts = AccountManager.shared.sortedActiveAccounts.map { ExtensionAccount(account: $0) }
@@ -95,12 +95,12 @@ private extension ExtensionContainersFile {
let data = try encoder.encode(extensionContainers)
try data.write(to: writeURL)
} catch let error as NSError {
- os_log(.error, log: Self.log, "Save to disk failed: %@.", error.localizedDescription)
+ Self.logger.error("Save to disk failed: \(error.localizedDescription)")
}
})
-
+
if let error = errorPointer?.pointee {
- os_log(.error, log: Self.log, "Save to disk coordination failed: %@.", error.localizedDescription)
+ Self.logger.error("Save to disk coordination failed: \(error.localizedDescription)")
}
}
diff --git a/Shared/ShareExtension/ExtensionFeedAddRequestFile.swift b/Shared/ShareExtension/ExtensionFeedAddRequestFile.swift
index 6ac0dd2e4..c8cff0220 100644
--- a/Shared/ShareExtension/ExtensionFeedAddRequestFile.swift
+++ b/Shared/ShareExtension/ExtensionFeedAddRequestFile.swift
@@ -11,8 +11,8 @@ import os.log
import Account
final class ExtensionFeedAddRequestFile: NSObject, NSFilePresenter {
-
- private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionFeedAddRequestFile")
+
+ static private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "ExtensionFeedAddRequestFile")
private static var filePath: String = {
let appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
@@ -82,15 +82,14 @@ final class ExtensionFeedAddRequestFile: NSObject, NSFilePresenter {
try data.write(to: url)
} catch let error as NSError {
- os_log(.error, log: Self.log, "Save to disk failed: %@.", error.localizedDescription)
+ Self.logger.error("Save to disk failed: \(error.localizedDescription)")
}
})
if let error = errorPointer?.pointee {
- os_log(.error, log: Self.log, "Save to disk coordination failed: %@.", error.localizedDescription)
+ Self.logger.error("Save to disk coordination failed: \(error.localizedDescription)")
}
}
-
}
private extension ExtensionFeedAddRequestFile {
@@ -119,12 +118,12 @@ private extension ExtensionFeedAddRequestFile {
try data.write(to: url)
} catch let error as NSError {
- os_log(.error, log: Self.log, "Save to disk failed: %@.", error.localizedDescription)
+ Self.logger.error("Save to disk failed: \(error.localizedDescription)")
}
})
if let error = errorPointer?.pointee {
- os_log(.error, log: Self.log, "Save to disk coordination failed: %@.", error.localizedDescription)
+ Self.logger.error("Save to disk coordination failed: \(error.localizedDescription)")
}
requests?.forEach { processRequest($0) }
@@ -156,5 +155,4 @@ private extension ExtensionFeedAddRequestFile {
account.createWebFeed(url: request.feedURL.absoluteString, name: request.name, container: container, validateFeed: true) { _ in }
}
-
}
diff --git a/Shared/Timer/ArticleStatusSyncTimer.swift b/Shared/Timer/ArticleStatusSyncTimer.swift
index 32e3cf604..bc68dbc42 100644
--- a/Shared/Timer/ArticleStatusSyncTimer.swift
+++ b/Shared/Timer/ArticleStatusSyncTimer.swift
@@ -9,7 +9,7 @@
import Foundation
import Account
-class ArticleStatusSyncTimer {
+final class ArticleStatusSyncTimer {
private static let intervalSeconds = Double(120)
diff --git a/Shared/UserInfoKey.swift b/Shared/UserInfoKey.swift
index 07d850895..e9aaa21fc 100644
--- a/Shared/UserInfoKey.swift
+++ b/Shared/UserInfoKey.swift
@@ -24,7 +24,7 @@ struct UserInfoKey {
static let readArticlesFilterStateValues = "readArticlesFilterStateValue"
static let selectedFeedsState = "selectedFeedsState"
static let isShowingExtractedArticle = "isShowingExtractedArticle"
+
static let articleWindowScrollY = "articleWindowScrollY"
static let isSidebarHidden = "isSidebarHidden"
-
}
diff --git a/Shared/Widget/WidgetDataEncoder.swift b/Shared/Widget/WidgetDataEncoder.swift
index cadc675ac..17c1c3210 100644
--- a/Shared/Widget/WidgetDataEncoder.swift
+++ b/Shared/Widget/WidgetDataEncoder.swift
@@ -14,10 +14,9 @@ import RSCore
import Articles
import Account
-
public final class WidgetDataEncoder {
+ public var isRunning = false
- private let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
private let fetchLimit = 7
private lazy var appGroup = Bundle.main.object(forInfoDictionaryKey: "AppGroup") as! String
@@ -25,7 +24,7 @@ public final class WidgetDataEncoder {
private lazy var imageContainer = containerURL?.appendingPathComponent("widgetImages", isDirectory: true)
private lazy var dataURL = containerURL?.appendingPathComponent("widget-data.json")
- public var isRunning = false
+ private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "WidgetDataEncoder")
init () {
if imageContainer != nil {
@@ -38,7 +37,7 @@ public final class WidgetDataEncoder {
isRunning = true
flushSharedContainer()
- os_log(.debug, log: log, "Starting encoding widget data.")
+ Self.logger.debug("Encoding widget data")
DispatchQueue.main.async {
self.encodeWidgetData() { latestData in
@@ -49,15 +48,15 @@ public final class WidgetDataEncoder {
let encodedData = try? JSONEncoder().encode(latestData)
- os_log(.debug, log: self.log, "Finished encoding widget data.")
+ Self.logger.debug("Finished encoding widget data")
if self.fileExists() {
try? FileManager.default.removeItem(at: self.dataURL!)
- os_log(.debug, log: self.log, "Removed widget data from container.")
+ Self.logger.debug("Removed widget data from container")
}
if FileManager.default.createFile(atPath: self.dataURL!.path, contents: encodedData, attributes: nil) {
- os_log(.debug, log: self.log, "Wrote widget data to container.")
+ Self.logger.info("Wrote widget data to container")
WidgetCenter.shared.reloadAllTimelines()
}
@@ -136,8 +135,8 @@ public final class WidgetDataEncoder {
}
dispatchGroup.notify(queue: .main) {
- if groupError != nil {
- os_log(.error, log: self.log, "WidgetDataEncoder failed to write the widget data.")
+ if let groupError {
+ Self.logger.error("WidgetDataEncoder failed to write the widget data: \(groupError.localizedDescription)")
completion(nil)
} else {
let latestData = WidgetData(currentUnreadCount: SmartFeedsController.shared.unreadFeed.unreadCount,
@@ -150,7 +149,6 @@ public final class WidgetDataEncoder {
completion(latestData)
}
}
-
}
private func fileExists() -> Bool {
@@ -179,7 +177,4 @@ public final class WidgetDataEncoder {
try? FileManager.default.createDirectory(at: imageContainer, withIntermediateDirectories: true, attributes: nil)
}
}
-
}
-
-
diff --git a/Technotes/Bugs/MacStateRestoration.md b/Technotes/Bugs/MacStateRestoration.md
deleted file mode 100644
index fd5c337ae..000000000
--- a/Technotes/Bugs/MacStateRestoration.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# Mac State Restoration
-
-https://github.com/Ranchero-Software/NetNewsWire/issues/4589
-
-https://github.com/Ranchero-Software/NetNewsWire/issues/4631
-
-## State to restore
-
-Hide Read Articles
-Hide Read Feeds
-Windows positions, including split view positions
-
-## Warnings
-
- WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
-
-## How state restoration works according to Apple
-
-Info.plist: NSApplicationSupportsRestorableState - true
-
-NSUserInterfaceItemIdentification
-
-NSWindowRestoration Protocol
-window.restorationClass = …
-
-encodeRestorableStateWithCoder:
-restoreStateWithCoder:
-
-self.restorationIdentifier = "MainWindowController"
-
-AppDelegate — application:shouldRestoreApplicationState: and application:shouldSaveApplicationState: for complex cases
-
-Can be turned on and off via system pref
-
-## Tests
-
-Window 1
-Restore position — yes
-Restore split view position — sometimes
-Restore timeline position — no
-Restore Hide Read Feeds — yes
-Restore Hide Read Articles for inessential — yes
-
-Window 2
-Restore position
-Restore split view position
-Restore Hide Read Feeds
-Restore Hide Read Articles for The Verge
-
-Restores second window but not first
-
-With state restoration enabled, all three windows appear, but with not everything restored
-
----
-
-Close windows tests
-
-1 window
-detail scroll not restored
diff --git a/Technotes/How To Do iOS App Store Release.md b/Technotes/How To Do iOS App Store Release.md
deleted file mode 100644
index 993f91fd9..000000000
--- a/Technotes/How To Do iOS App Store Release.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# How To Do App Store Release
-
-Write release notes in ReleaseNotes-iOS.markdown on main
-Commit release notes
-
-Tag the app if needed:
-
- git tag iOS-6.1.9
- git push origin iOS-6.1.9
-
-Click + near iOS App
-Type in new version name
-Scroll way down to Build section and choose the build (latest TestFlight build, presumably)
-Fill in What’s New text
-Click Save at top of screen
-Click Add for Review next to Save
-
-On next screen, click Submit to App Review
-
-Make new release from tag
-
-https://github.com/Ranchero-Software/NetNewsWire/tags
-
-Example title:
-NetNewsWire 6.1.6 (6140) for iOS - AppStore
-
-Announce on Slack
-Announce on NetNewsWire blog
-Optionally announce on inessential
diff --git a/Technotes/How To Do Mac Sparkle Release.md b/Technotes/HowToDoMacSparkleRelease.markdown
similarity index 87%
rename from Technotes/How To Do Mac Sparkle Release.md
rename to Technotes/HowToDoMacSparkleRelease.markdown
index 32b325f25..871efec9f 100644
--- a/Technotes/How To Do Mac Sparkle Release.md
+++ b/Technotes/HowToDoMacSparkleRelease.markdown
@@ -3,17 +3,20 @@
NetNewsWire_mac_target_common.xcconfig
update MARKETING_VERSION and CURRENT_PROJECT_VERSION
+Run buildscripts/quiet_build_and_test.sh
+
+Run app
+
ReleaseNotes-Mac.markdown
main branch
Write change notes in notes
Include branch and tag
-Run buildscripts/quiet_build_and_test.sh
-
Make sure there are no outstanding changes
Archive build
Developer ID distribution - notarize
+Click Distribute App button
Wait while processing
Export
@@ -55,3 +58,8 @@ Test updating via appcast
Optionally:
Announce on Slack
Announce on blog
+
+If release build:
+ Update netnewswire-release.xml
+ Update download on netnewswire.com — via .htaccess redirect
+
diff --git a/Technotes/HowToDoiOSAppStoreRelease.markdown b/Technotes/HowToDoiOSAppStoreRelease.markdown
new file mode 100644
index 000000000..7134e6a2a
--- /dev/null
+++ b/Technotes/HowToDoiOSAppStoreRelease.markdown
@@ -0,0 +1,20 @@
+# How To Do App Store Release
+
+Update release notes in ReleaseNotes-iOS.markdown on main to say that the TestFlight build has been submitted to App Store
+Commit release notes
+
+Click + near iOS App
+Type in new version name (example: 6.1.10)
+Scroll halfway down to Build section, click + button, and choose the build (latest TestFlight build, presumably)
+Fill in What’s New text
+Click Save at top of screen
+Click Add for Review next to Save
+
+On next screen, click Submit to App Review
+
+Once it appears on App Store…
+
+Optionally…
+Announce on Slack
+Announce on NetNewsWire blog
+Announce on inessential
diff --git a/Technotes/How To Do iOS TestFlight Release.md b/Technotes/HowToDoiOSTestFlightRelease.markdown
similarity index 97%
rename from Technotes/How To Do iOS TestFlight Release.md
rename to Technotes/HowToDoiOSTestFlightRelease.markdown
index e73d03c94..eaaf55be7 100644
--- a/Technotes/How To Do iOS TestFlight Release.md
+++ b/Technotes/HowToDoiOSTestFlightRelease.markdown
@@ -72,3 +72,5 @@ NetNewsWire 6.1.6 (6140) for iOS - TestFlight
Public TestFlight link:
https://testflight.apple.com/join/wpedPMRR
+
+Update Technotes/Status.md
diff --git a/Technotes/ReleaseNotes-Mac.markdown b/Technotes/ReleaseNotes-Mac.markdown
index fe0605c80..77f896536 100644
--- a/Technotes/ReleaseNotes-Mac.markdown
+++ b/Technotes/ReleaseNotes-Mac.markdown
@@ -1,5 +1,55 @@
# Mac Release Notes
+### 6.2b4 build 6145 29 Oct 2025 - branch main tag: mac-6.2b4
+
+Changed Markdown behavior — it now prefers source:markdown, when present, over description and content:encoded, and renders the Markdown as HTML and uses it as the article body
+Added a dotted underline to links in the Sepia theme, to make links more visible
+
+### 6.2b3 build 6144 29 Oct 2025 - branch main tag: mac-6.2b3
+
+Added support for source:markdown to the RSS parser. Markdown is stored in the database. When an article doesn’t already have HTML content, the Markdown will be rendered as HTML. (Note: anyone reading this in October 2025 almost surely does not have any source:markdown elements in their feeds, so this won’t affect you. Here’s more info, for the curious )
+
+### 6.2b2 build 6143 21 Oct 2025 - branch main tag: mac-6.2b2
+
+Made scrolling of the timeline view faster
+
+### 6.2b1 build 6142 19 Oct 2025 - branch main tag: mac-6.2b1
+
+Improved http/https caching, reducing bandwidth and battery use
+Fixed bug where a feed could be read twice on being added
+Fixed bug where the initial download for a new feed didn’t store conditional GET info
+Added some special cases where we can and should avoid doing some specific work (such as downloading the home page to find a feed icon)
+Worked around a server bug where a server would always respond with a 304 when any conditional GET info is sent (the app drops conditional GET info every 8 days)
+Fixed a possible cause of feeds not updating by caching (non-429) 4xx responses for some hours rather than for the duration of the app run
+Fixed Atom parser bug with relative URLs
+Fixed Atom parser bug where author at root level wasn’t applied to articles
+Fixed a bug where the webview can sometimes take a surprisingly long time to appear after launch
+Fixed a bunch of AppleScript bugs
+Did a few micro performance optimizations
+Fixed bug where contextual menu in timeline could be slow to appear
+Fixed a possible cause of app icon unread count badge to be out of date
+Fixed bug where timeline text could be truncated early when showing max number of lines in timeline and small text
+Added ability to copy multiple article URLs
+Made Sidebar the first item in toolbar by default
+Added Open Application Support Folder (data folder) to Help menu (moved from Debug menu)
+Made it so we don’t get one-time codes in random text views
+Fixed a bug where images that are links could get underlined in the default theme
+Fixed a bug finding a feed in a page that has no body tag
+Now using a number formatter for unread counts in the sidebar
+
+
+### 6.1.11b1 build 6141 9 Sep 2025 - branch main tag: mac-6.1.11b1
+
+Fixed bug with some favicons rendering weird, with dark vertical lines. Note: due to caching, the fix may take a few days to take effect.
+
+### 6.1.10 build 6140 8 Sep 2025 - branch main tag: mac-6.1.10
+
+Bump version, do release build
+
+### 6.1.10b4 build 6139 16 Aug 2025 - branch main tag: mac-6.1.10b4
+
+Adopt secure state restoration; fix bug with state restoration not working in previous betas.
+
### 6.1.10b3 build 6138 11 Aug 2025 - branch main tag: mac-6.1.10b3
Fixed bug, introduced in previous test build, that prevented choosing an OPML file to import
diff --git a/Technotes/ReleaseNotes-iOS.markdown b/Technotes/ReleaseNotes-iOS.markdown
index 1b4864c21..4dbacdd6e 100644
--- a/Technotes/ReleaseNotes-iOS.markdown
+++ b/Technotes/ReleaseNotes-iOS.markdown
@@ -1,6 +1,41 @@
# iOS Release Notes
-### 6.1.10 TestFlight build 6198 11 Aug 2025 - branch: main tag iOS-6.1.10-6198
+### 6.2 TestFlight build 6202 31 Oct 2025 - branch main tag: iOS-6.2-6202
+
+Changed Markdown behavior — it now prefers source:markdown, when present, over description and content:encoded, and renders the Markdown as HTML and uses it as the article body
+
+### 6.2 TestFlight build 6201 30 Oct 2025 - branch main tag: iOS-6.2-6201
+
+Added support for source:markdown to the RSS parser
+Added a dotted underline to links in the Sepia theme, to make links more visible
+
+### 6.2 TestFlight build 6200 21 Oct 2025 - branch main tag: iOS-6.2-6200
+
+Made scrolling of the timeline view faster
+
+### 6.2 TestFlight build 6199 19 Oct 2025 - branch: main tag iOS-6.2-6199
+
+New feature: you can now enable/disable JavaScript (in the Settings screen)
+Improved http/https caching, reducing bandwidth and battery use
+Fixed bug where a feed could be read twice on being added
+Fixed bug where the initial download for a new feed didn’t store conditional GET info
+Added some special cases where we can and should avoid doing some specific work (such as downloading the home page to find a feed icon)
+Worked around a server bug where a server would always respond with a 304 when any conditional GET info is sent (the app drops conditional GET info every 8 days)
+Fixed a possible cause of feeds not updating by caching (non-429) 4xx responses for some hours rather than for the duration of the app run
+Fixed Atom parser bug with relative URLs
+Fixed Atom parser bug where author at root level wasn’t applied to articles
+Did a few micro performance optimizations
+Fixed bug where contextual menu in timeline could be slow to appear
+Fixed a possible cause of app icon unread count badge to be out of date
+Fixed bug where timeline text could be truncated early when showing max number of lines in timeline and small text
+Fixed a bug where images that are links could get underlined in the default theme
+Fixed a bug finding a feed in a page that has no body tag
+Fixed bug with some favicons rendering weird, with dark vertical lines. Note: due to caching, the fix may take a few days to take effect
+Improved iCloud error dialog
+Fixed some cosmetic UI glitches
+Removed support for multiple windows
+
+### 6.1.10 TestFlight build 6198 11 Aug 2025 - branch: main tag iOS-6.1.10-6198 — submitted as App Store release build 18 Aug 2025
Replaced BBC in default feeds (for new users) because its feeds have gone wonky. Replaced with Scripting News.
diff --git a/Technotes/Status.md b/Technotes/Status.md
index caa2596c5..044af5ea6 100644
--- a/Technotes/Status.md
+++ b/Technotes/Status.md
@@ -1,21 +1,20 @@
# NetNewsWire Status
-Current milestone: NetNewsWire 6.1.10
- https://github.com/Ranchero-Software/NetNewsWire/milestone/60
+Current milestone: NetNewsWire 6.2
+ https://github.com/Ranchero-Software/NetNewsWire/milestone/62
-Current bug: Mac restoration issues
- https://github.com/Ranchero-Software/NetNewsWire/issues/4589
+Stuart working on Liquid Glass UI for NetNewsWire 7
## iOS
-iOS shipping: 6.1.9 (6197)
+iOS shipping: 6.1.10 (6198)
-TestFlight: 6.1.10 (6198)
- https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-6.1.10-6198
+TestFlight: 6.2 (6202)
+ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-6.2-6202
## Mac
-Mac shipping: 6.1.9
+Mac shipping: 6.1.10
-Beta: 6.1.10b3
- https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-6.1.10b3
+Beta: 6.2b4
+ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-6.2b4
diff --git a/Tests/NetNewsWire-iOSTests/NetNewsWire_iOSTests.swift b/Tests/NetNewsWire-iOSTests/NetNewsWire_iOSTests.swift
index 739b8a942..1b3a9586a 100644
--- a/Tests/NetNewsWire-iOSTests/NetNewsWire_iOSTests.swift
+++ b/Tests/NetNewsWire-iOSTests/NetNewsWire_iOSTests.swift
@@ -8,7 +8,7 @@
import XCTest
-class NetNewsWire_iOSTests: XCTestCase {
+final class NetNewsWire_iOSTests: XCTestCase {
override func setUp() {
super.setUp()
diff --git a/Tests/NetNewsWireTests/ArticleSorterTests.swift b/Tests/NetNewsWireTests/ArticleSorterTests.swift
index 131b7b676..a57f000ab 100644
--- a/Tests/NetNewsWireTests/ArticleSorterTests.swift
+++ b/Tests/NetNewsWireTests/ArticleSorterTests.swift
@@ -12,7 +12,7 @@ import XCTest
@testable import NetNewsWire
-class ArticleSorterTests: XCTestCase {
+final class ArticleSorterTests: XCTestCase {
// MARK: sortByDate ascending tests
diff --git a/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift b/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift
index 6dbb0e2ba..2c3db6030 100644
--- a/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift
+++ b/Tests/NetNewsWireTests/ScriptingTests/ScriptingTests.swift
@@ -8,7 +8,7 @@
import XCTest
-class ScriptingTests: AppleScriptXCTestCase {
+final class ScriptingTests: AppleScriptXCTestCase {
override func setUp() {
super.setUp()
@@ -18,7 +18,6 @@ class ScriptingTests: AppleScriptXCTestCase {
super.tearDown()
}
-
/*
@function testGenericScript
@brief An example of how a script can be run as part of an XCTest
@@ -52,50 +51,12 @@ class ScriptingTests: AppleScriptXCTestCase {
_ = doIndividualScript(filename: "testFeedExists")
}
- func testFeedOPML() {
- _ = doIndividualScript(filename: "testFeedOPML")
- }
-
-// func testTitleOfArticlesWhoseScript() {
-// _ = doIndividualScript(filename: "testTitleOfArticlesWhose")
-// }
-//
-// func testIterativeCreateAndDeleteScript() {
-// _ = doIndividualScriptWithExpectation(filename: "testIterativeCreateAndDeleteFeed")
-// }
-
func doIndividualScriptWithExpectation(filename:String) {
- let queue = DispatchQueue(label:"testQueue")
let scriptExpectation = self.expectation(description: filename+"expectation")
- queue.async {
+ DispatchQueue.main.async {
_ = self.doIndividualScript(filename:filename)
scriptExpectation.fulfill()
}
self.wait(for:[scriptExpectation], timeout:60)
}
-
-/*
- @function testCurrentArticleScripts
- @brief the pieces of the test are broken up into smaller pieces because of the
- way events are delivered to the app -- I tried one single script with all the
- actions and the keystrokes aren't delivered to the app right away, so the ui
- isn't updated in time for 'current article' to be set. But, breaking them up
- in this way seems to work.
-
- July 30, 2019: There's an issue where in order for a script to send keystrokes,
- The app has to be allowed to interact with the SystemEvents.app in
- System Preferences -> Security & Privacy -> Privacy -> Accessibility
- and this permission needs to be renewed every time the app is recompiled unless
- the app is codesigned. Until we figure out how to get around this limitation,
- this test is disabled.
-*/
- func disabledTestCurrentArticleScripts() {
-
- doIndividualScriptWithExpectation(filename: "uiScriptingTestSetup")
- doIndividualScriptWithExpectation(filename: "establishMainWindowStartingState")
- doIndividualScriptWithExpectation(filename: "selectAFeed")
- doIndividualScriptWithExpectation(filename: "testCurrentArticleIsNil")
- doIndividualScriptWithExpectation(filename: "selectAnArticle")
- doIndividualScriptWithExpectation(filename: "testURLsOfCurrentArticle")
- }
}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/establishMainWindowStartingState.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/establishMainWindowStartingState.applescript
deleted file mode 100644
index 2855b1696..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/establishMainWindowStartingState.applescript
+++ /dev/null
@@ -1,37 +0,0 @@
-property uparrowKeyCode : 126
-property downarrowKeyCode : 125
-property rightarrowKeyCode : 124
-property leftarrowKeyCode : 123
-
-to activateNetNewsWire()
- tell application "NetNewsWire"
- activate
- end tell
-end activateNetNewsWire
-
-to multipleKeyCodes(keycode, numberOfKeys)
- tell application "System Events"
- tell process "NetNewsWire"
- repeat numberOfKeys times
- key code keycode
- end repeat
- end tell
- end tell
-end multipleKeyCodes
-
-to establishMainWindowStartingState()
- activateNetNewsWire()
- multipleKeyCodes(downarrowKeyCode, 2)
- multipleKeyCodes(rightarrowKeyCode, 2)
- multipleKeyCodes(leftarrowKeyCode, 2)
- multipleKeyCodes(uparrowKeyCode, 50)
-end establishMainWindowStartingState
-
-try
- establishMainWindowStartingState()
- -- hit the down arrow a few times to get into the feeds
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:true, script_result:"established starting state"}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/selectAFeed.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/selectAFeed.applescript
deleted file mode 100644
index 5ee4f0850..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/selectAFeed.applescript
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-property uparrowKeyCode : 126
-property downarrowKeyCode : 125
-property rightarrowKeyCode : 124
-property leftarrowKeyCode : 123
-
-to activateNetNewsWire()
- tell application "NetNewsWire"
- activate
- end tell
-end activateNetNewsWire
-
-to multipleKeyCodes(keycode, numberOfKeys)
- tell application "System Events"
- tell process "NetNewsWire"
- repeat numberOfKeys times
- key code keycode
- end repeat
- end tell
- end tell
-end multipleKeyCodes
-
-try
- activateNetNewsWire()
- multipleKeyCodes(downarrowKeyCode, 9)
- multipleKeyCodes(uparrowKeyCode, 1)
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:true, script_result:"selected feed"}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/selectAnArticle.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/selectAnArticle.applescript
deleted file mode 100644
index 9e87cbbff..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/selectAnArticle.applescript
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-property uparrowKeyCode : 126
-property downarrowKeyCode : 125
-property rightarrowKeyCode : 124
-property leftarrowKeyCode : 123
-
-to activateNetNewsWire()
- tell application "NetNewsWire"
- activate
- end tell
-end activateNetNewsWire
-
-to multipleKeyCodes(keycode, numberOfKeys)
- tell application "System Events"
- tell process "NetNewsWire"
- repeat numberOfKeys times
- key code keycode
- end repeat
- end tell
- end tell
-end multipleKeyCodes
-
-try
- activateNetNewsWire()
- multipleKeyCodes(rightarrowKeyCode, 1)
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:true, script_result:"selected an article"}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript
deleted file mode 100644
index baa7afecd..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript
+++ /dev/null
@@ -1,23 +0,0 @@
--- this script tests that it is possible to get the url property of the current article
--- it uses system event accessibility scripting to set up the main window
--- one needs to authorize scripting accessibility control in the System Preferences'
--- Privacy and security pane
-
-try
- tell application "NetNewsWire"
- set shouldBeMissingValue to current article
- end tell
-
- --verify that the current article is in fact 'missing vcalue'
- if shouldBeMissingValue is missing value then
- set the_message to "passed tests"
- set the_result to true
- else
- set the_message to "expected current article to be 'missing value'"
- set the_result to false
- end if
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:the_result, script_result:the_message}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/testFeedOPML.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/testFeedOPML.applescript
deleted file mode 100644
index dc4b422bb..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/testFeedOPML.applescript
+++ /dev/null
@@ -1,10 +0,0 @@
--- this script just tests that no error was generated from the script
-try
- tell application "NetNewsWire"
- opml representation of webFeed 1 of account 1
- end tell
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:true}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/testIterativeCreateAndDeleteFeed.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/testIterativeCreateAndDeleteFeed.applescript
deleted file mode 100644
index 277d298d8..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/testIterativeCreateAndDeleteFeed.applescript
+++ /dev/null
@@ -1,27 +0,0 @@
-
-try
- tell application "NetNewsWire"
- tell account id "OnMyMac"
- repeat 3 times
- set newFeed to make new feed with data "https://boingboing.net/feed"
- delete newFeed
- end repeat
-
- set newFolder to make new folder with properties {name:"XCTest folder"}
- repeat 3 times
- set newFeed to make new feed in newFolder with data "https://boingboing.net/feed"
- delete newFeed
- end repeat
- delete newFolder
-
- end tell
- end tell
-
-
- set test_result to true
- set script_result to "Success"
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:test_result, script_result:script_result}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/testTitleOfArticlesWhose.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/testTitleOfArticlesWhose.applescript
deleted file mode 100644
index e4dc74825..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/testTitleOfArticlesWhose.applescript
+++ /dev/null
@@ -1,10 +0,0 @@
--- this script just tests that no error was generated from the script
-try
- tell application "NetNewsWire"
- title of every article of webFeed "Six Colors" where read is true
- end tell
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:true}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/testURLsOfCurrentArticle.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/testURLsOfCurrentArticle.applescript
deleted file mode 100644
index 7c4fc292d..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/testURLsOfCurrentArticle.applescript
+++ /dev/null
@@ -1,14 +0,0 @@
--- this script tests that it is possible to get the url property of the current article
--- it uses system event accessibility scripting to set up the main window
--- one needs to authorize scripting accessibility control in the System Preferences'
--- Privacy and security pane
-
-try
- tell application "NetNewsWire"
- {url, permalink, external url} of current article
- end tell
-on error message
- return {test_result:false, script_result:message}
-end try
-
-return {test_result:true, script_result:"tests passed"}
diff --git a/Tests/NetNewsWireTests/ScriptingTests/scripts/uiScriptingTestSetup.applescript b/Tests/NetNewsWireTests/ScriptingTests/scripts/uiScriptingTestSetup.applescript
deleted file mode 100644
index 8e6ea48c3..000000000
--- a/Tests/NetNewsWireTests/ScriptingTests/scripts/uiScriptingTestSetup.applescript
+++ /dev/null
@@ -1,18 +0,0 @@
--- this script sets up NetNewsWire so it is ready to be tested
--- to get a current article
-
-to activateNetNewsWire()
- tell application "NetNewsWire"
- activate
- end tell
-end activateNetNewsWire
-
-tell application "System Events"
- set isFrontmost to frontmost of process "NetNewsWire"
- repeat while isFrontmost is false
- my activateNetNewsWire()
- set isFrontmost to frontmost of process "NetNewsWire"
- end repeat
-end tell
-
-return {test_result:true, script_result:"finished"}
diff --git a/Tests/NetNewsWireTests/SharingTests.swift b/Tests/NetNewsWireTests/SharingTests.swift
index a7b86d17b..886974961 100644
--- a/Tests/NetNewsWireTests/SharingTests.swift
+++ b/Tests/NetNewsWireTests/SharingTests.swift
@@ -11,7 +11,7 @@ import XCTest
@testable import NetNewsWire
-class SharingTests: XCTestCase {
+final class SharingTests: XCTestCase {
func testSharingSubject() {
let sharingServiceDelegate = SharingServiceDelegate(nil)
@@ -47,6 +47,7 @@ class SharingTests: XCTestCase {
title: title,
contentHTML: nil,
contentText: nil,
+ markdown: nil,
url: nil,
externalURL: nil,
summary: nil,
diff --git a/buildscripts/clean_whitespace.rb b/buildscripts/clean_whitespace.rb
new file mode 100755
index 000000000..bb2cc2439
--- /dev/null
+++ b/buildscripts/clean_whitespace.rb
@@ -0,0 +1,23 @@
+#!/usr/bin/env ruby
+
+if ARGV.length != 1
+ puts "Usage: #{$0} "
+ exit 1
+end
+
+filename = ARGV[0]
+
+unless File.exist?(filename)
+ puts "Error: File '#{filename}' does not exist"
+ exit 1
+end
+
+content = File.read(filename)
+
+# Replace lines that contain only whitespace with just a newline
+cleaned_content = content.gsub(/^[ \t]+$/, '')
+
+File.write(filename, cleaned_content)
+
+puts "Cleaned whitespace-only lines in '#{filename}'"
+
diff --git a/iOS/Account/CloudKitAccountViewController.swift b/iOS/Account/CloudKitAccountViewController.swift
index e6060a4c5..094ebfb6d 100644
--- a/iOS/Account/CloudKitAccountViewController.swift
+++ b/iOS/Account/CloudKitAccountViewController.swift
@@ -10,19 +10,11 @@ import UIKit
import SafariServices
import Account
-enum CloudKitAccountViewControllerError: LocalizedError {
- case iCloudDriveMissing
-
- var errorDescription: String? {
- return NSLocalizedString("Unable to add iCloud Account. Please make sure you have iCloud and iCloud Drive enabled in System Settings.", comment: "Unable to add iCloud Account.")
- }
-}
-
-class CloudKitAccountViewController: UITableViewController {
+final class CloudKitAccountViewController: UITableViewController {
weak var delegate: AddAccountDismissDelegate?
@IBOutlet weak var footerLabel: UILabel!
-
+
override func viewDidLoad() {
super.viewDidLoad()
setupFooter()
@@ -40,8 +32,8 @@ class CloudKitAccountViewController: UITableViewController {
}
@IBAction func add(_ sender: Any) {
- guard FileManager.default.ubiquityIdentityToken != nil else {
- presentError(CloudKitAccountViewControllerError.iCloudDriveMissing)
+ guard AddCloudKitAccountUtilities.isiCloudDriveEnabled else {
+ presentError(AddCloudKitAccountError.iCloudDriveMissing)
return
}
diff --git a/iOS/Account/FeedbinAccountViewController.swift b/iOS/Account/FeedbinAccountViewController.swift
index a988c748f..40b3d990a 100644
--- a/iOS/Account/FeedbinAccountViewController.swift
+++ b/iOS/Account/FeedbinAccountViewController.swift
@@ -12,7 +12,7 @@ import Secrets
import RSWeb
import SafariServices
-class FeedbinAccountViewController: UITableViewController {
+final class FeedbinAccountViewController: UITableViewController {
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
@IBOutlet weak var cancelBarButtonItem: UIBarButtonItem!
diff --git a/iOS/Account/LocalAccountViewController.swift b/iOS/Account/LocalAccountViewController.swift
index 31c415d8b..e6c0a2b25 100644
--- a/iOS/Account/LocalAccountViewController.swift
+++ b/iOS/Account/LocalAccountViewController.swift
@@ -9,7 +9,7 @@
import UIKit
import Account
-class LocalAccountViewController: UITableViewController {
+final class LocalAccountViewController: UITableViewController {
@IBOutlet weak var nameTextField: UITextField!
@IBOutlet weak var footerLabel: UILabel!
diff --git a/iOS/Account/NewsBlurAccountViewController.swift b/iOS/Account/NewsBlurAccountViewController.swift
index 9f65a4abb..3e456b74a 100644
--- a/iOS/Account/NewsBlurAccountViewController.swift
+++ b/iOS/Account/NewsBlurAccountViewController.swift
@@ -12,7 +12,7 @@ import Secrets
import RSWeb
import SafariServices
-class NewsBlurAccountViewController: UITableViewController {
+final class NewsBlurAccountViewController: UITableViewController {
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
@IBOutlet weak var cancelBarButtonItem: UIBarButtonItem!
diff --git a/iOS/Account/ReaderAPIAccountViewController.swift b/iOS/Account/ReaderAPIAccountViewController.swift
index ca5988aa2..55b6032fd 100644
--- a/iOS/Account/ReaderAPIAccountViewController.swift
+++ b/iOS/Account/ReaderAPIAccountViewController.swift
@@ -12,7 +12,7 @@ import Secrets
import RSWeb
import SafariServices
-class ReaderAPIAccountViewController: UITableViewController {
+final class ReaderAPIAccountViewController: UITableViewController {
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
@IBOutlet weak var cancelBarButtonItem: UIBarButtonItem!
diff --git a/iOS/Add/AddComboTableViewCell.swift b/iOS/Add/AddComboTableViewCell.swift
index 4e7c30155..110ce6580 100644
--- a/iOS/Add/AddComboTableViewCell.swift
+++ b/iOS/Add/AddComboTableViewCell.swift
@@ -8,7 +8,7 @@
import UIKit
-class AddComboTableViewCell: VibrantTableViewCell {
+final class AddComboTableViewCell: VibrantTableViewCell {
@IBOutlet weak var icon: UIImageView!
@IBOutlet weak var label: UILabel!
diff --git a/iOS/Add/AddFeedFolderViewController.swift b/iOS/Add/AddFeedFolderViewController.swift
index 5c75bbb94..393d2a3aa 100644
--- a/iOS/Add/AddFeedFolderViewController.swift
+++ b/iOS/Add/AddFeedFolderViewController.swift
@@ -14,7 +14,7 @@ protocol AddFeedFolderViewControllerDelegate {
func didSelect(container: Container)
}
-class AddFeedFolderViewController: UITableViewController {
+final class AddFeedFolderViewController: UITableViewController {
var delegate: AddFeedFolderViewControllerDelegate?
var initialContainer: Container?
diff --git a/iOS/Add/AddFeedSelectFolderTableViewCell.swift b/iOS/Add/AddFeedSelectFolderTableViewCell.swift
index 2ce871397..ea82058c4 100644
--- a/iOS/Add/AddFeedSelectFolderTableViewCell.swift
+++ b/iOS/Add/AddFeedSelectFolderTableViewCell.swift
@@ -8,7 +8,7 @@
import UIKit
-class AddFeedSelectFolderTableViewCell: VibrantTableViewCell {
+final class AddFeedSelectFolderTableViewCell: VibrantTableViewCell {
@IBOutlet weak var folderLabel: UILabel!
@IBOutlet weak var detailLabel: UILabel!
diff --git a/iOS/Add/AddFeedViewController.swift b/iOS/Add/AddFeedViewController.swift
index bc430d047..2a7322849 100644
--- a/iOS/Add/AddFeedViewController.swift
+++ b/iOS/Add/AddFeedViewController.swift
@@ -12,7 +12,7 @@ import RSCore
import RSTree
import RSParser
-class AddFeedViewController: UITableViewController {
+final class AddFeedViewController: UITableViewController {
@IBOutlet weak var addButton: UIBarButtonItem!
@IBOutlet weak var urlTextField: UITextField!
diff --git a/iOS/Add/AddFolderViewController.swift b/iOS/Add/AddFolderViewController.swift
index 528e443c9..478953dea 100644
--- a/iOS/Add/AddFolderViewController.swift
+++ b/iOS/Add/AddFolderViewController.swift
@@ -10,7 +10,7 @@ import UIKit
import Account
import RSCore
-class AddFolderViewController: UITableViewController {
+final class AddFolderViewController: UITableViewController {
@IBOutlet private weak var addButton: UIBarButtonItem!
@IBOutlet private weak var nameTextField: UITextField!
diff --git a/iOS/Add/SelectComboTableViewCell.swift b/iOS/Add/SelectComboTableViewCell.swift
index d194a871a..6687cbc48 100644
--- a/iOS/Add/SelectComboTableViewCell.swift
+++ b/iOS/Add/SelectComboTableViewCell.swift
@@ -8,7 +8,7 @@
import UIKit
-class SelectComboTableViewCell: VibrantTableViewCell {
+final class SelectComboTableViewCell: VibrantTableViewCell {
@IBOutlet weak var icon: UIImageView!
@IBOutlet weak var label: UILabel!
diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults.swift
index e598be869..878838128 100644
--- a/iOS/AppDefaults.swift
+++ b/iOS/AppDefaults.swift
@@ -26,6 +26,10 @@ enum UserInterfaceColorPalette: Int, CustomStringConvertible, CaseIterable {
}
+extension Notification.Name {
+ public static let userInterfaceColorPaletteDidUpdate = Notification.Name(rawValue: "UserInterfaceColorPaletteDidUpdateNotification")
+}
+
final class AppDefaults {
static let defaultThemeName = "Default"
@@ -84,6 +88,7 @@ final class AppDefaults {
}
set {
setInt(for: Key.userInterfaceColorPalette, newValue.rawValue)
+ NotificationCenter.default.post(name: .userInterfaceColorPaletteDidUpdate, object: self)
}
}
diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift
index a6ba19dd0..5dc34c858 100644
--- a/iOS/AppDelegate.swift
+++ b/iOS/AppDelegate.swift
@@ -7,18 +7,19 @@
//
import UIKit
+import BackgroundTasks
+import os
+import WidgetKit
import RSCore
import RSWeb
import Account
-import BackgroundTasks
-import os
+import Articles
import Secrets
-import WidgetKit
var appDelegate: AppDelegate!
@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, UnreadCountProvider {
+final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, UnreadCountProvider {
private var bgTaskDispatchQueue = DispatchQueue.init(label: "BGTaskScheduler")
@@ -36,7 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
}
}
- private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
+ private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
var userNotificationManager: UserNotificationManager!
var faviconDownloader: FaviconDownloader!
@@ -48,7 +49,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
didSet {
if unreadCount != oldValue {
postUnreadCountDidChangeNotification()
- UNUserNotificationCenter.current().setBadgeCount(unreadCount)
+ updateBadge()
}
}
}
@@ -79,7 +80,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
let isFirstRun = AppDefaults.shared.isFirstRun
if isFirstRun {
- logger.info("Is first run.")
+ Self.logger.info("Is first run.")
}
if isFirstRun && !AccountManager.shared.anyAccountHasAtLeastOneFeed() {
@@ -94,6 +95,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
DispatchQueue.main.async {
self.unreadCount = AccountManager.shared.unreadCount
+ // Force the badge to update on launch.
+ self.updateBadge()
}
UNUserNotificationCenter.current().requestAuthorization(options:[.badge, .sound, .alert]) { (granted, error) in
@@ -137,9 +140,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
}
func applicationDidEnterBackground(_ application: UIApplication) {
+ updateBadge()
IconImageCache.shared.emptyCache()
}
-
+
+ private func updateBadge() {
+ assert(unreadCount == AccountManager.shared.unreadCount)
+ UNUserNotificationCenter.current().setBadgeCount(unreadCount)
+ }
+
// MARK: Notifications
@objc func unreadCountDidChange(_ note: Notification) {
@@ -164,20 +173,23 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
func resumeDatabaseProcessingIfNecessary() {
if AccountManager.shared.isSuspended {
AccountManager.shared.resumeAll()
- logger.info("Application processing resumed.")
+ Self.logger.info("Application processing resumed.")
}
}
func prepareAccountsForBackground() {
+ updateBadge()
extensionFeedAddRequestFile.suspend()
syncTimer?.invalidate()
scheduleBackgroundFeedRefresh()
syncArticleStatus()
widgetDataEncoder.encode()
waitForSyncTasksToFinish()
+ IconImageCache.shared.emptyCache()
}
func prepareAccountsForForeground() {
+ updateBadge()
extensionFeedAddRequestFile.resume()
syncTimer?.update()
@@ -266,7 +278,7 @@ private extension AppDelegate {
self.waitBackgroundUpdateTask = UIApplication.shared.beginBackgroundTask { [weak self] in
guard let self = self else { return }
self.completeProcessing(true)
- logger.info("Accounts wait for progress terminated for running too long.")
+ Self.logger.info("Accounts wait for progress terminated for running too long.")
}
DispatchQueue.main.async { [weak self] in
@@ -278,18 +290,18 @@ private extension AppDelegate {
func waitToComplete(completion: @escaping (Bool) -> Void) {
guard UIApplication.shared.applicationState == .background else {
- logger.info("App came back to foreground, no longer waiting.")
+ Self.logger.info("App came back to foreground, no longer waiting.")
completion(false)
return
}
if AccountManager.shared.refreshInProgress || isSyncArticleStatusRunning || widgetDataEncoder.isRunning {
- logger.info("Waiting for sync to finish…")
+ Self.logger.info("Waiting for sync to finish…")
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) { [weak self] in
self?.waitToComplete(completion: completion)
}
} else {
- logger.info("Refresh progress complete.")
+ Self.logger.info("Refresh progress complete.")
completion(true)
}
}
@@ -316,7 +328,7 @@ private extension AppDelegate {
self.syncBackgroundUpdateTask = UIApplication.shared.beginBackgroundTask {
completeProcessing()
- self.logger.info("Accounts sync processing terminated for running too long.")
+ Self.logger.info("Accounts sync processing terminated for running too long.")
}
DispatchQueue.main.async {
@@ -340,7 +352,7 @@ private extension AppDelegate {
}
}
- logger.info("Application processing suspended.")
+ Self.logger.info("Application processing suspended.")
}
}
@@ -368,7 +380,7 @@ private extension AppDelegate {
do {
try BGTaskScheduler.shared.submit(request)
} catch {
- self.logger.error("Could not schedule app refresh: \(error.localizedDescription)")
+ Self.logger.error("Could not schedule app refresh: \(error.localizedDescription)")
}
}
}
@@ -380,7 +392,7 @@ private extension AppDelegate {
scheduleBackgroundFeedRefresh() // schedule next refresh
- logger.info("Woken to perform account refresh.")
+ Self.logger.info("Woken to perform account refresh.")
DispatchQueue.main.async {
if AccountManager.shared.isSuspended {
@@ -389,7 +401,7 @@ private extension AppDelegate {
AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log) { [unowned self] in
if !AccountManager.shared.isSuspended {
self.suspendApplication()
- logger.info("Account refresh operation completed.")
+ Self.logger.info("Account refresh operation completed.")
task.setTaskCompleted(success: true)
}
}
@@ -397,7 +409,7 @@ private extension AppDelegate {
// set expiration handler
task.expirationHandler = { [weak task] in
- self.logger.info("Accounts refresh processing terminated for running too long.")
+ Self.logger.info("Accounts refresh processing terminated for running too long.")
DispatchQueue.main.async {
self.suspendApplication()
task?.setTaskCompleted(success: false)
@@ -411,51 +423,38 @@ private extension AppDelegate {
private extension AppDelegate {
func handleMarkAsRead(userInfo: [AnyHashable: Any]) {
- guard let articlePathUserInfo = userInfo[UserInfoKey.articlePath] as? [AnyHashable : Any],
- let accountID = articlePathUserInfo[ArticlePathKey.accountID] as? String,
- let articleID = articlePathUserInfo[ArticlePathKey.articleID] as? String else {
- return
- }
- resumeDatabaseProcessingIfNecessary()
- let account = AccountManager.shared.existingAccount(with: accountID)
- guard account != nil else {
- os_log(.debug, "No account found from notification.")
- return
- }
- let article = try? account!.fetchArticles(.articleIDs([articleID]))
- guard article != nil else {
- os_log(.debug, "No article found from search using %@", articleID)
- return
- }
- account!.markArticles(article!, statusKey: .read, flag: true) { _ in }
- self.prepareAccountsForBackground()
- account!.syncArticleStatus(completion: { [weak self] _ in
- if !AccountManager.shared.isSuspended {
- self?.prepareAccountsForBackground()
- self?.suspendApplication()
- }
- })
+ handleStatusNotification(userInfo: userInfo, statusKey: .read)
}
func handleMarkAsStarred(userInfo: [AnyHashable: Any]) {
+ handleStatusNotification(userInfo: userInfo, statusKey: .starred)
+ }
+
+ private func handleStatusNotification(userInfo: [AnyHashable: Any], statusKey: ArticleStatus.Key) {
guard let articlePathUserInfo = userInfo[UserInfoKey.articlePath] as? [AnyHashable : Any],
let accountID = articlePathUserInfo[ArticlePathKey.accountID] as? String,
let articleID = articlePathUserInfo[ArticlePathKey.articleID] as? String else {
return
}
+
resumeDatabaseProcessingIfNecessary()
- let account = AccountManager.shared.existingAccount(with: accountID)
- guard account != nil else {
- os_log(.debug, "No account found from notification.")
+
+ guard let account = AccountManager.shared.existingAccount(with: accountID) else {
+ assertionFailure("Expected account with \(accountID)")
+ Self.logger.error("No account with accountID \(accountID) found from status notification")
return
}
- let article = try? account!.fetchArticles(.articleIDs([articleID]))
- guard article != nil else {
- os_log(.debug, "No article found from search using %@", articleID)
+
+ guard let singleArticleSet = try? account.fetchArticles(.articleIDs([articleID])) else {
+ assertionFailure("Expected article with \(articleID)")
+ Self.logger.error("No article with articleID found \(articleID) from status notification")
return
}
- account!.markArticles(article!, statusKey: .starred, flag: true) { _ in }
- account!.syncArticleStatus(completion: { [weak self] _ in
+
+ assert(singleArticleSet.count == 1)
+ account.markArticles(singleArticleSet, statusKey: statusKey, flag: true) { _ in }
+
+ account.syncArticleStatus(completion: { [weak self] _ in
if !AccountManager.shared.isSuspended {
self?.prepareAccountsForBackground()
self?.suspendApplication()
diff --git a/iOS/Article/ArticleExtractorButton.swift b/iOS/Article/ArticleExtractorButton.swift
index cc1087888..9becdd73b 100644
--- a/iOS/Article/ArticleExtractorButton.swift
+++ b/iOS/Article/ArticleExtractorButton.swift
@@ -15,7 +15,7 @@ enum ArticleExtractorButtonState {
case off
}
-class ArticleExtractorButton: UIButton {
+final class ArticleExtractorButton: UIButton {
private var animatedLayer: CALayer?
diff --git a/iOS/Article/ArticleIconSchemeHandler.swift b/iOS/Article/ArticleIconSchemeHandler.swift
index 62fe0ee62..dbef022c4 100644
--- a/iOS/Article/ArticleIconSchemeHandler.swift
+++ b/iOS/Article/ArticleIconSchemeHandler.swift
@@ -10,7 +10,7 @@ import Foundation
import WebKit
import Articles
-class ArticleIconSchemeHandler: NSObject, WKURLSchemeHandler {
+final class ArticleIconSchemeHandler: NSObject, WKURLSchemeHandler {
weak var coordinator: SceneCoordinator?
diff --git a/iOS/Article/ArticleSearchBar.swift b/iOS/Article/ArticleSearchBar.swift
index c69cfdd4c..9f391cdc8 100644
--- a/iOS/Article/ArticleSearchBar.swift
+++ b/iOS/Article/ArticleSearchBar.swift
@@ -21,6 +21,7 @@ import UIKit
var nextButton: UIButton!
var prevButton: UIButton!
var background: UIView!
+ var shouldBeginEditing: Bool = true
weak private var resultsLabel: UILabel!
@@ -173,4 +174,8 @@ extension ArticleSearchBar: UITextFieldDelegate {
delegate?.nextWasPressed?(self)
return false
}
+
+ func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
+ return shouldBeginEditing
+ }
}
diff --git a/iOS/Article/ArticleViewController.swift b/iOS/Article/ArticleViewController.swift
index 875443183..33a35f8d8 100644
--- a/iOS/Article/ArticleViewController.swift
+++ b/iOS/Article/ArticleViewController.swift
@@ -12,7 +12,7 @@ import Account
import Articles
import SafariServices
-class ArticleViewController: UIViewController {
+final class ArticleViewController: UIViewController {
typealias State = (extractedArticle: ExtractedArticle?,
isShowingExtractedArticle: Bool,
@@ -176,12 +176,14 @@ class ArticleViewController: UIViewController {
super.viewDidAppear(true)
navigationController?.navigationBar.topItem?.subtitle = nil
coordinator.isArticleViewControllerPending = false
+ searchBar.shouldBeginEditing = true
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if searchBar != nil && !searchBar.isHidden {
endFind()
+ searchBar.shouldBeginEditing = false
}
}
diff --git a/iOS/Article/ContextMenuPreviewViewController.swift b/iOS/Article/ContextMenuPreviewViewController.swift
index 3b7e18219..345bfed2d 100644
--- a/iOS/Article/ContextMenuPreviewViewController.swift
+++ b/iOS/Article/ContextMenuPreviewViewController.swift
@@ -9,7 +9,7 @@
import UIKit
import Articles
-class ContextMenuPreviewViewController: UIViewController {
+final class ContextMenuPreviewViewController: UIViewController {
@IBOutlet weak var blogNameLabel: UILabel!
@IBOutlet weak var blogAuthorLabel: UILabel!
diff --git a/iOS/Article/FindInArticleActivity.swift b/iOS/Article/FindInArticleActivity.swift
index 334a142fb..1561b153d 100644
--- a/iOS/Article/FindInArticleActivity.swift
+++ b/iOS/Article/FindInArticleActivity.swift
@@ -8,7 +8,7 @@
import UIKit
-class FindInArticleActivity: UIActivity {
+final class FindInArticleActivity: UIActivity {
override var activityTitle: String? {
NSLocalizedString("Find in Article", comment: "Find in Article")
}
diff --git a/iOS/Article/ImageTransition.swift b/iOS/Article/ImageTransition.swift
index 25951b301..d923b131f 100644
--- a/iOS/Article/ImageTransition.swift
+++ b/iOS/Article/ImageTransition.swift
@@ -8,7 +8,7 @@
import UIKit
-class ImageTransition: NSObject, UIViewControllerAnimatedTransitioning {
+final class ImageTransition: NSObject, UIViewControllerAnimatedTransitioning {
private weak var webViewController: WebViewController?
private let duration = 0.4
diff --git a/iOS/Article/ImageViewController.swift b/iOS/Article/ImageViewController.swift
index 941f68409..93fd1e394 100644
--- a/iOS/Article/ImageViewController.swift
+++ b/iOS/Article/ImageViewController.swift
@@ -8,7 +8,7 @@
import UIKit
-class ImageViewController: UIViewController {
+final class ImageViewController: UIViewController {
@IBOutlet weak var closeButton: UIButton!
diff --git a/iOS/Article/OpenInSafariActivity.swift b/iOS/Article/OpenInSafariActivity.swift
index 2c9ae9eab..feb72d2c2 100644
--- a/iOS/Article/OpenInSafariActivity.swift
+++ b/iOS/Article/OpenInSafariActivity.swift
@@ -8,7 +8,7 @@
import UIKit
-class OpenInBrowserActivity: UIActivity {
+final class OpenInBrowserActivity: UIActivity {
private var activityItems: [Any]?
diff --git a/iOS/Article/PreloadedWebView.swift b/iOS/Article/PreloadedWebView.swift
index af74cf783..32f4760a3 100644
--- a/iOS/Article/PreloadedWebView.swift
+++ b/iOS/Article/PreloadedWebView.swift
@@ -9,23 +9,13 @@
import Foundation
import WebKit
-class PreloadedWebView: WKWebView {
+final class PreloadedWebView: WKWebView {
private var isReady: Bool = false
private var readyCompletion: (() -> Void)?
init(articleIconSchemeHandler: ArticleIconSchemeHandler) {
- let preferences = WKPreferences()
- preferences.javaScriptCanOpenWindowsAutomatically = false
-
- let configuration = WKWebViewConfiguration()
- configuration.preferences = preferences
- configuration.defaultWebpagePreferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
- configuration.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
- configuration.allowsInlineMediaPlayback = true
- configuration.mediaTypesRequiringUserActionForPlayback = .audio
- configuration.setURLSchemeHandler(articleIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme)
-
+ let configuration = WebViewConfiguration.configuration(with: articleIconSchemeHandler)
super.init(frame: .zero, configuration: configuration)
NotificationCenter.default.addObserver(self, selector: #selector(userDefaultsDidChange(_:)), name: UserDefaults.didChangeNotification, object: nil)
}
@@ -49,12 +39,13 @@ class PreloadedWebView: WKWebView {
}
@objc func userDefaultsDidChange(_ sender: Any) {
- if configuration.defaultWebpagePreferences.allowsContentJavaScript != AppDefaults.shared.isArticleContentJavascriptEnabled {
- configuration.defaultWebpagePreferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
- reload()
+ Task { @MainActor in
+ if configuration.defaultWebpagePreferences.allowsContentJavaScript != AppDefaults.shared.isArticleContentJavascriptEnabled {
+ configuration.defaultWebpagePreferences.allowsContentJavaScript = AppDefaults.shared.isArticleContentJavascriptEnabled
+ reload()
+ }
}
}
-
}
// MARK: WKScriptMessageHandler
@@ -68,7 +59,6 @@ extension PreloadedWebView: WKNavigationDelegate {
readyCompletion = nil
}
}
-
}
// MARK: Private
@@ -80,5 +70,4 @@ private extension PreloadedWebView {
navigationDelegate = nil
completion()
}
-
}
diff --git a/iOS/Article/WebViewController.swift b/iOS/Article/WebViewController.swift
index 5f6666edd..460c4b2ff 100644
--- a/iOS/Article/WebViewController.swift
+++ b/iOS/Article/WebViewController.swift
@@ -9,6 +9,7 @@
import UIKit
@preconcurrency import WebKit
import RSCore
+import RSWeb
import Account
import Articles
import SafariServices
@@ -18,8 +19,8 @@ protocol WebViewControllerDelegate: AnyObject {
func webViewController(_: WebViewController, articleExtractorButtonStateDidUpdate: ArticleExtractorButtonState)
}
-class WebViewController: UIViewController {
-
+final class WebViewController: UIViewController {
+
private struct MessageName {
static let imageWasClicked = "imageWasClicked"
static let imageWasShown = "imageWasShown"
@@ -30,7 +31,7 @@ class WebViewController: UIViewController {
private var bottomShowBarsView: UIView!
private var topShowBarsViewConstraint: NSLayoutConstraint!
private var bottomShowBarsViewConstraint: NSLayoutConstraint!
-
+
private var webView: PreloadedWebView? {
return view.subviews[0] as? PreloadedWebView
}
@@ -56,12 +57,12 @@ class WebViewController: UIViewController {
delegate?.webViewController(self, articleExtractorButtonStateDidUpdate: articleExtractorButtonState)
}
}
-
+
weak var coordinator: SceneCoordinator!
weak var delegate: WebViewControllerDelegate?
-
+
private(set) var article: Article?
-
+
let scrollPositionQueue = CoalescingQueue(name: "Article Scroll Position", interval: 0.3, maxInterval: 0.3)
var windowScrollY = 0
private var restoreWindowScrollY: Int?
@@ -77,13 +78,12 @@ class WebViewController: UIViewController {
// Configure the tap zones
configureTopShowBarsView()
configureBottomShowBarsView()
-
- loadWebView()
+ loadWebView()
}
-
+
// MARK: Notifications
-
+
@objc func webFeedIconDidBecomeAvailable(_ note: Notification) {
reloadArticleImage()
}
@@ -101,16 +101,16 @@ class WebViewController: UIViewController {
}
// MARK: Actions
-
+
@objc func showBars(_ sender: Any) {
showBars()
}
-
+
// MARK: API
func setArticle(_ article: Article?, updateView: Bool = true) {
stopArticleExtractor()
-
+
if article != self.article {
self.article = article
if updateView {
@@ -121,9 +121,8 @@ class WebViewController: UIViewController {
loadWebView()
}
}
-
}
-
+
func setScrollPosition(isShowingExtractedArticle: Bool, articleWindowScrollY: Int) {
if isShowingExtractedArticle {
switch articleExtractor?.state {
@@ -144,7 +143,7 @@ class WebViewController: UIViewController {
loadWebView()
}
}
-
+
func focus() {
webView?.becomeFirstResponder()
}
@@ -186,12 +185,12 @@ class WebViewController: UIViewController {
func hideClickedImage() {
webView?.evaluateJavaScript("hideClickedImage();")
}
-
+
func showClickedImage(completion: @escaping () -> Void) {
clickedImageCompletion = completion
webView?.evaluateJavaScript("showClickedImage();")
}
-
+
func fullReload() {
loadWebView(replaceExistingWebView: true)
}
@@ -205,7 +204,7 @@ class WebViewController: UIViewController {
navigationController?.setToolbarHidden(false, animated: true)
configureContextMenuInteraction()
}
-
+
func hideBars() {
if isFullScreenAvailable {
AppDefaults.shared.articleFullscreenEnabled = true
@@ -248,7 +247,7 @@ class WebViewController: UIViewController {
}
}
-
+
func stopArticleExtractorIfProcessing() {
if articleExtractor?.state == .processing {
stopArticleExtractor()
@@ -261,7 +260,7 @@ class WebViewController: UIViewController {
cancelImageLoad(webView)
}
}
-
+
func showActivityDialog(popOverBarButtonItem: UIBarButtonItem? = nil) {
guard let url = article?.preferredURL else { return }
let activityViewController = UIActivityViewController(url: url, title: article?.title, applicationActivities: [FindInArticleActivity(), OpenInBrowserActivity()])
@@ -307,12 +306,12 @@ extension WebViewController: ArticleExtractorDelegate {
extension WebViewController: UIContextMenuInteractionDelegate {
func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
-
+
return UIContextMenuConfiguration(identifier: nil, previewProvider: contextMenuPreviewProvider) { [weak self] suggestedActions in
guard let self = self else { return nil }
var menus = [UIMenu]()
-
+
var navActions = [UIAction]()
if let action = self.prevArticleAction() {
navActions.append(action)
@@ -323,7 +322,7 @@ extension WebViewController: UIContextMenuInteractionDelegate {
if !navActions.isEmpty {
menus.append(UIMenu(title: "", options: .displayInline, children: navActions))
}
-
+
var toggleActions = [UIAction]()
if let action = self.toggleReadAction() {
toggleActions.append(action)
@@ -337,21 +336,21 @@ extension WebViewController: UIContextMenuInteractionDelegate {
menus.append(UIMenu(title: "", options: .displayInline, children: [self.toggleArticleExtractorAction()]))
menus.append(UIMenu(title: "", options: .displayInline, children: [self.shareAction()]))
-
+
return UIMenu(title: "", children: menus)
}
}
-
+
func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating) {
coordinator.showBrowserForCurrentArticle()
}
-
+
}
// MARK: WKNavigationDelegate
extension WebViewController: WKNavigationDelegate {
-
+
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
for (index, view) in view.subviews.enumerated() {
if index != 0, let oldWebView = view as? PreloadedWebView {
@@ -420,7 +419,7 @@ extension WebViewController: WKNavigationDelegate {
// MARK: WKUIDelegate
extension WebViewController: WKUIDelegate {
-
+
func webView(_ webView: WKWebView, contextMenuForElement elementInfo: WKContextMenuElementInfo, willCommitWithAnimator animator: UIContextMenuInteractionCommitAnimating) {
// We need to have at least an unimplemented WKUIDelegate assigned to the WKWebView. This makes the
// link preview launch Safari when the link preview is tapped. In theory, you should be able to get
@@ -432,11 +431,11 @@ extension WebViewController: WKUIDelegate {
guard let url = navigationAction.request.url else {
return nil
}
-
+
openURL(url)
return nil
}
-
+
}
// MARK: WKScriptMessageHandler
@@ -457,7 +456,7 @@ extension WebViewController: WKScriptMessageHandler {
return
}
}
-
+
}
// MARK: UIViewControllerTransitioningDelegate
@@ -468,7 +467,7 @@ extension WebViewController: UIViewControllerTransitioningDelegate {
transition.presenting = true
return transition
}
-
+
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
transition.presenting = false
return transition
@@ -478,11 +477,11 @@ extension WebViewController: UIViewControllerTransitioningDelegate {
// MARK:
extension WebViewController: UIScrollViewDelegate {
-
+
func scrollViewDidScroll(_ scrollView: UIScrollView) {
scrollPositionQueue.add(self, #selector(scrollPositionDidChange))
}
-
+
@objc func scrollPositionDidChange() {
webView?.evaluateJavaScript("window.scrollY") { (scrollY, error) in
guard error == nil else { return }
@@ -492,7 +491,7 @@ extension WebViewController: UIScrollViewDelegate {
self.windowScrollY = javascriptScrollY
}
}
-
+
}
@@ -550,21 +549,24 @@ private extension WebViewController {
webView.scrollView.delegate = self
self.configureContextMenuInteraction()
+ // Remove possible existing message handlers
+ webView.configuration.userContentController.removeScriptMessageHandler(forName: MessageName.imageWasClicked)
+ webView.configuration.userContentController.removeScriptMessageHandler(forName: MessageName.imageWasShown)
+ webView.configuration.userContentController.removeScriptMessageHandler(forName: MessageName.showFeedInspector)
+
+ // Add handlers
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasClicked)
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasShown)
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.showFeedInspector)
self.renderPage(webView)
-
}
-
}
-
}
func renderPage(_ webView: PreloadedWebView?) {
guard let webView = webView else { return }
-
+
let theme = ArticleThemesManager.shared.currentTheme
let rendering: ArticleRenderer.Rendering
@@ -583,7 +585,7 @@ private extension WebViewController {
} else {
rendering = ArticleRenderer.noSelectionHTML(theme: theme)
}
-
+
let substitutions = [
"title": rendering.title,
"baseURL": rendering.baseURL,
@@ -596,7 +598,7 @@ private extension WebViewController {
html = ArticleRenderingSpecialCases.filterHTMLIfNeeded(baseURL: rendering.baseURL, html: html)
webView.loadHTMLString(html, baseURL: ArticleRenderer.page.baseURL)
}
-
+
func finalScrollPosition(scrollingUp: Bool) -> CGFloat {
guard let webView = webView else { return 0 }
@@ -606,7 +608,7 @@ private extension WebViewController {
return webView.scrollView.contentSize.height - webView.scrollView.bounds.height + webView.scrollView.safeAreaInsets.bottom
}
}
-
+
func startArticleExtractor() {
guard articleExtractor == nil else { return }
if let link = article?.preferredLink, let extractor = ArticleExtractor(link) {
@@ -630,37 +632,46 @@ private extension WebViewController {
var components = URLComponents()
components.scheme = ArticleRenderer.imageIconScheme
components.path = article.articleID
-
+
if let imageSrc = components.string {
webView?.evaluateJavaScript("reloadArticleImage(\"\(imageSrc)\")")
}
}
-
+
func imageWasClicked(body: String?) {
- guard let webView = webView,
- let body = body,
- let data = body.data(using: .utf8),
- let clickMessage = try? JSONDecoder().decode(ImageClickMessage.self, from: data),
- let range = clickMessage.imageURL.range(of: ";base64,")
- else { return }
-
- let base64Image = String(clickMessage.imageURL.suffix(from: range.upperBound))
- if let imageData = Data(base64Encoded: base64Image), let image = UIImage(data: imageData) {
-
- let y = CGFloat(clickMessage.y) + webView.safeAreaInsets.top
- let rect = CGRect(x: CGFloat(clickMessage.x), y: y, width: CGFloat(clickMessage.width), height: CGFloat(clickMessage.height))
- transition.originFrame = webView.convert(rect, to: nil)
-
- if navigationController?.navigationBar.isHidden ?? false {
- transition.maskFrame = webView.convert(webView.frame, to: nil)
- } else {
- transition.maskFrame = webView.convert(webView.safeAreaLayoutGuide.layoutFrame, to: nil)
- }
-
- transition.originImage = image
-
- coordinator.showFullScreenImage(image: image, imageTitle: clickMessage.imageTitle, transitioningDelegate: self)
+ guard let webView, let body else { return }
+
+ let data = Data(body.utf8)
+ guard let clickMessage = try? JSONDecoder().decode(ImageClickMessage.self, from: data) else {
+ return
}
+
+ guard let imageURL = URL(string: clickMessage.imageURL) else { return }
+
+ Downloader.shared.download(imageURL) { [weak self] data, response, error in
+ guard let self, let data, error == nil, !data.isEmpty,
+ let image = UIImage(data: data) else {
+ return
+ }
+ self.showFullScreenImage(image: image, clickMessage: clickMessage, webView: webView)
+ }
+ }
+
+ private func showFullScreenImage(image: UIImage, clickMessage: ImageClickMessage, webView: WKWebView) {
+
+ let y = CGFloat(clickMessage.y) + webView.safeAreaInsets.top
+ let rect = CGRect(x: CGFloat(clickMessage.x), y: y, width: CGFloat(clickMessage.width), height: CGFloat(clickMessage.height))
+ transition.originFrame = webView.convert(rect, to: nil)
+
+ if navigationController?.navigationBar.isHidden ?? false {
+ transition.maskFrame = webView.convert(webView.frame, to: nil)
+ } else {
+ transition.maskFrame = webView.convert(webView.safeAreaLayoutGuide.layoutFrame, to: nil)
+ }
+
+ transition.originImage = image
+
+ coordinator.showFullScreenImage(image: image, imageTitle: clickMessage.imageTitle, transitioningDelegate: self)
}
func stopMediaPlayback(_ webView: WKWebView) {
@@ -676,13 +687,13 @@ private extension WebViewController {
topShowBarsView.backgroundColor = .clear
topShowBarsView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(topShowBarsView)
-
+
if AppDefaults.shared.logicalArticleFullscreenEnabled {
topShowBarsViewConstraint = view.topAnchor.constraint(equalTo: topShowBarsView.bottomAnchor, constant: -44.0)
} else {
topShowBarsViewConstraint = view.topAnchor.constraint(equalTo: topShowBarsView.bottomAnchor, constant: 0.0)
}
-
+
NSLayoutConstraint.activate([
topShowBarsViewConstraint,
view.leadingAnchor.constraint(equalTo: topShowBarsView.leadingAnchor),
@@ -691,7 +702,7 @@ private extension WebViewController {
])
topShowBarsView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(showBars(_:))))
}
-
+
func configureBottomShowBarsView() {
bottomShowBarsView = UIView()
topShowBarsView.backgroundColor = .clear
@@ -710,7 +721,7 @@ private extension WebViewController {
])
bottomShowBarsView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(showBars(_:))))
}
-
+
func configureContextMenuInteraction() {
if isFullScreenAvailable {
if navigationController?.isNavigationBarHidden ?? false {
@@ -720,13 +731,13 @@ private extension WebViewController {
}
}
}
-
+
func contextMenuPreviewProvider() -> UIViewController {
let previewProvider = UIStoryboard.main.instantiateController(ofType: ContextMenuPreviewViewController.self)
previewProvider.article = article
return previewProvider
}
-
+
func prevArticleAction() -> UIAction? {
guard coordinator.isPrevArticleAvailable else { return nil }
let title = NSLocalizedString("Previous Article", comment: "Previous Article")
@@ -734,7 +745,7 @@ private extension WebViewController {
self?.coordinator.selectPrevArticle()
}
}
-
+
func nextArticleAction() -> UIAction? {
guard coordinator.isNextArticleAvailable else { return nil }
let title = NSLocalizedString("Next Article", comment: "Next Article")
@@ -742,10 +753,10 @@ private extension WebViewController {
self?.coordinator.selectNextArticle()
}
}
-
+
func toggleReadAction() -> UIAction? {
guard let article = article, !article.status.read || article.isAvailableToMarkUnread else { return nil }
-
+
let title = article.status.read ? NSLocalizedString("Mark as Unread", comment: "Mark as Unread") : NSLocalizedString("Mark as Read", comment: "Mark as Read")
let readImage = article.status.read ? AppAssets.circleClosedImage : AppAssets.circleOpenImage
return UIAction(title: title, image: readImage) { [weak self] action in
@@ -769,7 +780,7 @@ private extension WebViewController {
self?.coordinator.selectNextUnread()
}
}
-
+
func toggleArticleExtractorAction() -> UIAction {
let extracted = articleExtractorButtonState == .on
let title = extracted ? NSLocalizedString("Show Feed Article", comment: "Show Feed Article") : NSLocalizedString("Show Reader View", comment: "Show Reader View")
@@ -819,27 +830,27 @@ internal struct FindInArticleState: Codable {
let width: Double
let height: Double
}
-
+
struct FindInArticleResult: Codable {
let rects: [WebViewClientRect]
let bounds: WebViewClientRect
let index: UInt
let matchGroups: [String]
}
-
+
let index: UInt?
let results: [FindInArticleResult]
let count: UInt
}
extension WebViewController {
-
+
func searchText(_ searchText: String, completionHandler: @escaping (FindInArticleState) -> Void) {
guard let json = try? JSONEncoder().encode(FindInArticleOptions(text: searchText)) else {
return
}
let encoded = json.base64EncodedString()
-
+
webView?.evaluateJavaScript("updateFind(\"\(encoded)\")") {
(result, error) in
guard error == nil,
@@ -848,21 +859,21 @@ extension WebViewController {
let findState = try? JSONDecoder().decode(FindInArticleState.self, from: rawData) else {
return
}
-
+
completionHandler(findState)
}
}
-
+
func endSearch() {
webView?.evaluateJavaScript("endFind()")
}
-
+
func selectNextSearchResult() {
webView?.evaluateJavaScript("selectNextResult()")
}
-
+
func selectPreviousSearchResult() {
webView?.evaluateJavaScript("selectPreviousResult()")
}
-
+
}
diff --git a/iOS/Article/WebViewProvider.swift b/iOS/Article/WebViewProvider.swift
index 4c49d3ed5..5aa6d0981 100644
--- a/iOS/Article/WebViewProvider.swift
+++ b/iOS/Article/WebViewProvider.swift
@@ -11,9 +11,9 @@ import RSCore
import WebKit
/// WKWebView has an awful behavior of a flash to white on first load when in dark mode.
-/// Keep a queue of WebViews where we've already done a trivial load so that by the time we need them in the UI, they're past the flash-to-shite part of their lifecycle.
-class WebViewProvider: NSObject {
-
+/// Keep a queue of WebViews where we've already done a trivial load so that by the time we need them in the UI, they're past the flash-to-white part of their lifecycle.
+final class WebViewProvider: NSObject {
+
private let articleIconSchemeHandler: ArticleIconSchemeHandler
private let operationQueue = MainThreadOperationQueue()
private var queue = NSMutableArray()
@@ -35,8 +35,8 @@ class WebViewProvider: NSObject {
}
-class WebViewProviderReplenishQueueOperation: MainThreadOperation {
-
+final class WebViewProviderReplenishQueueOperation: MainThreadOperation {
+
// MainThreadOperation
public var isCanceled = false
public var id: Int?
@@ -65,7 +65,7 @@ class WebViewProviderReplenishQueueOperation: MainThreadOperation {
}
-class WebViewProviderDequeueOperation: MainThreadOperation {
+final class WebViewProviderDequeueOperation: MainThreadOperation {
// MainThreadOperation
public var isCanceled = false
diff --git a/iOS/Article/WrapperScriptMessageHandler.swift b/iOS/Article/WrapperScriptMessageHandler.swift
index a12c606ce..463916da4 100644
--- a/iOS/Article/WrapperScriptMessageHandler.swift
+++ b/iOS/Article/WrapperScriptMessageHandler.swift
@@ -9,7 +9,7 @@
import Foundation
import WebKit
-class WrapperScriptMessageHandler: NSObject, WKScriptMessageHandler {
+final class WrapperScriptMessageHandler: NSObject, WKScriptMessageHandler {
// We need to wrap a message handler to prevent a circlular reference
private weak var handler: WKScriptMessageHandler?
diff --git a/iOS/ArticleActivityItemSource.swift b/iOS/ArticleActivityItemSource.swift
index ba168651e..6463f2d74 100644
--- a/iOS/ArticleActivityItemSource.swift
+++ b/iOS/ArticleActivityItemSource.swift
@@ -8,7 +8,7 @@
import UIKit
-class ArticleActivityItemSource: NSObject, UIActivityItemSource {
+final class ArticleActivityItemSource: NSObject, UIActivityItemSource {
private let url: URL
private let subject: String?
diff --git a/iOS/ErrorHandler.swift b/iOS/ErrorHandler.swift
index 64957ad3b..aef318d53 100644
--- a/iOS/ErrorHandler.swift
+++ b/iOS/ErrorHandler.swift
@@ -7,25 +7,24 @@
//
import UIKit
+import os
import RSCore
-import os.log
struct ErrorHandler {
- private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
+ private static let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "ErrorHandler")
public static func present(_ viewController: UIViewController) -> (Error) -> () {
return { [weak viewController] error in
if UIApplication.shared.applicationState == .active {
viewController?.presentError(error)
} else {
- ErrorHandler.log(error)
+ log(error)
}
}
}
-
- public static func log(_ error: Error) {
- os_log(.error, log: self.log, "%@", error.localizedDescription)
- }
+ public static func log(_ error: Error) {
+ logger.error("\(error.localizedDescription)")
+ }
}
diff --git a/iOS/Inspector/AccountInspectorViewController.swift b/iOS/Inspector/AccountInspectorViewController.swift
index 6a8366f48..9763411c9 100644
--- a/iOS/Inspector/AccountInspectorViewController.swift
+++ b/iOS/Inspector/AccountInspectorViewController.swift
@@ -10,7 +10,7 @@ import UIKit
import SafariServices
import Account
-class AccountInspectorViewController: UITableViewController {
+final class AccountInspectorViewController: UITableViewController {
static let preferredContentSizeForFormSheetDisplay = CGSize(width: 460.0, height: 400.0)
@@ -107,7 +107,7 @@ class AccountInspectorViewController: UITableViewController {
alertController.addAction(cancelAction)
let markTitle = NSLocalizedString("Remove", comment: "Remove")
- let markAction = UIAlertAction(title: markTitle, style: .default) { [weak self] (action) in
+ let markAction = UIAlertAction(title: markTitle, style: .destructive) { [weak self] (action) in
guard let self = self, let account = self.account else { return }
AccountManager.shared.deleteAccount(account)
if self.isModal {
diff --git a/iOS/Inspector/Inspector.storyboard b/iOS/Inspector/Inspector.storyboard
index e05bb02b6..650a45286 100644
--- a/iOS/Inspector/Inspector.storyboard
+++ b/iOS/Inspector/Inspector.storyboard
@@ -1,9 +1,8 @@
-
+
-
-
+
@@ -30,7 +29,7 @@
-
+
@@ -402,9 +401,6 @@
-
-
-
@@ -417,11 +413,8 @@
-
-
-
-
+
diff --git a/iOS/Inspector/InspectorIconHeaderView.swift b/iOS/Inspector/InspectorIconHeaderView.swift
index e0e45f559..db5768cc7 100644
--- a/iOS/Inspector/InspectorIconHeaderView.swift
+++ b/iOS/Inspector/InspectorIconHeaderView.swift
@@ -8,7 +8,7 @@
import UIKit
-class InspectorIconHeaderView: UITableViewHeaderFooterView {
+final class InspectorIconHeaderView: UITableViewHeaderFooterView {
var iconView = IconView()
diff --git a/iOS/Inspector/WebFeedInspectorViewController.swift b/iOS/Inspector/WebFeedInspectorViewController.swift
index e7a5815c0..7aa882df2 100644
--- a/iOS/Inspector/WebFeedInspectorViewController.swift
+++ b/iOS/Inspector/WebFeedInspectorViewController.swift
@@ -11,7 +11,7 @@ import Account
import SafariServices
import UserNotifications
-class WebFeedInspectorViewController: UITableViewController {
+final class WebFeedInspectorViewController: UITableViewController {
static let preferredContentSizeForFormSheetDisplay = CGSize(width: 460.0, height: 500.0)
diff --git a/iOS/IntentsExtension/IntentHandler.swift b/iOS/IntentsExtension/IntentHandler.swift
index e1c80701f..4352b21f8 100644
--- a/iOS/IntentsExtension/IntentHandler.swift
+++ b/iOS/IntentsExtension/IntentHandler.swift
@@ -8,7 +8,7 @@
import Intents
-class IntentHandler: INExtension {
+final class IntentHandler: INExtension {
override func handler(for intent: INIntent) -> Any {
switch intent {
diff --git a/iOS/KeyboardManager.swift b/iOS/KeyboardManager.swift
index fe101ba8b..fab554f4b 100644
--- a/iOS/KeyboardManager.swift
+++ b/iOS/KeyboardManager.swift
@@ -15,7 +15,7 @@ enum KeyboardType: String {
case detail = "DetailKeyboardShortcuts"
}
-class KeyboardManager {
+final class KeyboardManager {
private(set) var _keyCommands: [UIKeyCommand]
var keyCommands: [UIKeyCommand] {
diff --git a/iOS/MainFeed/Collection View Cells/MainFeedRowIdentifier.swift b/iOS/MainFeed/Collection View Cells/MainFeedRowIdentifier.swift
index 7cffecb6e..135c99a7b 100644
--- a/iOS/MainFeed/Collection View Cells/MainFeedRowIdentifier.swift
+++ b/iOS/MainFeed/Collection View Cells/MainFeedRowIdentifier.swift
@@ -8,7 +8,7 @@
import Foundation
-class MainFeedRowIdentifier: NSObject, NSCopying {
+final class MainFeedRowIdentifier: NSObject, NSCopying {
var indexPath: IndexPath
diff --git a/iOS/MainFeed/MainFeedCollectionViewController.swift b/iOS/MainFeed/MainFeedCollectionViewController.swift
index b3aba61dd..a28829716 100644
--- a/iOS/MainFeed/MainFeedCollectionViewController.swift
+++ b/iOS/MainFeed/MainFeedCollectionViewController.swift
@@ -8,6 +8,8 @@
import UIKit
import WebKit
+import SafariServices
+import os
import Account
import Articles
import RSCore
diff --git a/iOS/MainFeed/RefreshProgressView.swift b/iOS/MainFeed/RefreshProgressView.swift
index 937ab8345..2ca6423ce 100644
--- a/iOS/MainFeed/RefreshProgressView.swift
+++ b/iOS/MainFeed/RefreshProgressView.swift
@@ -9,7 +9,7 @@
import UIKit
import Account
-class RefreshProgressView: UIView {
+final class RefreshProgressView: UIView {
@IBOutlet weak var progressView: UIProgressView!
@IBOutlet weak var label: UILabel!
diff --git a/iOS/MainTimeline/MainTimelineDataSource.swift b/iOS/MainTimeline/MainTimelineDataSource.swift
index f5c6d2b85..f89ef54f8 100644
--- a/iOS/MainTimeline/MainTimelineDataSource.swift
+++ b/iOS/MainTimeline/MainTimelineDataSource.swift
@@ -8,7 +8,7 @@
import UIKit
-class MainTimelineDataSource: UITableViewDiffableDataSource where SectionIdentifierType : Hashable, ItemIdentifierType : Hashable {
+final class MainTimelineDataSource: UITableViewDiffableDataSource where SectionIdentifierType : Hashable, ItemIdentifierType : Hashable {
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
return true
diff --git a/iOS/MainTimeline/MainTimelineViewController.swift b/iOS/MainTimeline/MainTimelineViewController.swift
index 0d93addfb..d8270fc17 100644
--- a/iOS/MainTimeline/MainTimelineViewController.swift
+++ b/iOS/MainTimeline/MainTimelineViewController.swift
@@ -13,7 +13,7 @@ import RSWeb
import Account
import Articles
-class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
+final class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
private var numberOfTextLines = 0
private var iconSize = IconSize.medium
@@ -694,7 +694,6 @@ class MainTimelineViewController: UITableViewController, UndoableCommandRunner {
self?.restoreSelectionIfNecessary(adjustScroll: false)
}
}
-
}
// MARK: Searching
diff --git a/iOS/Resources/Info.plist b/iOS/Resources/Info.plist
index b8b6a1474..b9cce428d 100644
--- a/iOS/Resources/Info.plist
+++ b/iOS/Resources/Info.plist
@@ -16,6 +16,8 @@
$(DEVELOPMENT_LANGUAGE)
CFBundleExecutable
$(EXECUTABLE_NAME)
+ UIDesignRequiresCompatibility
+
CFBundleIdentifier
$(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion
@@ -81,7 +83,7 @@
UIApplicationSceneManifest
UIApplicationSupportsMultipleScenes
-
+
UISceneConfigurations
UIWindowSceneSessionRoleApplication
diff --git a/iOS/Resources/main_ios.js b/iOS/Resources/main_ios.js
index 7c0e56076..4e34d9aa8 100644
--- a/iOS/Resources/main_ios.js
+++ b/iOS/Resources/main_ios.js
@@ -32,34 +32,18 @@ class ImageViewer {
showViewer() {
this.hideLoadingIndicator();
-
- var canvas = document.createElement("canvas");
- var pixelRatio = window.devicePixelRatio;
- var totalPixels = 0;
- do {
- canvas.width = this.img.naturalWidth * pixelRatio;
- canvas.height = this.img.naturalHeight * pixelRatio;
- totalPixels = canvas.width * canvas.height;
- pixelRatio--;
- } while (pixelRatio > 0 && totalPixels > 16777216)
-
- // If the totalPixels is still too big to draw on a canvas, scale it down
- if (totalPixels > 16777216) {
- var adjustment = 1 - ((totalPixels - 16777216) / totalPixels);
- canvas.width = canvas.width * adjustment;
- canvas.height = canvas.height * adjustment;
- }
-
- canvas.getContext("2d").drawImage(this.img, 0, 0, canvas.width, canvas.height);
const rect = this.img.getBoundingClientRect();
+
+ // Instead of trying to convert to canvas (which fails with CORS),
+ // send the original image src URL
const message = {
x: rect.x,
y: rect.y,
width: rect.width,
height: rect.height,
imageTitle: this.img.title,
- imageURL: canvas.toDataURL(),
+ imageURL: this.img.src,
};
var jsonMessage = JSON.stringify(message);
diff --git a/iOS/RootSplitViewController.swift b/iOS/RootSplitViewController.swift
index 2a6d932e0..d4e68ebc5 100644
--- a/iOS/RootSplitViewController.swift
+++ b/iOS/RootSplitViewController.swift
@@ -9,7 +9,7 @@
import UIKit
import Account
-class RootSplitViewController: UISplitViewController {
+final class RootSplitViewController: UISplitViewController {
var coordinator: SceneCoordinator!
diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift
index 0c4e55572..f4d1a4a48 100644
--- a/iOS/SceneCoordinator.swift
+++ b/iOS/SceneCoordinator.swift
@@ -39,9 +39,7 @@ struct FeedNode: Hashable {
}
}
-
-class SceneCoordinator: NSObject, UndoableCommandRunner {
-
+final class SceneCoordinator: NSObject, UndoableCommandRunner {
var undoableCommands = [UndoableCommand]()
var undoManager: UndoManager? {
return rootSplitViewController.undoManager
diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift
index e62817e88..822cbe3ef 100644
--- a/iOS/SceneDelegate.swift
+++ b/iOS/SceneDelegate.swift
@@ -10,7 +10,7 @@ import UIKit
import UserNotifications
import Account
-class SceneDelegate: UIResponder, UIWindowSceneDelegate {
+final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
var coordinator: SceneCoordinator!
@@ -41,8 +41,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
updateUserInterfaceStyle()
- NotificationCenter.default.addObserver(self, selector: #selector(userDefaultsDidChange), name: UserDefaults.didChangeNotification, object: nil)
-
+ NotificationCenter.default.addObserver(self, selector: #selector(handleUserInterfaceColorPaletteDidUpdate(_:)), name: .userInterfaceColorPaletteDidUpdate, object: AppDefaults.self)
+
if let _ = connectionOptions.urlContexts.first?.url {
self.scene(scene, openURLContexts: connectionOptions.urlContexts)
return
@@ -232,8 +232,9 @@ private extension SceneDelegate {
break
}
}
-
- @objc func userDefaultsDidChange() {
+
+ @objc func handleUserInterfaceColorPaletteDidUpdate(_ notification: Notification) {
+ assert(Thread.isMainThread)
Task {
updateUserInterfaceStyle()
}
diff --git a/iOS/Settings/AboutViewController.swift b/iOS/Settings/AboutViewController.swift
index a6fb5d8ba..f8ee4334f 100644
--- a/iOS/Settings/AboutViewController.swift
+++ b/iOS/Settings/AboutViewController.swift
@@ -8,7 +8,7 @@
import UIKit
-class AboutViewController: UITableViewController {
+final class AboutViewController: UITableViewController {
@IBOutlet weak var aboutTextView: UITextView!
@IBOutlet weak var creditsTextView: UITextView!
diff --git a/iOS/Settings/AddAccountViewController.swift b/iOS/Settings/AddAccountViewController.swift
index 8f0e92e44..5591e750b 100644
--- a/iOS/Settings/AddAccountViewController.swift
+++ b/iOS/Settings/AddAccountViewController.swift
@@ -14,7 +14,7 @@ protocol AddAccountDismissDelegate: UIViewController {
func dismiss()
}
-class AddAccountViewController: UITableViewController, AddAccountDismissDelegate {
+final class AddAccountViewController: UITableViewController, AddAccountDismissDelegate {
private enum AddAccountSections: Int, CaseIterable {
case local = 0
diff --git a/iOS/Settings/ArticleThemesTableViewController.swift b/iOS/Settings/ArticleThemesTableViewController.swift
index 77b9110da..24a17ac01 100644
--- a/iOS/Settings/ArticleThemesTableViewController.swift
+++ b/iOS/Settings/ArticleThemesTableViewController.swift
@@ -14,7 +14,7 @@ extension UTType {
static var netNewsWireTheme: UTType { UTType(importedAs: "com.ranchero.netnewswire.theme") }
}
-class ArticleThemesTableViewController: UITableViewController {
+final class ArticleThemesTableViewController: UITableViewController {
override func viewDidLoad() {
let importBarButtonItem = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(importTheme(_:)));
diff --git a/iOS/Settings/ColorPaletteTableViewController.swift b/iOS/Settings/ColorPaletteTableViewController.swift
index d64671c6f..dfd2f5da7 100644
--- a/iOS/Settings/ColorPaletteTableViewController.swift
+++ b/iOS/Settings/ColorPaletteTableViewController.swift
@@ -8,7 +8,7 @@
import UIKit
-class ColorPaletteTableViewController: UITableViewController {
+final class ColorPaletteTableViewController: UITableViewController {
// MARK: - Table view data source
diff --git a/iOS/Settings/SettingsComboTableViewCell.swift b/iOS/Settings/SettingsComboTableViewCell.swift
index 9e0200a27..3cd329651 100644
--- a/iOS/Settings/SettingsComboTableViewCell.swift
+++ b/iOS/Settings/SettingsComboTableViewCell.swift
@@ -8,7 +8,7 @@
import UIKit
-class SettingsComboTableViewCell: VibrantTableViewCell {
+final class SettingsComboTableViewCell: VibrantTableViewCell {
@IBOutlet weak var comboImage: UIImageView!
@IBOutlet weak var comboNameLabel: UILabel!
diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift
index 06e1cfed4..5b1b490fb 100644
--- a/iOS/Settings/SettingsViewController.swift
+++ b/iOS/Settings/SettingsViewController.swift
@@ -13,7 +13,7 @@ import SafariServices
import SwiftUI
import UniformTypeIdentifiers
-class SettingsViewController: UITableViewController {
+final class SettingsViewController: UITableViewController {
private weak var opmlAccount: Account?
@@ -222,13 +222,13 @@ class SettingsViewController: UITableViewController {
case 6:
switch indexPath.row {
case 0:
- openURL("https://netnewswire.com/help/ios/6.1/en/")
+ openURL(HelpURL.helpHome.rawValue)
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
case 1:
- openURL(URL.releaseNotes.absoluteString)
+ openURL(HelpURL.releaseNotes.rawValue)
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
case 2:
- openURL("https://github.com/brentsimmons/NetNewsWire/issues")
+ openURL(HelpURL.bugTracker.rawValue)
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
case 3:
let timeline = UIStoryboard.settings.instantiateController(ofType: AboutViewController.self)
@@ -476,5 +476,4 @@ private extension SettingsViewController {
vc.modalPresentationStyle = .pageSheet
present(vc, animated: true)
}
-
}
diff --git a/iOS/ShareExtension/ShareFolderPickerCell.swift b/iOS/ShareExtension/ShareFolderPickerCell.swift
index 6d37f8365..f007809e7 100644
--- a/iOS/ShareExtension/ShareFolderPickerCell.swift
+++ b/iOS/ShareExtension/ShareFolderPickerCell.swift
@@ -8,7 +8,7 @@
import UIKit
-class ShareFolderPickerCell: UITableViewCell {
+final class ShareFolderPickerCell: UITableViewCell {
@IBOutlet weak var icon: UIImageView!
@IBOutlet weak var label: UILabel!
diff --git a/iOS/ShareExtension/ShareFolderPickerController.swift b/iOS/ShareExtension/ShareFolderPickerController.swift
index 9e82437b9..dd0672ca0 100644
--- a/iOS/ShareExtension/ShareFolderPickerController.swift
+++ b/iOS/ShareExtension/ShareFolderPickerController.swift
@@ -14,7 +14,7 @@ protocol ShareFolderPickerControllerDelegate: AnyObject {
func shareFolderPickerDidSelect(_ container: ExtensionContainer)
}
-class ShareFolderPickerController: UITableViewController {
+final class ShareFolderPickerController: UITableViewController {
var containers: [ExtensionContainer]?
var selectedContainerID: ContainerIdentifier?
diff --git a/iOS/ShareExtension/ShareViewController.swift b/iOS/ShareExtension/ShareViewController.swift
index e81d2772e..4bcd04788 100644
--- a/iOS/ShareExtension/ShareViewController.swift
+++ b/iOS/ShareExtension/ShareViewController.swift
@@ -14,7 +14,7 @@ import RSCore
import RSTree
import UniformTypeIdentifiers
-class ShareViewController: SLComposeServiceViewController, ShareFolderPickerControllerDelegate {
+final class ShareViewController: SLComposeServiceViewController, ShareFolderPickerControllerDelegate {
private var url: URL?
private var extensionContainers: ExtensionContainers?
diff --git a/iOS/TitleActivityItemSource.swift b/iOS/TitleActivityItemSource.swift
index ef5d9c3cc..e34627e8e 100644
--- a/iOS/TitleActivityItemSource.swift
+++ b/iOS/TitleActivityItemSource.swift
@@ -8,7 +8,7 @@
import UIKit
-class TitleActivityItemSource: NSObject, UIActivityItemSource {
+final class TitleActivityItemSource: NSObject, UIActivityItemSource {
private let title: String?
diff --git a/iOS/UIKit Extensions/CroppingPreviewParameters.swift b/iOS/UIKit Extensions/CroppingPreviewParameters.swift
index 330ade196..81153b138 100644
--- a/iOS/UIKit Extensions/CroppingPreviewParameters.swift
+++ b/iOS/UIKit Extensions/CroppingPreviewParameters.swift
@@ -8,7 +8,7 @@
import UIKit
-class CroppingPreviewParameters: UIPreviewParameters {
+final class CroppingPreviewParameters: UIPreviewParameters {
override init() {
super.init()
diff --git a/iOS/UIKit Extensions/ImageHeaderView.swift b/iOS/UIKit Extensions/ImageHeaderView.swift
index 2e8a25420..82157e045 100644
--- a/iOS/UIKit Extensions/ImageHeaderView.swift
+++ b/iOS/UIKit Extensions/ImageHeaderView.swift
@@ -8,7 +8,7 @@
import UIKit
-class ImageHeaderView: UITableViewHeaderFooterView {
+final class ImageHeaderView: UITableViewHeaderFooterView {
static let rowHeight = CGFloat(integerLiteral: 88)
diff --git a/iOS/UIKit Extensions/InteractiveLabel.swift b/iOS/UIKit Extensions/InteractiveLabel.swift
index 989412278..80f7f8688 100644
--- a/iOS/UIKit Extensions/InteractiveLabel.swift
+++ b/iOS/UIKit Extensions/InteractiveLabel.swift
@@ -9,7 +9,7 @@
import UIKit
@IBDesignable
-class InteractiveLabel: UILabel, UIEditMenuInteractionDelegate {
+final class InteractiveLabel: UILabel, UIEditMenuInteractionDelegate {
override init(frame: CGRect) {
super.init(frame: frame)
diff --git a/iOS/UIKit Extensions/ModalNavigationController.swift b/iOS/UIKit Extensions/ModalNavigationController.swift
index cbc7750ba..52dcb9570 100644
--- a/iOS/UIKit Extensions/ModalNavigationController.swift
+++ b/iOS/UIKit Extensions/ModalNavigationController.swift
@@ -8,7 +8,7 @@
import UIKit
-class ModalNavigationController: UINavigationController {
+final class ModalNavigationController: UINavigationController {
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
diff --git a/iOS/UIKit Extensions/NonIntrinsicButton.swift b/iOS/UIKit Extensions/NonIntrinsicButton.swift
index 715f85c7f..932d6da19 100644
--- a/iOS/UIKit Extensions/NonIntrinsicButton.swift
+++ b/iOS/UIKit Extensions/NonIntrinsicButton.swift
@@ -10,7 +10,7 @@ import Foundation
import UIKit
-class NonIntrinsicButton: UIButton {
+final class NonIntrinsicButton: UIButton {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {
diff --git a/iOS/UIKit Extensions/NonIntrinsicImageView.swift b/iOS/UIKit Extensions/NonIntrinsicImageView.swift
index 2403e1729..d711ff9fd 100644
--- a/iOS/UIKit Extensions/NonIntrinsicImageView.swift
+++ b/iOS/UIKit Extensions/NonIntrinsicImageView.swift
@@ -8,7 +8,7 @@
import UIKit
-class NonIntrinsicImageView: UIImageView {
+final class NonIntrinsicImageView: UIImageView {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {
diff --git a/iOS/UIKit Extensions/NonIntrinsicLabel.swift b/iOS/UIKit Extensions/NonIntrinsicLabel.swift
index 3cd615f6f..8d1f43b54 100644
--- a/iOS/UIKit Extensions/NonIntrinsicLabel.swift
+++ b/iOS/UIKit Extensions/NonIntrinsicLabel.swift
@@ -8,7 +8,7 @@
import UIKit
-class NonIntrinsicLabel: UILabel {
+final class NonIntrinsicLabel: UILabel {
// Prevent autolayout from messing around with our frame settings
override var intrinsicContentSize: CGSize {
diff --git a/iOS/UIKit Extensions/RoundedProgressView.swift b/iOS/UIKit Extensions/RoundedProgressView.swift
index a48aa6bf1..f86315370 100644
--- a/iOS/UIKit Extensions/RoundedProgressView.swift
+++ b/iOS/UIKit Extensions/RoundedProgressView.swift
@@ -8,7 +8,7 @@
import UIKit
-class RoundedProgressView: UIProgressView {
+final class RoundedProgressView: UIProgressView {
override func layoutSubviews() {
super.layoutSubviews()
diff --git a/iOS/UIKit Extensions/TickMarkSlider.swift b/iOS/UIKit Extensions/TickMarkSlider.swift
index 6373e4c0c..59a5585c5 100644
--- a/iOS/UIKit Extensions/TickMarkSlider.swift
+++ b/iOS/UIKit Extensions/TickMarkSlider.swift
@@ -9,7 +9,7 @@
import UIKit
@available(*, deprecated, message: "UISliders in iOS 26 come with tickmarks.")
-class TickMarkSlider: UISlider {
+final class TickMarkSlider: UISlider {
private var enableFeedback = false
private let feedbackGenerator = UISelectionFeedbackGenerator()
diff --git a/iOS/UIKit Extensions/UIViewController-Extensions.swift b/iOS/UIKit Extensions/UIViewController-Extensions.swift
index 1ed607502..7b6f7731c 100644
--- a/iOS/UIKit Extensions/UIViewController-Extensions.swift
+++ b/iOS/UIKit Extensions/UIViewController-Extensions.swift
@@ -47,8 +47,14 @@ extension UIViewController {
presentError(title: errorTitle, message: informativeText, dismiss: dismiss)
}
} else {
- let errorTitle = NSLocalizedString("Error", comment: "Error")
- presentError(title: errorTitle, message: error.localizedDescription, dismiss: dismiss)
+ // Check if error supports recovery options
+ if let recoverableError = error as? (RecoverableError & LocalizedError),
+ !recoverableError.recoveryOptions.isEmpty {
+ presentErrorWithRecovery(error: recoverableError, dismiss: dismiss)
+ } else {
+ let errorTitle = NSLocalizedString("Error", comment: "Error")
+ presentError(title: errorTitle, message: error.localizedDescription, dismiss: dismiss)
+ }
}
}
@@ -86,5 +92,28 @@ private extension UIViewController {
self.present(alertController, animated: true, completion: nil)
}
+
+ func presentErrorWithRecovery(error: RecoverableError & LocalizedError, dismiss: (() -> Void)? = nil) {
+ let title = error.errorDescription ?? NSLocalizedString("Error", comment: "Error")
+ let message = [error.failureReason, error.recoverySuggestion].compactMap { $0 }.joined(separator: " ")
+
+ let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
+
+ // Add recovery options as buttons
+ for (index, option) in error.recoveryOptions.enumerated() {
+ let action = UIAlertAction(title: option, style: index == 0 ? .default : .cancel) { _ in
+ dismiss?()
+ _ = error.attemptRecovery(optionIndex: index)
+ }
+ alertController.addAction(action)
+
+ // Make the first option the preferred action
+ if index == 0 {
+ alertController.preferredAction = action
+ }
+ }
+
+ self.present(alertController, animated: true, completion: nil)
+ }
}
diff --git a/iOS/UIKit Extensions/VibrantButton.swift b/iOS/UIKit Extensions/VibrantButton.swift
index ca2452eaa..c44f94831 100644
--- a/iOS/UIKit Extensions/VibrantButton.swift
+++ b/iOS/UIKit Extensions/VibrantButton.swift
@@ -8,7 +8,7 @@
import UIKit
-class VibrantButton: UIButton {
+final class VibrantButton: UIButton {
@IBInspectable var backgroundHighlightColor: UIColor = AppAssets.secondaryAccentColor
diff --git a/iOS/UIKit Extensions/VibrantLabel.swift b/iOS/UIKit Extensions/VibrantLabel.swift
index 9e480a7c4..174266e7e 100644
--- a/iOS/UIKit Extensions/VibrantLabel.swift
+++ b/iOS/UIKit Extensions/VibrantLabel.swift
@@ -8,7 +8,7 @@
import UIKit
-class VibrantLabel: UILabel {
+final class VibrantLabel: UILabel {
override init(frame: CGRect) {
super.init(frame: frame)
diff --git a/xcconfig/common/NetNewsWire_ios_target_common.xcconfig b/xcconfig/common/NetNewsWire_ios_target_common.xcconfig
index b2f59d660..4cc2fa883 100644
--- a/xcconfig/common/NetNewsWire_ios_target_common.xcconfig
+++ b/xcconfig/common/NetNewsWire_ios_target_common.xcconfig
@@ -1,7 +1,7 @@
// High Level Settings common to both the iOS application and any extensions we bundle with it
-MARKETING_VERSION = 6.1.10
-CURRENT_PROJECT_VERSION = 6198
+MARKETING_VERSION = 6.2
+CURRENT_PROJECT_VERSION = 6202
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
diff --git a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig
index 96c9be733..6fe444e05 100644
--- a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig
+++ b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig
@@ -1,6 +1,6 @@
// High Level Settings common to both the Mac application and any extensions we bundle with it
-MARKETING_VERSION = 6.1.10b3
-CURRENT_PROJECT_VERSION = 6138
+MARKETING_VERSION = 6.2b4
+CURRENT_PROJECT_VERSION = 6145
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon