F
Feed Atlas
OPML directory + server-side RSS reader

eli.thegreenplace.net

SiteRSSBlogs
Back

Latest posts

  • Notes on Fourier series
    May 28, 2026Eli Bendersky

    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 coefficients a_n and b_n s

  • Scaling, stretching and shifting sinusoids
    May 02, 2026Eli Bendersky

    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 demo at the bottom to

  • Thoughts on WebAssembly as a stack machine
    Apr 30, 2026Eli Bendersky

    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 because - to the best of my knowledge - there is no formal definition of

  • Debugging WASM in Chrome DevTools
    Apr 23, 2026Eli Bendersky

    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 from my wasm-wat-samples project for this post. In fact, everything is already in p

  • watgo - a WebAssembly Toolkit for Go
    Apr 10, 2026Eli Bendersky

    I'm happy to announce the general availability of watgo - the WebAssembly Toolkit for Go. This project is similar to wabt (C++) or wasm-tools (Rust), but in pure, zero-dependency Go. watgo comes with a CLI and a Go API to parse WAT (WebAssembly Text), validate it, and encode it into WASM binaries; it also supports decoding WASM from its binary format. At the center of it all is wasmir - a semantic