Programming

Articles

Gallery

Explore

Articles

Generating short ordered IDs with any insertion pattern

Say you have a set of elements which need to be ordered, and you want to give each element an ID which reflects its position in the ordering.

May 2024

Counting uniques using only O(1 byte)

There are occasions when you need to know how many unique entries there are in an array or how many unique values have been seen in a stream, but do not…

Apr 2024

On address space sizes

We are well into the 64-bit era, and a 64-bit pointer allows for an addressable space of 2^64 bytes, or 16 exabytes.

Apr 2024

A pure JavaScript CPU emulator

A CPU is a device which takes instructions from RAM and performs actions based on those instructions.

Jan 2023

Comparison of JavaScript binary data objects

There are a set of objects for dealing with binary data in JavaScript, which are slightly different on NodeJS and in the browser.

Jan 2023

Composable typechecking in JavaScript

If you are working in pure JavaScript on a project of any reasonable size, type errors will often become a major source of pain unless you have a process…

Jan 2023

Exceptional Parsing, or using JavaScript exceptions as a substitute for algebraic expressions

Parsing is one of those intermediate-level algorithms, which, like state machines, you may not use on a day-to-day basis as a developer but their…

Jan 2023

Flattening 2D Data

Jan 2023

Program - aprogramming language

Jan 2023

Some JavaScript performance comparisons

In JavaScript there are often many ways to achieve the same common things

Jan 2023