Uploaded August 2026 | Updated September 2026, 2 weeks ago
Today Peter continues looking at porting his Haskell NES emulator to Lean 4, and focuses with laser-like intensity on only one question: is there a graphics library he can use to draw on screen? The answer, unsurprisingly, involves using FFI bindings to a library written in C. So we look at how Lean 4 accesses foreign function interfaces.
Thumbnail Painting: "Rustic Life" (1888) by Akseli Gallen-Kallela
Today Peter continues looking at porting his Haskell NES emulator to Lean 4, and focuses with laser-like intensity on only one question: is there a graphics library he can use to draw on screen? The answer, unsurprisingly, involves using FFI bindings to a library written in C. So we look at how Lean 4 accesses foreign function interfaces.
Thumbnail Painting: "Rustic Life" (1888) by Akseli Gallen-Kallela




![A 6502 Simulator Mystery - Solved!
For a while now Ive been looking at a nifty little 6502 simulator which has been available on the Apple ][, but was uncertain of its provenance. I began this video in the hopes that someone could identify it, but while making it - right as I was about to publish it! I stumbled across the actual answer to the mystery. Here we go!
On a related note, check out Curt Sampsons excellent blog article Going Back to EDASM, the 1980 Apple II Editor/Assembler, which discusses one of the other executables on the same disk.
Join this channel to get access to perks; the Thanks, peterb! tier is a great way to show your support without breaking the bank, and the Early Access tier gets you access to most of my videos about a week early.
https://www.youtube.com/channel/UCd7i-ppmXgznXLKf-HsB2QQ/join A 6502 Simulator Mystery - Solved!](https://i.ytimg.com/vi/aZvss4XnceU/mqdefault.jpg)





