• ASCII characters are not pixels: a deep dive into ASCII rendering alexharri.com/blog/ascii-rendering

    Published 2026-01-18 on Bluesky Mastodon
  • A Simple Sudoku Solver janmr.com/posts/a-simple-sudoku-so…

    Published 2026-01-17 on Bluesky Mastodon
  • One-page proof that π is irrational projecteuclid.org/journals/bulleti…

    Published 2026-01-15 on Bluesky Mastodon
  • Multiple-Precision Subtraction, third post in a series of six on multiple-precision algorithms janmr.com/posts/multiple-precision…

    wi←(ui−vi−ki)  mod  b,ki+1←[ui<vi+ki]\begin{aligned} w_i &\leftarrow (u_i - v_i - k_i) \;\text{mod}\; b, \\ k_{i+1} &\leftarrow [u_i < v_i + k_i] \end{aligned} wi​ki+1​​←(ui​−vi​−ki​)modb,←[ui​<vi​+ki​]​

    Published 2026-01-13 on Bluesky Mastodon
  • The Thue-Morse sequence is a binary sequence that is constructed by starting with the digit 0 and then repeatedly appending the binary complement of the sequence so far. Using two simple turtle graphics rules (0: forward one, 1: turn 60°), the sequence produces a Koch curve. https://en.wikipedia.org/wiki/Thue–Morse_sequence#Fractals_and_turtle_graphics oeis.org/A010060

    Published 2026-01-11 on Bluesky Mastodon
  • Multiple-Precision Addition, second post in a series of six on multiple-precision algorithms janmr.com/posts/multiple-precision…

    wi←(ui+vi+ki)  mod  bki+1←⌊(ui+vi+ki)/b⌋\begin{aligned} w_i &\leftarrow (u_i + v_i + k_i) \;\text{mod}\; b \\ k_{i+1} &\leftarrow \lfloor (u_i + v_i + k_i)/b \rfloor \end{aligned} wi​ki+1​​←(ui​+vi​+ki​)modb←⌊(ui​+vi​+ki​)/b⌋​

    Published 2026-01-10 on Bluesky Mastodon
  • Structure and Interpretation of Computer Programs — JavaScript Edition. An open-source community effort to adapt SICP to JavaScript. sourceacademy.org/sicpjs

    Published 2026-01-06 on Bluesky Mastodon
  • Multiple-Precision Number Representation, first post in a series of six on multiple-precision algorithms janmr.com/posts/multiple-precision…

    u=(un−1…u1u0)b=∑k=0n−1ukbk,0≤uk≤b−1u = (u_{n-1} \ldots u_1 u_0)_b = \sum_{k=0}^{n-1} u_k b^k, \quad 0 \leq u_k \leq b-1 u=(un−1​…u1​u0​)b​=k=0∑n−1​uk​bk,0≤uk​≤b−1

    Published 2026-01-05 on Bluesky Mastodon
  • The Twin Prime Conjecture states that there are infinitely many pairs of prime numbers that differ by 2. The current, provable, least bound on the gap between consecutive primes that is attained infinitely often is 246. oeis.org/A001223 michaelnielsen.org/polymath/index.…

    Published 2026-01-04 on Bluesky Mastodon
  • List of datasets for machine learning research, computer vision and image processing en.wikipedia.org/wiki/List_of_data… en.wikipedia.org/wiki/List_of_data…

    Published 2026-01-03 on Bluesky Mastodon
  • Print a calendar for the year 2026 with Python: python -m calendar 2026. Similar functionality with the *nix command cal. docs.python.org/3/library/calendar…

    Published 2026-01-02 on Bluesky Mastodon
  • 2026 is a semiprime. A semiprime is a natural number that is the product of two prime numbers. oeis.org/A001358

    2026=2⋅10132026 = 2 \cdot 1013 2026=2⋅1013

    Published 2026-01-01 on Bluesky Mastodon
  • The paper "MapReduce: Simplified Data Processing on Large Clusters" was published in December 2004. Map/reduce operations had been known for decades, but the paper was instrumental in the area of practical distributed computing and "big data". research.google.com/archive/mapred…

    Published 2025-12-31 on Bluesky Mastodon
  • Bell numbers, the number of ways to partition a set of labeled elements janmr.com/posts/bell-numbers

    {{k1,k2,k3}}{{k1,k2},{k3}}{{k1,k3},{k2}}{{k2,k3},{k1}}{{k1},{k2},{k3}}\begin{aligned} &\{\{k_1,k_2,k_3\}\} \\ &\{\{k_1,k_2\}, \{k_3\}\} \\ &\{\{k_1,k_3\}, \{k_2\}\} \\ &\{\{k_2,k_3\}, \{k_1\}\} \\ &\{\{k_1\}, \{k_2\}, \{k_3\}\} \\ \end{aligned} ​{{k1​,k2​,k3​}}{{k1​,k2​},{k3​}}{{k1​,k3​},{k2​}}{{k2​,k3​},{k1​}}{{k1​},{k2​},{k3​}}​

    Published 2025-12-30 on Bluesky Mastodon
  • The Utah Teapot (also known as the Newell Teapot) is one of the most famous 3D models in computer graphics history. It was originally created by Martin Newell in 1975 and went through a number of modifications over the years. graphics.cs.utah.edu/teapot

    Published 2025-12-29 on Bluesky Mastodon
  • Calculus Made Easy is a book on calculus originally published in 1910 by Silvanus P. Thompson, considered a classic and elegant introduction to the subject calculusmadeeasy.org

    Published 2025-12-28 on Bluesky Mastodon
  • The Crossed Ladders Problem janmr.com/posts/crossed-ladders-pr…

    Published 2025-12-27 on Bluesky Mastodon
  • The Zen of Python. A listing of Python design principles and philosophies that are helpful in understanding and using the language. The listing can be found by typing import this at the interactive prompt. peps.python.org/pep-0020

    Published 2025-12-26 on Bluesky Mastodon
  • Fast Evaluation of Fibonacci Numbers janmr.com/posts/evaluation-of-fibo…

    Published 2025-12-25 on Bluesky Mastodon
  • Donald Knuth Annual Christmas Lectures www.youtube.com/playlist?list=PLoR…

    Published 2025-12-24 on Bluesky Mastodon
  • Evolved Virtual Creatures by Karl Sims. A more than 30 years old project, but still very interesting. www.karlsims.com/evolved-virtual-c… www.youtube.com/watch?v=RZtZia4ZkX…

    Published 2025-12-22 on Bluesky Mastodon
  • Today marks the December solstice, the shortest day in the Northern Hemisphere and the longest day in the Southern Hemisphere. At 15:03 UTC the North Pole is tilted maximally (about 23.4°) away from the Sun. janmr.com/posts/equinoxes-and-sols…

    December Solstice Distribution by Day and Hour (1900-2100)

    Published 2025-12-21 on Bluesky Mastodon
  • Evaluation of Powers janmr.com/posts/evaluation-of-powe…

    x0=1x2k=(xk)2x2k+1=x⋅x2k\begin{aligned} x^0 &= 1 \\ x^{2k} &= (x^k)^2 \\ x^{2k+1} &= x \cdot x^{2k} \\ \end{aligned} x0x2kx2k+1​=1=(xk)2=x⋅x2k​

    Published 2025-12-20 on Bluesky Mastodon
  • The M/o/Vfuscator compiles programs into "mov" instructions, and only "mov" instructions. Arithmetic, comparisons, jumps, function calls, and everything else a program needs are all performed through mov operations; there is no self-modifying code, no transport-triggered calculation, and no other form of non-mov cheating. 🤯 github.com/xoreaxeaxeax/movfuscato…

    Published 2025-12-19 on Bluesky Mastodon
  • Prime Factors of Factorial Numbers janmr.com/posts/prime-factors-of-f…

    dp(n!)=∑k=1∞⌊npk⌋=∑k=1⌊log⁡p(n)⌋⌊npk⌋d_p(n!) = \sum_{k=1}^\infty \left\lfloor \frac{n}{p^k} \right\rfloor = \sum_{k=1}^{\lfloor \log_p(n) \rfloor} \left\lfloor \frac{n}{p^k} \right\rfloor dp​(n!)=k=1∑∞​⌊pkn​⌋=k=1∑⌊logp​(n)⌋​⌊pkn​⌋

    Published 2025-12-18 on Bluesky Mastodon
  • Every position of Rubik's Cube can be solved in twenty moves or less www.cube20.org

    Published 2025-12-17 on Bluesky Mastodon
  • Computing the Integer Binary Logarithm janmr.com/posts/computing-the-inte…

    k=⌊log⁡2n⌋⇔2k≤n<2k+1k = \lfloor \log_2 n \rfloor \quad \Leftrightarrow \quad 2^k \leq n < 2^{k+1} k=⌊log2​n⌋⇔2k≤n<2k+1

    Published 2025-12-16 on Bluesky Mastodon
  • Stanford Lecture: Dr. Don Knuth - Adventures with Knight's Tours (2025-12-04) www.youtube.com/watch?v=MKiRte-tnM… (playlist with many of Knuth's lectures: www.youtube.com/playlist?list=PL94…)

    Published 2025-12-15 on Bluesky Mastodon
  • Bit Twiddling Hacks, a collection of fast and tested code snippets graphics.stanford.edu/~seander/bit…

    Published 2025-12-15 on Bluesky Mastodon
  • Bitwise Operators and Negative Numbers janmr.com/posts/bitwise-operators-…

    x‾=−1−x\overline{x} = -1 - x x=−1−x

    Published 2025-12-14 on Bluesky Mastodon
  • Test and benchmark suite for sort implementations, github.com/Voultapher/sort-researc….

    The current slice::sort_unstable implementation of the Rust standard library is based on ipnsort github.com/Voultapher/sort-researc… doc.rust-lang.org/1.92.0/std/primi…

    github:Voultapher/sort-research-rs

    Published 2025-12-13 on Bluesky Mastodon
  • Visualizing the Pythagorean Theorem janmr.com/posts/visualizing-the-py…

    Published 2025-12-12 on Bluesky Mastodon
  • How to Draw a Straight Line (Peaucellier–Lipkin linkage) www.futilitycloset.com/2014/12/05/…

    Published 2025-12-10 on Bluesky Mastodon
  • Fractions and Circles janmr.com/posts/fractions-and-circ…

    Published 2025-12-09 on Bluesky Mastodon
  • Two Notes on Notation by Donald E. Knuth (Iverson's convention and Stirling numbers) arxiv.org/abs/math/9205211

    [P][nk]{nk}[P] \quad \left[ { n \atop k } \right] \quad \left\{ { n \atop k } \right\} [P][kn​]{kn​}

    Published 2025-12-08 on Bluesky Mastodon
  • The Stern-Brocot Tree of Fractions janmr.com/posts/the-stern-brocot-t…

    The Stern-Brocot Tree of Fractions

    Published 2025-12-07 on Bluesky Mastodon
  • Langford pairs: Arrange the 2n numbers {1, 1, 2, 2, ..., n, n} such that exactly k numbers occur between the two appearances of each digit k dialectrix.com/langford.html

    Published 2025-12-06 on Bluesky Mastodon
  • Continued Fractions and Continuants janmr.com/posts/continued-fraction…

    a0+1a1+1⋱+1an−1+1ana_0 + \displaystyle\frac{1}{a_1 + \displaystyle\frac{1}{\ddots + \displaystyle\frac{1}{a_{n-1} + \displaystyle\frac{1}{a_n}}}} a0​+a1​+⋱+an−1​+an​1​1​1​1​

    Published 2025-12-05 on Bluesky Mastodon
  • Online book: Mining of Massive Datasets www.mmds.org

    Published 2025-12-03 on Bluesky Mastodon
  • Computing the Greatest Common Divisor janmr.com/posts/computing-the-grea…

    gcd(u,v)=∏p  primepmin⁡(up,vp).\text{gcd}(u,v) = \prod_{p \; \rm prime} p^{\min(u_p,v_p)}. gcd(u,v)=pprime∏​pmin(up​,vp​).

    Published 2025-12-02 on Bluesky Mastodon
  • Guido on introducing the shortcut conditional expression to Python. Some usages are "intentionally ugly" and finishes by adding "It's still my language! :-)". mail.python.org/pipermail/python-d…

    A if C else B
    
    Published 2025-12-01 on Bluesky Mastodon
  • Useful Properties of the Floor and Ceil Functions janmr.com/posts/useful-properties-…

    n=⌊x⌋⟺n≤x<n+1,n=⌊x⌋⟺x−1<n≤x,n=⌈x⌉⟺n−1<x≤n,n=⌈x⌉⟺x≤n<x+1\begin{aligned} n=\lfloor x \rfloor \quad &\Longleftrightarrow \quad n \leq x < n+1, \\ n=\lfloor x \rfloor \quad &\Longleftrightarrow \quad x-1 < n \leq x, \\ n=\lceil x \rceil \quad &\Longleftrightarrow \quad n-1 < x \leq n, \\ n=\lceil x \rceil \quad &\Longleftrightarrow \quad x \leq n < x+1 \end{aligned} n=⌊x⌋n=⌊x⌋n=⌈x⌉n=⌈x⌉​⟺n≤x<n+1,⟺x−1<n≤x,⟺n−1<x≤n,⟺x≤n<x+1​

    Published 2025-11-30 on Bluesky Mastodon
  • Google humor: Did you mean recursion? www.google.com/search?q=recursion

    Published 2025-11-29 on Bluesky Mastodon
  • Twelve Ways of Counting janmr.com/posts/twelve-ways-of-cou…

    Published 2025-11-28 on Bluesky Mastodon
  • Modern Computer Arithmetic, a book about algorithms for performing arithmetic, and their implementation on modern computers maths-people.anu.edu.au/~brent/pub… members.loria.fr/PZimmermann/mca/p…

    Published 2025-11-27 on Bluesky Mastodon
  • Nice Proof of a Geometric Progression Sum janmr.com/posts/nice-geometric-pro…

    Published 2025-11-26 on Bluesky Mastodon
  • The first website info.cern.ch

    Published 2025-11-21 on Bluesky Mastodon
  • Math.sumPrecise developer.mozilla.org/en-US/docs/W…

    Published 2025-08-01 on Bluesky
  • A leap year check in three instructions hueffner.de/falk/blog/a-leap-year-…

    Published 2025-05-22 on Bluesky
  • Full unicode emoji list unicode.org/emoji/charts/full-emoj…

    Published 2025-05-20 on Bluesky
Next →

Home

Posts

Lab

Me

Feed

This site is licensed under CC BY 4.0 cc by