24 days of Rust – nom, part 2

We learned the basic concepts of nom
when we wrote a parser for HTTP headers. HTTP is by its nature a text protocol.
nom however always works on bytes (byte array slices, denoted in Rust with
&[u8]). This makes it perfectly suitable for pars…


5 tips for writing small CLI tools in Rust

Rust is a great language to write small command line tools in. While it gives you some tools for common tasks, allows nice abstractions, it also has a type system and approach to API design that lead you to write robust code. Let me show you some techniqu... (more…)

Read more »

Stroustrup’s Rule and Layering Over Time in Rust

Programming language experts like to claim that syntax doesn't matter, that semantics is all that counts. Don't believe them! They're overrotating on a common, pre-rigorous misunderstanding of language design as superficially aesthetic. The study of seman...

Read more »