Skip to content

Instantly share code, notes, and snippets.

@bjacob
bjacob / a.md
Last active November 20, 2026 21:21

What the primes explain in The Music of the Primes

Alessandro Maria Masullo’s The Music of the Primes proposes that a familiar fact about integers has an unfamiliar consequence. Unique factorization gives each prime an independent role in building integers. Pass from multiplication to logarithms and that independence becomes a statement about periods. Masullo’s wager is that the periods of the individual primes impose such strong constraints on a global calculation that the zeros of the Riemann zeta function have only one line on which to lie.

As an explanation of arithmetic, this is ambitious in a specific direction. It offers a way to think about why prime counting, complex zeros, and the distinction between number fields and function fields belong in the same story. It also suggests a prediction about repeated zeros, a question that the Riemann hypothesis (RH) leaves open. Its reach is greatest for the zeta function and its relatives attached to characters of number fields. The manuscript develop

@bjacob
bjacob / a.md
Created November 20, 2026 20:03

I have some thoughts given that i am doing AI-assisted math as a hobby.

  • Yes, there is a gap at the moment in conjecture-making, now that AI is closing all the existing conjectures but not yet contributing new conjectures.
  • From an application standpoint, conjectures are all what matters: if you want to use say the Riemann Hypothesis for a concrete purpose outside of pure math, you don't need a proof that it's true, you only need some experimental evidence that it's true-ish.
  • Applied vs pure math have gradually diverged. For the past 50+ years, they have been completely diverged. But it hasn't always been so. 200 years ago, Fourier analysis was being invented and it was both the leading edge in pure and applied math.
  • After the current "sad" phase of AI reaping all the existing conjectures, we'll be forced to refocus on forming new conjectures. This could not only reconcile human and AI mathematicians; this could reconcile pure and applied math.
  • Unlike conjecture-proving, conjecture-forming tends to
@bjacob
bjacob / a.md
Created November 20, 2026 16:16

rj-arith · GPU instructions on the CPU

Before Now (rj-arith)
CPU implementation Generated instruction handlers and VM helpers VM handler → narrow C interface → lib/arith
Bit-exactness Implicit. Each implementation determined the result. Explicit user preference. Allow approximations, prefer GPU-exact bits, or require them.
SIMD paths CPU-specific code spread across handlers and helpers Separate translation units per CPU target, behind the same interface
Guest rounding Some handlers changed and restored the host rounding mode Explicit guest controls. AVX-512 FMA encodes rounding on the instruction.
  • VM owns wave state, decodes operands, raises guest traps.
4: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 100.65.240.40/32 scope global tailscale0
valid_lft forever preferred_lft forever
inet6 fd7a:115c:a1e0::1f01:f028/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::7da9:59b6:b181:bc31/64 scope link stable-privacy proto kernel_ll
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether c8:7f:54:70:3d:36 brd ff:ff:ff:ff:ff:ff
altname enp12s0
altname enxc87f54703d36
inet 10.2.11.114/20 brd 10.2.15.255 scope global dynamic noprefixroute eno1
valid_lft 64894sec preferred_lft 64894sec
➜ workspace hostname -I
10.2.11.114 100.65.240.40 fd7a:115c:a1e0::1f01:f028
@bjacob
bjacob / a.cpp
Created November 13, 2026 19:40
// c := a * b
//
// c is m x n
// a is m x k
// b is k x n
void gemm(const float* a, const float *b, float *c, int m, int n, int k) {
for (int p = 0; p < m; ++p) {
for (int q = 0; q < n; ++q) {
for (int r = 0; r < k; ++r) {
c[q + n * p] += a[r + k * p] * b[q + n * r];

Assessment of Jakub’s AI-assisted review rounds

Assessment dated November 4, 2026, covering recent reviews of the Rocjitsu Arithmetic Library (rj-arith) PR stack, including a batch of 35 inline comments and two substantive review-summary requests. The stack introduces the library and progressively replaces Rocjitsu's existing CPU instruction implementations. The project is approaching merge and deliberately favors bounded, selective test coverage over exhaustive fixtures.

This assessment concerns comments posted by Jakub (@kuhar) following a significant

Rocjitsu arithmetic end-to-end benchmarks

Median warmed latency in seconds (three significant digits) across three fresh processes per cell. Lower is better. Every workload runs as gfx1201 CPU emulation on shark01-ci.

Workload origin/develop Compatibility Prefer exact, allow loose Loose
FP32 vector addition 0.0178 0.0173 0.0171 0.0172
FP32 small two-layer MLP 0.0380 0.0326 0.0324 0.0320
FP16 small encoder 0.0736 0.0544 0.0543 0.0531
FP16 small decoder + KV cache 0.114 0.0860 0.0854 0.0837
@bjacob
bjacob / a.md
Created October 14, 2026 02:25

Aorta benchmark comparison

Small Aorta workloads running through rocjitsu’s RDNA4 CPU emulation on an AMD Ryzen 9 7950X3D. Median latency in milliseconds across six interleaved trials; lower is better.

Workload Before GoC Compatibility Loose
FP32 vector addition 17.57 16.60 16.26
FP32 two-layer MLP inference 33.11 29.23 28.62

I'm trying to come up with a popularization of the meaning of the Baum-Connes conjecture for people with only undergraduate math. One idea I had was that Group C*-algebras, when the group is commutative, are basically the algebra of function on the dual, so under the algebras-spaces equivalence, Group C*-algebra are attempting to generalize "the dual space of a group" to non-abelian groups, and then, the Baum-Connes conjecture is about algebraic-topologic invariants of that "noncommutative dual space" and maybe specifically relating it to the classifying space ?

Your framing is essentially right, and it's the standard heuristic. A few refinements will make it both accurate and more compelling.

What's right

  • For a commutative group G (say a locally compact abelian one), Pontryagin duality plus Fourier transform identifies C*(G) with the algebra of continuous functions vanishing at infinity on the dual group Ĝ. That's the Gelfand-Naimark correspondence at work: commutative C*-algebras are spaces.