How I used to learn
And how I try to adapt it to the age of AI
I am not a trained pedagogue, nor have I been evaluated by one (except maybe once, more on that later), but I have come to believe that I am a kinesthetic learner. I retain information better when I use it myself. Don’t mistake this for me saying that I enjoyed doing homework as a child but I have sufficient perspective now to realize that my lessons “sunk in” while I was practicing what I had been taught.
I spent a moment of rare self-reflection (many have told me, entirely fairly, that I am not the most introspective person they know) piecing together what I consider important (or at least relevant) chunks of human knowledge in my time on this speck of dust. Given this blog’s bias, allow me to repeat a story I mentioned elsewhere. My earliest real programming experience (discounting playing lunar lander on my dad’s Commodore) was some LOGO in elementary school. A friend’s dad invited several of us to the local teaching college on Saturday mornings. We pawed in the dark on Smaky computers, giving directions to a little turtle which would then draw shapes on the screen. Try giving this to a child who grew up with touchscreen smartphones and tablets and you’ll have a rebellion on your hands. Now try imagining what it must have felt like to a bunch of analog yokels in the mid-eighties. It was absolutely magical! I only learned much later that LOGO was designed for early education. In retrospect, it taught me the concept of mutable state and loops. It took me ages to wrap my head around the fact that the same exact instructions (say drawing a square) could be repeated with an intervening displacement and produce two different squares!
I recently instructed a clanker to reproduce my recollection of our final project. Leaning into the cliché, we drew the hand of a clock, then erased and redrew it slightly rotated in an infinite loop. We felt like absolute stars controlling a machine! Come to think of it, the reward mechanism of a “job well done” must contribute to how well I remember this episode. This feeling of elation was proportional to the amount of effort we put in to achieve it. The “triumph over struggle” process, while not for everybody, is the leitmotiv of my learning.
I distinctly remember another isolated incident several years later as a college freshman. My program required a semester of C++. Because we were an engineering school, our assignments were generally more mathematical than those in a more holistic CS degree would be. Less than a month in, we were asked to implement Gaussian elimination and back substitution. I remember struggling with the two nested loops that iterate over the lower triangle of a square matrix. I kept trying different versions of the termination condition for the inner loop. Mind you, I wasn’t working on my MacBook Pro like college students would do now but on a Solaris workstation in the school’s computer lab! Anyway, I ended up going home with a printout and a fair bit of frustration. I must have continued to think about it in my sleep because I woke up with an aha that would have made Martin Gardner proud and fixed my last few bugs with pen and paper! Again, struggle followed by triumph.
I went to graduate school after receiving my “Diplom” to study computational physics. This step laid the groundwork for my future career but I didn’t know it at the time. My advisor relied on the Monte Carlo method to study quantum-mechanical systems. Reading the foundational articles left me scratching my head, so I played with the Drosophila of condensed-matter physics: the Ising model. I can’t remember who it was, but someone would often gloat when they heard Ising’s first name mispronounced by English speakers because they felt Ising’s contributions didn’t warrant having the model named for him. Someone had left a copy of The Monte Carlo Method in Condensed Matter Physics in the office I shared with other graduate students and I translated the FORTRAN examples to C. The struggle was not directly connected to the core of the algorithms but translating forced me to understand each statement completely. This might not have happened had I simply transcribed those examples.
I recently followed the white rabbit down the hole and drank from the ominous bottle. In other words, after some dabbling, I have taken the plunge to “real” vibe coding. I spend more time prompting an agent to get the code exactly how I want it than I do editing it myself. Naturally, I wonder how this affects my ability to acquire and retain new information. The experimental setup is obviously suboptimal since I am significantly older than I was when the episodes mentioned above occurred. Be that as it may, I did a few things with AI that I had never done before, so let’s explore how they translated into learning.
When I translated jonesforth
to C, I struggled with the interaction between NEXT and DOCOL for a really
long time. The x86 version treats registers like global variables. Their values
are carefully preserved which can lead to “spooky”
action at a distance.
NEXT’s second instruction (jmp *(%eax)) does two things: the parentheses
and the asterisk both represent indirection. So it’s an indirect jump to
the memory whose address is in %eax. Not a big deal, C lets us prefix
a variable with as many * as necessary. The less obvious bit is that %eax
continues to hold the address after the jump and that’s central to how
DOCOL works. This required an extra, rarely used parameter to every tail-recursive
function in 5th.c.
I had vague recollections of reading about CPS
in the wizard book
and wondered to what extent target could be interpreted as a continuation.
So I experimented by prompting agents. One attempt produced a skeletal
port to racket which
led me to the 1998 reprint of John C. Reynolds’s seminal 1972 paper
“Definitional Interpreters for Higher-Order Programming Languages”.
Putting the pieces together, I “learned” that FORTH’s return stack can be
interpreted (pun intended) as the “defunctionalized” form of a CPS-style
interpreter. But what have I really learned? Do I understand CPS any
better than the vague recollection from skimming SICP many years ago? I would
be hard-pressed to say yes.
In other words, this feels like the distinction between passive and active vocabulary. Your passive vocabulary consists of all the words you recognize and understand when you hear them in context, but do not typically use. You know, the fancy $2 words that appear in the New York Times Word of the Day. How much does this distinction truly matter? Well, that question is worth a bit more than $2 and its answer depends on context. I like to think of it this way: do you think your car mechanic never watches YouTube videos for specifics of a repair on your exact car? If they don’t, congratulations, you found a savant! However, if they do, you’re still fine because they only have expertise and are just filling in some gaps. Your relative who assures you they “got it” is a different story. No amount of YouTube can paper over their absolute cluelessness and they might leave you with a busted camshaft.
I do not yet know where AI fits into my preferred way of learning. For now, I am treating agents less like shortcuts and more like unusually capable mechanics watching over my shoulder. They can help diagnose a problem, suggest a tool, and fill a gap—but sooner or later, I still need to get my hands on the engine.