Skip to content

Instantly share code, notes, and snippets.

@siragi
siragi / glyphs.json
Created September 19, 2025 19:15
dance
{
"0": [
[
[
0.013157894736842105,
0.05263157894736842
],
[
0.006578947368421052,
0.06578947368421052
@siragi
siragi / implementing_fft.md
Last active June 19, 2024 16:13 — forked from VictorTaelin/implementing_fft.md
Implementing complex numbers and FFT with just datatypes (no floats)

Implementing complex numbers and FFT with just datatypes (no floats)

In this article, I'll explain why implementing numbers with just algebraic datatypes is desirable. I'll then talk about common implementations of FFT (Fast Fourier Transform) and why they hide inherent inefficiencies. I'll then show how to implement integers and complex numbers with just algebraic datatypes, in a way that is extremely simple and elegant. I'll conclude by deriving a pure functional implementation of complex FFT with just datatypes, no floats.