Sign in

peterb

@peterb.mathstodon.xyz.ap.brid.gy
6 followers 0 following 210 posts

effort + coffee = software 🌉 bridged from ⁂ mathstodon.xyz/@peterb, follow @ap.brid.gy to interact

PostsRepliesMedia
peterb @peterb.mathstodon.xyz.ap.brid.gy · 21h
Chapter 7 of Rustlings is all about structures. I complain more about Rust. What a complainer! Thumbnail painting: Heads Landscape (1928) by Francis Picabia youtu.be/aGU_3i5BYVg
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 29/09/2026
Martin Amis once wrote "It was...a symmetrical convenience—for Stalin—that a true description of the Soviet Union exactly resembled a demented slander of the Soviet Union." So anyway this is a subtweet about the EA / AI community in the Bay Area.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 28/09/2026
How is it possible that Slapp Happy's _Casablanca Moon_ hasn't made it into a TV or movie soundtrack yet? www.youtube.com/watch?v=ppq9t7cWDRg
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 25/09/2026
6502 Opcodes in Lean! I continue porting my NES emulator from Haskell to Lean. In this edited (and much shorter) version of the 4-hour livestream, I muse a bit about syntax and my philosophy of programming. The thumbnail painting is Gisele (1908) by Kees Van Dongen […]
mathstodon.xyz
Original post on mathstodon.xyz
010
peterb @peterb.mathstodon.xyz.ap.brid.gy · 18/09/2026
New video: Let's Try Chipwits Worlds ChipWits was an incredible 1984 programming game for the Mac (and other platforms), written in Forth, where you programmed robots to accomplish. Recently remade for modern platforms, the creators have now released a demo of Chipwits Worlds where instead of […]
mathstodon.xyz
Original post on mathstodon.xyz
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 11/09/2026
Today we get into the first chapter of Rustlings that tackles something truly Rust-specific: move semantics. Peter is unimpressed with Rust so far, and also with Rustlings as a didactic tool. Thumbnail painting: "The Execution of Lady Jane Grey" (1833) by Paul Deleroche […]
mathstodon.xyz
Original post on mathstodon.xyz
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 06/09/2026
My friend Nate is taunting me by posting AI summaries of my video from last year about how I'm ambivalent about AI. (Original video: www.youtube.com/watch?v=oOcLnNLAHek)

In this video (0:09-18:03), the creator, Tea Leaves, reflects on

the rapid evolution of technology and shares personal

experiences regarding the use of Large Language Models

(LLMs) in software development.

Key themes include:

+ Historical Context: Drawing from Alvin Toffler's Future
Shock and James Burke's The Day the Universe Changed,
the creator discusses how accelerating technological change
leads to stress and shifts in how we perceive reality and truth
(0:25-8:45)

« The Personal Conflict: The creator, who values the
aesthetic and personal satisfaction of coding, details a past
struggle to write a parser for a NAND to Tetris assembler
project (6:38-8:54).

« The Turning Point: After an initial failure two years ago, the
creator successfully used an LLM to generate the code for
the parser in one try. This sparked feelings of both
satisfaction and deep apprehension about the speed of Al
advancement (8:57-11:51).

« Future Outlook: The creator contrasts a "bad path," where
users lose the ability to learn and understand fundamentals,
with a "good path," where Al serves as a tool to move human
problem-solving to higher levels of abstraction, similar to
how the printing press transformed the preservation and
democratization of knowledge (15:00-17:08).
010
peterb @peterb.mathstodon.xyz.ap.brid.gy · 04/09/2026
As part of boot-strapping my NES emulator, I port my 6502 CPU emulator from #Haskell to #Lean. Some architectural changes – some encouraged by the language, and others simply from having a second bite at the apple – are made. Thumbnail painting: La Bohémienne Endormie (1897) by Henri Rousseau […]
mathstodon.xyz
Original post on mathstodon.xyz
012
peterb @peterb.mathstodon.xyz.ap.brid.gy · 30/08/2026
Tragic: through a series of bad decisions I have managed to put the best ink I've ever bought in the worst fountain pen I've ever bought.
130
peterb @peterb.mathstodon.xyz.ap.brid.gy · 28/08/2026
Rust for Dilettantes: Vectors Thumbnail Painting: "Portrait of Bianca degli Utili Maselli and Her Children" (1604) by Lavinia Fontana youtu.be/C97AxzFqfgc
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 23/08/2026
RE: toot.wales/@psu_13/1171447379554449… Excellent thoughts on LLMs/"AI" here. Pete (the other Pete) wrestles directly with the contradiction between "Coding LLMs create real value for individual programmers" and "They're still not a silver bullet" both being true. Everyone's favorite […]
mathstodon.xyz
Original post on mathstodon.xyz
010
peterb @peterb.mathstodon.xyz.ap.brid.gy · 21/08/2026
New video: Porting an NES Emulator to #Lean...playing with Subtypes and Dependent Types I write my very first subtype, which is the entire reason I wanted to try porting this emulator in the first place. We explore 2 different ways of accomplishing "here is some data and the compiler has proven […]
mathstodon.xyz
Original post on mathstodon.xyz
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 21/08/2026
A small preview of the next few weeks (or months!) of my YouTube channel at www.youtube.com/TeaLeavesProgramming. New videos go public every Friday at 10:30 am; "early access" members get access to all videos when they are posted (so if you're early […] [Original post on mathstodon.xyz]
Screenshot of videos on my channel through October 2.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 17/08/2026
This is, precisely, how I write code.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 16/08/2026
really love how google chrome will just ask me every few hours "hey i'd like permission to scan all the devices on your network" HEY HOW ABOUT YOU GO FUCK YOURSELF instead.
101
peterb @peterb.mathstodon.xyz.ap.brid.gy · 14/08/2026
New video: Rust for Dilettantes 4. I reach the "primitive types" section of Rustlings. www.youtube.com/watch?v=d4OHrim4Gx0 Listen, I'm going to be honest: learning Rust and Lean at the same time is doing something to my brain. Coming back to Rust after writing code in Lean is like […]
mathstodon.xyz
Original post on mathstodon.xyz
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 14/08/2026
My contribution to the discourse where people are mad at the idea of "the coding isn't the hard part": As someone who has developed software for 40+ years, writing good, clear English is much, much, much harder than writing code, and it isn't even close.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 07/08/2026
New video: Today I continues looking at porting my Haskell NES emulator to Lean 4, and I focus with laser-like intensity on only one question: is there a graphics library I can use to draw on screen? The answer, unsurprisingly, involves using FFI bindings to a library written in C. Let's look at […]
mathstodon.xyz
Original post on mathstodon.xyz
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 05/08/2026
My most AI-booster coded opinion is that every compiler (yes, EVERY COMPILER) needs to ship with a small local ML model that runs whenever a compile fails and tells you what the syntax error in your code actually is instead of whatever useless bullshit the compiler's error message contains.
300
peterb @peterb.mathstodon.xyz.ap.brid.gy · 02/08/2026
I'm in love with this "Centered dot as the value waiting to be applied" syntax. It's SO MUCH BETTER than "partially applied argument which comes in any color as long as it's the last argument"
incdec and centered dots
001
peterb @peterb.mathstodon.xyz.ap.brid.gy · 02/08/2026
Restructured the shift operations (ASL, LSR, ROL, ROR) to be a little more Clever™ and streamlined in the Lean 6502 emulator. Lean on the left, Haskell on the right. There's nothing intrinsically lean-specific about this, it's just me having another bite at […] [Original post on mathstodon.xyz]
Lean on the left, Haskell on the right.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 01/08/2026
Porting a Nintendo Emulator from #haskell to #lean4 Today we're porting some of the opcodes/instructions from my Haskell 6502 emulator to Lean 4. youtube.com/live/IUIOexOvl3M
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 31/07/2026
Live Lean 4 NES emulator development youtube.com/live/tSajD4FGMKY?featur…
100
peterb @peterb.mathstodon.xyz.ap.brid.gy · 31/07/2026
Not gonna lie, very upset that I understand this code.
NOPE
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 31/07/2026
New Video: Rust for Dilettantes We continue working through Rustlings - in this episode, looking at the "if" section. The thumbnail painting is "Magdalene With The Smoking Flame", by Georges de La Tour (1640) youtu.be/bVxTXu-vlgg
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 30/07/2026
Lean 4 definitely has that FP "There's More Than One Way To Do It" thing that can sometimes be a virtue and can sometimes be a vice. (I'm normally Mr. Verbose Dude, but since there are hundreds of opcodes I will probably go for the terse variant here.)
3 different ways to write the pattern.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 29/07/2026
not mine (but 100% true)
Stop doing metaprogramming
002
peterb @peterb.mathstodon.xyz.ap.brid.gy · 28/07/2026
Lean 4 on the left, Haskell on the right. Defined a few additional helpers for Lean to make it less verbose.
Lean 4 on the left, Haskell on the right.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 27/07/2026
My reaction to any programming language introducing macros in chapter 1 of their tutorial is “Oh, so you forgot to actually design your programming language, huh?”
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 25/07/2026
A #lean4 paper cut that I hate: it absolutely kills me that they mixed the fields `val` and `property` on Subtype, so every time i try to use it i go down the dead ends of trying BOTH `value` and `prop` and being wrong.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 24/07/2026
The best David Bowie album, and it is not close, is Scary Monsters (And Super Creeps). I will be taking no questions at this time.
010
peterb @peterb.mathstodon.xyz.ap.brid.gy · 24/07/2026
New video: An NES emulator in a theorem prover???!? youtu.be/3TBUiTS6wyY Thumbnail Painting: "Spear Fishing on Lake Krøderen" (1851) by Hans Gude and Adolph Tidemand
010
peterb @peterb.mathstodon.xyz.ap.brid.gy · 23/07/2026
I regret to inform you they continue to make games solely for me: store.steampowered.com/app/3950130/…
store.steampowered.com
Save 15% on Database Detective: Minor Crimes Division on Steam
Solve criminal cases through the power of SQL queries! Help out the city of Los Zorangeles by becoming a Database Detective in this new (unpaid) work from home opportunity.
012
peterb @peterb.mathstodon.xyz.ap.brid.gy · 21/07/2026
"sorry" as the undefined value in Lean is MUCH funnier to stub out than Haskell.
Sorry!
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 19/07/2026
I regret to inform you I am back on my bullshit.
Lean 4 NES headers
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 17/07/2026
New video: Haskell for Dilettantes, testing with QuickCheck. www.youtube.com/watch?v=zy6j2zsv_vE
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 13/07/2026
I uploaded the wrong video! Second time is the charm. Rust for Dilettantes - Functions. youtu.be/DlOpvZwu9uA
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 13/07/2026
I'm not saying there aren't risks, but I am saying that in the 1980s there were tons of people who would loudly and angrily insist that if you didn't use a manual transmission you didn't really know how to drive, and they were wrong.
100
peterb @peterb.mathstodon.xyz.ap.brid.gy · 12/07/2026
Do I dare make a video about higher-kinded types in Lean 4?
100
peterb @peterb.mathstodon.xyz.ap.brid.gy · 11/07/2026
I tend to be pretty laissez-faire about pronunciation as long as you can communicate, but I also believe that people who pronounce the word "salmon" as "SALL'mon" must be destroyed.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 10/07/2026
New video: Rust for Dilettantes, part 2. www.youtube.com/watch?v=q7Em0XQTLCQ
001
peterb @peterb.mathstodon.xyz.ap.brid.gy · 10/07/2026
the extent to which the things people write on the internet in 2026 makes me say to myself "Man, it feels good to be a normie" cannot be overstated.
100
peterb @peterb.mathstodon.xyz.ap.brid.gy · 06/07/2026
ok hear me out a new movie or tv series adaptation of "The Count of Monte Cristo" but in every scene wherever possible they are eating monte cristo sandwiches.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 03/07/2026
New #Haskell video: some exercises from Set 15 of the #Haskell MOOC, which is all about Squishy Mappables (formerly known by their old, inferior name of "Applicative Functors") www.youtube.com/watch?v=WXahHKqrauI
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 02/07/2026
One completely irrational belief I have is that part of my brain absolutely judges banks and stockbrokers by the standard of "How soon after the end of the month is my statement available?" You're a bank! YOU HAVE ONE JOB.
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 02/07/2026
I'm not gonna lie: the amount of work I've had to do just to get to this point has me extremely unamused.
Liquid Haskell
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 01/07/2026
Interviewer: What’s the best song? 20-year old me: Personal tastes vary widely, the very idea of a “best” song is reductive. Today me: It’s ”Long Season”, by Fishmans. That’s the best song. There’s no other right answer. www.youtube.com/watch?v=e6xJozKOPYw
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 28/06/2026
Happy to announce my new #Haskell library, BetterNaming, which at just 5 lines massively improves the ergonomics of the language.
{-# LANGUAGE ConstraintKinds #-}

import Data.Kind (Constraint)

type Mappable f = Functor f
type Squishable f = Applicative f
type Sequenceable f = Monad f
210
peterb @peterb.mathstodon.xyz.ap.brid.gy · 27/06/2026
Short: this is the story of how my dad exploded my Apple II computer. No hard feelings, dad. youtube.com/shorts/m-_1UZ-PVtc
000
peterb @peterb.mathstodon.xyz.ap.brid.gy · 23/06/2026
Hello to the band from New Jersey that made a cover album of songs from the Japanese band "Fishmans", and nobody else. pinebarons.bandcamp.com/album/i-lov…
pinebarons.bandcamp.com
I LOVE FISH, by Pine Barons
9 track album
021