from/prod
← All companies

THE COMPANY INDEX TRACKED BLOG

Eli Bendersky

Ideas, decisions, and lessons from the team.

eli.thegreenplace.net (opens on the source site)
12Posts tracked
last weekLatest publication
1.0Posts / month over the last 12 months

Latest writing

12 of 12 posts

Notes on the discrete Fourier transform (DFT) (opens on the source site)

In the previous post on this topic, we’ve seen how the Discrete-Time Fourier Series (DTFS) and transform (DTFT) are used to analyze infinite-duration periodic and non-periodic discrete signals. Now, it’s time to turn to realistic digital signal processing where signals are not only discrete, but also finite in …

Read at the source

Monads in Lean (opens on the source site)

This post demonstrates how to use monads in the Lean programming language (Lean 4, to be specific). If you're not familiar with Lean, this part of the language is very similar to other functional programming languages, like Haskell or OCaml. Motivating example - evaluating expressions Suppose we want to write a simple numerical expression evaluator that supports numbers with addition and division: inductive Expr where | num : Int → Expr | add : Expr → Expr → Expr | div : Expr → Expr → Expr What happens when we encounter a division by zero? We'll want our evaluator to report this as a failure,…

Read at the source

Notes on the complex roots of unity (opens on the source site)

One of the most wonderful aspects of math is how deep we can get by studying seemingly trivial questions. Consider the roots of unity, where "unity" simply means the number 1. Basics: roots of unity for real numbers Studying the roots of unity usually begins in middle school: what is the square root of 1? Equivalently, what are the solutions to this equation? \[x^2=1\] Well, there are two answers: 1 and -1. Similarly, we can ask the question for higher roots; the third roots are solutions to the equation: \[x^3=1\] And so on. When we’re only dealing with real numbers, that’s pretty much the…

Read at the source

Monte-Carlo simulations (opens on the source site)

Monte Carlo simulations (or methods) is the technique of applying randomness and the Law of large numbers to the solution of various scientific and engineering problems. One of its first documented uses was by Stanislaw Ulam and John von Neumann for nuclear weapon simulations after WWII [1]. In this post I want to provide examples of some simple uses of Monte Carlo simulations. We'll start with the classical example of calculating the value of \pi by throwing darts. Estimating pi Suppose we take a square board and inscribe a quarter of a circle into it. We then proceed to throw darts at the…

Read at the source

Summary of reading: July - September 2026 (opens on the source site)

"Wuthering Heights" by Emily Brontë - good writing, but the protagonists are quite something. There's barely a likable character in the whole story - they are all either crazy, evil, stupid or a combination of these. It's also remarkable to consider how small the world of some people in those times was (pre-Victorian England); whole lives spent within a tiny area, interacting with a handful of other people. And that's for members of the nobility, not some bumpkin on a remote farm. "The Pickled City: The Story of New York pickles" by Paul Van Ravenstein and Monique Mulder - yes, a book about…

Read at the source

Rusty thoughts on "Parse, don't validate" (opens on the source site)

Like many programmers, I find Alexis King's Parse, don't validate article fascinating, because it gives a name to an idiom that seems familiar and important - one I've observed and used in the past without naming it explicitly. This post is a review of the "Parse, don't validate" pattern applied to the Rust programming language (the original post uses Haskell). I was particularly interested in finding educational examples of this pattern in the Rust standard library and other well-known projects. Without repeating the original article (please read it first!), here's the gist of it. Consider…

Read at the source

Notes on discrete-time Fourier series and transform (opens on the source site)

The following are my notes on discrete-time Fourier series (DTFS), as well as the discrete-time Fourier transform (DTFT). These topics serve as an important theoretical underpinning to the digital processing of signals by computers using the DFT (which will be covered in a future post). For discrete-time signals, we use …

Read at the source

How big are factorials? (opens on the source site)

The other day, I found myself wondering how big 52! (52 factorial) is, and that led me to ponder how these could be estimated without a calculator or a computer. It turns out there’s some fairly interesting math behind being able to estimate the size (number of digits) of …

Read at the source

Concurrent Servers: Part 7 - Rust (opens on the source site)

This is part 7 in a series of posts on writing concurrent network servers. In this part, we discuss how the challenges described in earlier parts are tackled in the Rust programming language. All posts in the series: Part 1 - Introduction Part 2 - Threads Part 3 - Event-driven Part 4 - libuv …

Read at the source

Concurrent Servers: Part 8 - Go (opens on the source site)

This is part 8 in a series of posts on writing concurrent network servers. In this part, we'll switch to Go and see how it tackles the challenges described earlier in the series. All posts in the series: Part 1 - Introduction Part 2 - Threads Part 3 - Event-driven Part 4 - libuv …

Read at the source

Relative velocity and closing speed (opens on the source site)

In Physics simulations or game engines it’s sometimes useful to determine the speed with which two objects are approaching each other. This post will discuss the concept of closing speed, which is the normal component of the relative velocity of two objects. Relative velocity and its components Suppose we …

Read at the source

Notes on the Fourier Transform (opens on the source site)

The Fourier series is a great tool for analyzing periodic functions. But what about functions that don’t repeat? We’ve seen that we can compute Fourier series for a non-periodic function defined on a finite interval, as long as we don’t care about its behavior beyond that interval …

Read at the source

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.