Skip to content

Algorithms

An algorithm is a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of problems or to perform a computation. They are the fundamental building blocks of any piece of software.

Key aspects include:

  • Efficiency: How well it performs in terms of time and memory (O(n)O(n)).
  • Correctness: Whether it produces the correct output for all valid inputs.
  • Design Patterns: Common approaches like divide and conquer, dynamic programming, or greedy algorithms.

August 2026

  • A surveyor aims a rangefinder past the edge of a large blue sphere.

    Ray Marching in GLSL, One Distance at a Time

    Three interactive GLSL labs reveal how signed distances steer a ray, assemble a scene, recover surface normals, and fail when the distance bound lies.

    Read
  • A red trail marker stays in view as mats crop the same mountain print.

    Can hidden data survive image compression?

    Why repeating fragile pixel bits is not enough, and how a robust hidden channel must match its signal, redundancy, and synchronization to the damage it will face.

    Read
  • The specimen's black and red poster beside an enlarged green channel value changing from 242 to 243.

    How a working website fits inside a PNG image

    Recover a working light switch from an ordinary-looking PNG, then follow one hidden bit through a lossless save and a JPEG conversion.

    Read
  • A printmaker compares a finely shaded lighthouse print with a coarser version.

    How JPEG turns pixels into frequencies

    Follow one image block as JPEG turns visible detail into frequency weights, rounds some of them away, and reconstructs pixels that look right but are no longer exact.

    Read
  • Four handmade tiles grow gradually darker in even steps.

    How PNG compresses pixels without changing them

    See how PNG exposes the repetition between neighboring pixels, compresses those differences, and still keeps an exact route back to every original sample.

    Read
  • Two mosaics share a design, with subtly different blue tiles preserved in one sample.

    Why WebP can be lossy or lossless

    Why two files called WebP can make opposite promises: one quantizes a predicted image, while the other keeps every transform reversible.

    Read
  • Two archival sleeves hold the same mountain print as a red tab is swapped.

    A File Doesn't Know What Kind of File It Is

    Rename a JPEG to .zip and its bytes stay unchanged. See how file extensions, media types, magic bytes, and parsers identify files—and where they disagree.

    Read
  • A watchmaker fits a red keycap together from several small parts.

    Why JavaScript thinks 7 is an emoji

    A Unicode regex says 7 is an emoji. The reason reveals the difference between a character property, visual presentation and a complete emoji sequence.

    Read
  • A hand lifts a single die-cut sticker carrying four paper figures.

    Why JavaScript says this emoji is 11 characters long

    Why one family emoji counts as 11 UTF-16 units—and how code points, grapheme clusters and bytes answer different questions.

    Read

July 2025

  • Two tagged keys leave different impressions in separate clay squares.

    The Evolution of Password Security: From Basic Storage to Argon2

    A level-by-level journey into password security. Discover why a simple hash isn't enough and how to defend your users from hackers and data leaks, from salt and pepper to Argon2.

    Read
  • Two paper blocks feed a letterpress that leaves one red impression.

    SHA256 and the Length Extension Attack

    SHA-256 is a cornerstone of security, but it's not invincible. Discover how its internal structure opens the door to the feared length extension attack and why HMAC is the fundamental solution.

    Read

December 2022

  • A hand sorts fanned envelopes by matching red marks along one edge.

    How to Use a Reverse Trie for Fast Disposable Email Domain Detection

    Learn how to use a reverse Trie to efficiently detect disposable email domains. Optimize your domain lookups with a scalable, memory-efficient solution tailored for fast and precise results.

    Read

Keep reading