Naming is hard

Too dangerous for C++

2024-02-09  7 minute read

Some patterns are only made practical thanks to Rust's memory safety, and too dangerous to use in C++. Here's a concrete example.

A curiously recurring lifetime issue

2023-12-15  8 minute read

Naming is hard. After all, it is one of the two hard problems of computer science, with cache invalidation and off-by-one errors.

Mostly we would assume that poorly chosen type and variable names would merely make the code harder to read, but turns out they can lead to undefined behaviour, too. And no, I'm not talking about the reserved identifiers in C (I mean, who would use _Foo or __init__ as identifiers? Nonsense!), but rather something a bit more subtle.

About

2023-11-04  1 minute read

Avatar, a raccoon
Hello World! I'm Louis Dureuil, a Senior Engineer at Meilisearch and your resident raccoon 🦝

PhD and Comp. Sc. Engineer from Ensimag, I'm interested in programming languages, coding practices, data structure and optimization, compilation (I have experience with writing JIT compilers and the LLVM framework), code analysis (binary, source) and fault injection.

A C++ dedicated practitioner, it is the language I love to hate, while Rust is the one I love to love ❤️

Naming is hard is a personal blog mostly about programming, destined to house my code ramblings.

Find me on Mastodon or GitHub!