NotDefine.dev

Defining the Undefined. Exploring system design, performance, and memory safety with Go and Rust.

  • void *notdefine; // Why this blog?

    notdefine.dev is a play on my name, Nicola De Filippo. It also fits: most of what I write about lives close to undefined behavior.

    This is an engineering blog. No hype, no AI trends. Deep dives into Rust and Go, internals, concurrency, performance, system design.

  • Order map in Go

    As you may know, it’s not possible to order a map in Go (just like in any language where maps are implemented as hash maps). However, we can achieve the same result by working with the map’s keys.

    The approach is to extract the keys into a slice, sort them, and then retrieve the corresponding values from the map using the sorted keys.

    (more…)