Hi there 👋🤖

Welcome to my blog, it’s a mix of projects, experiments and personal notes for posterity. I’m interested in programming as well as knowledge management, especially if I get to do it with Emacs.

Building tree-sitter languages for Emacs

Emacs 29 tree-sitter support If you follow Emacs' development, you’ll probably have heard that the upcoming 29 release will have support for tree-sitter, which is an incremental code parser. In short, it provides a syntax tree for the source file that you’re currently viewing. This is especially useful for syntax highlighting as well as code navigation. Since it builds a syntax tree for the language, we can actually get proper highlighting that isn’t regex dependent, Emacs' highlighting strategy for most languages....

December 31, 2022 4 min

Managing and grouping files with Python

Introduction We are sometimes faced with systems which generate lots of files that we have to deal with, be it for triage or later reading; it could be logs, data dumps, automatically generated reports and so on. In many cases, we don’t have a say in the how and why of the files' organization and might want to deal with them automatically, later on. Which is what I’d like to tackle here, using Python standard library....

June 6, 2022 9 min

Python getters and setters

If you have ever worked with a language such as Java, the concept of getter or setter won’t be foreign to you. If you haven’t, getters and setters are methods which let you access and modify class attributes; usually where you wouldn’t have access otherwise because of the restricting scope. It may then come as a surprise that Python, where all members are public, also has a concept of getters, setters and deleters....

February 21, 2022 7 min

Writing a virtual machine

I stumbled upon a tutorial to write a VM (virtual machine) some time ago and I thought it would be interesting to try it for myself. The introduction outlines a relevant point: creating a VM introduces more abstraction from the machine, which has a complexity and cognitive cost, borne by the programmer. Yet, writing this simple virtual machine also lets us take a peek into what a computer does under the hood as well as build a useful mental model about machines' internals....

First blog post: an introduction

This is the first post to populate my blog, which was built with Hugo. The blog is held together in an org-mode file and exported with ox-hugo, a backend that allows for exporting org files to a Hugo compatible markdown. Presentation I’m an avid Emacs user, it has been my main driver for around three years now. My init file can be found at this address, it’s a melting pot of programming and writing utilities....