Box to save memory

5 minute read Published: 2026-04-23

I saved 475 MB out of the 895 MB used by a real-world Rust program by changing the layout of some structs and the way I was deserializing JSON files.

ddoc

6 minute read Published: 2025-12-10

I moved the documentation of my free programs from MkDocs to ddoc.

Here's why.

Search with broot - the good moves

9 minute read Published: 2025-11-24

This article is both for people who don't know broot yet, and for those who do but are probably less efficient at searching than they could be.

Practical Pedantism

3 minute read Published: 2025-10-13

What if you could actually use all those pedantic lint warnings without drowning ?

A better tree command

3 minute read Published: 2025-09-02

You certainly know the old tree command.

Or maybe you don't, because it's not installed by default anymore on new distributions.

Why ? It never kept the promise of an overview of the current directory.

Rust macros for scenario tests

4 minute read Published: 2025-08-31

I present here a macro supported approach for tests in Rust.

Cancelable background tasks in Rust

6 minute read Published: 2025-01-26

When a task isn't instant, you usually don't want to run it on the UI thread.

I present here a simple enough framework to run tasks in background.

Biome + Bacon

4 minute read Published: 2025-01-22

Biome is a fast linter.

Bacon is a background code checker.

They're the perfect team to check, fix, and improve your JavaScript / TypeScript / CSS.

Bacon for everything - a roadmap

6 minute read Published: 2024-11-08

You want to use bacon on non rust projects? So do I.

String oriented serialization in Rust with Serde

4 minute read Published: 2024-10-13

Serde's derive is fantastic but if you want humans to read and write files, you can't just depend on the standard derive for everything.

Having your values be written as simple strings is often more convenient.

Why broot doesn't enter zip archives

6 minute read Published: 2024-07-08

Broot lets you navigate your filesystem and gives you an overview of any directory.

It does it by trimming folders in a balanced way, clearly outlining the structure of the tree.

Navigating zip archives looks like a natural extension, doesn't it ?

Why sort code? How to do it?

10 minute read Published: 2024-04-02

Your code is full of lists. And some of them should be sorted.

From Terminator To Wezterm

4 minute read Published: 2023-11-17

This post doesn't compare Terminator and Wezterm. This is the help I would have loved to find when starting to try Wezterm coming from Terminator.

A Kind Introduction

6 minute read Published: 2023-11-15

How to leverage the Rust compiler to prevent identifier misuse ?

How to go from ec2ba151-7acf-43a9-bb98-6f5331992f42 in your database to "Cust_ec2ba151-7acf-43a9-bb98-6f5331992f42" in your REST/JSON API ?

How to do it at zero runtime cost, with no boilerplate, with a derive macro ?

Thinking in trees and lines, formatting Rust

4 minute read Published: 2023-09-29

I see my code projects in trees and lines, and it affects how I want it to be formatted.

How to store secrets

11 minute read Published: 2023-06-06

My requirements and solution for a safe storage of personal secrets.

Contributing to my FOSS projects

4 minute read Published: 2023-06-02

As I maintain several FOSS projects, I figured it would be convenient to have in a central place some concise guidance on contributing.

Manage keybindings in a Rust terminal application

3 minute read Published: 2022-07-28

To deal with key events in your cross-platform TUI, you'll probably need to

  • determine what keybindings you can really use,
  • use convenient hardcoded keybindings,
  • and read keybindings from a configuration file

Adjust your application for a light or dark terminal

5 minute read Published: 2022-07-16

So you want your unix application to select different sets of colors depending on whether the terminal is set to a light or dark theme ?

Here's an how-to. It's first targeted at Rust programmers but each step can be ported to other languages.

How not to learn Rust

16 minute read Published: 2021-12-15

I've seen too many good programmers struggle learning Rust, or even give up.

Here are the mistakes I've seen which may make you fail at learning Rust. I hope this list will help you avoid them.

Reclaim space on disk

4 minute read Published: 2021-11-02

As my disks tend to be quite messy with time, I had to devise ways to reclaim space, which means both spotting big directories and files, and to deal with the thousands of duplicates you can't delete one per one.

Here's my toolbox for cleaning my disks on linux in 3 major steps:

  1. Confirm the problem with dysk
  2. Spot and delete big files and directories with broot
  3. Delete thousands of duplicates with backdown

Proper conversion from XLS to PDF in Java

2 minute read Published: 2021-06-30

Generating or modifying Excel files in Java is easy with Apache POI.

But when you generate Excel reports, you always end up having to export them in PDF too.

If you look for a library for this conversion, you'll find many ones, most of them expensive, and none of them giving acceptable results.

I explain here the efficient and reliable enough solution I've used in a Java application.

A SQL database and an interactive grapher in a single HTML file

5 minute read Published: 2021-05-04

Glassbench is a Rust micro-benchmark harness. It uses a SQLite database to store bench measurements.

I wanted to give it the option to open an interactive data viewer and grapher, with ability to search the history.

An usual web based solution for that is to run a simple web server.

But Glassbench is executed by cargo and immediately quits and I didn't want it to leave behind anything to clean, especially not daemons. Besides, when you open a single HTML local file, it can't query additional resources, due to browser's security protections.

So I decided to make it a single temporary html page opened in the user's browser.

Why broot switched to Hjson for its configuration files

8 minute read Published: 2020-12-22

TOML was originally the only format for configuring broot.

Here I explain why Hjson is now the preferred one.

Why TUI applications ?

5 minute read Published: 2020-11-22

Twenty years ago, most of us thought TUI applications were going to disappear. TUI were just a vestige of low capabilities computers. There was no reason for TUI not to die with the rise of the personal computer.

This didn't happen. We still love to use TUI applications.

Why can be kind of mysterious.

Broot 1.0

5 minute read Published: 2020-09-02

8 months ago, but it feels like years ago, somebody shared a link to broot on Hacker News. There was some very kind messages and broot gained a few users. But I had more in my TODO list.

A lot was done since.

At first sight, broot didn't change much: It looks the same and what could be done then can still be done the same way, 500 commits and 60 releases later.

For better prompts

5 minute read Published: 2020-07-29

Prompts I see everywhere are very bad in my opinion.

They're sometimes fancy, full of bling which amazes coworkers, but usability nightmares.

Broot content search

4 minute read Published: 2020-07-26

An example of an efficient search workflow based on broot, a general purpose file manager.

Use broot and meld to diff before commit

4 minute read Published: 2020-07-05

Before every commit, I do a short review of what I wrote. And usually there are a few last things to fix.

whoami

1 minute read Published: 2020-07-04