~/devreads

Eli Bendersky

https://eli.thegreenplace.net/ · 5 posts · history since 2026 · active

7 Jun

Eli Bendersky 6 min read

A few months ago I wrote about using LLM agents to help restructuring one of my Python projects. It's worth beginning by saying that the rewrite has been successful by all reasonable measures; I've been able to continue maintaining that project since then without an issue. In this post, I want to discuss another project I've recently completed with significant…

28 May

Eli Bendersky 12 min read

The trigonometric Fourier series is a beautiful mathematical theory that shows how to decompose a periodic function into an infinite sum of sinusoids. These are my notes on the subject, with some examples and the connection to linear algebra in Hilbert space. Coefficients of Fourier series Let’s assume that is a well-behaved 2L-periodic [1] function and that we can find…

2 May

Eli Bendersky 3 min read

This is a brief and simple [1] explanation of how to adjust the standard sinusoid sin(x) to change its amplitude, frequency and phase shift. More precisely, given the general function: \[s(x)=A\cdot sin(w\cdot x+\theta)\] We’ll see how adjusting the parameters , and affect the shape of s(x). Each section below covers one of these aspects mathematically, and you can use the…

30 Apr

Eli Bendersky 3 min read

This week the article Wasm is not quite a stack machine has been making the rounds and has caught my eye. The post claims that WASM is not a pure stack machine because it has locals and is missing some stack manipulation operations like dup and swap. While I don't necessarily disagree, IMHO it's a bit of a semantic discussion…

23 Apr

Eli Bendersky 3 min read

When I was working on the WASM backend for my Scheme compiler, I ran into several tricky situations with debugging generated WASM code. It turned out that Chrome has a very capable WASM debugger in its DevTools, so in this brief post I want to share how it can be used. The setup and harness I'll be using an example…