The Linux Kernel Module Programming Guide (#LKMPG) got 5000+ stars on GitHub. Thank all the contributors and promoters. We are moving forward to Linux v6.x support. Rust LKM examples will appear later.
https://t.co/n8PKgCYxiO
🚨 Calling C devs and security researchers 🚨
safecc is a Clang fork for C: if it compiles your program, it is guaranteed to be memory safe (similar to Rust).
I tried all day yesterday to get it to accept a program that has any kind of unsafe memory access and cannot do it: 8,330 cases, 10,000 programs, and core rules in Lean.
I need people to try to break safecc. If you can get an ASAN violation or non-panic crash under these conditions, please report an issue.
1. Use the `safecc` compiler
2. No __unsafe annotations in your code, no safecc cli flags to turn checks off
https://t.co/g8PVrEgpf7
Reverse engineering Apple's on device machine learning chip (Apple Neural Engine), Implemented it in RTL, and matched numerics bit by bit from my M2 MacBook to my FPGA.
It was discovered that on M2 every fp16 product is converted to a fixed point 1/65,536 grid
👇
Working on Lanes: a framework for building fast, provably correct software in Lean
It’s very early (v0.0.2, a preview), but the aim is:
1. An actor framework and runtime that makes concurrent systems easier to prove, while being competitive in performance with Go
2. A model checker that runs on the application’s real code
3. A useful extended standard library, bringing much of Go’s standard library to Lean, differentially tested against it
4. Models of the stores and services apps talk to (Postgres, SQLite, S3, Stripe, etc), checked against real or reference implementations
Programs follow “functional core, imperative shell”: all core logic is pure, deterministic steps, and the runtime performs all IO and side-effects, which makes the logic easy to test, simulate and prove.
Agents can check their work with, from cheapest to strongest:
- Type checking
- Testing
- Model checking
- Deterministic simulation
- Full proofs
Now that agents write most code (with less of it being human reviewed), how far an agent can verify its own work is the bottleneck.
Formal methods are very powerful, but map poorly onto how software has historically been written.
If programming eventually converges to “whatever is most legible to agents”, we’ll probably end up using dependently typed functional languages like Lean. The infrastructure just needs to be built.
Still in an early state, lots to polish. Will post updates on progress, and a full write-up once it's in a more usable shape.
https://t.co/CRq0jmkVyq
Formal methods are where engineering gets genuinely interesting. Not because proving software correct is easy, it forces you to confront how little you actually know about the systems you build.
Dijkstra spent decades pushing the idea that correctness should be established through reasoning, not discovered through accidents in production. Lamport showed how even distributed systems, where time and ordering become fundamentally difficult, can be understood through precise mathematical models.
so the next frontier is taking those ideas out of papers and putting them directly into the engineering process.
Imagine compilers that continuously challenge their own optimizations against semantic models. Runtimes whose transition systems can be explored systematically. Distributed systems that produce minimal counterexamples instead of mysterious production failures.
Testing infrastructure that discovers violations of the specification rather than merely exercising code.
best career advice I can give is this: go deep into formal methods, model checking, metamorphic testing, compiler semantics, fuzzing, and differential testing.
In 1995, Tom Lane and the PNG working group engineered the first 8 bytes of every .png image file (89 50 4E 47 0D 0A 1A 0A) to detect common file-transfer corruption.
the bytes weren't chosen randomly.
0x89 detects transfers that strip the high bit, 0D 0A catches newline conversion, 0x1A stops the DOS TYPE command from dumping binary data to the terminal, and the final 0A catches the reverse newline conversion.
even the first 8 bytes of a PNG file were designed to catch mistakes.
In 1975, UNIX Version 6 contained a piece of process-switching code in sys/ken/slp.c that became famous for one of the strangest comments in programming history.
the routine restored an earlier stack frame so that a return could resume execution in a different function. It relied on the way the PDP-11 C compiler saved registers.
Dennis Ritchie later admitted that the mechanism was fundamentally broken and had to be redesigned when UNIX was ported to another architecture.
but the original source contained this unforgettable comment:
I just built the world's fastest SAT-solver (and it's not even close), thanks to Neon.
Fifteen years ago I spent five years (thousands of hours) working on an advanced Boolean circuit preimage solver, aka a SAT-solver. Building an algorithm to efficiently solve a large subset of the NP-complete problem space in polynomial time is extremely difficult. My solver worked, but it was very slow compared to the state of the art.
Today I gave Neon all my 15-year-old solver code. It analyzed all of the code, took all my best unique ideas and suggested how to improve them using other algorithms, and then it built a highly efficient hybrid solver out of all of the ideas. The result was FAST: MUCH faster than what I had built.
This whole process took LESS THAN FIVE MINUTES. I spent FIVE YEARS in the muddy trenches of number theory and cryptography, and I only got 5% of of the way to where Neon got within 5 minutes.
I gave Neon a handful of ideas as to how to improve its initial algorithm, and two minutes later the solver was 50x faster. I gave it more ideas: 10x faster again. More ideas: 100x faster again.
This new solver, Frobenius, is an alien speed demon. I'm only 20 prompts deep, and Frobenius is already the fastest SAT solver in the world, by a large margin. Frobenius is an average of thousands of times faster than state of the art solvers across all problems, but the gap grows even wider as the problem size increases.🤯
This is how all future progress will be made: through human ⇄ AI symbiotic feedback cycles. We are now cyborgs: augmented human-AI-hybrids. And a human plus an AI will always accomplish more than either individually.
I can't help but think how much more impact I could have had during my career if I had these LLM tools 20+ years ago.
P.S. 1: I'm not ready to release Frobenius yet, because the big SAT solver competition is in April 😁)
P.S. 2: Anthropic is in trouble. Neon is 10x more powerful and 100x faster for hard tasks like this than Opus 5.5. I just canceled three out of my four Claude Ultra plans.
We shrank 1 GB of Wikipedia to 105.39 MB, losslessly.
Introducing tufazip: the best entry on the Large Text Compression Benchmark using a neural network as its sole predictor. Everything above it mixes a transformer with hand-built models.
Full post 👇
https://t.co/cllPF90gsb
I wrote a five-task Chisel course that takes students from digital logic and a single-cycle RV32I core to a five-stage AXI4-Lite SoC with the M extension, CSRs, and trap handling. Each task builds on the last and is verified with Verilator.
https://t.co/onWQHCgrrY
Android's source code is huge. 1k git repos, 1.62 million files, and it takes 300GB for a built workspace.
How did we reduce checkout time from 36 minutes to 8 seconds? Full builds from 80 minutes to 2 minutes?
We just open sourced the solution.
https://t.co/8lcqRmd5FI
This one looks legitimate. It’s x86 specific and is a consequence of a bug in the JIT.
Long story short, the java.util.Base64 decoder has an AVX-512 (SIMD) routine swapped in at runtime to speed up the decoding. Except there’s a bug in the routine which could lead to memory corruption.
The primary concern here is that Base64 is used in a number of application servers for HTTP basic authentication, Kerberos, SAML, WebSockets, etc. You might not even use these features, but if the server decodes the string before rejecting it, it may be too late.
Until a fix is in place the workaround is to add the flag -XX:-UseBASE64Intrinsics to your application startup to disable the AVX-512 routine.
🎉 Introducing SiliconForest: a new open operating system built on Darwin and XNU, the open-source core of macOS, running natively on an M1 MacBook Pro.
Here’s the interesting part: it runs unmodified Mac apps. This first version runs Apple’s Terminal and Activity Monitor, copied straight from a macOS install, plus the stock Mac build of Firefox.
Working today on a 13" M1 MacBook Pro: GPU acceleration (Vulkan 1.4), hardware video decoding, Wi-Fi, sound, keyboard and trackpad, and the Touch Bar.
It’s Apple’s open-source kernel, with the parts Apple doesn’t publish reimplemented from scratch.
I’ve also brought my Wayland compositor, Chonkstep, over to Darwin, and the results so far are fantastic.
The idea: a free, hackable OS that can run native Mac apps.
It’s early. Big apps like Logic Pro and Photoshop need a lot more (Metal, for a start), but that’s the direction.
It stands on great work: PureDarwin (which we fork), the Asahi Linux GPU and hardware drivers, Omacom Mesa, and the Finch frameworks project.
Source is coming soon. Right now it runs on one machine, the 13" M1 MacBook Pro. If you’d like to help bring it to other M-series Macs, get in touch.
https://t.co/XhQ0e2VKUU
The AI saw a half-painted board and treated it as part of the pattern.
That is why coding agents need a test harness. Before you hand over the brush, make sure your tests can tell a finished fence from a convincing imitation.
I think SAT/SMT and symbolic execution-style approach have suffered from severe scalability issues, while it seems like AI agents + interactive theorem provers can scale quite well