• Evaluation of Powers janmr.com/posts/evaluation-of-powe… #programming #algorithm #cpp #exponentiation #optimality

    • x0=1x^0 = 1x0=1
    • x2k=(xk)2x^{2k} = (x^k)^2x2k=(xk)2
    • x2k+1=x⋅x2kx^{2k+1} = x \cdot x^{2k}x2k+1=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… #programming #compiler #assembler

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

    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 #math #combinatorics #rubikscube

    Published 2025-12-17 on Bluesky Mastodon
  • Computing the Integer Binary Logarithm janmr.com/posts/computing-the-inte… #programming #algorithm #integer #binary #logarithm #numbers #cpp

    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…) #math #computerscience #programming #online #lecture

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

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

    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…

    #sorting #algorithm #rust

    github:Voultapher/sort-research-rs

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

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

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

    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 #math #notation

    [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… #math #fractions

    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 #math #combinatorics

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

    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 #online #book #computerscience #bigdata

    Published 2025-12-03 on Bluesky Mastodon
  • Computing the Greatest Common Divisor janmr.com/posts/computing-the-grea… #math #programming #number-theory #algorithm

    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-… #floor #ceil #functions #math #programming

    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… #math #combinatorics

    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… #multiple-precision #arithmetic #algorithms #online #book

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

    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
  • An ongoing multi-author open source project to formalise a proof of Fermat's Last Theorem in the Lean theorem prover imperialcollegelondon.github.io/FL… #lean

    Published 2025-05-19 on Bluesky
  • Fast and maintainable patterns for fetching from a database by @sophiebits.com sophiebits.com/2020/01/01/fast-mai…

    Published 2025-05-07 on Bluesky
  • Celebrate 50 years of Microsoft with the company’s original source code by Bill Gates www.gatesnotes.com/home/home-page-…

    Published 2025-04-04 on Bluesky
  • Free math texts by Jim Hefferon (Linear Algebra, Theory of Computation, Introduction to Proofs) hefferon.net

    Published 2025-04-02 on Bluesky
  • @acm.org ACM has named Andrew G. Barto and Richard S. Sutton as the recipients of the 2024 ACM A.M. Turing Award for developing the conceptual and algorithmic foundations of reinforcement learning awards.acm.org/about/2024-turing

    Published 2025-03-05 on Bluesky
  • Stanford's "The Fourier Transform and Its Applications"

    Videos, problem sets & more: see.stanford.edu/course/ee261

    Published 2025-03-04 on Bluesky
  • An unexpected, and extremely inefficient, way to compute pi @3blue1brown.com www.youtube.com/watch?v=HEfHFsfGXj…

    Published 2025-02-27 on Bluesky
  • Introduction to Computer Graphics, a free, on-line textbook covering the fundamentals of computer graphics and computer graphics programming math.hws.edu/graphicsbook

    Published 2025-02-25 on Bluesky
  • Videos from Math Professor Jeffrey Chasnov. Some of the playlists are videos from his Coursera courses on Mathematics for Engineers. #math #lectures #mooc www.youtube.com/@Jeff-math/playlis… www.math.hkust.edu.hk/~machas/?men…

    Published 2025-01-24 on Bluesky
  • Computer Science lectures by @timroughgarden.bsky.social www.youtube.com/channel/UCcH4Ga14Y…

    Published 2025-01-08 on Bluesky
  • Online conversion from TeX/MathML to HTML/SVG (powered by MathJax) #math #tex #mathml #svg mathjax.github.io/MathJax-demos-we…

    Published 2025-01-07 on Bluesky
  • Temml is a LaTeX-to-MathML JavaScript conversion utility. Useful online converter on homepage. temml.org #math #tex #mathml

    github:ronkok/Temml

    Published 2025-01-06 on Bluesky
  • KaTeX: A math typesetting library for the web katex.org

    github:KaTeX/KaTeX

    Published 2025-01-06 on Bluesky
  • 👻 Ghostty is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration. ghostty.org

    github:ghostty-org/ghostty

    Published 2024-12-29 on Bluesky
  • #AdventOfCode 2024 complete!

    Published 2024-12-25 on Bluesky Mastodon
  • MarkItDown: Python tool for converting various files to Markdown. It presently supports: PDF, PowerPoint, Word, Excel, Images, Audio, HTML, csv, json, xml, etc. github.com/microsoft/markitdown #python #microsoft

    github:microsoft/markitdown

    Published 2024-12-15 on Bluesky Mastodon
  • Vanilla JS vanilla-js.com #javascript

    Published 2024-12-09 on Mastodon
  • Donald Knuth's 28th annual Christmas Lecture: Strong Components and Weak Components www.youtube.com/watch?v=au26uZfuxV… (past recordings www.youtube.com/playlist?list=PLoR…) #computerscience #lecture

    Published 2024-12-04 on Bluesky Mastodon
  • In Python, comparisons can be chained arbitrarily, e.g., x < y <= z is equivalent to x < y and y <= z docs.python.org/3/reference/expres… #python

    Published 2024-11-26 on Bluesky
  • Lean: First Steps leanfirststeps.blogspot.com/p/cont… #lean #math

    Published 2024-11-26 on Bluesky
  • Are all natural numbers interesting? If not, there must be a smallest uninteresting number - and that makes it interesting. 🤔 en.wikipedia.org/wiki/Interesting_…

    Published 2024-11-21 on Bluesky
  • Kaleidoscope: Implementing a Language with LLVM llvm.org/docs/tutorial #llvm #tutorial

    Published 2024-11-17 on Bluesky
  • Beating OpenBLAS and MKL in FP32 Matrix Multiplication From Scratch salykova.github.io/matmul-cpu

    github:salykova/sgemm.c

    Published 2024-11-15 on Bluesky Mastodon
  • Note that the function s(x)=(ln⁡x)/xs(x)=(\ln x) / xs(x)=(lnx)/x from the post has the following property:

    −s(e−x)=−ln⁡(e−x)e−x=xex-s(e^{-x}) = -\frac{\ln(e^{-x})}{e^{-x}} = x e^x −s(e−x)=−e−xln(e−x)​=xex

    and the inverse function (branches) of x↦xexx \mapsto x e^xx↦xex is commonly called the Lambert W function, which has undergone a lot of study.

    en.wikipedia.org/wiki/Lambert_W_fu… mathworld.wolfram.com/LambertW-Fun…

    Published 2024-08-05 on Mastodon
  • Journal of Open Source Software @joss joss.theoj.org

    Published 2024-04-15 on Bluesky Mastodon
  • A curated list of awesome mathematics resources #math github.com/rossant/awesome-math

    github:rossant/awesome-math

    Published 2024-02-02 on Bluesky Mastodon
  • AlphaGeometry: An Olympiad-level AI system for geometry deepmind.google/discover/blog/alph… #math #geometry #ai

    Published 2024-01-18 on Mastodon
  • Math OCR model that outputs LaTeX and Markdown github.com/VikParuchuri/texify #math

    github:VikParuchuri/texify

    Published 2024-01-17 on Mastodon
  • Easily train AlphaZero-like agents on any environment you want github.com/s-casci/tinyzero

    github:s-casci/tinyzero

    Published 2024-01-04 on Bluesky Mastodon
  • A chiral aperiodic monotile - one that tiles the plane aperiodically without reflections #math cs.uwaterloo.ca/~csk/spectre

    Published 2023-12-25 on Bluesky Mastodon
  • Donald Knuth Annual Christmas Lectures #math #computerscience youtube.com/playlist?list=PLoROMvo…

    Published 2023-12-25 on Bluesky Mastodon
  • Benchmarking LLMs in the Wild, an Elo-based LLM leaderboard huggingface.co/spaces/lmsys/chatbo…

    Published 2023-12-17 on Mastodon
  • The AWS SDK for Rust is now generally available and supported for production use aws.amazon.com/blogs/developer/ann… #aws #rustlang

    Published 2023-12-10 on Bluesky Mastodon
  • The Miracle Sudoku. A puzzle with sudoku rules plus some extra restrictions. The host's reaction on seeing the puzzle for the first time (around 3:45) is hilarious. www.youtube.com/watch?v=yKf9aUIxdb…

    Published 2023-02-06 on Mastodon
  • MacTutor History of Mathematics Archive mathshistory.st-andrews.ac.uk

    Published 2023-02-06 on Mastodon

Home

Posts

Lab

Me

Feed

This site is licensed under CC BY 4.0 cc by