Tag: data structures

12 posts

remoras diaries: part 1

i need a place for notes that works the way i want (and need).

Jul 21, 2026

Visualizing Ukkonen's Suffix Tree Algorithm

I learned algorithms from textbooks and papers, building mental models from pseudocode and hand-drawn sketches. The hardest part was never reading the algorithm: it was seeing what it was actually doing to the data structure in memory. This post is the tool I wish I had back then.

Mar 9, 2026
Three flavors of sorting Go slices

Three flavors of sorting Go slices

Compare three Go slice sorting methods: sort.Interface, sort.Slice with closures, and modern generic slices.Sort with type safety.

Mar 21, 2025
Nil comparisons and Go interface

Nil comparisons and Go interface

Debug tricky nil comparisons in Go interfaces. Understand dynamic types, type assertions, and use reflect for generic nil checking.

Mar 11, 2025
Go slice gotchas

Go slice gotchas

Avoid common Go slice mistakes: shared backing arrays, nil vs empty slices, append behavior, and slice copying pitfalls explained.

Feb 5, 2025
Devtools FM icon
Devtools FM
devtools.fm

Anselm Eickhoff - Jazz Tools

Anselm Eickhoff presents Jazz Tools, reimagining client-server boundaries for local-first apps with collaborative data structures.

Dec 1, 2024
Topological sort

Topological sort

Implement topological sorting in Go to order tasks by dependencies. Process directed acyclic graphs for build systems and scheduling.

Oct 12, 2024
Type assertion vs type switches in Go

Type assertion vs type switches in Go

Master Go type assertions with i.(T) syntax and type switches. Extract concrete types from interfaces safely with ok idiom examples.

Jan 30, 2024
Associative arrays in Bash

Associative arrays in Bash

Learn how to use associative arrays in Bash to create key-value pairs, mimic dictionaries, and manage complex data structures in shell scripts.

May 2, 2023
Pick random values from an array in SQL(ite)

Pick random values from an array in SQL(ite)

Emulate Python's random.choice in SQLite using JSON arrays and the random() function. Populate tables with realistic test data efficiently.

Sep 1, 2022
Pre-allocated lists in Python

Pre-allocated lists in Python

Understand CPython list memory allocation: how lists store pointer references, grow dynamically, and when pre-allocation with [None]*n helps.

Mar 26, 2022
Interfaces, mixins and building powerful custom data structures in Python

Interfaces, mixins and building powerful custom data structures in Python

Build custom data structures with Python's collection.abc mixins, abstract base classes, and interfaces for dict-like and set-like objects.

Jul 2, 2020