Sunday, 6 December 2026

Byzantine Fault Tolerance

A Byzantine fault is a condition of a system (frequently a distributed system), where a fault occurs where symptoms are different to different observers. 

The name comes from The Byzantine Generals Problem (originally called the Albanian Generals Problem).

See also: Djikstra's Dining Philosophers problems.

Common Python Virtual Environments

It pays to know a few Python virtual environments, as the saying goes. 

For those who know only one, have no basis for comparison.

We start with venv.

In Python, venv is the built-in module used to create isolated virtual environments, each with its own interpreter and packages, separate from the system installation. It was added in Python 3.3. (It also replaced pyenv as the recommended tool for leveraging virtual environments). It is worth understanding how venv works under the hood, to be able to troubleshoot any issues. 

virtualenv was the predecessor to venv. This has largely been replaced unless you need compatibility with older Python setups. A subset of virtualenv is integrated into venv.

Poetry combines virtual environments and dependency management.

Conda is popular in data science, machine learning and scientific computing.

uv created by Astral has found increasing popularity.

Python Virtual Environments - The Package Conflict Problem

What are virtual environment managers and why are they needed in Python?

Well they are not explicitly needed, but they can be useful. 

A virtual env is a tool that creates and manages isolated Python environments.  Each environment posseses its own Python interpreter and installed packages - separate from your wider system.

Imagine two projects requiring different versions of Django

You have project A, needing Django 3, and project B needing Django 5 (Django is a "low-time-to-market" framework for developing web apps" - current release at time of writing is 6.1.4).

Installing packages globally will create a package conflict.  Virtual envs let each project have exactly the version it needs.

Core Benefits of Virtual Envs (Common Sense but Being Explicit for Clarity)

Avoids dependency conflicts, allows reproducible builds, keeps your Python system clean. Experimentation is safe and deployment is easier.

All Hail Virtual Environments!

Thursday, 3 December 2026

E2B

An agentic AI infra company.

Getting Productive with Ollama

Here is the GitHub for Ollama.

Ollama covers major open-weight model families, pulled from a searchable catalog on ollama.com.

Examples:

Llama (from Meta)
Qwen
DeepSeek
Mistral
Kimi
Gemma

Each model ships in multiple quantization options, enabling tradeoffs to be made between accuracy and speed and memory footprint.



How DNS Changes Propagate

DNS Propagation - First Steps

DNS propagation is the method by which DNS changes spread across the Internet - influenced by caching at multiple layers and TTL of each record.

When you update a DNS record the record is immediately updated at the authoritative DNS server. The rest of the Internet does not immediately see this change.

It may take up to 48 hours for changes to propagate!

Impact of Recursive Resolution

More precisely - recursive resolver caching.  ISPs and public DNS servers store DNS information for a specific time (TTL) before they query the authoritative server again for latest information.

Inspecting Progress

The progress of DNS propagation can be inspected by various online tools.

Further Reading

DNS design was done in the 1980s. Read more here. DNS was invented by American computer scientist Paul Mockapetris - attempting and succeeding to fix a problem he saw in the ARPAnet.

CNAME Flattening on Cloudflare

A useful blog post.

Forward Proxy Versus Reverse Proxy

Some details here.

CDN providers typically provide a reverse proxy service, which feeds back information on errors, in case of content access issues.

For example, Cloudflare's reverse proxy service expands the 5xx codespace to signal issues with the origin server.

520   Web server returned an unknown error (very non-specific, ideally you don't want to see this error)

521   Web server is down (could be security related blockage)

522   Connection timed out (Cloudflare timed out connecting to the origin server)

Understanding CNAME

A CNAME (Canonical Name) record is a DNS record that maps one domain name (an alias) to another domain name (the canonical or true name), never to an IP address. (E.g. www.example.com --> example.com). This is called "DNS aliasing".

Understanding Apex Domains

What It Is

An apex domain is the main domain name without the prefix e.g. example.com

In this example, www.example.com and blog.example.com would be subdomains.

A Rose By Any Other (Domain) Name

Apex domains are also known as root domain, bare domain, naked domain or zone apex.

Apex Domains Have Mandatory Records

MX (Mail Exchange) and TXT (Text) records are mandatory for apex domains.  

MX records route email for a domain to the correct mail servers, while TXT records store text data mainly for email authentication (SPF, DKIM, DMARC) and domain verification.

Origin Servers and Edge Servers

An origin server is the authoritative serving storing information for a website (master copy). Edge servers may service requests in different regions and cache content for efficiency.

Some Cloudflare notes on origin server certificates can be found here.

Tuesday, 1 December 2026

In Praise of pgvector

pgvector makes PostgreSQL ready for AI applications!

It is an open source PostgreSQL extension. It adds native vector data types and similarity search - supporting metrics like cosine, inner product and L2 distance - directly inside Postgres.

Hamming distances and Jaccard distances are supported!

Postgres features like joins, ACID transactions - are preserved!

Some other Postgres extensions can be found here.

Anthropic Research on Lattice Cryptography

The Anthropic Results

Anthropic has published new results in lattice cryptography - specifically relating to structured and unstructured lattices.  The first paper is entitled: "Galactic quasi-polynomial quantum algorithms for integral and module lattices".

The structured variants are those with relevance to NIST algorithms on post quantum cryptography (PQC). 

The CIRG (Cryptography Incident Review Group) formed in November 2026, has published an initial assesssment of the results.

Common Lean Building Blocks

Lean building blocks common to all 4 papers can be read here. Blocks specific to probability are here. Blocks relating to lattices are here.

Technical Terminology

There are some technical terms which are in less common use which need explaining to decode the findings. These include:

1.    Galactic Algorithm - theoretically optimal algorithm whose performance advantages only appear at impossibly large input sizes  - often larger than all the atoms in the observable universe - making it unusable in practice. Certain optimisations of matrix multiplication which are O(n^2.x) are galactic.

2.   Quasi-polynomial - an ordinary polynomial but instead of having constant coefficients (the coefficients coming from a ring or in more specific cases a field), the coefficients can vary periodically (with integral period). They are sometimes called pseudo-polynomials.

3.    Lattice - a lattice is basically a splurge of separated points, with some distancing restrictions between points. They are used in geometry and group theory. 

Other Important Mathematical Concepts Used

Gram matrix - named after Danish mathematician and actuary, Jorgen Pedersen Gram.

Monday, 30 November 2026

Ciphertext Indistinguishability

Worth understanding in-depth - used in classifying security algorithms. 

There are various formal definitions e.g. IND-CPA, each of which must be understood in depth.

IND-CPA, incidentally, stands for indistinguishability under chosen plaintext attack.

A Closer Look at ArangoDB

ArangoDB (a graph database system developed by Arango Inc) is another contender for the AI agent "context of choice".

A Closer Look at ArcadeDB

ArcadeDB styles itself as "The context layer from AI agents" and it has good rationale for doing so. Structurally it is an "Open Source Multi-Model Graph Database" which is in fact what agents need.

Founder Luca Garulli has written a number of articles on ArcadeDB.

Open Source Graph Databases for AI

Some open source graph alternatives are:

ArcadeDB, Memgraph, FalkorDB, ArangoDB, HugeGraph, and LadybugDB

Some of these are multi-model database management systems, which means they support graphs as well as other formats.

Commercial alternatives include Neo4J. However, open source graphs also have commercial dimensions, for example support subscriptions with defined service level agreements.

Consistency across data models is one compelling reason to use a multi-model database. A reason not to would be single vendor lock in (SVLI), and the more dangerous form single obscure vendor lock in (SOVLI).

SurrealDB is another challenger in the AI agent context space. It is also open source and in Rust.

Sunday, 29 November 2026

Roles in Postgres

CREATE ROLE defines a new database role in Postgres. Its syntax is:

CREATE ROLE name  [ [WITH]  option  [..] ]

This creates a new role to a PostgreSQL database cluster. 

A role is an entity that can own database objects and have database privileges; a role can be considered a "user" or a "group" depending on how it is used.

Roles can grant permissions to other roles.

The following sections of the PostgreSQL manual should be read in conjunction with CREATE ROLE documentation.

Saturday, 28 November 2026

Creating your First User in Postgres

In Linux, become the postgres user to create new users.

sudo -u postgres psql

Means run psql as the postgres user (the primordial Postgres user).

Once the interactive command line appears you can review the users with \du.  This will show a role (under Role name) entitled postgres, a list of role attributes alongside e.g Superuser, Create role, Create DB, Replication and Bypass RLS.

Do \q to quite psql.

Postgres Fundamentals

PostgresSQL uses a client/server model. 

A Postgres session consists of the following cooperating processes; a server process manging database files, accepting connections to the database from client applications, and performing database actions on behalf of clients. The database server program is called Postgres. The user's client program talks to Postgres and instructs actions to be performed on the database.

If client and server are on different hosts, they communicate using TCP/IP.

The Postgres server can handle multiple connections from clients, in which case it forks a new process for each connection. The supervisor server process is always running, whereas client and associate server processes come and go.

A Postgres user account is needed to create a new database in Postgres. This requires the right role to be assigned otherwise a createdb requests will end with "role \"xyz\" does not exist".

Guidelines Support Library (GSL)

The Guidelines Support Library (GSL) are functions and types suggested for use by the C++ Core Guidelines ("tried-and-true guidelines, rules and best practices about coding in C++"). 

The source code directory actually contains links to videos by key C++ folks. Worthy viewing.

Plan9 in WSL

WSL Plan9 is implemented here. This enables file sharing between Windows and Linux.

Reading STAT output from ps

One of the columns which Linux command ps outputs is STAT. For example, you ps -aux | grep sql may show up sql databases running. If you see Ss for example this can be understood as follows:

S - interruptible sleep; process is sleeping and can be woken by a signal or event
s - session leader (PID == Session ID)

Claude writes 90% of its team's code - Anthropic

Article by Amanda Caswell on The New Stack. A blog post supports this (10 min post).

Friday, 27 November 2026

Prolog is Turing Complete

Pure Prolog is Turing complete. This means it is computationally equivalent to a universal Turing machine (UTM).

Automatic Differentiation in Machine Learning

C'est Quoi, et Pourquoi?

Automatic differentiation is used in the field of machine learning.

Once you start reading a few good machine learning papers, this concept will pop up repeatedly. Its usefulness appears in backpropagation in a neural network without a manually computed derivative.

Automatic differentiation (AD) and algorithmic differentiation are generally the same thing. The term automatic differentiation term is more common in machine learning and optimisation, and algorithmic differentiation is more often heard in numerical analysis and scientific computing communities.

Both refer to computing exact derivatives by systematically applying the chain rule to a computer program.

Thursday, 26 November 2026

Postgres on Windows

It is best, when using Postgres on Windows, to use WSL, as this will be easier to do testing with production-realism. Check out the instructions here.

mojo-mode

One option for mojo-mode is here. It derives from python-mode.

Emacs Lisp

The initialization file and testing it through

Emacs lisp is needed to configure emacs, right from the initialization file (init.el). The first "skill" needed is a testing skill - "M-x eval-buffer" to load /re-load init.el.

Background to Emacs Lisp

LISP was first developed in the 1950s at MIT for research into Artificial Intelligence. 

The power of Lisp is useful for other applications such as writing editing commands, as demonstrated by the existence of Emacs Lisp. GNU Emacs Lisp was inspired by Maclisp, and a little by Common Lisp. Common Lisp was used to implement Grammarly's grammar engine.

Relevant Manuals

Links to emacs manuals can be found in the link provided, which also links to the GNU emacs manual and emacs lisp reference manual.

 

Quickstart to Mojo Coding

Quickstart here.

Tuesday, 24 November 2026

Implement Trial Versions of Windows Store Apps

Details here.

When Ollama Stops Completing Tasks

Probably a memory issue. Restart ollama.

Gemma Open Models

Gemma represents Google (DeepMind's) most capable open models. And they are very good.

Gemma 4 is very good at thinking, and showing how it gets to its answer.

The KV Cache Optimisation in Modern LLMs

The KV cache is an important optimization enabling real-time performance of LLMs.

Imagine you are asking the following question:

"The capital of Kenya is ..."

The model processes these 5 "tokens". Now it has to generate the next token.  The transformer computes for every token Query, Key and Value.


The idea is to reduce redundant computation.

Z.ai introduces "Loop Transformer" Architecture in GLM-5.4 release

The model has been produced by continuing to train GLM-5, running a block of 28 layers twice during inference. 

The architecture has been developed for coding and agentic workloads.

Z.ai's tests at 1 billion up to 750 billion parameters showed the loop model outperformed a conventional Transfomer of the same size on math and scientific reasoning tasks, as well as long context tasks. However, it required more training compute.

More details on z.ai's official website.

Monday, 23 November 2026

Run a Local Model (Gemma) on Your Computer

ollama run gemma4:e2b

Type /bye to leave.

Installing Ollama on Windows

Here's the way.

 irm https://ollama.com/install.ps1 | iex

irm in this (NOT information rights management) is a PowerShell alias for Invoke-RestMethod, used to fetch content from URLs (similar to curl). It only works from a PowerShell window and not a regular command window.  If you were to run it from a command window here's what you would get:

'irm' is not recognized as an internal or external command, operable program or batch file

iex refers to the PowerShell cmdlet Invoke-Expression, evaluating a string as PowerShell code.

What's the deal with .dotx files?

Template (dotx) files in Word follow the Open Office XML format (OOXML). OOXML is also used to represent spreadsheets, charts and presentations.

Microsoft sponsored the standardisation of OOXML through ECMA. Participants in ECMA are required to make their patent rights available on a RAND (Reasonable and Non Discriminatory) basis.  Microsoft provided a covenant not to sue for its patent licensing. This enables open source and commercial implementations of the standard.

Google Docs is able to read and write OOXML files.

The Document Foundation has criticised OOXML for being excessively complicated and convoluted.

Sunday, 22 November 2026

Cargo.toml vs Cargo.lock

Cargo.toml and Cargo.lock serve two different purposes.

Also, read why Cargo.lock should be committed to version control.

The GLM Model

Revolut is using GLM 5.3 to cut coding costs from Claude and Codex. This model is produced by z.ai. 2000 engineers are served by 56 Nvidia B200 GPUs, with blended cost of around 30c per million tokens.

GLM is short for General Language Model (which are different from the GLMs in statistics, which are Generalized Linear Models, a topic for another post!).

Saturday, 21 November 2026

Word Templates

When you save a Word template (.dotx file) it will be stored in a default location under Documents. To open it, select File->New and Personal - you will see the template there.

Recover AI Context in MS Word

When you open a new Word document, you lose the AI context. To get it back, open the Copilot window in Word, click the three lines on the top right, and select the appropriate context from the chooser.

Riemann Hypothesis Proved in Lean (Apparently)

leanprover-community/riemann-hypothesis: Independent Comparator setup for the Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20)

The Riemann hypothesis: what next for Lean? — kim@lean

Thursday, 19 November 2026

Gemini 4 Hydrogen - Powering Google Search

Gemini 4 Hydrogen (adapted from Gemini 4 Carbon and hence empowered by Carbon's training data sets) is Google's newest "fast AI" model. 

Hydrogen powers AI mode and complex AI overviews in Google Search, rolled out globally on November 12, 2026.

Search is elevated from behaving more like a keyword matcher and more like a smart research assistant.

Google is also now offering AI Studio dubbed "the fastest way to build with Gemini". It's also emphasising AI sustainability given public concern over AI's immense energy consumption.

Rolling Hash

From Hashing to Rolling Hashing

You know about hashing but do you know about "rolling hash". This is a very simple concept, whereby a hash function is applied to a rolling window of text.

A major application is the Rabin-Karp string search algorithm. Another important application is rsync.

The cleverness of a rolling hash is efficient calculation - instead of computing hash values fresh each time, it updates the hash incrementally as new data comes in.

Rolling Hash in Rabin-Karp

This is used in string matching, and plagiarism detection.

Rolling Hash in rsync

This is manifested in the form of a rolling checksum, to check "everything is ok" as the sync operation proceeeds.

Other names for Rolling Hash

Recursive hashing is another name for rolling hash, or rolling checksum, as in the case of rsync.

Wednesday, 18 November 2026

Claude Usage Limits

Claude comes with usage limits.

With the free Claude plan, the session-based usage limit resets every 5 hours. Also number of messages you can send varies based on demand to ensure fair usage for all users.

More details here.

Tuesday, 17 November 2026

systemd - a true friend in Linux

systemd is a true friend of the Linux aficionado, and by extension the regular Windows Joe using WSL.

More precisely, it is a suite of basic building blocks for the Linux system. It provides a system and service manager that runs as PID 1 and starts the rest of the system.

MiB

No, MiB is not the men-in-black, it is the computing abbreviation for mebibyte, a binary unit of memory equal to 1,048,576 bytes (2^20 bytes) used to measure RAM and other volatile memory with base-2 accuracy.

The prefix "mebi" was defined by the IEC (International Electrotechnical Commission) in 1998 to avoid confusion with decimal megabytes (MB). MiB is commonly used in operating systems, programming and RAM specifications.

GiB is the analog for a "billion" bytes and is known as the gibibyte, amounting to 1,073,741,824 bytes. This is 2^30 bytes. GB (gigabyte) refers to 1 billion bytes in decimal.

TiB is the same for a "trillion" bytes and is known as a tebibyte (equal to 2^40 bytes). 1 Tib = 1,024 GiB.

Base-2 accuracy is important as operating systems often report memory in binary units as hardware addressing is binary.

An AWS Emulator Practica

The instructions here can be used to install aws-emulator on WSL. 

By default the emulator serves HTTPS on 127.0.0.1:9297 so only your machine can reach it.  You can run multiple emulators side-by-side on different ports.

If you want to set this up in Docker you may need to play with the options. The -b option (or --bind) specifies the IP address (note: not hostname) that the emulator listens on, with -p (or --port) to tell the port.

The emulator keeps emulated resources in memory. It uses about 160 MiB (mebibytes) when idle. To cap the memory used by the emulator you must use the systemd-run command.

Developer Expectations

Expect the documentation for a new technology to be 50% correct.

Measuring Alignment with METR

METR (pronounced "meter") is a nonprofit that studies AI agents to assess if they are "out of control" i.e. are they such that developers have lost, or will lose, control of them.

Their output consists of measurement research and applied assessments.

Monday, 16 November 2026

An Introduction to 68000 Assembly Language

Assembictetus once said "beware the man, woman or child who knows only ONE assembly language".

For those who want a second assembly language, or a retro-computing assembly option, try the 68K.

R.A. and J.W. Penfold's legendary introduction "An Introduction to 68000 Assembly Language" published by Bernard Babani is a great start. It was first published in 1986.

I am not Just VS Code

I am not just VS Code, I am Visual Studio.

I am not just TypeScript, I am Rust.

I am not just C++ , I am assembly language.

I am not just little endian, I am big endian.

(Taken from Philosophy of the Programming Philosopher King).

Getting C++'d and Assembly'd Up in MSVS

To get some C++ and assembly coding action in Visual Studio (including getting lots of wonderful tools at your disposal at the "Developer Command Prompt for VS" go into Visual Studio and opt to install "Desktop Development with C++". This will offer this non-exhaustive WinJoeWonderList of options:

MSVC Build Tools for x64/x86
C++ Build Insights
C++ profiling tools
C++ CMake tools for Windows
MSVC AddressSanitizer

Let us pay homage first to AddressSanitizer. 

This amazing tool made its debut in Visual Studio 2019.  

Also known as ASan, it exposes hard-to-find bugs. I am sure you are much intrigued and compelled to learn more. First know that this tool was first introduced by Google (reference given is to a Usenix conference in Boston, in 2012). There are other similar tools on the market - Google engineers created this to balance performance and coverage. Background thinking is here. One of the types of bugs it aims to better detect are stack overflow bugs.

To use ASan start building your executables with /fsanitize=address compiler option. However, it should not be used in production.

C++ Build Insights are tools to help developers optimize their build process. Key parts include vcperf.exe,  a command line tool for collecting build traces. The traces can be used to identify inefficiencies in the build process. This toolset was also introduced in 2019 as this valuable blog post recites.

Assembly Programming

Assembly programming is good for the soul, remember this always.

In the mighty words of the Programming Stoic Assembictetus: "Fortify thyself with Assembly Language, For That is An Impregnable Stronghold".

One Must Know ECDSA

ECDSA is the Elliptic Curve Digital Signature Algorithm. It is a variant of the DSA (Digital Signature Algorithm) that operates over elliptic curves. Elliptic curves are related to elliptic functions that appear in complex analysis.  To understand ECDSA truly, you must know some quantitative facts about the required bit size of the private key (to be revisited).

The Joy of Self-Signed HTTPS Certificates

A self-signed HTTPS certificate is an SSL/TLS certificate that you generate and sign yourself, not issued by a trusted CA. It enables encrypted HTTPS but is not trusted by browsers by default.

It contains the same stuff that you'd expect in a CA-signed certificate (public key - typically RSA or ECDSA), digital signature and algorithm, metadata) but lacks third-party validation.

What pray tell, is the use? Development environments, internal networks and local testing. The openssl command-line tool can be used to generate keys and certificates. 

Crate tokio in Rust

You won't be programming Rust for very long before you get head-to-head with the tokio crate.

This is a runtime for writing reliable network applications without sacrificing speed. Now THAT is a worthwhile endeavour!

tokio supports the creation of asynchronous applications through an event-driven, non-blocking IO platform.  

Facilitating this are tools for facilitating asynchronous tasks.  The tokio::task module enables this. Perhaps the most useful function in this module is task::spawn.  This is the async equivalent to the standard library's thread::spawn.

The World Migrating to Rust

GitHub Copilot (underpinned by the Copilot Agent Runtime, or "CAR")

GitHub Copilot was migrated from TypeScript (on Node.js, using the V8 JavaScript engine) to Rust, as detailed here. 

The Rust Restructure

As the author (Stephen Toub) notes: "A rewrite this size wasn't affordable before agents".  800,000 lines of production Rust was the result - which were much more performant than the (legacy) TypeScript. 128 pull requests landed in main and were shipped incrementally rather than in one cutover at the end. Regressions were discovered and fixed quickly along the way. The author estimates this work would have taken a year or two before agents came on the scene.

Rationale

The "CAR" was increasingly the back-end of multiple Microsoft products - including Copilot Studio and Copilot Cowork.  Many products had their own agent loop previously but this could be replaced a revampled "CAR" (recall the R stands for "runtime"). Shared runtime == good :)

In Depth Analysis

There are some great deep dives into the various architectural directives used in the porting of Copilot runtime. Read the original blog post (on github.blog) for more insights

How AWS Uses Smithy

AWS uses Smithy, which is an open source IDL (interface definition language) which is a language-independent way to describe interfaces. IDL is a common way to describe interfaces in distributed programming, facilitating RPC (Remote Procedure Call). This enables the creation of type-safe clients and servers.

Way before we had the cloud, we had IDL.

Smithy is covered in AWS Developer blog posts including this one introducing Smithy 2.0.

Sunday, 15 November 2026

Intel SKUs - The Intel Core Ultra Series

Introducing the Intel Ultras

The Intel Core Ultra series of processors are one of series of Intel chips which are also divided in Series 1 Series 2 and Series 3 Ultras.

Intel Core Ultra is here used as a shortform for Intel(R) Core(TM) Ultra.

Intel Core Ultra 5 125H (A "Series 1" Ultra)

The Core Ultra 5 125H is a "Series 1" Ultra which came out in Q4 2023.  

The suffix "H" on the SKU (in the above case the SKU is 125H) indicates it is a mobile processor (H, U and V are mobile Ultra chips).  Desktop processors have suffixes K, F, KF or T. More on this here.

The Core Ultra is a multicore architecture and the different cores have different clock speeds. For 125H, cores range from 2.5GHz up to 4.5GHz (as the maximum "Turbo frequency" using Intel Turbo Boost, which can only operate optimally in when environmental conditions, including temperature, allow).

How the Ultra 5 125H Stacks up in Windows Device Manager

The 125H in Device Manager shows up in the following way.

Processors. 

The same Intel CPU will show up multiple times.

The entries represent logical processors (hardware thread) which is not the same as a physical CPU. The 125H for example has 18 threads (as a result of hyperthreading) despite only having 14 physical cores (roughly 30% higher logical processors than physical processors). In the 125H, two of the physical cores are low power efficient cores (LP E Cores), ultra efficient CPU cores introduced by Intel in Meteor Lake laptops, designed to handle light background tasks (with L2 but no L3 cache access), enabling minimal energy consumption.

Neural Processors.

Also known as Neural Processing Units, or NPUs. The 125H comes equipped with Intel AI Boost, which will show up as Intel (R) AI Boost. This is built-in to the Intel Core Ultra processor, designed to accelerate AI inference efficiently up to 13-34 TOP depending on the model. The ability to perform matrix multiplications and convolutions (which is a more elaborate operation than a humble matrix mult) efficiently in the NPU helps conserve battery life. 

TOPS = Trillion operations per second.

GPU.

The GPU used in 125H is Intel(R) Arc (TM) graphics. It has a GPU Peak TOPS (Int8) of 18 (peak throughput).


 

Intel Assembly Concepts

Intel Assembly

Intel assembly is a popular form of assembly programming.  

A great deal of knowledge is contained in its Software Developer's Manual - starting with Volume 1: Basic Architecture.  This contains data on its Intel 64 and IA-32 Architectures.

It is worthwhile to know some basic facts about Intel processors and their programming, since Intel chips are so ubiquitous.

Basic Facts

Intel processors use byte addressing. This means memory is organized as a sequence of bytes, and each byte has a particular address. So when Intel CPUs say address 0x1000 they mean:

"The byte located at memory location 0x1000". This is called byte addressable memory.


AWS SigV4 Explained

What is SigV4?

AWS SigV4 is a way of proving an API request came from you and hasn't been tampered with.

Leveraging Features of HTTP

Using the HTTP Authorization header is the most common method of providing authentication information.  Except for POST requests and requests signed with query parameters, all Amazon S3 operations use the Authorization request header to provide authentication information.

How the Digital Signature System works

The process is basically digital signatures. 

AWS takes information such as HTTP method (GET, POST etc.), URL path, query parameters, request headers, request body, current timestamp and creates a cryptographic fingerprint (hash). This fingerprint is then signed with your AWS Secret Access Key.

So it works as follows {aggregate metadata pertaining to the request} -> cryptographic hash -> sign it.

On receiving a request, AWS looks up your secret key, recreates the fingerprint and compares it for a match.

Time Skew Issues

There may be differences in your computer clock and the clock used by AWS, resulting in time skew. If your request appears to come from the future, or is too far back from AWS' PoV, your request may be rejected.

Error: RequestTimeTooSkewed  or SignatureDoesNotMatch

May transpire on these occasions.

Friday, 13 November 2026

AWS Emulator

AWS Emulator provides a local AWS for development, running AWS SDK and AWS CLI calls in milliseconds - with no AWS account and no deployments required.

Some principles:

AWS Emulator is not for testing security.  As it doesn't run in the AWS Cloud, security works differently. 

Azure does not provide a service of equivalent breadth. 

ipconfig equivalent in Linux

Desirous of the benefits of ipconfig in your Linux shell in Windows, try using the ip command instead. With the ip a command you will get all relevant data.

When interpreting the output of ip, one concept you will need is that of loopback interfaces. A loopback interface is a virtual network interface that allows a device to communicate with itself. It provides a stable local IP address, often 127.0.0.1, for testing, local services and health checks

Tuesday, 10 November 2026

Blackwell Architecture

NVIDIA's AI focused GPUs are based on the Blackwell architecture.  All techies should know a bit about Blackwell.

The value proposition for these processors lies in using and deploying state-of-the-art LLMs with affordable economics.

There are special adjustments for confidential computing. The broad concept is that data at rest and data in transit is generally well-protected - but data in use can be exploited without some additional safeguards.  These safeguards prevent the hypervisor and other entities with physical access from changing data during data operations.

Wednesday, 4 November 2026

CSRF Verification Failed - What could it be?

CSRF refers to cross-site-request-forgery.

The error message "verification failed" means that the CSRF token sent with your form or request does not match the token stored on the server.

This could be due to missing tokens, incorrect context, cookie issues or misconfigured trust origins.

OWASP has done some great work on this.

Reminder: OWASP is the Open Worldwide Application Security Project, formerly known as the Open Web Application Security Project (name was updated in 2023).

Monday, 2 November 2026

Agent Harnesses in MAF

Read more here.

Some harness examples here.

Unsloth 2

Let's look at Unsloth in the real world.

Here is an article on fine-tuning Qwen and Gemma.

Sunday, 1 November 2026

Productivity Through Frameworks - A Java Trend Jeopardised by AI

A historical selling point of Java has been productivity through frameworks.  

Spring Boot for example gives dependency injection, security, configuration management and observability without having to assemble everything yourself.  However, downsides include longer startup times, more configuration, more dependency management and more abstraction layers. You can ship faster without it. 

AI coding assistants can generate boilerplate code and large frameworks are not as advantaged in the AI world. Often sticking to a simple language boosted by AI is better than a language with a huge framework attached.  This is partly the reason why Python and Go are thriving.

What is BAML in AI?

BAML, which stands for Basically A Made-up Language, is an interesting take on agentic programming.

It aims to create a language which agents you build in, but at the same time, maintains readability and correctness. It aims to achieve this by hybridly embracing advantages of different languages:

Syntax and readability of TypeScript
Correctness and tooling of Rust
Compile times and concurrency of Go
Dynamism of Python

Amongst its other claims to fame is an agent-first toolchain.

Agent As Config

Microsoft Foundry lets you configure a lot in the way of agents.

Development Perspective

The first thing you do is set the model underlying your agent (there is a 1:1 mapping between agent and model). You can even upload your own model.  You will see DeepSeek and Qwens among Claudes, GPTs and Groks.  Then you have a section to give the agent instructions - what it is meant to do.

Operating Perspective

The Playground AI in Foundry is free; but interactions consume tokens and are billed against your Azure subscription. Specifically - sending prompts to GPT-5 Mini is charged per token. Using agent features outside the model may incur separate charges beyond the model itself.

Documentation on Costs and Quotas


Ultimately managing this requires the right data accesses in RBAC.

Microsoft Agent Framework and Foundry

The philosophy and appearance of Microsoft Foundry is to make agent creation as easy as possible. Consequently, agent creation is effectively reduced to a configuration task.

What then is the value of MAF? There are many, potentially.

You may have a human-in-the-loop approval workflow, you may have custom memory implementation and need some agent-to-agent communication (possibly using protocols like A2A).

Or you may not the like the Azure cloud model of doing things, and prefer local. Then MAF works too.

Model Cards

Anthropic produce model cards for all their new models. They are well worth a read.

Claude Haiku 5.5 (October 2026) is formalised here. The card reports that no new RSP thresholds have been crossed.

Humanity's Last Exam is referenced in the cards.

The Azure.AI.Projects Client Library

The Azure.AI.Projects client library simplifies management and deployment of AI models and agents within the Azure ecosystem. It is fundamental to Microsoft Foundry.
 
If not already added, adding this library will add the following references:

System.IO.Hashing  (for non cryptographic hash values)
System.Security.Principal.Windows (for interacting with Windows users and groups)

Plus a load more.

Saturday, 31 October 2026

Microsoft Visual Studio October 2026 Update

The October 29th update includes a number of security updates.

This includes a security fix for the Brotli decoder. 

This refers to Google's open source Brotli compression library, which implements a lossless compression algorithm, that uses, among other things, LZ77 (Lempel Ziv coding). The compressed data format is also a formal, Internet RFC - RFC 7932 - Brotli Compressed Data Format. It is used to make websites load faster by compression http content.

Thursday, 29 October 2026

Google Antigravity

Google Antigravity is Google's solution for agentic development.

Rough Guide to Microsoft Teams

A few features in Microsoft Teams that are worth noting.

If the meeting is recorded/transcripted then it appears in chat - where it can be downloaded.
Microphone can be tested from audio settings.
To get joining info click on Meeting Info.

Interacting in the meeting:

Click on the hand, or Control-Shift-K, to raise or drop your hand.
You can use reactions (Like, Love) by clicking the Smiley Face.

Meeting host:
Can set a countdown timer in the meeting by clicking on Timer (defaults to 5 minutes)

Wednesday, 28 October 2026

So what is ONNX?

ONNX (Open Neural Network Exchange), pronounced "Onyx",  is the closest thing the AI industry has to being a "portable executable" for machine learning models.

ONNX Runtime is a success story of ONNX, and GitHub code is here.

You will see references to ONNX in disucssions on MAF, so it's important to know what it is.

Microsoft Agent Framework - Complete

So here it is .. Microsoft Agents

Microsoft Agent Framework can be studied here.

You can also go deeper into Agents and Providers.

Bear in mind AI agentic frameworks are subject to evolution and change. What you learn today, you may have to re-learn in future. What you write today, you may have to re-code in future. If you are ok with that, proceed.

What you get when you install MAF

If you nuget in the Microsoft.Agents.AI framework into your project, you'll get a load of references to stuff like:

Microsoft.Bcl.HashCode
Microsoft.Bcl.Numerics
Microsoft.Bcl.AsyncInterfaces
Microsoft.Extensions.Compliance.Abstractions
Microsoft.Extensions.FileSystemGlobbing
Microsoft.Extensions.AI
Microsoft.Extensions.AI.Abstractions
Google.Protobuf
Microsoft.Extensions.Primitives
System.Numerics.Vectors
System.Numerics.Tensors
System.Text.Json
System.IO.Pipelines
Microsoft.Agents.AI.Abstractions
Microsoft.ML.Tokenizers

A bunch of these require you to accept the MIT license. These include Microsoft.Bcl.HashCode, System.Numerics.Vectors, and Microsoft.Extensions.AI.

dot net add package - doesn't always work

This command needs to be run in the same directory as your csproj - which may be one level down from you solution file.

Example using MAF:

dotnet add package Microsoft.Agents.AI.Foundry --prerelease

This may not always work, depending on your project (it needs to support adding package references through the add package command).

Tuesday, 27 October 2026

Markdown Glows with "glow"

 glow is a great tool in Linux to read Markdown, properly formatted.

Reconcile Divergent Branches in Git

To reconcile divergent branches in git, you need to choose a strategy. It basically happens because local and remote branches have unique commits.

You can do a git status to get an idea of what might be causing a merge conflict and you can also go to the GitHub webpage to visually inspect branches.

Sunday, 25 October 2026

Systems Programming Language Mojo Now Open Source

Code here.

Its core principles include being a member of the Python library.

It differs from Python in that it enables memory management control like in C and C++.

Basically the idea is to easier leverage GPU/TPU advances within the software stack without too much programmer overhead.

Transpilers - The JavaScript Phenomenon

Transpilers became needed for conversion of value-added JavaScript variants into JavaScript.  They work as follows:

1. Parse input code into an Abstract Syntax Tree
2. Perform some syntactic and semantic analysis
3. Emit equivalent code in target language

They are sometimes called S2S compilers (Source to Source compilers).

So Much Google In Windows

Windows IPC is done via named pipes.  To view all named pipes in Windows open PowerShell. Type in:

Get-ChildItem  \\.\pipe\

Gotcha: ChildItem is one word, not Child-Item which you may be tempted to type.

The first time you do this you will see a whole load of references to mojo. For example, pipe name may look something like this: Sessions\1\AppContainerNamedObjects\...\mojo.121343.112312.123123212.

Mojo is a Google library providing an abstraction for IPC across platforms - using Unix domain sockets for Unix and Linux environments and named pipes for Windows. It is used in Chromium and Chromium derived products.

ssh-agent

ssh-agent is a background key manager that stores your decrypted SSH private keys in memory and signs authentication challenges on your behalf (via a Unix domain socket, see below for more detail on this), allowing passwordless SSH logins without exposing the keys themselves.

You can check if ssh-agent is running:

A) In Windows (PowerShell)

Get-Service ssh-agent

B) In Windows (Cmd.exe)

sc query ssh-agent

In both cases, if the agent is stopped you can start the agent.

C) In Linux

ps -ef | grep ssh-agent

ssh-agent does not use TCP (or other network-related ports) for communication. Instead it uses via a Unix domain-socket (local socket for IPC) specified by the SSH_AGENT_SOCK environment variable.

Technical note: SC (typed as sc in regular usage in CMD.EXE) is a command line program used for communicating with the Service Control Manager and services.  SC query - queries the status of a service, or enumerates the status for types of services.

Cascading Style Sheets in HTML

What is CSS and Why Cascading?

CSS is an old but gold technology, where styles can be defined in a central style sheet and used across multiple web pages. Cascading refers to the hierarchical logic implicit in the style sheet. A style applied to a parent element will also apply to all child elements of the parent.  For example, if body text of a paragraph is blue, any other elements in that paragraph also inherit blue unless explicitly overriden.

Alternatives to Separate Style Sheet (Inline CSS using style attribute)

A separate style sheet file is the preferred option for maintainability. However there are other ways of using CSS within a specific file. For example, an inline CSS can be used to apply a unique style to a single HTML element, using the style attribute.

<h1 style="color:blue;">Blue heading</h1>
<p style="color:red;">Red paragraph</p>

ssh -T

Recap on ssh, what it is and why it exists

Mastering ssh is essential to connecting into remote servers.

ssh is used to connect to a remote server using the syntax:

ssh [username]@[hostname or IP address]

Explanation of -T flag, and why it makes sense for testing GitHub logins

When you do:

ssh -T 

it means do not allocate a terminal (TTY), so you are asking to connect, but without the interactive shell. 

Connecting to some external services like GitHub operate in such a way that they do not provide shell access. You can still check/test SSH authentication:

ssh -T git@github.com

GitHub should respond with text like:

Hi your_username!  You've successfully authenticated, but GitHub does not provide shell access.

This proves your SSH key was accepted , GitHub recognised your account, future Git operations over SSH should work.

However, GitHub may also respond with:

git@github.com: Permission Denied (Public Key)

This is when GitHub rejects an attempted SSH authentication because the SSH key is missing, not loaded into ssh-agent or not added to your GitHub account. It could be all of the above.

GitHub docs have a Troubleshooting guide for SSH issues.

Some Technical Notes on TCP Ports for ssh

Technical note 1: Port 22 is the default TCP port used by SSH for encrypted remote login, command execution and file transfer, as registered by IANA and used by all major SSH implementations.

Technical note 2: IANA - Internet Assigned Numbers Authority

Design Patterns in the Cloud

There are a number of design patterns that have emerged and evolved in cloud computing. Microsoft Learn covers off quite a few of those.

Among the common ones you should know are Ambassador, Circuit Breaker, CQRS, Idempotent Consumer, Sharding and Sidecar.

The CQRS Pattern

CQRS aims to overcome certain challenges with implementing CRUD operations (the typical database operation: create, read, update and destroy).  It stands for Command Query Responsibility Segregration. 

Write operations are abstracted into Commands
Read operations are abstracted into Queries

The idea is, as applications scale, read and write operations often have different performance and scaling requirements. Traditional CRUD architectures do not take this asymmetry into account, which can result in challenges - such as:

Data mismatch - read and write representations of data often differ. Some fields needed during updates may be unnecessary during reads.

Lock contention - parallel operations on the same data set can cause lock contention.

Performance problems - the traditional approach can negatively impact performance due to load on the data store and the data access layer and the complexity of queries needed to retrieve information.

Security challenges - can be difficult to manage security when entities are subject to read and write operations.

Sidecar Pattern

Sidecar Pattern: Introduction

The sidecar pattern is a bit like "aspects" in aspect-oriented programming.  

So your primary application with core functionality runs in its own bubble, and your "sidecar" deals with peripheral tasks (like logging, performance measurement, proxying to remote services). 

Sidecars can be written in a different language to the primary application. 

The most common implementation of this pattern is in containers, where you have sidecar containers, also known as sidekick containers.

Sidecars in Kubernetes

Sidecars in Kubernetes are secondary containers that run along with the main application container within the same pod. These containers enhance or extend the functionality of the primary app container providing services like logging, monitoring, security or data synchronization without altering the main app code.

They can be started and stopped independently of the main container.

Further details, including notes on sidecars and pod lifecycle, can be found on the kubernetes docs website.

Thursday, 22 October 2026

MSIX Architecture

For deploying applications to the Microsoft Store, the MSIX format is something you need to very familiar with. It is the wildly successful successor to the MSI format.

Start by reading the Overview on Microsoft Learn.  

For additional background you can read the Microsoft guide to packaging and deployment for Windows Applications. The latter will recommend Microsoft Store as the recommended distribution path for most developers.  Other avenues will require additional certificate signing obligations (and concomitant costs).

One of the first concepts the would-be MSIX master must learn is that of package identity. When your app is packaged as MSIX, Windows assigns an identity to it based on manifest information such as name, publisher, version, architecture and resource identifier (you find this in the AppManifest.xml).

One of the merits of MSIX usage is reliable install and uninstall. On the uninstall piece, it guarantees no leftover files or registry entries. On the install piece, it has a reported 99.96% install success rate.

Containerized execution is one of the more interesting aspects of MSIX. Apps run in a lightweight container with virtual file system and registry. An overview is here.


The Azure Tenant Concept

An Azure tenant is the security and identity boundary for an organization within Azure.

In AWS the Azure notion of tenant broadly corresponds to an AWS organization. 

Within the tenant you have subscriptions. You may bifurcate your subscriptions into production and non-production.

Tenants are endowed with a unique Tenant ID, a globally unique GUID that identifies your tenant across Microsoft services.

Wednesday, 21 October 2026

Set up Artifact Signing Quickly

 Quickstart: Set up Artifact Signing | Microsoft Learn

Useful Azure Shell Commands

 az account list --output table

will give you a list of subscriptions (the table command line flag tells the shell to convert scraggly-looking JSON to a smarter-looking tabular format).  Subscriptions will display their name, cloud name (e.g. AzureCloud), Subscription ID, Tenant ID, State (Enabled?) and the IsDefault flag.

Copilot Integrated into Azure (Portal)

Copilot is integrated into the Azure portal, and sports a number of agents to help you. 

For example, the Troubleshooting agent exists to help you diagnose problems. To some extent, having a natural language interface may appear liberating, but technical language is still required to operate/co-operate with the agent, for example providing context around Azure resources, resource groups or subscriptions. Azure VMs and Azure VM scalesets (VMSS) are supported.

Stacked PRs - Was Ist Das?

A crazy concept from GH fully detailed here.

Tuesday, 20 October 2026

Cloudflare on RAG - Hello AutoRAG

This came out in April 2025. Create an AutoRAG instance and point it at a storage location like R2. Simples. Don't craft RAG yourself.

ss (socket statistics) versus netstat

netstat is used in Windows with roots in Unix. In the Linux world, ss is more used than netstat.

ss displays "socket statistics" and is used to "dump socket statistics" as per its description. 

Unlike netstat, ss talks to the Linux kernel directly. 

Used without arguments, ss displays non-listening connections - so an nginx server simply listening for connections would not appear in the output, but an established connection (TCP for example) would appear.

To display listening connections also, do ss -l.

ss -lt
ss -lu

Restricts output to TCP and UDP connections.

Please note: using ss in a WSL shell will only give you the connections relating to the shell and not the wider Windows system in which the shell is running. 

You will still need netstat from a cmd.exe to see the networking connections in Windows. Note that WSL1 shared more of the Windows networking stack than WSL2.

The Markdown Guide

Here is the Markdown Guide, explaining why Markdown is popular. 

Markdown was created by John Gruber in 2004.

openssl rand

openssl rand is an OpenSSL command that generates cryptographically secure random bytes using the library's CSPRNG (cyptographically secure pseudorandom number generator) with options for raw, hex or Base64 output.

Example usage:

openssl rand -hex 16
openssl rand -base64 16

The number at the end states the number of bytes to generate. 

The GitHub location for OpenSSL can be found here. This also has extensive documentation in Markdown.

Learn more about OpenSSL here from the OSSL Guide. An interesting application of OpenSSL's capabilities is implementing systems using QUIC (a modern transport layer protocol built on UDP).

Monday, 19 October 2026

From "process containers" to control groups

The Linux feature of control groups (or cgroups) originated in what was originally called "process containers". cgroups are a Linux kernel feature.

Read the Kubernetes (K8s) Source Code

The Kubernetes source code is available on GitHub.

In addition to reading the source code, it is useful to consider the intellectual origins of K8s in "Borg".

It is often portrayed as the "spiritual" open source successor of Google's Borg, a cluster manager running hundreds of thousands of jobs, across thousands of applications, running on clusters each of tens of thousands of machines.

The Borg paper covers how shortcomings in Borg were addressed in the design of Kubernetes (this is worth understanding/being aware of). There is an overview here from ACM Queue called "Borg, Omega and Kubernetes" (Omega was an offspring of Borg).

(Historical note: Borg in turn was the successor of two internal Google systems, Babysitter and Global Work Queue, both of whose design predated the introduction of Linux control groups).

The Borg paper also mentions the Google Container Enginer (GKE), which is a Google-hosted version of Kubernetes.

Saturday, 17 October 2026

What Linux version runs in your WSL shell?

lsb_release -a

LSB modules are components defined by the Linux Standard Base. They specify standard libraries, commands and runtime behaviours - ensuring compatibility across Linux distros. The LSB project is led by the Linux Foundation.

Tuesday, 13 October 2026

Does Devin Do The Trick

Devin (from Cognition) is billed as the world's first autonomous software agent. But does Devin do the trick? Can it solve some of the thorny problems in agentic programming?

Logos using or trialling Devin include (in banking) Citi, Goldman Sachs, Santander, itau (in tech) openrouter and servicenow, (in media and telco) Fox, AT&T and (in startups) Modal.

Sunday, 11 October 2026

Control-Shift-Escape

This is your shortcut to Task Manager. Use it periodically to build intuition about system resource usage.

Friday, 9 October 2026

Protocol Downgrades

Protocol downgrades, also known as downgrade attacks, bidding down attacks and rollback attacks, is when a computer system is coaxed into abandoning a high quality mode of operation in favour of a lower quality mode of operation.

A historical example was a flaw in OpenSSL that enabled an attacker to use a lower version of TLS between client and server.

What is HSTS?

HSTS is HTTP Strict Transport Security. This is a web security policy defined under RFC6797 forcing browsers to use HTTPS only. This protects users from attacks like protocol-downgrade and cookie hijacking.

Sunday, 4 October 2026

Internet Gateways (IGWs) In Depth

All WinJoes know what an internet gateway is. Many affectionally refer to these as IGWs. But few know what these gateways do in amazing depth.

We aim to bridge that gap and confer, dare we say it, in-depth knowledge. We educate the new generation of "gateway gurus", or "IGW gurus".

So one question for you - NAT. How do IGWs interact with NATs - if at all? Does this differ in AWS versus other clouds? Exercise for the reader.

Subnets are Routing Boundaries not Security Boundaries

AWS, as well as other cloud providers, use subnets to partition virtual networks (e.g. in AWS VPC - Virtual Private Cloud).  

These subnets divide up the IP address space into separate compartments for routing traffic.

In AWS, another way of saying this is "each subnet is a slice of your VPC's CIDR block".

Each subnet block in AWS is tied to a particular AZ, or Availability Zone. Subnets cannot span AZs and this preserves the availability pattern (e.g. one private subnet per AZ).

There are many types of subnet in AWS.  Examples are:
  • Public subnet - subnet has a direct route to an internet gateway. Resources in the public subnet can access the public internet.
  • Private subnet - subnet has NO direct route to an internet gateway. Resources in the subnet require a NAT device to access the public internet
  • VPN-only subnet - the subnet has a route to a Site-to-Site VPN connection through virtual private gateway. The subnet has no route to an internet gateway
  • Isolated subnet - not connected to the internet - in fact, no routes to destination outside its VPC
  • EVS subnet - a type of subnet created by Amazon EVS (very specific to VMware)
(Sidebar: internet gateway - bridge ("network bridge","network component")  between private network and the internet,enabling traffic routing, protocol translation, NAT, DHCP and security filtering)


Choosing Network Size in AWS - Forward Slash Notation

Network size (in terms of IP address ranges) in AWS is specified using CIDR notation. 

(Sidenote: CIDR stands for classless interdomain routing, which replaced the now obsolete classful networking architecture which prevailed from 1981 to 1993, when CIDR was introduced.  If you are interested in the classful system have a look at RFC 791 which covers IP and describe the class system).

Example:

192.162.1.0/24

The forward slash 24 means the first 24 bits are fixed.  The rest (i.e. last 8 bits) are flexible.

From the AWS documentation: 

"When working with networks in the AWS Cloud, you choose your network size by using CIDR notation. In AWS, the smallest IP range you can have is /28, which provides 16 IP addresses (2^4). The largest IP range you can have is a /16, which provides 65,536 IP addresses (2^16)."

AWS Global Infrastructure and Services

AWS Regions and Availability Zones

AWS Service Endpoints

AWS Services by Region

Python secrets module

The secrets module in Python is used to generate cryptographically strong random numbers.

This should be used in preference to the random module, for modeling and simulation, not cryptography.

The background -

Random numbers are used in cryptographic applications e.g. in key generation, initialization vectors and nonces, and salts in certain signature schemes.

One-time pads also require a truly random source.

Friday, 2 October 2026

Hennessy and Patterson - The "HP" Book

You know if you know.

The "HP Book's" Take on Parallel Processing

Parallelism at multiple levels is a driving force of computer design.  

Belief in that driving force, in pushing it forward, in harnessing it for the progress of humanity - is essential for the computer-oriented changemaker.

Fundamentally applications have two types of parallelism - the data-level and the task-level. Data-level parallelism is what makes GPUs so powerful.

Computer Architecture: A Quantitative Approach

Computer Architecture: A Quantitative Approach is a constantly-updated "classic" of computer science. 

It is written by authors John Hennessy and David Patterson.  It is thus sometimes referred to in certain circles as the "HP book".

John Hennessy developed one of the first commercial RISC microprocessors. He received the Eckert-Mauchly award (IEEE Computer Society) in 2001 for contribution to RISC processors.

David Patterson has been teaching computer architecture at UC Berkeley since 1977 and has received a Distinguished Teaching Award from the University of California.

One of the reviews of the 5th Edition (published in 2012) praise its:

           "revised chapter on data-level parallelism, which demystifies GPU architectures".

James Hamilton of Amazon Web Services (Distinguished Engineer) compares the book to a "fine wine".

Making Programs Fast on Modern CPUs

A great GitHub resource on "making programs fast on modern CPUs".

HTTP 429

When a client request exceeds the number of requests allowed in a certain time frame.

Tuesday, 29 September 2026

Apache Airflow

Apache Airflow is a popular tool with data engineers.  

With it you can programmatically create, schedule and monitor workflows. It's kind of "workflow-as-code". 

Pipelines are defined in Python, can can be built dynamically. There is good cloud integration.

Airflow also makes use of the Jinja templating engine.

It also has a command-line interface (Apache Airflow CTL, or airflowctl) that interacts exclusively with the Airflow REST API.

Incautious Experiments of the AI Labs

Cal Newport (of "Deep Work" fame) makes the excellent point of AI labs being guilty of "incautious experiments" to trump up the significance of their work - specifically a "narrow band of incautious experiments" which the "frontier labs" have executed.  

He argues for specificity on what experiments they are running and move away from thinking of AI as a "singular technology on an inevitable, fixed trajectory".

He covers this in the blog post "It's time to investigate the AI Labs".

Sunday, 27 September 2026

P99 Latency and its Significance

P99 latency (or 99th percentile response time) - refers to the 99th percentile of request response times - in other words, the "slowest  1% of requests".

Friday, 25 September 2026

Programming "In the Large"

This term (coined in 1975 in a paper "Programming in the large versus programming in the small") refers to programming large-scale software systems.

It embodies principles like modularization, high cohesion and loose coupling, as well as formal project management.

The Browser As Sandbox

A "browser sandbox" isolates pages and scripts in a restricted environment. This can prevent malicious sites from accessing your files and doing other dangerous things on your machine.

Modern browsers run rendering and JavaScript execution in low privilege processes, with a separate "broker process" (or "mediator process") controlling access to system resources (process isolation)  Renderer processes cannot read files, launch programs or interact with other applications.

Types of browser sandboxing include local sandboxing - where the sandbox is built into browsers (Chromium, Firefox, Safari), remote/cloud sandboxing where websites are run in isolated VMs streamed to your machine, and online URL sandboxes (services like Browserling which allow you to open URLs in disposable remote browsers).

Browser sandboxing is a foundational security layer in modern browsers and remote isolation platforms.

Thursday, 24 September 2026

One Billion Bytes - It's Not "Big Data"

One billion bytes is not big data.  But it is a big number.  A number equal to 10^9. 

A short form for one billion is giga- in the International System of Units (SI). 

The unit symbol for the gigabyte is GB.

Code 43

Code 43 means Windows disabled a device because its firmware reported a fault. 

You may see it presented thus.

"Windows has stopped this device because it has reported problems (Code 43)".

In fact, the device in question may be perfectly fine.

Tuesday, 22 September 2026

Ralph Loops

A Ralph Loop is an autonomous agent tool that runs a coding model repeatedly to complete PRDs. 

The concept and inspiration is described by Geoffrey Huntley.

Friday, 18 September 2026

What Scale is Your Big Data

terabytes (TB) - 1000 gigabytes (10^12 bytes) - used in consumer storage

petabytes (PB) - 10^15 bytes  or 1000 TB

exabytes (EB) - 10^18 bytes or 1000 PB

Zettabytes and yottabytes are even bigger measures of memory.

Friday, 11 September 2026

Marker Icon in Microsoft Word

The "marker icon" on the Font group in the Ribbon is what determines background (highlight) colour. It can be hard to identify when the background colour is set to grey and thus blends into the ribbon.

Think of Programming as a Martial Art

Something that requires continuous practice and continuous learning.

Thursday, 10 September 2026

Databricks Apache Spark-Oriented Origins

It is enlightening to reflect that Databricks grew out of the AMPLab project (AMPLab was an acronym for Algorithms, Machines and People Lab) at UC Berkeley which worked on a variety of big data projects.

AMPLab invented Apache Spark, Apache Mesos (for compute cluster management, retired in August 2025, having lost mindshare to Kubernetes which was backed by Google and CNCF) and Alluxio. Of these projects, Spark is currently the most impactful product to come out of the AMPLab project.

It was founded in 2013 and offers a cloud-based platform for data analytics and AI. It operates in Azure, AWS and GCP (the "big three" providers).

Databricks the data "lakehouse" architecture, combining aspects of data lakes and data warehouses for managing structured and unstructured data. The company develops the Delta Lake open source project adding ACID transactions to data lakes. A paper describing the challenge of adding ACID transactional capability to data lakes has been published (Armbrust et al).

To recap: ACID is an acronym which stands for atomicity, consistency, isolation and durability. These properties are used to characterize reliable database transactions and was first expounded in an influential 1983 paper "Principles of Transaction-Oriented Database Recovery" (Theo Harder and Andreas Reuter).

Literacy is a Superpower in Software Engineering

Literacy is literally a superpower in software engineering. It is the reason so many good software engineers are avid readers and definitely not just of technical tomes, but enjoy all sorts of fiction (though science fiction is a particularly popular genre for obvious reasons).

Structured Streaming in Spark

Structured Streaming is the stream "processing engine" in Spark, designed for scalability and fault tolerance.  

It is build on the Spark SQL engine. Pause. This has implications to the programming model.

The "weird element" in Structured Streaming (following on from our comment on SQL engine above) is that streaming computations are expressed like queries on SQL tables (check).


A crazy case study is presented below.

Suppose you want to maintain a running word count of text data from a data server listening on a TCP socket.  This can be expressed in structured streaming!

Ironically, the most concise representation for this is in R which is least best supported language in Spark.

This is what the Python looks like.

import [STUFF]  ---> from pyspark.sql import SparkSession

spark = SparkSession(  ... .appName("WordCount") ..)

Now we create a streaming DataFrame representing text data received from the server listening on localhost:9999 and transform the DataFrame to word counts.

A quick word on port 9999. Why use this?  It is easy to remember and avoids conflicts with standard ports. Java apps sometimes use it for debugging.

(To check if it is being used: netstat -ano | find "9999").

Tuesday, 8 September 2026

Scala vs Java - The Duel (Both JVM languages)

Scala and Java are highly compatible as both are designed to run beautifully on the JVM (the JVM spec should be read/re-read periodically for all serious Java enthusiasts).

Scala uses lambda expressions more aggressively than Java. Both use invokedynamic under the hood.

Scala dominates now in distributed systems (Spark, Akka) particularly for data engineering and ML pipelines, as well as high performance back-ends.

The following is a good website to keep up to speed on Java: Dev.java: The Destination for Java Developers.

Mechanics of RDDs - Python Examples

A Simple Map-Reduce Pattern Example

Here are some examples showing the "mechanics" of how RDDs work in Python.

lines = sc.textfile("data.txt")

We shall first count the lines in the text file (our data file).  The line above creates a base RDD from a text file. The data is not loaded into memory - it's just a pointer to a file at this stage.

We then do a line count of the data.

lineLengths = lines.map( lambda s: len(s))

So here we create the array of lengths.  We then apply reduce to distil this to a single number (classic map-reduce pattern).

totalLength = lineLengths.reduce( lambda a, b: a+b )

Due to lazy evaluation, when we do the map operation, nothing is computed. Only once we do reduce, which is an action, is the computation performed with Spark breaking it down to run on several machines.

If we want to use lineLengths again later, we can do

lineLengths.persist()

before the reduce operation, to save the output into memory after first-computation.

Parallelized Collection Example

Parallelized collections are easily created using a special SparkContext method.

data = [1, 2, 3, 4, 5]
distData = sc.parallelize(data)

Once built, this distributed dataset (distData) can be operated on in parallel.  For example, to add up the members of the list we can do: distdata.reduce( lambda a, b: a+b ).

RDD - Regen vs Replication

RDDs are not replicated the way databases typically are replicated. Instead, the transformations converting data between states are memorised.

To make this regeneration efficient, only partitions on lost nodes are recomputed, and assigned to working nodes.

Note: some lineage chains can be very long. In these cases, Spark can checkpoint an RDD to stable storage (HDFS/S3). This prevents "ruanway recomputation".

The Different Definitions of Ground Truth

Ground truth - informally - means information known to be true. It is based on empirical evidence rather than inference.

The origin of the term was in remote sensing literature in 1972 in usage by Nasa to reference data about the earth's surface.

The term has since been hijacked by statistics and machine learning communities with altered semantics.

Monday, 7 September 2026

Why Spark Works - Secrets of its Parallel Processing Powers

A Spark progam consists of a driver program that runs the user's main function and runs several parallel operations on a cluster.   It is a parallel processing engine for data. The data structure that enables this is the RDD abstraction.

RDDs are resilient distributed datasets (perhaps a better acronym could be RDDS?) - a collection of elements partitioned across nodes of a cluster that can be operated on in parallel.  

Clearly, this definition speaks to the distributed dataset aspect, but what about the resilient aspect?  Can we say it is implicit in the "can be operated on in parallel" dimension? 

We need to probe what that actually means, to uncover the "secret" of RDDs. Resilient means data remains correct and queryable in the event that nodes go down (which can happen in the physical world).

RDDs are born as files in the Hadoop system (or any Hadoop-supported file system) or an existing Scale collection. RDDs can be persisted in memory for efficient processing and they are resilient against node failures (this bit needs to be understood better - how is this achieved - redundancy of storage??).

(Footnote - once you probe deeper you will start to see ideas percolating from older frameworks like MPI in C++).



Learning Spark from the Latest Docs

Spark is best learned from the various programming guides. 

Access to these can be found from links on its latest documentation page.

These include a Quick Start, an RDD guide, an overview of Datasets and DataFrames and at least two guides on Streaming (1) Structured Streaming, and (2) the legacy functionality of Spark Streaming. 

MLib is also worth understanding, as is GraphX for graph processing, including graph parallel processing.

In terms of interfacing with other languages, Spark and Python is encouraged, whereas Spark and R is deprecated (through PySpark and SparkR respectively).

You should also be familiar with Spark Declarative Pipelines (SDP).

There is an associated knowledge base around deployment - including making Spark play well with Hadoop, Kubernetes and Amazon Elastic Compute (EC2).

Saturday, 5 September 2026

The Oh-My-Pi Coding Agent

The oh-my-pi coding agent (aka omp) is getting more attention.  It is a fork of Mario Zechner's Pi.

Lean - Can we Trust the Trust Engine?

The de Bruin principle - it's all in the Kernel

Once upon a time, in the 1960s, a computer scientist called de Bruijn build a system called Automath. His full name as Nicolaas Govert de Bruijn. It incorporated ideas such as dependent types to make it work.

We call him here a computer scientist, but he can equally be called a mathematician, having made contributions to number theory, analysis, combinatorics and logic, and served as Professor of Mathematics at the University of Amsterdam.

One of the things he studied were sequences now known as de Bruijn sequences. Polish programmer Andrzej Trybulec's Mizar system was influenced by Automath.

De Bruijn came up with the idea of creating a kernel separate from the rest of his system.  This kernel is correctness-validation component of the system - the "rule-checker" if you will. It is like the part of a chess computer that validates legal moves - rather than makes smart moves.

Keeping the kernel separate is known as the de Bruijn principle, joining lots of other artefacts attached to his name (such as the de Bruijn-Newman constant, which is closely associated with the Riemann hypothesis).

What underlying logic to use for the Kernel?

"First order" logic, augmented with axioms of set theory, can serve as a good starting point for a theorem prover/correctness checker.   This approach results in a small kernel but lots of coding for complex mathematics. More complex underlying systems are available, including Higher Order Logic (HOL) and Calculus of Inductive Constructions (CIC). Lean uses the latter, or at least features of the latter, to increase expressivity and make programming easier. Features used include proof irrelevance, quotients and nested inductive types.

Taking one example: proof irrelevance is the principle that given a proposition and any two proofs of the same, the two proofs are (considered) equal. This simplifies type theoretic reasoning.

The result is that Lean has a kernel that is much smaller than Lean itself but verifying it is not trivial.

lean4lean and the "multiple kernel" principle

Creator of Lean, L. de Moura, has advocated the "multiple kernel" principle, strengthening the de Bruijn principle by supporting multiple independent kernels.  Lean 3 thus had three independent kernels, one in Lean, one in Haskell and one in Scala (trepplein). Lean 4 invalidated these kernels. Nanoda, an independent kernel in Rust, was thus commissioned together with procedures to write more kernels.

lean4lean was started by Mario Carneiro, an implementation of Lean in Lean which includes an independent kernel.  Efforts are ongoing to verify kernel correctness.