■ SEARCH.EXE
    recreational-programming

    Building a Local Voice-to-Text and Rewriting Assistant on Linux

    This article comes from a frustration I had with Discord Web. I didn't have the possibility to directly send a voice message. The only way to send one was to literally record my voice, save the file, and then send it manually. But that was enough to give me an idea: if I had a way to simply speak and immediately send the damn message, that would already be great. And then, imagine having a way to transcribe my voice directly into text and copy it straight to the clipboard; perfect for emails. Even better: a way to reformulate what I've said in different tones! That's the system I scripted yesterday, using keyboard shortcuts in my i3 environment, along with Bash, yad, notify, xclip, jq, ffmpeg, whisper.cpp, llama.cpp, systemd, and…

    journal

    A Look Back at My COVID-Era Home Gym

    During my teenage years, I was quite into weightlifting. When the COVID-19 pandemic hit, I decided to buy some equipment and build my own little home gym. Yes, this is a rather unusual article for my blog! But since I'm about to sell all this equipment, I thought it would be nice to document what I owned and preserve a little memory of that period. There are two common barbell and weight plate hole diameters: 28 mm and 50 mm. The latter is the standard used in most commercial gyms, as well as in powerlifting and Olympic weightlifting. These plates are designed to fit Olympic-style barbells, which typically weigh 20 kg and measure 2.20 meters in length. This type of equipment is generally designed to handle very heavy loads, making…

    journal

    How I Almost Fell for a Leboncoin Phishing Scam

    Yesterday, I was uploading listings for some fitness equipment I bought during the COVID period on the French equivalent of Craigslist (not https://www.craigslist.org/area/paris lol, but leboncoin.com ), which I was using for the first time. So, 13 listings and about four hours later, I received an offer, which I accepted. And boom: in Leboncoin’s rather terrible chat interface, a very professional-looking sales notification suddenly appeared: For someone who doesn’t know how the platform works, someone who has never used it before, or who has only ever been paid in cash during an in-person sale, this can look completely legitimate. After digging a little deeper, you find out that Leboncoin has what is essentially an escrow-like wallet system. The buyer can send the money through Leboncoin, where it is temporarily held…

    maths

    The Trick Is in the Representation

    This article is about several mathematical puzzles which will sharpen your reasoning. There will be several well-known ones, such as the Monty Hall problem, but also lesser-known ones, such as the mechanical scale and the balls. Each answer will be detailed. The lake and the water lily We have a lake and some water lilies on it. We know that the number of water lilies doubles every day and that on the 48th day, half of the lake is covered by water lilies. Copy ----------- |XXXXX | |XXXXX | |XXXXX | ----------- Now the question is: on which day will the lake be fully covered by water lilies? The reasoning is simple, indeed we know that each water lily doubles within a day. Also, doubling half of something gives you…

    linux

    Pacman, APT and dpkg: Under the Hood

    Package managers are often reduced to a few commands: install, update, remove. But behind those commands sits a much larger system involving repository metadata, dependency graphs, local package databases, binary archives, source packages and build tooling. In this article, we will start from the user-facing commands of pacman, APT and dpkg, then progressively move underneath them: how packages are queried, downloaded and tracked, how dependencies are represented, how .deb and source packages are structured, and finally how packages are rebuilt and managed at a lower level. Fair warning: this one goes deep. But if you have the guts to read through it, you should come out with a much stronger understanding of package managers. And that kind of understanding transfers surprisingly well to programming in general: separation of responsibilities, metadata-driven…

    linux

    Installing Gentoo the Hard Way

    In this article, we'll proceed to install Gentoo. This article follows the story of manually installing Linux distros which begins here https://julienlargetpiet.tech/articles/manually-installing-arch-and-void-linux-on-the-same-disk-with-uefi-and-grub.html where non Gentoo relative commands are explained in depth. Indeed, we'll focus on Gentoo specific architecture here. Setup We'll download the ISO here: https://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/. Choose the adequat architecture, for me it's amd64. Now, just copy the ISO onto an USB stick, or use Ventoy if you want. For me I just do: Copy sudo dd if=/path/to/iso of=/dev/sdb conv=fsync bs=4M status=progress Where /dev/sdb is of course my USB stick. Now I just plug the USB stick onto my PC and boot onto it. Hmm, you probably won't have this problem, but my screen cropped the tty and no way to fix this at this point, so I'll pipe the…

    linux

    Installing OpenBSD the Hard Way

    In this article, we'll go through the manual installation of OpenBSD and see the differences and similarities with Linux. The setup We'll directly download the latest image of OpenBSD, at the time the version 7.9 and copy it to a USB stick, you can also use Ventoy if you want. In Linux, we have the dd command to copy the entirety of an image to an external disk. Copy sudo dd if=install79.img of=/dev/sdX bs=4M status=progress conv=fsync Replace /dev/sdX by the name of your usb-stick, you can see it with lsblk or sudo fdisk -l. Booting After putting the usb stick to the PC you want to install OpenBSD to, choose to boot from this USB stick on its BIOS. Now, you'll be prompted the following: Copy Welcome to the OpenBSD/amd64…

    linux

    Manually Installing Arch and Void Linux on the Same Disk with UEFI and GRUB

    In this article, we'll deep dive into the manual installation of multi-distrributions in one disk. The Setup We'll install Arch And Void Linux on the same disk. In this case that's an external hard-drive that we'll plug into a computer through USB. So, we'll download the ISOs, wether each one on a separate USB stick or use Ventoy to install the 2 ISOs on the same USB stick. Targeting the hard-drive First, we boot into the Void live environment, here all is oaded into the RAM. So we first need to identify the hard-drive we'll install the 2 distribution into. We run: Copy lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS,PARTUUID,PARTLABEL,LABEL,MODEL,VENDOR,SERIAL,TRAN Output: Copy NAME SIZE TYPE MOUNTPOINTS PARTUUID PARTLABEL LABEL MODEL VENDOR SERIAL TRAN sda 447.1G disk Samsung SSD 870 EVO 500GB ATA S6PXXXXXXXXX sata…

    linux

    I Just Wanted Wi-Fi to Work on Linux

    About a week ago, I needed to set up a laptop for my mum to use while working remotely. The initial plan sounded trivial: install Debian, GNOME, connect it to Wi-Fi, and call it a day. Of course, the Wi-Fi part turned out to be considerably more interesting. The connection provided by the laptop's internal Wi-Fi adapter was slow and unstable, so instead of simply opening Speedtest and accepting whatever number it gave me, I started investigating what was actually happening. That investigation progressively took me through several layers of the Linux networking stack. First, we'll measure the quality of the connection ourselves using curl, ping, Bash and AWK. We'll separate DNS resolution, TCP connection establishment, TLS negotiation, server response time and transfer time, then calculate averages and standard deviations…

    software-computational-architecture

    Where R Data Pipelines Pay Their Cost: data.table, dplyr, fread, readr, and vroom

    My previous article was somewhat polarizing. Most readers responded positively, but some disagreed with the benchmarking methodology I used. That criticism is precisely why this article exists. To fully understand the pipeline architecture I developed, and why I ultimately chose it over the alternatives, I recommend reading the previous article first: data-table-vs-dplyr-in-a-data-pipeline.html In this new benchmark, I use a more rigorous methodology to produce more precise, reliable, and reproducible results. The goal is not only to compare execution times, but also to make the entire process transparent. Every experiment is designed to be reproducible, and the article can also be read as a practical tutorial for benchmarking this kind of data-manipulation pipeline. The entire raw work behind this article is available here: Article_RSHINY Packages version For those benchmarks, I'll use…

    software-computational-architecture

    data.table VS dplyr in a data pipeline

    Recently, I wanted to create an analytical dashboard for the visits on this blog, entirely server-side. This means reading the NGINX /var/log/statix.log file, reducing bot noise as precisely as possible, and outputting useful visualizations. I know that some libraries, like Streamlit in Python, allow this kind of analysis, but at the time, I was way more comfortable with R. My first version was absolutely awful in terms of performance, not only because I used dplyr, which is a good dataframe engine and noticeably better than base R’s dataframe engine, but also because of a completely awful execution order. In this article, I will not only show you the exact performance difference between the dplyr and data.table implementations, but also show you how much execution order matters in a real data…

    journal

    A CV, a Phone Number, and a Data Leak

    The other day, I was searching for the name of a friend on Google, and his personal Curriculum Vitae appeared as the second search result, just after his LinkedIn profile. It was a plain CV. And right in the first pieces of information, his phone number, address, and personal email appeared. So I asked him if he had intentionally uploaded his CV to this website. “Absolutely not!” That is what he answered. In fact, the page where his CV was uploaded was dedicated to static resources, and there was absolutely no way to see the name of the company that had uploaded it, because the domain name shown in the URL was just that of a hosting platform. So I searched for an ID found in the URL, typed it…

    journal

    My Overengineered YouTube Thumbnail Generator

    Following up on my YouTube channel creation from the previous article, on Mon. 25 May 2026 14:02:06 CEST, I wanted to write a program to automate the generation of my thumbnails. Since my face will be shown on my YouTube channel, i've studied YouTubers thumbnails that have their face visible, such as LowLevel. Anatomy of YouTube Thumbnails And I came to the following conclusion: The composition is simple -> arround 3 or 4 elements The Background -> minimalistic enough, just one color tone The upper body with (shoulders + face) -> The viewer sees the creator’s face before clicking, so the video feels less surprising once it starts. In theory, that can help retention. Note that we do not want the PNG of the YouTuber upper body + face beeing…

    journal

    A Practical Linux Setup for Recording Technical Videos

    On Sun May 17 21:35:37 CEST 2026, I decided it was time to start a YouTube channel to promote my articles. Here is the link: https://www.youtube.com/@control-room-11 I already had a (very) messy YouTube experience. I was absolutely brainwashed by the LukeSmith Wave at the time. With my Patched DWM ( larbs config for the initiated ;) ). I had just plugged a cheap webcam into USB 2.0, without tweaking any firmware-level settings to make the image look decent. In this article i will share the evolution of my setup across the ages as a practical guide so you can reproduce and understand each confs according to your needs. This article is aimed at beginner Linux users who want to build a simple but controllable video-creator setup. FFmpeg CLI - Practical…

    journal

    clap-de-fin

    Voici les liens des vidéos comme promis: PS: ce poste fais suite à ce message posté sur ma chaine: Copy Cette chaîne n’est plus active. Je me concentre désormais sur mon contenu technique anglophone ainsi que sur mes nouveaux projets. Les anciennes vidéos en français restent disponibles en archives non répertoriées ici : https://julienlargetpiet.tech/articles/clap-de-fin Merci à toutes celles et ceux qui ont regardé et soutenu cette chaîne. Si vous souhaitez me contacter, vous pouvez m’écrire à cette adresse : j.larget-piet@proton.me ♥ Support

    software-computational-architecture

    The Cartesian Product Disaster Tour: Haskell, C, and 25GB of Allocations

    In this article, we’ll explore something that looks innocent: computing the cartesian product of several lists. In Haskell, it is almost boring: Copy ghci> sequence [[1, 2], [3, 4, 5]] [[1,3],[1,4],[1,5],[2,3],[2,4],[2,5]] Clean, elegant, one function call. And that is exactly why it is interesting. High-level languages let us treat this kind of operation as obvious. We call sequence, or itertools.product (Python), and move on with our lives. But under the abstraction, there is still a real data structure being built, memory being allocated, indices being advanced, values being copied, and eventually a CPU doing the dirty work. So I wanted to take this simple operation and push it through several implementations. First, we’ll start with my first Haskell attempt: not idiomatic, a bit painful, and honestly quite funny in retrospect.…

    software-computational-architecture

    Why Parsers were invented ?

    A lot of text-processing tools can get surprisingly far without a real parser. For simple patterns, tools like sed, awk, or small ad-hoc string transformations are often enough. You match a fragment, replace it, split on a delimiter, maybe scan left to right, and the job is done. For flat data, it's often the most direct and elegant solution. But this approach starts to break down when the input has structure. As soon as you have nesting, precedence, escaping rules, ambiguous symbols, or context-dependent meaning, the input should not be considered as just a string. It becomes a small language. At that point, continuing to manipulate characters directly means you are building a parser anyway, just an implicit, fragile, and usually inefficient one. This article is about discovering that boundary.…

    blogroll

    Blogs that worth a bookmark

    Gwern.net A huge collection of long-form essays by Gwern Branwen on AI, statistics, psychology, technology, science, economics and plenty of other rabbit holes. Articles are usually extremely well-researched, heavily referenced, and often go much deeper than you initially expect. raphaelouthier.github.io Raphael Outhier’s technical blog, mostly focused on low-level programming: C, assembly, kernels, ARM, memory management and optimization. It is especially enjoyable if you like articles that actually explain what is happening underneath the abstraction layers ( if you are here, that might be the case ;) ). essenceia.github.io/ Julia Desmazes’ blog about chip design, ASICs, Verilog, FPGAs and hardware engineering. The articles often follow real projects from design to tapeout, mixing deep technical explanations with the inevitable chaos of actually building hardware. lukesmith.xyz Luke Smith’s personal corner of the web,…

    latex

    Doom in LaTeX (+Bash)

    This article is a part of my full LaTeX guide here article Here some captions of the game: How did i create the game ? First, the architecture. We have a bash loop script ( loop.sh) that waits for inputs. When it receives input, it updates a state.tex variables. This file is in fact an \input{...} of the main LaTeX file main.tex. We won't focus on the bash file, but here is its code: Copy #!/bin/bash # --- INPUT SETUP --- exec 3</dev/tty stty -icanon -echo trap "stty sane" EXIT # --- STATE --- step=0 scaleval=0.5 shoot=0 demon=0 gameover=0 lst="0,1,2" score=0 # --- SCALE PER STEP --- update_scale() { case $step in 0) scaleval=0.5 ;; 1) scaleval=0.9 ;; 2) scaleval=1.4 ;; esac } # --- DEMON SPAWN --- spawn_demon() {…

    latex

    Traversing a Tree in pure LaTeX

    This article is a part of my full LaTeX guide here article At the end of the article, you'll be able to traverse a tree in pure TeX. First, remember the basics. Copy \def\a{Rémi} \def\b{Julien} Then, use it as: Copy Bonjour \a\ et \b. Bonjour \a{} et \b. Each one outputs the same result. "Bonjour Rémi et Julien." And yess, that is strange that we can call the variable like a comand with empty {}. Speaking of commands, they are in fact, like said before, fancy variables with fancy logic. Copy \newcommand{\hello}[3]{Hello #1, #2 et #3} Used like: Copy \hello{Rémi}{Julien}{Lucas} Output: "Hello Rémi, Julien et Lucas" This stays pure expansions... Now most confusing part of LaTeX. How to reassign a value to a variable ? Maybe, you think this is…

    latex

    Dissecting LaTeX: Revenge, Four Years Later

    When I was a chemist, I wrote my internship report in LaTeX. It was at first a pain in the ass: --> weird syntax with no apparent coherence Especially for drawing objects, graphs, shapes... (cf: PGFPlot, TikZ) Then I moved on and never returned to LaTeX because I did not need it. But I remember the painful hours spent trying to render a good TikZ graphic, and I do not want those hours to be wasted. So 4 years later I returned to LaTeX to learn it, for real. I wanted to build a really coherent mental model by learning all its invariants. And I can say it has been a great success, I even built a mini Doom in LaTeX --> Go to section This is not only an…

    software-computational-architecture

    SAM, the 'other' SED from the 80s

    Prerequisites This article will reference SED syntax that is described here: sed This was also vastly ispired by this comment (user: piekvorst) on HackerNews (a lot of credits go to this user and ressources share in the comment): hn SAM - Installation Because SAM is part of Plan 9, we have to install plan9port: Copy $ git clone https://github.com/9fans/plan9port.git $ cd plan9port plan9port$ ./INSTALL then: Copy $ export PLAN9=$HOME/plan9port $ export PATH=$PATH:$PLAN9/bin $ source ~/.bashrc To make it permanent, write the export down to your ~/.bashrc then source ~/.bashrc Where does it come from SAM was written by Rob Pike at Bell Labs in the late 80s. It comes from the same place as UNIX, but from a later phase where people were already trying to rethink some of its…

    linux

    AWK: The Small Language That Quietly Became a Data Engine

    There is a moment every engineer hits. You're staring at a text file-logs, CSVs, metrics, something messy-and you think: "I just need to extract, filter, compute, group, maybe transform a few columns…" You reach for Python. Maybe Rust. Maybe even spin up a dataframe. And then someone types a one-liner with awk. It runs instantly. It's readable. It's correct. And you realize: AWK is not a tool. It's a streaming data engine disguised as a scripting language. This article is a deep dive—from first principles to advanced patterns—so you don't just use AWK, but start thinking in it. 1. The Core Idea: Pattern → Action At its heart, AWK is built around a deceptively simple idea: Copy pattern { action } Which translates to: "For each line, if the pattern…

    linux

    Sed, a powerfull mini-language from the 70s

    There's a moment when using sed stops feeling like typing weird incantations… and starts feeling like you're programming a living stream of text. At first, it looks like this: Copy sed '1,2p' file And you think: "ok… print lines 1 and 2… neat, but whatever" But if you stay with it — if you push just a bit further — you discover something unexpected: sed is not a command. It is a language. A small one. A strange one. But a real one --> with control flow, memory, and a model of execution. And that's how you end up writing things like: script.sed Copy /./H /^$/ { x /./ { s/\n/ /g s/^ // p } } $ { x s/\n/ /g s/^ // /./ { p } } Copy…

    system-design

    Bash Arrays: From First Steps to Real-World Mastery

    Bash arrays aren't just containers, they're a way to control how data flows through the shell. This guide builds from zero to production-grade patterns, using real examples like file processing and reverse lookups. 1. The Basics (Quick but Solid) Creating arrays Copy arr=(apple banana "cherry pie") Access Copy echo "${arr[0]}" echo "${arr[@]}" echo "${#arr[@]}" 👉 Always use "${arr[@]}" — this preserves elements. 2. The Rule That Changes Everything "${arr[@]}" vs ${arr[@]} Copy arr=("a b" "c d") for x in ${arr[@]}; do echo "$x"; done # broken a b c d for x in "${arr[@]}"; do echo "$x"; done # correct a b c d Without quotes, Bash: splits on spaces expands wildcards 3. Real Data: Reading Files Safely Let's start doing something real. ** Wrong way** Copy arr=($(ls)) Breaks on:…

    recreational-programming

    Building a ChatGPT-like CLI in Bash: a journey through pipes, JSON, streaming, and shell weirdness

    There is something deeply satisfying about building a serious tool with primitive Unix bricks. The mentioned in this article comes from: repo A shell. A while true. A read. A curl. A jq. A pipe. At first, the goal looks almost absurdly simple: "I want ChatGPT, but in my terminal, with Bash." Then the real questions begin. How do we keep a conversation alive if the API is stateless? How do we build valid JSON safely from user input? How do we stream tokens as they arrive? Why does curl | while read ... break variable updates? What exactly is this cursed construct: done < <(curl ...)? And what is Bash really doing when we write IFS= read -r line? This article is the story of building a small but…

    journal

    Statix, llama.cpp, and a Night of Autonomous Blogging

    This article is about this repo: autoBlog There is a particular kind of joy in software engineering that does not come from polished products, investor slides, or framework trend cycles. It comes from taking a few simple parts, each understandable on its own, and connecting them until something unexpectedly alive emerges. That is exactly what happened here. The starting point was not "let's build an AI startup," nor "let's automate content at scale," nor even "let's use a large language model." The starting point was much simpler and much more honest: I already had Statix, my own publishing system, with its own CLI. I had full control over content publication. I had a local machine. I had curiosity. And one evening, a thought appeared that was too tempting not to…

    default

    The Archaeology of a dead .OVA

    "It should be easy to download." Famous last words. The Premise There exists (or existed) a certain .ova file. .ova is a packaged VM - all in one file It contains .ovf metadata (xml like describing the specs, ram, cpu...), .vdmk file(s) (created by VMWare -> contains OS, other files..) Widely used Popular in a very specific niche Distributed officially at some point Then… quietly erased from existence No announcement. No archive. Just... gone. Like it never happened. Phase 1 - Denial Naturally, I assumed: "I'll just Google it." So I searched: Copy "specific ova file name" download Results: tutorials from 2017 broken official links forum threads ending in silence Classic. Phase 2 - Automation (aka coping) At this point, I did what any reasonable person would do: wrote a…

    software-computational-architecture

    How Modern Browsers Render the Web: A Deep Technical Journey

    From HTML bytes to GPU pixels — the complete architecture of a modern browser rendering engine. Introduction: The Browser as a Game Engine There is a useful analogy for understanding how browsers work at a deep level: think of a browser as a real-time 3D game engine. In a game engine: The scene graph defines what objects exist and where they are in the world. The camera defines what portion of the world is visible. The renderer takes the visible scene and converts it into pixels on screen. The compositor combines multiple render layers (HUD, skybox, geometry, post-processing effects) into the final frame. A browser does the same thing — just with HTML, CSS, and JavaScript instead of meshes and shaders. Game Engine Concept Browser Equivalent Scene graph DOM +…

    system-design

    Debugging a “Slow VPS” That Wasn’t Slow

    My VPS suddenly felt extremely slow: pages taking 3–5 seconds TLS handshake hanging random spikes in latency First instinct: server issue. Reality: network path instability. This is how I debugged it step by step. 1. Measure Real User Experience with curl Instead of guessing, start with actual HTTP timing. Copy curl -o /dev/null -s -w "\ DNS: %{time_namelookup}s\n\ Connect: %{time_connect}s\n\ TLS: %{time_appconnect}s\n\ TTFB: %{time_starttransfer}s\n\ Total: %{time_total}s\n" \ https://your-domain.com What each metric means DNS ( time_namelookup) → time to resolve domain → IP Connect ( time_connect) → TCP handshake (network latency baseline) TLS ( time_appconnect) → SSL/TLS negotiation (very sensitive to packet loss) TTFB ( time_starttransfer) → time until first byte from server Total ( time_total) → full request time Example (bad case) Copy DNS: 0.05s Connect: 0.30s TLS: 2.29s TTFB:…

    software-computational-architecture

    From Backtracking to Factorial Coordinates: Understanding Permutations Deeply

    Most developers learn permutation generation through recursion and swapping. It works, it's elegant… but it often feels a bit magical. This article goes much deeper. We will: Fully understand how backtracking actually works Build a precise mental model of recursion Discover that permutations form a structured coordinate space Eliminate recursion entirely using factorial number systems (Lehmer code) Derive efficient, controllable, high-performance implementations 1. The Classical Backtracking Algorithm Here is the standard implementation: Copy template <typename T> void permuteHelper(std::vector<T>& vec, int start, std::vector<std::vector<T>>& result) { if (start >= vec.size()) { result.push_back(vec); return; } for (int i = start; i < vec.size(); ++i) { std::swap(vec[start], vec[i]); permuteHelper(vec, start + 1, result); std::swap(vec[start], vec[i]); // backtrack } } 2. The First Misconception A very common intuition is: "A swap creates a permutation" This…

    software-computational-architecture

    Binary Operations: AND, OR, XOR, NOR - and Their Deep Relationships

    Binary operations are the foundation of computation. At the lowest level, everything reduces to simple operations on bits: true (1) and false (0). In this article, we explore the core logical operations: AND OR XOR NOR XAND (XNOR) We’ll also look at how they relate to each other — and why XOR can be expressed using only NAND-like constructions. 1. Basic Definitions Let’s define the core operations for two boolean values A and B. A B AND OR XOR NOR XAND (XNOR) 0 0 0 0 0 1 1 0 1 0 1 1 0 0 1 0 0 1 1 0 0 1 1 1 1 0 0 1 Intuition AND ( &&) → both must be true OR ( ||) → at least one is true XOR (…

    software-computational-architecture

    Java Deep Dive: Architecture, Memory, OOP & Modern Features

    A comprehensive technical reference — from JVM internals to streams, lambdas, and the philosophy behind Java's design choices. Table of Contents Introduction & Philosophy Everything is a Class Memory Model: Stack, Heap & Metaspace The static Keyword — Java vs C++ Constructors & Method Overloading Encapsulation: Getters & Setters Inheritance, Virtual Dispatch & vtables Overriding toString() — Why It Matters Interfaces, Lambdas & Functional Programming Primitive Types vs Wrapper Classes Comparators as Objects — Everything is a Class Collections, Maps & Sets The Stream API Type Inference in Java Summary Diagram 1. Introduction & Philosophy Java was released by Sun Microsystems in 1995, designed with a clear motto: "Write Once, Run Anywhere". Unlike C or C++, Java programs do not compile to native machine code directly. Instead they compile to…

    system-design

    Statix: A Static Engine That Behaves Like a Dependency Graph

    Most static site generators rebuild everything. Statix doesn’t. It rebuilds exactly what changed — nothing more, nothing less. This article is a deep dive into how Statix actually works internally: Symlink-based runtime theming (no rebuilds) Localized builds driven by implicit dependency graphs The admin pipeline that orchestrates rebuilds The CLI and system integration philosophy 1. Symlinks as Runtime State (Themes & Fonts) Statix treats themes and fonts as runtime configuration, not build-time artifacts. 1.1 Filesystem as Source of Truth Themes are discovered dynamically: Copy func (s *Server) listThemes() ([]string, error) { base := "/var/www/go_blog/assets/css/themes" entries, err := os.ReadDir(base) if err != nil { return nil, err } var themes []string for _, e := range entries { if !e.IsDir() && strings.HasSuffix(e.Name(), ".css") { name := strings.TrimSuffix(e.Name(), ".css") themes = append(themes,…

    system-design

    Go Joining Errors - Learn with Examples

    In Go (since Go 1.20), errors.Join lets you combine multiple errors into a single error while still preserving each individual error inside it. This is especially useful when: multiple operations can fail independently you want to return all errors, not just the first one Basic idea Copy err := errors.Join(err1, err2, err3) Returns nil if all inputs are nil Automatically ignores nil errors The resulting error wraps all the non-nil ones Simple example Copy package main import ( "errors" "fmt" ) func main() { err1 := errors.New("file not found") err2 := errors.New("permission denied") joined := errors.Join(err1, err2) fmt.Println(joined) } Output: Copy file not found permission denied Checking errors with errors.Is This is where errors.Join becomes powerful: Copy package main import ( "errors" "fmt" ) var ErrNotFound = errors.New("not found") func…

    software-computational-architecture

    OpenTelemetry in Go, finally explained: traces, metrics, logs, propagation & middleware

    I spent the day digging into OpenTelemetry in Go and, honestly, a lot of things that look magical at first finally clicked. The code snippet of this article come from my recreational/tutorial repo: TutOpenTelemetry-Go This article is the version I wish I had when I started. It covers: what context.Context is doing in Go HTTP servers how OpenTelemetry plugs into a Go service what traces, metrics, and logs actually are how otelhttp middleware changes request handling why you can have both a middleware-created HTTP span and your own manual span what propagators do and how they work across services why metrics flush in the background what the stdout trace / metric / log output really means field by field how to read the actual JSON output from the OpenTelemetry Go…

    system-design

    Statix - I Built My Own Blog Engine (Because I Refuse to Negotiate with Markdown Toolchains).

    Let me clarify something immediately. First the repo is here lol: Statix, and second This is not a “framework”. This is not a “platform”. This is not “the future of publishing”. It’s just called blog. And it does one thing extremely well: it lets me create, edit, update, and delete articles directly in the browser without negotiating with a build pipeline, a folder structure, or a philosophical manifesto. The Problem With Static Generators (Yes, All of Them) Static site generators are brilliant. Until you actually want to change something. Want to fix a typo? Open your editor → find the file → edit Markdown → rebuild → deploy → commit → push. Want to delete an article? Remove the file → rebuild → redeploy → invalidate cache → hope you…

    recreational-programming

    How I Spy on My Own Blog (Politely): A Shiny/Nginx Log Analyzer That Separates Humans From the Internet’s Roombas

    I run a blog. People read it. Bots also “read” it — in the same way a vacuum cleaner “enjoys” a carpet. So I built a small R Shiny app that ingests my Nginx access logs, extracts the interesting bits, and applies a few pragmatic heuristics to answer the only question that matters: was this a human, or was this a script having a very busy day? Note By the way my blog and R shiny log analyzer is open-source at https://github.com/julienlargetpiet/blog The problem On a static blog, you don’t get “analytics events”. You get requests. A lot of requests. And if you do anything even mildly modern (like prefetching links), your own browser becomes suspiciously productive. Meanwhile, bots show up with a smile, download everything, and then leave without…

    functional-programming

    jq as a Stream Calculus and Tree Algebra

    A Deep Semantic and Operational Mini-Book This is not documentation. This is not a tutorial. This is a semantic excavation. We will treat jq as: A stream calculus A purely functional reduction algebra A tree traversal and rewrite system A scoped evaluation engine with explicit rebinding Note To run a jq file do that: Copy Copy $ jq -f test.jq file.json And also some sections will implicitly reference these files file1 file2 1. The Execution Model: Streams, Not Values Every jq filter is: Copy Filter : Value → Stream<Value> Even if it emits one value, it is still a stream. Even if it emits zero values, it is still a stream. Composition: Copy a | b means: Copy for each v in a(input): emit b(v) This is critical: | is…

    linux

    Logrotate for Nginx: Understanding missingok, notifempty, sharedscripts, prerotate, postrotate (and switching to size-based rotation)

    If you run Nginx in production, your access and error logs can grow fast. On most Linux systems, log rotation is handled by logrotate. It periodically renames log files (e.g. access.log → access.log.1), optionally compresses old ones, and (critically) tells Nginx to reopen its log file descriptors so it starts writing to the new files. This article explains the most common directives you’ll see in /etc/logrotate.d/nginx (or similar), why they exist, and how to safely switch from time-based rotation (daily/weekly) to size-based rotation. Where log rotation comes from On Debian/Ubuntu systems, rotation typically runs via a systemd timer (or historically via cron). The timer triggers logrotate, which reads configuration files under /etc/logrotate.conf and /etc/logrotate.d/*. A typical Nginx logrotate config (daily rotation) Copy /var/log/nginx/*.log { daily missingok rotate 14 compress delaycompress…

    system-design

    Streaming a MariaDB Dump from Go: Pipes, Syscalls, Backpressure and the Runtime

    We start from a very simple handler: spawn mysqldump, capture its stdout, and stream it directly to the browser. No intermediate file. No full buffering in memory. Copy func (s *Server) handleDumpDb(w http.ResponseWriter, r *http.Request) { cmd := exec.Command("mysqldump", "-u", "root", "go_blog") stdout, err := cmd.StdoutPipe() if err != nil { http.Error(w, "pipe error", 500) return } if err := cmd.Start(); err != nil { http.Error(w, "start error", 500) return } w.Header().Set("Content-Type", "application/sql") w.Header().Set("Content-Disposition", `attachment; filename="dump.sql"`) io.Copy(w, stdout) cmd.Wait() } What looks like “just stream stdout” is in fact a multi-layered systems pipeline involving: Kernel pipes File descriptors Syscalls Scheduler decisions TCP flow control Go runtime goroutine scheduling Let’s dissect this deeply. 1. What StdoutPipe() Actually Does (Kernel-Level) When you call: Copy stdout, _ := cmd.StdoutPipe() Go performs something conceptually…

    system-design

    Dispatch Responsibility: C++ Compile-Time Power vs Go Runtime Reflection

    When comparing C++ and Go, one of the most interesting differences is not syntax, not performance, and not even generics — it is where the responsibility for dispatch logic lives. In C++, behavior is encoded into the type system itself. In Go, behavior is often encoded into consumers of metadata. Both approaches are powerful. They simply operate on different axes. 1. Compile-Time Dispatch in C++ In modern C++, dispatch logic is typically resolved at compile time. You use templates, if constexpr, traits, concepts, or std::variant with std::visit. The compiler generates the final branching code. There is no runtime inspection. Example: Compile-Time Branching Here, the compiler selects the branch at compile time based on T. Only the valid branch is instantiated. Copy #include <type_traits> #include <iostream> template <typename T> void process(const…

    default

    Designing a Column-Major Matrix Class with Row-Major Multiplication Optimizations (CPU & GPU)

    When I designed my C++ Matrix<T> class for Fulgurance, I deliberately chose a column-major memory layout (Fortran/Eigen style). It fits linear algebra conventions elegantly: columns are contiguous, column vectors are natural, and transposition and determinant routines fall into place. But for heavy multiplications, CPU caches love row-major traversal. This article explains the architecture, shows why/how I compute multiplications using a row-major access pattern (while keeping column-major storage), and finishes with a GPU benchmark using cuBLAS to show how performance scales on modern hardware. 1) Column-Major Storage in a 1D Vector The matrix is stored as a flat 1D vector in column-major order. Element (i, j) (row i, column j) lives at index: Copy index = j * nrow + i Example, for the matrix Copy 1 4 7 2 5…

    default

    Rebuilding the LU Decomposition and Benchmarking It Against My Own Determinant Algorithms

    When I first started playing with determinant algorithms in C++, I wanted to really understand what happens behind Eigen’s .determinant() call. So I decided to reimplement the LU decomposition from scratch — the same method used inside Eigen and LAPACK — and compare it with two determinant algorithms I built myself: A recursive Laplace expansion A non-recursive Laplace expansion (my own invention 💡) But to make benchmarking clean and efficient, I represented matrices as 1D flat vectors in row-major order, so that values in the same row are contiguous in memory — perfect for cache-friendly computations. Here’s the full story, the math, and the code. 1. From Laplace to LU Laplace’s expansion expresses the determinant as a recursive cofactor expansion: $$ \det(A) = \sum_{j=0}^{n-1} (-1)^j a_{0j} \det(M_{0j}) $$ It’s beautiful,…

    default

    Building a New Determinant Engine - An Iterative Combinatorial Approach

    One morning, I decided to compute a determinant from scratch — no recursion, no Gaussian elimination, no library shortcuts. I wanted to understand what really happens behind the determinant and see if it could be expressed as a purely iterative combinatorial process. That exploration became part of my C++ library Fulgurance — a framework for statistics, linear algebra, and data manipulation. Idea: an iterative cofactor traversal (flattening the tree) In the classic Laplace expansion, computing a determinant means recursively removing one row and one column until you reach 2×2 minors. Each recursive branch corresponds to a combination of column indices — but recursion itself isn’t fundamental. The determinant can be computed iteratively by: Enumerating the valid column subsets directly, Computing the sign via permutation parity (number of inversions), Multiplying the…

    default

    Exploring the Power of Metaprogramming in Rust

    Metaprogramming in Rust: Exploring macro_rules! Power Rust offers one of the most expressive and hygienic metaprogramming systems in modern languages. Through declarative macros ( macro_rules!), we can generate functions, handle code repetition, and even emulate control-flow constructs — all at compile time. In this article, we’ll explore Rust metaprogramming from basic macro pattern matching to complex variadic patterns and custom control structures — step by step, with working examples. 1. Macro Pattern Matching and Expression Types Copy macro_rules! macr { () => { println!("Check out my macro!"); }; ($name:ident) => { println!("Hello, {}!", stringify!($name)); }; ($val:expr, $val2:expr) => { println!("2: {}, {}", $val, $val2); }; ($val:expr) => { println!("3: {}", $val); }; } fn main() { macr!(); macr!(7777); macr!(7777, 8888); macr!(Alice); } Output Copy Check out my macro! 3: 7777…

    default

    Building a Flexible Access Log Analyzer in R

    In this tutorial, we’ll walk through the design and implementation of a small but powerful R script that analyzes web server access logs — for instance, NGINX or Apache logs — and produces clean, insightful PDF plots of your website’s traffic patterns. This project demonstrates how to combine dplyr, lubridate, ggplot2, readr, and optparse to build a command-line data analysis tool in R. repo Overview The script accepts an access log file, parses and filters it according to date range, regex patterns, and time interval, and then generates a PDF plot summarizing the number of requests per page over time. Example usage: Copy Rscript convert.R \ -l 60 \ -p '^/$--^/all_posts/.*$--^/post_search/0$' \ -i h \ -f access.log This example analyzes the last 60 hours of requests for three URL patterns…

    functional-programming

    The Knight’s Tour in Haskell — From Brute Force to Warnsdorff’s Heuristic

    One of the most fascinating and ancient problems in recreational mathematics is the Knight’s Tour — the challenge of moving a chess knight so that it visits every square of an N×N chessboard exactly once. It’s not just a puzzle: it’s a deep exploration of backtracking, graph traversal, and even heuristic search. In this post, I’ll show how I implemented the Knight’s Tour in Haskell — first using a basic DFS (Depth-First Search), and then improved it with Warnsdorff’s rule, a clever heuristic that dramatically improves performance. The Problem The knight’s movement pattern is unique: it moves two squares in one direction and one in the perpendicular direction. In coordinates, from position (x, y), it can move to: Copy (x ± 2, y ± 1) or (x ± 1, y…

    functional-programming

    Checking Graph Bipartiteness in Haskell

    One of the most elegant problems in graph theory is determining whether a given graph is bipartite. A bipartite graph is one whose nodes can be divided into two disjoint sets such that no two nodes within the same set are connected by an edge. This concept appears everywhere — from scheduling and matching problems to network flow and coloring algorithms. In this project, I wrote a full Haskell implementation to determine whether any graph is bipartite, even if it’s disconnected. 1. The key idea If a graph has multiple connected components (subgraphs that are not connected to each other), we can test each subgraph independently. A disconnected graph is bipartite if and only if all its subgraphs are bipartite. So the problem splits naturally into two steps: Find all…

    functional-programming

    Solving the Eight Queens Problem in Haskell

    The Eight Queens Problem is one of the most famous challenges in computer science and mathematics. The goal is simple to state yet surprisingly rich in structure: Place eight queens on a chessboard so that no two queens threaten each other. In practice, that means ensuring that no two queens share the same row, column, or diagonal. It’s a classical example of a constraint satisfaction problem — and an elegant one to tackle using Haskell’s declarative and recursive strengths. 1. The problem restated We must place 8 queens on an 8×8 chessboard so that: No two queens share the same column. No two queens share the same row. No two queens share the same diagonal (both ascending and descending). We’ll represent each solution as a list of 8 integers, where…

    [ PAGE 1 / 2 ]