lcamtuf
@lcamtuf.coredump.cx
📤 3317
📥 242
📝 164
Substack:
http://lcamtuf.substack.com/archive
Homepage:
http://lcamtuf.coredump.cx
Boss: hey Bob, our users are asking for an API to determine if a video can be played in the browser. Bob: yeah, I get it, but this is really complica -- Boss: go on now, git! You'll figure it out. Bob: [muttering to himself]
1 day ago
1
25
8
The latest
2 days ago
2
10
0
Folks, we have the best π:
lcamtuf.substack.com/p/folks-we-h...
loading . . .
Folks, we have the best π
In the past couple of months, I published a number of articles on recreational math.
https://lcamtuf.substack.com/p/folks-we-have-the-best
7 days ago
4
16
6
Chickens now have power, can play games or watch TV
loading . . .
8 days ago
2
5
0
Lord give me strength to stay on this platform
12 days ago
5
15
0
Getting silly with C, part ~(~1<<1)
lcamtuf.coredump.cx/blog/c3/?n
loading . . .
Getting silly with C, part ~(~1<<1)
In the two previous installments of our introductory series on the C programming language, we talked about types, variables, and control flow.
https://lcamtuf.coredump.cx/blog/c3/?n
16 days ago
0
9
3
How many dimensions is this?
lcamtuf.coredump.cx/blog/dimensi...
loading . . .
How many dimensions is this?
With the right incentives, you can convince a PhD to stack boxes in a warehouse.
https://lcamtuf.coredump.cx/blog/dimensions/
19 days ago
2
8
2
My position on the "doomsday" risk of superhuman AGI is that if IQ offered you a decisive advantage, the world would be run by nerds. I think it's essentially a geek power fantasy. The returns on puzzle-solving skills rapidly diminish past some modest threshold.
23 days ago
34
515
65
I'm sorry folks, the spec made it clear
about 1 month ago
6
95
16
about 2 months ago
0
105
14
An update on the chicken coop. Doors and windows by my wife (there's another window on the back, and a chicken door inside).
2 months ago
2
18
0
Multitudes:
lcamtuf.substack.com/p/multitudes
loading . . .
Multitudes
A warm, late-summer night in Bruges.
https://lcamtuf.substack.com/p/multitudes
2 months ago
1
5
0
If you work in software, you know about the halting problem. But you *can* decide if a program halts in a finite number of steps! Except, when you do, it kinda summons the ghost of Kurt Gödel. An accessible essay on the limits of algorithmic knowledge:
lcamtuf.coredump.cx/blog/beavers...
loading . . .
Gödel's beavers, or the limits of knowledge
Can you examine infinitely many integers in finite time? Are there numbers you're not allowed to know? Can a monkey beat a beaver in a fair fight?
http://lcamtuf.coredump.cx/blog/beavers/?q
3 months ago
0
15
1
A slightly unhinged calculator fact: in the golden era of electronic calculators, some Japanese shopkeepers were reluctant to trust the newfangled device, so Sharp made a line of combination calculator / abacus devices. Here's a photo, next to some other stuff I own.
3 months ago
1
25
3
An update on an update on the chicken coop
3 months ago
0
9
0
I don't know where you folks get your non-orientable manifolds, but the experience of ordering from Cliff Stoll at
kleinbottle.com
is second to none
3 months ago
4
33
4
What is infinity, and why it's not trivial to show that 0.9999... is equal to 1:
lcamtuf.substack.com/p/09999-1
loading . . .
0.9999... ≊ 1
What is infinity, and why it's not trivial to show that 0.9999... is equal to 1.
https://lcamtuf.substack.com/p/09999-1
4 months ago
0
2
0
The proof that π = 4
lcamtuf.coredump.cx/blog/pi/
loading . . .
π = 4
Trolls do a pretty good job of getting people interested in math.
https://lcamtuf.coredump.cx/blog/pi/
4 months ago
0
3
0
Self-referential abstractions, or a quick look at the wacky epistemology of analog circuitry.
lcamtuf.coredump.cx/blog/abstrac...
loading . . .
Self-referential abstractions
A quick look at the wacky epistemology of analog circuitry.
https://lcamtuf.coredump.cx/blog/abstractions/?n
4 months ago
1
4
1
I finally decided to bite the bullet
4 months ago
0
11
0
An update on chickens
4 months ago
1
16
0
A 20-minute intro to complex numbers (featuring cats):
lcamtuf.coredump.cx/blog/complex/
loading . . .
A 20-minute intro to complex numbers
You might have heard of complex numbers before -- but why exactly did we choose i = √-1?
https://lcamtuf.coredump.cx/blog/complex/
4 months ago
0
6
0
4 months ago
0
38
6
Decibels are ridiculous:
lcamtuf.coredump.cx/blog/decibels/
loading . . .
Decibels are ridiculous
Celebrating a rare dumpster fire in the kingdom of science
https://lcamtuf.coredump.cx/blog/decibels/
4 months ago
5
23
5
There's this joke primality testing library that claims 95% accuracy in O(1) time:
github.com/mawerty/Is-P...
It does so by always returning false. The density of primes between 1 and n approaches 1/ln(n). For a 32-bit int, 4.6% of values are prime, so the code is right 95.4% of the time. 🡇
4 months ago
2
19
2
Can you have complex numbers in 3D, and what the heck are quaternions?
lcamtuf.coredump.cx/blog/complex2/
loading . . .
Complex numbers #2: a world in 3D
Why is there no equivalent of complex numbers for three dimensions? And what's the deal with quaternions?
https://lcamtuf.coredump.cx/blog/complex2/
4 months ago
0
10
2
I'm old enough to remember when our #1 concern about the veracity of online information was that anyone could edit Wikipedia
4 months ago
1
65
7
The Mathematics of Love:
lcamtuf.coredump.cx/blog/love/
loading . . .
The Mathematics of Love
Interior of an upscale restaurant, night.
https://lcamtuf.coredump.cx/blog/love/
4 months ago
0
8
1
What a coincidence, I have the same interests
4 months ago
0
13
1
Sierpinski triangle? In my bitwise AND?
lcamtuf.coredump.cx/blog/triangle/
loading . . .
Sierpiński triangle? In my bitwise AND?
Exploring a peculiar bit-twiddling hack at the intersection of 1980s geek sensibilities.
https://lcamtuf.coredump.cx/blog/triangle/
4 months ago
0
14
2
I found a motto for my Substack
5 months ago
0
19
2
The Long Winter:
lcamtuf.coredump.cx/blog/winter/
loading . . .
The Long Winter
Interior of a vast cavern.
https://lcamtuf.coredump.cx/blog/winter/
5 months ago
0
1
0
A (fairly) gentle intro to transfer functions and resonant filters:
lcamtuf.coredump.cx/blog/rc-filt...
To fully appreciate it, you'd probably need to be up-to-date on the preceding article, linked on top.
loading . . .
Analog filters, part 2: let it ring
A continuation of the gentle intro to analog signal filtering. In today's episode: transfer functions and the Sallen-Key topology.
https://lcamtuf.coredump.cx/blog/rc-filters2/
5 months ago
0
4
1
I revamped my article on complex impedance. It now offers: 1) An accessible analysis of RC, RL, and LC circuits, 2) A cute proof for why the Cartesian plane interpretation of impedance makes sense, 3) A basic primer on complex numbers, featuring cats.
lcamtuf.coredump.cx/blog/lcr
loading . . .
Core concepts #2: impedance is complex
Modeling impedance in two dimensions, and why a common workbench gadget is not quite what it seems.
https://lcamtuf.coredump.cx/blog/lcr
5 months ago
1
5
0
One of the cool things about electricity is that there's more charge in a button battery than in a bolt of lightning. I promise this is true. One ampere is the flow of one coulomb (~6 quintillion electrons) per second. A typical CR2032 battery packs about 200 mAh. 🡇
5 months ago
1
11
4
How do we generate clocks in digital circuits? From relaxation oscillators, to crystals, to phase-loocked loops:
lcamtuf.coredump.cx/blog/clocks/?1
loading . . .
Clocks in digital circuits
How do electronics keep track of time - from RC oscillators, to quartz crystals, to phase-locked loops.
https://lcamtuf.coredump.cx/blog/clocks/?1
5 months ago
1
12
3
As it turns out, the C compiler orphan-crushing machine offers no benefit:
web.ist.utl.pt/nuno.lopes/p...
loading . . .
https://web.ist.utl.pt/nuno.lopes/pubs/ub-pldi25.pdf
5 months ago
0
9
3
I always longed for a social network where you don't actually interact with people so Bluesky is pretty great
5 months ago
1
26
3
My approach to teaching electronics:
lcamtuf.coredump.cx/blog/teaching/
loading . . .
My approach to teaching electronics
Explaining the reasoning behind my series of articles on electronics -- and asking for your thoughts.
https://lcamtuf.coredump.cx/blog/teaching/
5 months ago
1
14
3
Resistors, Johnson-Nyquist, and nV/√Hz:
lcamtuf.coredump.cx/blog/noise/
loading . . .
Johnson-Nyquist and nV/√Hz
A major source of noise in electronic circuits is easy to understand. The unit we use to measure it is not.
https://lcamtuf.coredump.cx/blog/noise/
5 months ago
2
15
3
We're at the "pivot to a social network" stage in the development of AGI
5 months ago
0
16
3
Real MLCCs (and inductors) have curves:
lcamtuf.coredump.cx/blog/mlcc/
loading . . .
Real MLCCs (and inductors) have curves
Linear components are pretty nonlinear -- and parasitics don't tell the whole story.
https://lcamtuf.coredump.cx/blog/mlcc/
5 months ago
0
9
2
A book on the philosophy of HN is long overdue
6 months ago
0
14
1
Stand for what you believe in
6 months ago
7
403
90
A reassuring message from the 401k plan
6 months ago
9
287
21
Why do lemon batteries work?
lcamtuf.coredump.cx/blog/lemons/
loading . . .
Why do lemon batteries work?
And chemistry, I guess
https://lcamtuf.coredump.cx/blog/lemons/
6 months ago
1
9
1
The Rapture:
lcamtuf.coredump.cx/blog/rapture/
loading . . .
The Rapture
<envoy> It’s fascinating how these vascular bundles, containing xylem and phloem, are arranged in a ring located beneath the skin (periderm) and the cortex.
https://lcamtuf.coredump.cx/blog/rapture/
6 months ago
0
2
0
Look GCC, I don't think I'm being unreasonable here
6 months ago
2
34
2
A novel way to implement loops:
godbolt.org/z/164jvGz1b
6 months ago
4
28
6
Load more
feeds!
log in