24 days of Rust – nom, part 2

We learned the basic concepts of nom
yesterday
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…

Similar

Why Not Rust?

I’ve recently read an article criticizing Rust, and, while it made a bunch of good points, I didn’t enjoy it — it was an easy t... (more…)

Read more »

Arenas in Rust

There’s been some discussion about arenas in Rust recently, and I thought I’d write about them. Arenas aren’t something you would typically reach for … (more…)

Read more »

First Impressions of Rust

I've been wanting to write a big project in Rust for a while as a learning exercise, and actually started one in late 2018 (a FUSE server implementation). But then life happened and I got busy and never went anywhere with it. Due to certain world circumst... (more…)

Read more »